Develop Fennel programs on a tiny microcontroller.
Microcontrollers are super useful, but not having interactive development is a huge drag! The ESP8266 is a powerful, low-cost device that can run Lua, but loading the Fennel compiler into it leaves very little memory left over for application code.
nomacro branch contains a stripped-down version of the Fennel
compiler which can run in the limited memory constraints of the
device, but all macro support had to be removed to allow this, and the
firmware had to be recompiled to bump the max locals allowed per
chunk. Under this arrangement only 28kb was left available.
Takver allows you to run the compiler on your main computer and simply stream the compiler output to the device.
$ ./fennel takver.fnl repl [/path/to/USB]
Requires the luaposix library; install via apt, etc.
Currently Takver requires a hacked version of Fennel in order to allow the execution of the code to happen in a different process from the compiler.
Copyright © 2019 Phil Hagelberg and contributors
Released under the terms of the GNU Lesser General Public License version 3 or later; see the file LICENSE.