#lazyevaluation — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #lazyevaluation, aggregated by home.social.
-
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
-
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
-
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
-
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
-
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
-
Finally, "First-Order Laziness" by Anton Lorenzen, Daan Leijen, Wouter Swierstra, and Sam Lindley seems like a very useful contribution to the practical implementation of functional languages which could make them both more efficient and more friendly to the programmer by providing better debugging.
dl.acm.org/doi/10.1145/3747530
#FunctionalProgramming #LazyEvaluation -
@dougmerritt wrote:
> infinitely long TODO list of thingsFor your Infinite Free Time™.
At least, "list" implies they are only countably many.
🙂 -
Excessive strictness can cause space leaks too:
-
#programming #gamedev #devlog #commonLisp #series #lazyEvaluation #functionalprogramming https://screwlisp.small-web.org/lispgames/cl-series-for-game-logic/ #lispgamejam
Since cl-series generates native common lisp code by working at macro expansion time, I consider it suitable for my software individuals (who want only clos-less common lisp and their own logic (which they have an introspective theory of).In particular, I use series to cut out rectangular subsequence of sequences -s
SERIES DOC UPDATE FROM RTOY https://gitlab.common-lisp.net/rtoy/cl-series/-/wikis/Series-User's-Guide
-
#programming #commonLisp #emacs #repl versus #orgmode for the #fizzbuzz challenge on #medium.
Using #series #lazyEvaluation
https://medium.com/@screwlisp/fizzbuzz-battle-orgmode-versus-the-repl-for-lazy-lisp-series-an-emacs-story-b98f633a20d8
I think it ended up pretty interesting, and what you would expect. The repl is a better interactive experience, but the noweb tangle optimizes in ways the separate repl lines can't, and is already in a disk-persisted file.Looking forward to feedback and commentary ( @ksaj ;p)
-
#programming #commonLisp #emacs #repl versus #orgmode for the #fizzbuzz challenge on #medium.
Using #series #lazyEvaluation
https://medium.com/@screwlisp/fizzbuzz-battle-orgmode-versus-the-repl-for-lazy-lisp-series-an-emacs-story-b98f633a20d8
I think it ended up pretty interesting, and what you would expect. The repl is a better interactive experience, but the noweb tangle optimizes in ways the separate repl lines can't, and is already in a disk-persisted file.Looking forward to feedback and commentary ( @ksaj ;p)
-
#programming #example #tutorial #commonLisp #series #declarative #functionalProgramming #lazyEvaluation #medium #article
https://medium.com/@screwlisp/common-lisp-lazy-efficient-series-example-1567d389a28d
I cover
- getting series and using it in a package
- Series' mapping
- Series' iteration (perform a side effect for the whole series, return nothing)
- Series' alter (in-place destructive modification of its input sequence)Medium.com says it's possible to read my article in two minutes. Feel free to respond with the number of minutes it took you.
-
@ksaj
(this is so the player prototype of repeatedly-eval-qt in my lispmoo2 can call it like this:
LISPMOO2/USER> { split-string ("foo bar baz") :with (#\space) } x
("foo" "bar" "baz")But the lisp is the heads and tails I can make out of Series so far #lazyEvaluation
-
🚀 Everything you need to know about lazy evaluation in Nix! 🌟
Whether you’re dealing with recursive functions or other Nix language constructs, understanding laziness in Nix is key to mastering the language.
Curious about others’ experiences? 🤔 What did you find strange about Nix when you first started? Share your thoughts and let’s discuss! Check out the full article here:
https://nixcademy.com/posts/what-you-need-to-know-about-laziness/
-
heise+ | C++-Programmierung: Effizienteres Logging mit Expression Templates
Expression Templates lassen sich in C++ für viele Zwecke einsetzen. Hier helfen sie dabei, Logging-Funktionen effizienter zu machen.
C++-Programmierung: Effizienteres Logging mit Expression Templates