|
|
|
|
|
by bjoli
2369 days ago
|
|
I am a classical musician, programming for fun. I found guile scheme about 2 years ago, and I have been writing all my software in it since. Such a nice language to be working in! I wrote a SRFI (scheme request for implementation) for transducers, which are efficient composable algorithmic transformations. They allow you to eagerly transform collections, say like using map and filter, but without building intermediate collections. The SRFI document is here: https://srfi.schemers.org/srfi-171/srfi-171.html Then I rewrote a large chunk of racket's for loops for guile: https://hg.sr.ht/~bjoli/guile-for-loops They are zero cost (apart from negligible macro expansion) and provide a homogenous way to iterate through various collections. I am now in the process of implementing foldr for it, which will allow for a general way of writing lazy iterations. |
|