Generator Functions vs Async Generators: Memory Efficiency Battle

JavaScript generators vs Python async generators. Which language's generator pattern is more powerful for memory-efficient data processing? Mind = blown!

#javascript #python #javascriptvspython #generators #asyncgenerators #memoryefficiency #lazyevaluation #programmingcomparison #codecomparison #javascripttricks #pythontricks #yield #viralcoding #codingshorts #iterators

https://www.youtube.com/watch?v=dr3H2WUnw7Q

Generator Functions vs Async Generators: Memory Efficiency Battle #iterators

YouTube

Async Generator Yields Promises?!

Async generators are NEXT LEVEL! They yield Promises that resolve asynchronously. You need for-await-of to consume them. This is async iteration!

#javascript #javascripttricks #asyncgenerators #forawaitof #asynciteration #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #async/await #advancedjavascript

https://www.youtube.com/watch?v=FVbFMcLs5bg

Async Generator Yields Promises?! #javascripttricks

YouTube

Published a new version of my "buffered-async-iterable" module: https://github.com/voxpelli/buffered-async-iterable/releases/tag/v1.0.0

It can now return the result in order (at cost of performance of course) and it also got a new method: mergeIterables(), which interweaves values from multiple async iterables in parallel

#npmRelease #javascript #asyncGenerators #performance

Release v1.0.0 · voxpelli/buffered-async-iterable

Add mergeIterables() (#30) 0158bf4 Support ordered iteration (#29) 7776805 v0.3.0...v1.0.0

GitHub