frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Compiler for the B Programming Language

https://github.com/tsoding/b
85•ycuser2•7mo ago

Comments

treyd•7mo ago
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.
kzrdude•7mo ago
That's a little bit interesting. It remains then a C-like language with generics, and that sounds a lot more fun than regular C. I don't yet understand the point of avoiding references or libstd, though.
int_19h•7mo ago
Avoiding references means avoiding the borrow checker, and I don't think you can use much of stdlib if you avoid references...
lkuty•7mo ago
At the beginning of one of his videos on Crust, he's trying to avoid stdlib exactly for that reason.
IshKebab•7mo ago
I don't know why you'd see that as desirable and not use Zig. Unsafe Rust is actually harder to get right than C or Zig.
month13•7mo ago
This is mainly for fun, really.

Tsoding's main lesson is how simple systems can be and the desire and demand for complex build systems is silly.

IshKebab•7mo ago
> the desire and demand for complex build systems is silly

No it isn't. "Simple" build systems like Make don't solve many of the problems that "complex" build systems like Bazel do.

At my current company I tried to convince my boss at the start of our project to use Bazel (it's very difficult to change build systems once your project is big), because I knew from experience it would solve many problems we would eventually run into.

He wouldn't let me and wanted to keep things "simple". Guess what happened? Now we have to run dozens of hours of CI just to fix a typo in a comment. CI regularly breaks because people forget dependencies. Etc.

sureglymop•7mo ago
Make is definitely not a simple system. In tsodings latest stream about this project he actually implemented a small build/test runner system for it that is really simple.

But actually I would disagree with the commenter you replied to. I think the main goal of this project seems to just be doing it for fun.

int_19h•7mo ago
I would argue that the baseline for a "simple build system" is DJB Redo.
DiabloD3•7mo ago
This is the most tsoding thing possible.
nurettin•7mo ago
I have tsoding fatigue at this point. BTW are you the DiabloD3 from freenode/#sdl like 25 years ago?
DiabloD3•7mo ago
Yep, it is me.
elvircrn•7mo ago
Had a go at this a while back: https://github.com/elvircrn/bcomp.
pveierland•7mo ago
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

avmich•7mo ago
A pretty recent work: https://github.com/sergev/BCause .
int_19h•7mo ago
Nice, but it really needs to be written in B and self-hosted.
aap_•7mo ago
Always nice to see more B. Here's mine: https://github.com/aap/b
louis771•7mo ago
Hate to see Tsoding was using Rust for this. Rust is as far removed from recreational programming than any other language.
paddw•7mo ago
I think Rust is quite a recreational language.

The least recreational languages are probably like Java,C#

renerick•7mo ago
Idk, java maybe, but c# doesn't even require .csproj files nowadays, it's really nice to use
IshKebab•7mo ago
Why? It's a great language. Very productive. Ideal for compilers too.
desumeku•7mo ago
It's not rust. It's crust. https://github.com/tsoding/crust

"The Rules of Crust

Every function is unsafe. No references, only pointers. No cargo, build with rustc directly. No std, but libc is allowed. Only Edition 2021. All user structs and enums #[derive(Clone, Copy)]. Everything is pub by default."

sureglymop•7mo ago
Is this satire or did you actually watch the streams?

He doesn't actually use rust "idiomatically". He calls this "crust":

1. Every function is unsafe

2. No references, only pointers

3. No cargo, just rustc

4. No std, only libc

...

I don't know if he is sticking to these rules throughout but that was the idea in the beginning of this project.

https://github.com/tsoding/Crust

Neomacs: Rewriting the Emacs display engine in Rust with GPU rendering via wgpu

https://github.com/eval-exec/neomacs
1•evalexec•3m ago•0 comments

Show HN: Moli P2P – An ephemeral, serverless image gallery (Rust and WebRTC)

https://moli-green.is/
1•ShinyaKoyano•7m ago•0 comments

How I grow my X presence?

https://www.reddit.com/r/GrowthHacking/s/UEc8pAl61b
1•m00dy•9m ago•0 comments

What's the cost of the most expensive Super Bowl ad slot?

https://ballparkguess.com/?id=5b98b1d3-5887-47b9-8a92-43be2ced674b
1•bkls•9m ago•0 comments

What if you just did a startup instead?

https://alexaraki.substack.com/p/what-if-you-just-did-a-startup
1•okaywriting•16m ago•0 comments

Hacking up your own shell completion (2020)

https://www.feltrac.co/environment/2020/01/18/build-your-own-shell-completion.html
1•todsacerdoti•19m ago•0 comments

Show HN: Gorse 0.5 – Open-source recommender system with visual workflow editor

https://github.com/gorse-io/gorse
1•zhenghaoz•19m ago•0 comments

GLM-OCR: Accurate × Fast × Comprehensive

https://github.com/zai-org/GLM-OCR
1•ms7892•20m ago•0 comments

Local Agent Bench: Test 11 small LLMs on tool-calling judgment, on CPU, no GPU

https://github.com/MikeVeerman/tool-calling-benchmark
1•MikeVeerman•21m ago•0 comments

Show HN: AboutMyProject – A public log for developer proof-of-work

https://aboutmyproject.com/
1•Raiplus•21m ago•0 comments

Expertise, AI and Work of Future [video]

https://www.youtube.com/watch?v=wsxWl9iT1XU
1•indiantinker•22m ago•0 comments

So Long to Cheap Books You Could Fit in Your Pocket

https://www.nytimes.com/2026/02/06/books/mass-market-paperback-books.html
3•pseudolus•22m ago•1 comments

PID Controller

https://en.wikipedia.org/wiki/Proportional%E2%80%93integral%E2%80%93derivative_controller
1•tosh•27m ago•0 comments

SpaceX Rocket Generates 100GW of Power, or 20% of US Electricity

https://twitter.com/AlecStapp/status/2019932764515234159
2•bkls•27m ago•0 comments

Kubernetes MCP Server

https://github.com/yindia/rootcause
1•yindia•28m ago•0 comments

I Built a Movie Recommendation Agent to Solve Movie Nights with My Wife

https://rokn.io/posts/building-movie-recommendation-agent
4•roknovosel•28m ago•0 comments

What were the first animals? The fierce sponge–jelly battle that just won't end

https://www.nature.com/articles/d41586-026-00238-z
2•beardyw•36m ago•0 comments

Sidestepping Evaluation Awareness and Anticipating Misalignment

https://alignment.openai.com/prod-evals/
1•taubek•37m ago•0 comments

OldMapsOnline

https://www.oldmapsonline.org/en
1•surprisetalk•39m ago•0 comments

What It's Like to Be a Worm

https://www.asimov.press/p/sentience
2•surprisetalk•39m ago•0 comments

Don't go to physics grad school and other cautionary tales

https://scottlocklin.wordpress.com/2025/12/19/dont-go-to-physics-grad-school-and-other-cautionary...
2•surprisetalk•39m ago•0 comments

Lawyer sets new standard for abuse of AI; judge tosses case

https://arstechnica.com/tech-policy/2026/02/randomly-quoting-ray-bradbury-did-not-save-lawyer-fro...
5•pseudolus•40m ago•0 comments

AI anxiety batters software execs, costing them combined $62B: report

https://nypost.com/2026/02/04/business/ai-anxiety-batters-software-execs-costing-them-62b-report/
1•1vuio0pswjnm7•40m ago•0 comments

Bogus Pipeline

https://en.wikipedia.org/wiki/Bogus_pipeline
1•doener•41m ago•0 comments

Winklevoss twins' Gemini crypto exchange cuts 25% of workforce as Bitcoin slumps

https://nypost.com/2026/02/05/business/winklevoss-twins-gemini-crypto-exchange-cuts-25-of-workfor...
2•1vuio0pswjnm7•41m ago•0 comments

How AI Is Reshaping Human Reasoning and the Rise of Cognitive Surrender

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6097646
3•obscurette•41m ago•0 comments

Cycling in France

https://www.sheldonbrown.com/org/france-sheldon.html
2•jackhalford•43m ago•0 comments

Ask HN: What breaks in cross-border healthcare coordination?

1•abhay1633•43m ago•0 comments

Show HN: Simple – a bytecode VM and language stack I built with AI

https://github.com/JJLDonley/Simple
2•tangjiehao•46m ago•0 comments

Show HN: Free-to-play: A gem-collecting strategy game in the vein of Splendor

https://caratria.com/
1•jonrosner•47m ago•1 comments