In this march's edition of the @cppafrica
virtual meetup, I got to speak about #cpp #Iterators and the underlying mechanisms behind them, more of the latter actually.
Video recording is now available on youtube. https://youtu.be/lgovePwPSrw

In this march's edition of the @cppafrica
virtual meetup, I got to speak about #cpp #Iterators and the underlying mechanisms behind them, more of the latter actually.
Video recording is now available on youtube. https://youtu.be/lgovePwPSrw

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

Symbol.iterator Creates INFINITE Sequence?!
Custom iterators can generate INFINITE sequences! This object never ends, but spread operator can slice it. This is how generators break the rules of finite data!
#javascript #javascripttricks #symbol.iterator #generators #infinitesequences #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #iterators #advancedjavascript

New blog post! Go streams meet standard Go iterators.
https://macias.info/entry/202508160000_gostream_meets_goiter.md
Итерация по UENUM в Unreal Engine
Понадобилось мне создать панель категорий размещаемых предметов в UI. В наследие мне достался уже готовый UENUM, который в будущем будет изменен. Естественно, очень не хотелось вручную перемещать и настраивать каждый отдельный виджет. Так еще и заниматься этим в будущем с изменениями категорий. Хотелось чего-то простого и универсального. Чтобы вот вызвал условный For Each Loop и сгенерировал все как надо, еще и не обязательно только для этого енама. Выход был найден! Если мы создаем UENUM, то unreal сам генерит всю нужную инфу и создает для нас UEnum класс, который является UObject. Нужно лишь правильно использовать эту информацию.
https://habr.com/ru/articles/861944/
#uenum #unreal_engine #c++ #blueprints #iterator #iterators #tutorial #async #asynchronous #for_each
more_itertools is really a goldmine
https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.spy
"Why People Are Angry Over Go 1.23 Iterators", Bill 'GingerBill' Hall (https://www.gingerbill.org/article/2024/06/17/go-iterator-design/).
On HN: https://news.ycombinator.com/item?id=40712720
On Lobsters: https://lobste.rs/s/o51y4t/why_people_are_angry_over_go_1_23_iterators
On /r/GoLang: https://old.reddit.com/r/golang/comments/1dhxy1u/why_people_are_angry_over_go_123_iterators/
NOTE: This is based on, but completely rewritten, from a Twitter post: https://x.com/TheGingerBill/status/1802645945642799423 TL;DR It makes Go feel too “functional” rather than being an unabashed imperative language. I recently saw a post on Twitter showing the upcoming Go iterator design for Go 1.23 (August 2024). From what I can gather, many people seem to dislike the design. I wanted to give my thoughts on it as a language designer. The merged PR for the proposal can be found here: https://github.
[Перевод] Почему люди злятся из-за итераторов в Go 1.23
Недавно я увидел сообщение, демонстрирующее будущий дизайн итераторов для Go 1.23 (август 2024 года). Насколько я могу судить, многим людям этот дизайн не нравится. Я хотел высказать свои мысли по этому поводу как разработчик языка.
https://habr.com/ru/articles/822697/
#go #odin #iterators #c++
“Go Evolves In the Wrong Direction”, Aliaksandr Valialkin (https://itnext.io/go-evolves-in-the-wrong-direction-7dfda8a1a620).
Via Lobsters: https://lobste.rs/s/ax4j9b/go_evolves_wrong_direction
#Go #GoLang #Generics #Iterators #Ranges #PLDI #Programming #Simplicity #Complexity
Why Iterators Got It All Wrong – And What We Should Use Instead – Arno Schoedl – C++Online 2024