Generator Expressions: Memory-Efficient MAGIC!

Python's generator expressions vs PHP's generators - which saves more memory? INSANE results!

#php #python #phpvspython #generators #generatorexpressions #yield #lazyevaluation #memoryefficiency #viralcoding #pythonmagic #mindblown #performance

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

Generator Expressions: Memory-Efficient MAGIC! #phpvspython

YouTube

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

https://screwlisp.small-web.org/cl-series/intern-everything/
Short article #clseries #lazyEvaluation #efficient #commonLisp #lisp . Just an example of using series to in-place alter a nested list by acting on its scanned fringe, incrementally in a repl.

(defparameter *list* '((a 1 b 2) (3) 4 (((c)))))
*list*
(require :series)
(series::install)
(scan-lists-of-lists-fringe ***)
(#Mformat (series nil) (series "~a") *)
(#Mintern *)
(alter *** *)
(series::install :remove t)
*list*

Oh that's actually the whole thing (- explanation)

Common lisp cl-series macro package recursively intern list fringe as symbols

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 things

For your Infinite Free Time™.

At least, "list" implies they are only countably many.
🙂

#CantorForever
#LazyEvaluation

@screwlisp

#programming #softwareEngineering article https://screwlisp.small-web.org/programming/tangle/ #commonLisp #asdf #systemsProgramming #series #pathnames #packaging

Really simple... Sort of... But so intricate to write. I deal with (writing a smidge of #interactive #lazyEvaluation #functionalProgramming ) :

- Tangling markdown into an asdf :class :package-inferred-system lisp system
- Doing so with scan-file and collect-file from series
- Working with lisp’s make-pathname directories.

#literateProgramming

:screwlisps-knowledge/tangle common lisp asdf package markdown tangling and lisp pathnames

#26127: -O1 introduces a space leak, -O2 fixes it · Issues · Glasgow Haskell Compiler / GHC · GitLab

Summary I'm running this program: import...

GitLab

Play Static Games, Win Static Prizes https://screwlisp.small-web.org/programming/play-static-games-win-static-prizes/
#staticTyping #typechecking #staticProgramAnalysis #commonLisp #lisp #sbcl #series #acl2

In which I look at modern and to some extent historical static program analysis popularly used with common lisp #programming.

I accidentally make the really good point that even if #sbcl is not your deployment target, you can still use its static type checking, for which I work an example.

#lazyEvaluation and formal theorems are also included.

#softwareEngineering #programming #commonLisp #assertions #algebra - tight, efficient #lazyEvaluation vector multiplication with #series .
https://screwlisp.small-web.org/programming/cl-series-vector-mult-assert-lisp-interactivity/

I use assert in lisp, which automatically generates an interactive in-context failure resolution which I utilize in the article, where the lazy cotruncation series feature was not wanted. Shows off a #lisp useage: classic.

@vnikolov what do you think of this example of assert viz your assertables?
+ @kentpitman

#climateCrisis #commonLisp #graphing #series #gnuplot https://screwlisp.small-web.org/programming/common-lisp-cl-series-gnuplot-climate/
Hey everyone. I jammed some #declarative #lazyEvaluation #engineering #programming to tie into the climate segment of the live show in TWO hours.

Interesting declarative exploratory programming and super simple gnuplotting if I do say so.

But I basically ran out of time to make a good graph with daily temperature max/min/avg from about 1920-2020 in some weather stations in New Zealand. Any ideas??? Clock is ticking