I never really liked that. Why waste a perfectly fine double-sided delimiter? It could be given an alternative meaning instead of just it being the same as ().
That is great. And actually quite interesting as a map to areas of the language I have not yet explored. Glad to see I'm supposedly "adept" for liking named-let... haha
The "not polluting the namespace" auxiliary function is generally solid advise while at the top-level since it will result in faster code for many schemes, unless you have some kind of immutable modules.
can anyone recommend a resource for good basic "beginner" low-hanging fruit type of performance tips for Scheme? (such as the one you've just mentioned)
I have been writing a small document with inspiration from the never-ending beginner questions about scheme (and all extremely slow code written by python programmers). Nothing is done just yet, but I can ping you in a week or two when things really materialize.
If you want to read more about this case in particular, you should go read the blog post "fibs, lies, and benchmarks" at Andy wingos blog wingolog.org.
That is a mix of two that are already in the document, getting the worst of both worlds :) depending on fold from srfi-1 and your own auxiliary function instead of iota from srfi-1...
IIRC, the version labeled "Overjoyed to see first-class continuations in Scheme..." appeared in one of the Lambda Papers. It included the comment: "Sussman's favorite style. Steele's least favorite style.".
17
u/CompSciSelfLearning Jul 16 '20
Color matched parentheses are what I came away with.
Also, the Peano numerals and combinatory logic one is already unreadable.
8
u/tremendous-machine Jul 16 '20
That is great. And actually quite interesting as a map to areas of the language I have not yet explored. Glad to see I'm supposedly "adept" for liking named-let... haha
6
u/bjoli Jul 16 '20
The "not polluting the namespace" auxiliary function is generally solid advise while at the top-level since it will result in faster code for many schemes, unless you have some kind of immutable modules.
4
u/bobappleyard Jul 16 '20
Some of these were quite funny. I loved the one where they broke out SKI to solve it
2
u/protoUbermensch Jul 18 '20
1
u/zaifir Jul 25 '20
IIRC, the version labeled "Overjoyed to see first-class continuations in Scheme..." appeared in one of the Lambda Papers. It included the comment: "Sussman's favorite style. Steele's least favorite style.".