4 ms·
For production purposes, I would normally try not to run GC on a traditional microcontroller, whether it's Scheme, Python, JVM, or anything else. But it's mayb
by neilv 3y ago
For production purposes, I would normally try not to run GC on a traditional microcontroller, whether it's Scheme, Python, JVM, or anything else.
But it's maybe worth noting that using Scheme metalanguage abilities to generate non-GC target code for a microcontroller could be very sensible.
For example, you have nontrivial control behavior, and there's a short lead time on the controller or device. So, you could define a macro/minilanguage to support modeling the behavior in terms of Harel Statecharts, and initially (for very quick development) have that expand to executable normal Scheme code, for development/testing/simulation. Then, once you've gotten the behavior you want, you tweak the macro/minilanguage a little, to also expand to non-GC target assembly, for the microcontroller dev board or device that you ordered when you started.
(Racket syntax extension and submodules are especially nice for doing something like this, but you can also do it with more basic Scheme.)
- rcarmo 3y agoYou can take uLisp (http://ulisp.com http://ulisp.com) as an example there.