Microvm
Stack-based micro (< 150 LOC) virtual machine written in Ruby, running its own micro bytecode format called MC.
Install / Use
/learn @txus/MicrovmREADME
microvm
Sunday afternoon. One hour. Less than 150LOC (< 4kb).
MicroVM is a stack-based micro virtual machine written in Ruby, running its own micro bytecode format called MC.

Install
$ wget https://raw.github.com/txus/microvm/master/microvm
$ chmod +x microvm
$ ./microvm some_file.mc
You can try some example MC files in this very repo.
Why?
It's a learning example: it's a really simple implementation of a VM that works, so it's easy to get a general grasp about how things are structured.
Features
- Compact bytecode format (although it could be more compact)
- Method calls
- Types: only String and Fixnum for now.
- Sort of runtime type checking
Who's this
This was made by Josep M. Bach (Txus) under the MIT license. I'm @txustice on twitter (where you should probably follow me!).
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
