Skip to content
Sector
Embedded systems
Client
Personal R&D
Year
2026
Role
Language design and implementation

A programming language for dataloggers.

Mneme, a brace-syntax language for embedded dataloggers derived from MicroPython: a new front end on a proven VM, plus a native runtime for tables, schedules, logs and clock sync.

Abstract cover artwork for the datalogger language case study

Results

  • 6

    native datalogger modules in C

  • 2

    ports: unix and ESP32

  • 27

    commits over four weeks

Field loggers are opened to be operated far more often than they are opened to be programmed: what is it running, what has it recorded, put this new program on it. I wanted a logger language that feels familiar to engineers who write C-style code and a device that answers those questions directly. Mneme is that experiment, built as a fork of MicroPython.

The language

I kept MicroPython’s VM, runtime and built-in library and replaced the front end: only the lexer, the grammar and a few compiler handlers changed, so values, types, exceptions and modules behave exactly as before.

  • Brace-delimited blocks instead of indentation, with empty blocks allowed.
  • Renamed keywords for readability (func, record, rescue/ensure, trigger, nil).
  • New constructs: a switch statement, the ?? nil-coalescing operator and let/const prefixes.
  • Source files in .mne and precompiled bytecode in .mnc, with a cross-compiler for the host.

The datalogger runtime

  • Six native modules in C: time-partitioned table storage on a B-tree, a JSONL event log with a RAM ring buffer, a wall-clock-aligned scheduler, UTC time, NTP and read-only monitor views.
  • An ESP32 firmware that boots from a data-only JSON config, mounts storage volumes and keeps WiFi and a recovery REPL reachable even if the user program fails.
  • A read-only HTTP data server and a separate read-only admin console, deliberately at a lower privilege than the code terminal.
  • Mission Control: a device terminal to pull programs from a server, edit, compile on the device, run and inspect recorded tables.

Status

An advanced prototype targeting a unix port for development and ESP32 for deployment. A single build script compiles the cross-compiler and the unix port, runs the test suite and builds the ESP32 firmware; it is the project’s verification gate.

Services

  • Embedded systems & instrumentation
  • Platform & application software

Tools & tech

  • C
  • MicroPython VM
  • ESP32
  • ESP-IDF
  • littlefs
  • Python tooling

Got a similar challenge?Let’s talk.

Get in touch