Compiler for the B Programming Language

by ycuser2on 6/18/2025, 12:27 PMwith 23 comments

by pveierlandon 6/22/2025, 4:02 AM

Fun to see that it implements codegen for Uxn :)

https://github.com/tsoding/b/blob/main/src/codegen/uxn.rs

https://wiki.xxiivv.com/site/uxn.html

by treydon 6/21/2025, 11:51 PM

Interesting that this is in a self-developed subset/dialect of Rust called Crust which attempts to treat it as a better C, using unsafe everywhere among other things.

by avmichon 6/22/2025, 6:46 AM

A pretty recent work: https://github.com/sergev/BCause .

by int_19hon 6/22/2025, 8:14 AM

Nice, but it really needs to be written in B and self-hosted.

by aap_on 6/22/2025, 11:49 AM

Always nice to see more B. Here's mine: https://github.com/aap/b

by elvircrnon 6/22/2025, 1:07 AM

Had a go at this a while back: https://github.com/elvircrn/bcomp.

by louis771on 6/22/2025, 2:37 PM

Hate to see Tsoding was using Rust for this. Rust is as far removed from recreational programming than any other language.

by DiabloD3on 6/21/2025, 11:54 PM

This is the most tsoding thing possible.