Menu

📰
0

Reddit - Please wait for verification

The Rust Programming Language·/u/horace_h·3 days ago
#YzcR611q
Reading 0:00
15s threshold

Hi, I've been building Keel, a statically typed interpreted programming language written in Rust (currently in alpha), that tries to combine Rust-like syntax with Python's ease of use. Behind the scenes, it's a register machine with NaN boxing and a mark-and-sweep GC for arrays and strings. It can also call C functions from dynamic libraries through libffi. The compiler does constant folding, constant propagation, full type inference (without annotations), and monomorphization. In benchmarks it's roughly 2-10x faster than Python and competitive with LuaJIT (-joff). Being still in active development, the standard library is quite small. Any feedback is appreciated, and I'd be more than happy to answer questions! Repo: https://github.com/horacehoff/keel Website: https://keel-lang.com Try it in your browser: https://keel-lang.com/playground Disclaimer: I previously used AI to write some comments, which I've since removed and rewritten myself.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More