ulisp-zero
ulisp
Our great sponsors
ulisp-zero | ulisp | |
---|---|---|
1 | 27 | |
46 | 327 | |
- | - | |
10.0 | 0.0 | |
almost 4 years ago | 9 days ago | |
Arduino | C++ | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ulisp-zero
-
Lisp in 99 lines of C and how to write one yourself [pdf]
Since its name is TinyLisp, I'd like to mention uLisp.
Lisp for microcontrollers - Arduino, Adafruit M0/M4, Micro:bit, ESP8266/32, RISC-V, and Teensy 4.x boards
In particular, its smallest variant (~800 LoC).
> uLisp Zero is a pared-down version of uLisp, capable of running in 8 Kbytes of program memory with 1 Kbyte of RAM
https://github.com/technoblogy/ulisp-zero/blob/master/uLispZ...
ulisp
- ¿Any interpreted lenguage working in low memory microcontrollers?
-
What do you think of Forth?
Agreed - the interactivity is good. Lisp is close (have you seen http://www.ulisp.com/ - I can't believe they got into into that small a target!). Python is ok, but for some reason I don't use the REPL in the same way I do in Forth - I think calling functions is just harder somehow. Mostly is exploring valves from the Python REPL.
For 'hobbists' there are lots of amazing Forths, some examples: Zeptoforth has proper threading primitives, optional FAT SD card support and is MIT licensed (important for semi-commercial binary builds), Mecrisp Forth has a native register-colouring compiler is 20K and supports ARM, RISCV, FPGA and others, Flashforth support AVR and PIC. If you like ESP32, then ESP32Forth (an eForth variant) has a ton of features worth looking at. The interactivity is amazing. Of course on PCs or embedded Linux we can do this with shells and scripting languages with REPL - but with deeply embedded microcontroller the only other thing I've seen that's close is http://www.ulisp.com/ - and although it's amazing to get Lisp this small and the developer has done cool things, mostly it's still a toy project that relies on recompiling and adding to C to do any real work. No where near the maturity of the above Forth systems.
-
Microcontroller-based Lisp machine (minimum language needed)?
Have you looked at uLisp? Or perhaps Mezzano? The latter doesn't run on bare metal yet, but does have arm64 support.
There's also ulisp to take a look at. Might suit some of your needs.
- Emacs-like editors written in Common Lisp
-
Benefits of learning Elisp besides hacking Emacs
You don't use it for embedded there is ulisp "Lisp for microcontrollers". http://www.ulisp.com/
-
uLisp wireless message display with a Pi Pico W
I've been checking uLisp recently. AFAIK, all sources for it is this single `.ino` file (Arduino variant of C++): https://github.com/technoblogy/ulisp/blob/master/ulisp.ino
Is it so that they built uLisp on top of Arduino SDK? Like can it be ported to rely on STM32 SDK, libopencm3 or FreeRTOS?
- Ferret: A functional, lazy language for realtime embedded control systems
-
Opinions of "brothers and sisters"...
The only possibly valid argument here would be that such large languages cannot be shipped eg on microcontrollers. Which is fair. Hence ulisp which is afaik a subset or near subset of cl.
What are some alternatives?
ecl
ferret - Ferret is a free software lisp implementation for real time embedded control systems.
Lua-RTOS-ESP32 - Lua RTOS for ESP32
tinyscheme - TinyScheme is easy to learn and modify. It is structured like a meta-interpreter, only it is written in C.
quickjs-esp32 - QuickJS port for ESP32
beartype - Unbearably fast near-real-time runtime type-checking in pure Python.
nesper - Program the ESP32 with Nim! Wrappers around ESP-IDF API's.
lispBM - An interpreter for a concurrent lisp-like language with message-passing and pattern-matching implemented in C.
qemu_esp32 - Add tensilica esp32 cpu and a board to qemu and dump the rom to learn more about esp-idf
llvm-cbe - resurrected LLVM "C Backend", with improvements
ulisp-builder - Builds a version of uLisp for a particular platform from a common repository of source files
badger - Keyboard firmware written from scratch using Nim