Tech News
← Back to articles

Show HN: Tiny VM sandbox in C with apps in Rust, C and Zig

read original related products more articles

🌱 uvm32

uvm32 is a minimalist, dependency-free virtual machine sandbox designed for microcontrollers and other resource-constrained devices. Single C file, no dynamic memory allocations, asynchronous design, pure C99.

On an STM32L0 (ARM Cortex-M0+) the required footprint is under 4KB flash/1KB RAM.

uvm32 is a RISC-V emulator, wrapped in a management interface and provided with tools to build efficient code to run in it.

What is it for?

As a no-frills alternative to embedded script engines (Lua, Duktape, MicroPython, etc)

As a sandbox to isolate untrusted or unreliable elements of a system

As a way to allow development in modern systems programming languages where a compiler for the target may not be available (rust-hello)

As a way to write once, run anywhere and avoid maintaining multiple software variants

Features

... continue reading