Live data from Hacker News

Compiler for the B Programming Language

github.com

21–25 of 25 posts

Re: Compiler for the B Programming Language

#21
post #2

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.

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.

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.

Re: Compiler for the B Programming Language

#22
post #16

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

I think Rust is quite a recreational language. The least recreational languages are probably like Java,C#

Idk, java maybe, but c# doesn't even require .csproj files nowadays, it's really nice to use

Re: Compiler for the B Programming Language

#23
post #21

Earlier quoted context omitted.

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.

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.

> 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.

Re: Compiler for the B Programming Language

#24
post #21

Earlier quoted context omitted.

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.

> 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 eventu…

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.

Re: Compiler for the B Programming Language

#25

Earlier quoted context omitted.

> 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 eventu…

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.

I would argue that the baseline for a "simple build system" is DJB Redo.
Post reply on HN