6 ms·
Why lua though?
by CodeCompost 2y ago
Why lua though?
- adastra22 2y agoSounds like he needs to be introduced to Forth.
- helpfulContrib 2y ago[dead]
- canadianfella 2y ago[dead]
- rurban 2y agoLua has much nicer syntax and much higher abstractions than forth, and is similar tiny
- adastra22 2y agoMaybe. Debatable. But the point was more that “replace all userspace [and kernelspace] with X” is the raison d'être of many Forths. So many classic Forth systems boot into a Forth environment, extended in Forth by the programmer-user. If that's what he's looking for, there's 55 years of Forth history to delve into.
- helpfulContrib 2y ago[dead]
- lneto 2y agoPlease refer to Section 3 from [1], this was extensively discussed there. [1] https://www.netbsd.org/~lneto/dls14.pdf https://www.netbsd.org/~lneto/dls14.pdf However, giving you a short answer, we use Lua mainly because it's easy both to extend and to embed. It's implemented as an almost "freestanding" C library. Moreover, it has a considerable small footprint (~250 KB) in comparison to other scripting languages (e.g., Python has a few MB). Moreover, Lua has automatic memory management, fully isolated execution states, protected calls, among other features.
- helpfulContrib 2y ago[dead]