"Little Scheme" and PL Design (Code Critique?)

jwatson-CO-edu real.name at colorado.edu
Fri Nov 25 19:42:23 UTC 2022


On Tuesday, 22 November 2022 at 08:19:44 UTC, JG wrote:
> On Thursday, 17 November 2022 at 22:05:45 UTC, jwatson-CO-edu 
> wrote:
>> I just pushed a D implementation of "[Little 
>> Scheme](https://mitpress.mit.edu/9780262560993/the-little-schemer/)", which is a limited educational version of [Scheme](https://en.wikipedia.org/wiki/Scheme_(programming_language)), to [GitHub](https://github.com/jwatson-CO-edu/SPARROW).
>>
>> [...]
>
> I think using the d garbage collector is a good idea. (I have 
> written two implementations of scheme like languages one in c 
> and one in d, and I found it a great pleasure not to have to 
> write a GC for the d one). On the other hand if you want to 
> write one there is no obstruction doing so in d.

Have you put your Schemes up on GitHub?  What are the biggest 
lessons you learned from writing them?

Yes, allowing D GC to do its thing is my course for the time 
being.  In the near future I want to test starting the 
interpreter with a block of variable memory allocated to see if 
this reduces cache misses at runtime. The results of this test 
will determine if, and the degree to which, I will fiddle with GC.


More information about the Digitalmars-d-learn mailing list