rue: A programming language that is a minimal subset of Rust

47 points by robinhundt


steveklabnik

Hi there!

Yeah robinhundt is correct, this isn’t really intended to be public, it just is. I make no claim that any of this is good, or high quality, or anything else, just yet. It’s something to screw around with in my spare time.

Right now the language itself is very boring, I have i32/i64, bools, and (heap allocated for now) struct/tuple/arrays, functions, if/else/while. That’s it.

I’m more interested in the compiler itself than the language at this stage, though I do have some ideas of where I want the language to go: higher level than Rust, lower level than Go. Memory safe by default. But at the moment, I’m not adding any more higher level language stuff until I have the compiler shaped into something good first. Right now I’m in the middle of re-writing the runtime in Rust, which involves writing a basic linker and all sorts of other stuff. I recently re-did one of the IRs to go from a more traditional design to a more data-oriented one.

It is also an experiment in working with Claude, which is one reason I make no quality claims here. I am taking a more liberal attitude with this project than I do in my professional work, to test the boundaries. Basically, I am more willing to merge things at a lower quality bar and refactor it later. But since this is a spare time thing, the time between “an initial implementation that works” and “okay maybe this is up to snuff” may be a while.

Anyway that’s a rough summary of what’s going on here.