🚨 NEWS: List Comprehension, Generatori e Iteratori in Python: Guida Operativa
Ecco i punti chiave in breve:
💡 Se scrivi Python e usi ancora i cicli for per costruire liste o elaborare dati, stai sprecando risorse. Lo vediamo nei progetti che ci arrivano: codice più lento, memoria occupata inutilmente, carichi...
#listComprehension #generatori #iteratori #yield #lazyEvaluation
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
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://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)
@dougmerritt wrote:
> infinitely long TODO list of things
For your Infinite Free Time™.
At least, "list" implies they are only countably many.
🙂
#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.
Excessive strictness can cause space leaks too:
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.