top | item 41352076

(no title)

TwentyPosts | 1 year ago

So now you're writing two compilers.

What did you actually gain from this, outside of more work?

discuss

order

returningfory2|1 year ago

Writing a small compiler in C and a big compiler in Rust is simpler than writing a big compiler in C.

remram|1 year ago

But writing a Rust compiler in Rust is already done.

antirez|1 year ago

Writing programs in Rust is not simpler then writing programs in C.

Etheryte|1 year ago

Two simpler pieces of work as opposed to one complex one. Even if the two parts might be more volume, they're both easier to write and debug.

ok123456|1 year ago

You often write two compilers when trying to bootstrap a C compiler, as GCC used to do. Often, it's a very simple version of the language implemented in the architecture's assembly.

Someone|1 year ago

Even if it is a bit more work:

- you can write the bulk of your code in a language you prefer over C

- you end up with a self-hosting rust compiler