Remix.run Logo
thomasmg 5 days ago

I'm working on a new memory-safe systems programming language that is supposted to be (almost) as fast as C, Rust etc, but as simple and concise as Python: https://github.com/thomasmueller/bau-lang

There is a playground which is using a C compiler and WASM, and so is quite fast, while running fully in the browser. Theres also a (online) conversion tool to convert and compare source code. There are some benchmarks as well.

Writing my own (concise, simple) programming language was a dream for me since I'm 20 or so. Feedback would be great!

whytevuhuni 4 days ago | parent | next [-]

The "Comparison" section feels unfair. Add some things that some languages have but Bau is missing. I have no idea what trade-offs I'd be doing when choosing Bau.

You have the "Non-Features" section of course, but I'm looking more into what I'd be losing by going from C to Bau. Bau's price for safety.

thomasmg 4 days ago | parent [-]

Thanks! Yes, that makes a lot of sense. I will improve this section!

> what I'd be losing by going from C to Bau

Well, you can add native C code, so in theory you do not miss much. But in practise, yes of course many features are missing still.

Yoric 4 days ago | parent | prev [-]

I like the idea of compile-time asserting that no runtime check is needed for array access!

thomasmg 4 days ago | parent [-]

Thanks! I know Rust, Java etc do a good job of array bound check elimination, but I prefer a way to _ensure_ there is no check. I felt this was missing.