Re:Microscheme: scheme for the Arduino
by kognate on Saturday May 28, 2016 @07:12PM
(#11793988)
Microscheme is not garbage collected, at least according to the documentation.
[ Parent
| on HN ]
Re:Microscheme: scheme for the Arduino
by technomancy on Sunday May 29, 2016 @02:28AM
(#11795127)
There's a form of faux-garbage-collection: you can wrap any form in `free!` and the heap pointer will be reset when that form finishes: http://microscheme.org/documentation#memman
This would be awful for general-purpose programming, but on a device with only 2.5kb of RAM to begin with you can usually pre-allocate anything that needs to survive that reset. I use this in my keyboard firmware's outer loop: http://atreus.technomancy.us/firmware2