r/lowlevel • • 2h ago

BIPLAN - A modern interpreted language that fits in 24KB

Thumbnail github.com
1 Upvotes

r/lowlevel • • 15h ago

littleFORTH – native-code Forth for the Raspberry Pi Pico 2 (with VS Code extension) 0.6.2 (beta) on GitHub

Post image
1 Upvotes

I’ve been working on littleFORTH, a small native-code Forth for the Raspberry Pi Pico 2 / Pico 2 W (RP2350).

Key points:

  • Kernel under 8 KB of flash
  • Compiles definitions to Thumb-2 on the target (subroutine threading + selective inlining)
  • Passes the Forth 2012 CORE tests
  • Register names from the datasheet available directly (generated from the SVD, no dictionary cost)
  • Interrupts and fault recovery in Forth
  • Drivers (GPIO, timers, ADC, PWM, UART, SPI, I2C, etc.) and a Thumb-2 assembler compiled into the firmware

There’s also a VS Code extension with:

  • Live console + hot reload
  • Stack effects shown while editing
  • Word-by-word stepping with the stack visible
  • Profiler, memory/register views, and more

It can also run the kernel inside VS Code via WebAssembly if you don’t have a board yet.

Repo: github.com/littleforth/littleFORTH

Still beta, but the core is solid and the interactive experience is the main focus. Feedback, bug reports, or just thoughts from the Forth community would be very welcome.