This is very cool! I'm curious if it'd be relatively straightforward to use Fennel‡ with MicroLua? ‡ https://fennel-lang.org/
Show HN: MicroLua – Lua for the RP2040 Microcontroller
31–35 of 35 posts
Re: Show HN: MicroLua – Lua for the RP2040 Microcontroller
#32I can't get my head around a 1 based language.
Probably the number one reason not to start arrays at 0 in an educational language is that having the last element of an array of size 10 have an index of 9 causes quite a bit of confusion.
Re: Show HN: MicroLua – Lua for the RP2040 Microcontroller
#33Re: Show HN: MicroLua – Lua for the RP2040 Microcontroller
#34This is very cool! I'm curious if it'd be relatively straightforward to use Fennel‡ with MicroLua? ‡ https://fennel-lang.org/
MicroLua currently compiles Lua files to binary at built time. It seems that Fennel is capable of transpiling to Lua source code, so it should be easy to add that step to the build process.
https://github.com/MicroLua/MicroLua/commit/b9dfa2407afe932b...
Re: Show HN: MicroLua – Lua for the RP2040 Microcontroller
#35Earlier quoted context omitted.
MicroLua currently compiles Lua files to binary at built time. It seems that Fennel is capable of transpiling to Lua source code, so it should be easy to add that step to the build process.
FTR, Fennel support was indeed fairly easy to add. https://github.com/MicroLua/MicroLua/commit/b9dfa2407afe932b...