cookbook
cookbook copied to clipboard
New Scheme Cookbook
It would be nice to have GitHub workflow that will build and upload the file to the server. It will make it easier to manage. When this is done for...
The Cookbook should (as it says) emphasize modern solutions. I wouldn't call the solution https://github.com/schemedoc/cookbook/blob/76456bca59da1f25fefb21d8bb11a510d7da4138/recipes/get-type-of-object.md?plain=1#L30 modern because it loops through a list effectively built at runtime, preventing compiler optimizations. A...
The proposed solution for `string-split` uses `string-ref` and `substring`. Both are allowed to be O(n) where n is the length of the string. Thus the solution can be accidentally quadratic...
It would be nice to have the scheme.org menu on the individual cookbook pages. I'm afraid I cannot test this, but would something like the following hand-written changes to www.scm...
Someone askes on /r/lisp Sub Reddit: [Python's approach is much better {{{ x= ( 10 * [a] ) }}} because i don't have to remember the (ad-hoc) name of the...
Is there anyway for us to look up symbols in REPL in one module(`,m r5rs`) ,and like Python dir(object) to look up the attributes (methods and attributes)? Seem like there...
## Problem I have a task queue and I want to split the work among multiple threads. There can be many more tasks than threads. ## Solution The `mailbox` library...
It seems that different Scheme implementation works differently in terms of loading R7RS. If we have R7RS code that doesn't work the same out of the box we should list...
Just got a message from Nils M Holm. He did few books about Scheme and pointed to: http://t3x.org/s9fes/lib.html and http://t3x.org/s9fes/contrib.html the code is from the book "Scheme 9 from Empty...
There is [SRFI-200](https://srfi.schemers.org/srfi-200/srfi-200.html) (Draft) for pattern matching but I have my own implementation, that I've created as an example for my Scheme implementation: Here is the whole code, we can...