3 ms·
If you just want a GC, here's a tiny one I wrote: https://github.com/munificent/mark-sweep https://github.com/munificent/mark-sweep And an article I wrote abo
by munificent 10y ago
If you just want a GC, here's a tiny one I wrote:
https://github.com/munificent/mark-sweep https://github.com/munificent/mark-sweep
And an article I wrote about it:
http://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/ http://journal.stuffwithstuff.com/2013/12/08/babys-first-gar...
This was the inspiration for uLisp's GC (http://www.ulisp.com/show?1AWG http://www.ulisp.com/show?1AWG). :)
If you want a more full-featured but still small language in C, you could take a look at Wren:
http://wren.io/ http://wren.io/
https://github.com/munificent/wren https://github.com/munificent/wren
- hkjgkjy 10y agoI am using your blog post about the mark and sweep-GC for my program! Thank you for publishing it! Very informative, entertaining and to-the-point. Thank you!
- munificent 10y agoYou're welcome! I'm glad you enjoyed it. It was a lot of fun to write.