← All projects
Project record1 mention
Originally shared on Hacker News

Embedded bare-metal language with cooperative multitasking

A programming language for embedded bare-metal devices with built-in cooperative multitasking. Every `[]` block runs independently and automatically yields after each logical line of code, and an event/messaging system lets blocks be triggered by events, wait for events internally, and receive events injected from interrupts, making it easy to model embedded systems as independent state machines. It is currently mostly an interpreter written in Rust that can also emit C code, with syntax still being experimented on.

Last shared
01 / The problem

What it addresses

A lot of embedded projects introduce an RTOS and then end up inheriting the complexity that comes with it; the language aims to keep the mental model simple.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Embedded bare-metal language with cooperative multitasking

    A programming language for embedded bare-metal devices with built-in cooperative multitasking. Every `[]` block runs independently and automatically yields after each logical line of code, and an event/messaging system lets blocks be triggered by events, wait for events internally, and receive events injected from interrupts, making it easy to model embedded systems as independent state machines. It is currently mostly an interpreter written in Rust that can also emit C code, with syntax still being experimented on.

    Problem: A lot of embedded projects introduce an RTOS and then end up inheriting the complexity that comes with it; the language aims to keep the mental model simple.

    Posted by @keithnz · Original source ↗

    Source text · @keithnz · · Source ↗

    Also working on a language for embedded bare-metal devices with built-in cooperative multitasking. A lot of embedded projects introduce an RTOS and then end up inheriting the complexity that comes with it. The idea here is to keep the mental model simple: every `[]` block runs independently and automatically yields after each logical line of code.