Hacker News new | past | comments | ask | show | jobs | submit login
Let’s Run Lisp on a Microcontroller (dmitryfrank.com)
135 points by gattilorenz on Oct 14, 2016 | hide | past | favorite | 10 comments

See also esp-lisp [1] for a perhaps more practical Lisp on the platform.

EDIT: I created a new submission [2] for it, should someone want to discuss it.

[1] https://github.com/yesco/esp-lisp

[2] https://news.ycombinator.com/item?id=12707111

thanks, this is actually what I came for, to see how can you implement real embedded tasks in Lisp. GPIO, ADC, timers, etc

While we're at it...


I confirmed that it compiles within the Arduino IDE. Porting it to another micro shouldn't be prohibitive. The amount of Arduino specific stuff seems to be minimal.

Will this work on the esp32?

the espruino js lib is in the making for esp32


the JS library itself (V7) is not hardware dependent; you can just include it in your project on esp32 and use it.

However it doesn't include bindings to your device SDK, e.g. timers, gpio etc. We didn't port the whole Mongoose IoT FW to esp32 yet.

The Mongoose IoT FW includes other things such as a configuration system (via serial or http), mdns discovery, full OTA, and a few fixes against the base espressif SDK that improve network reliability, fix libc bugs, replace the malloc allocator to reduce fragmentation etc.

Nice, but I would rather like to see an AOT Scheme compiler given that this tiny computers are quite powerful vs the mainframes where Lisp was originally created and they did support AOT compilation.

Perhaps CHICKEN?


Thanks for the link! I included it in the article, among others.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact