Skip to content

Add Bau (transpiled to C)#84

Open
thomasmueller wants to merge 2 commits intojabbalaci:masterfrom
thomasmueller:master
Open

Add Bau (transpiled to C)#84
thomasmueller wants to merge 2 commits intojabbalaci:masterfrom
thomasmueller:master

Conversation

@thomasmueller
Copy link

@thomasmueller thomasmueller commented May 2, 2025

Bau is a new language (https://github.com/thomasmueller/bau-lang).
It transpiles to C. But unlike C, it is memory-safe, so array bounds are checked,
either at runtime, or at compile time. In this case, they are checked at compile time.
(The C source code is somewhat readable actually.)

Right not, the transpiler is written in Java, which complicates things a bit.
I have added "make transpiler" to download, update, and build the transpiler.

FYI there's a playground that shows the C code:
https://thomasmueller.github.io/bau-lang/ - but do not try to run the source code in this PR, because that will consume 100% CPU :-) because this is run in interpreted mode (in the interpreter, which is then interpreted via Javascript...) You first need to change the limit to eg. 4000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant