Mite
A high performance language for Javascript accompaniment
Install / Use
/learn @csjh/MiteREADME
The Mite Programming Language
Mite is a programming language designed as a high-performance language to accompany Javascript. It compiles to a small, (hopefully) efficient WebAssembly binary using the binaryen toolchain. A major goal of the project is to keep language features to a minimum to prevent binary size bloat.
The compiler is written in Typescript at the moment, with plans to port it to C++ after a solid baseline PoC is established. The language itself is mostly inspired by C, with some other modern features that add minimal overhead which I find useful in other languages.
Mite was made to accompany my learning during my introduction to C university course, and is not intended for production use. Currently, it is not anywhere near feature complete.
Features
- All the basic arithmetic, logical, comparison, and bitwise operators
- Variables
- Functions
- If, for, while, do-while expressions
- Stack-allocated structs, arrays
- First class SIMD support
Roadmap
In no particular order
- [x] 0-copy Mite -> Javascript Interop (other than strings)
- [x] Javascript Helper Mode
- [ ] Standard Library
- [ ] Closures
- [ ] C++ Port
- [x] Heap [^1]
- [ ] (Graph-based?) IR for optimzations
- [x] Strings [^2]
[^1]: A traditional heap (with malloc and free and stuff) is kinda iffy right now, unsure of where it will land atm.
[^2]: This might be pending for the WebAssembly story for strings to be figured out. Right now it seems like one of stringref or JS String Builtins. String builtins could be polyfilled (albeit possibly slowly), so for now they might be what I go with.
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.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
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
