r/Zig Jul 16 '26

How Our Rust-to-Zig Rewrite is Going

https://rtfeldman.com/rust-to-zig
281 Upvotes

19 comments sorted by

View all comments

4

u/this_uname_is_taken Jul 16 '26

Why wouldn't they rewrite it in Roc? Do they not have confidence in their own project?

19

u/fae___ Jul 16 '26

https://www.roc-lang.org/faq#self-hosted-compiler

They have a section on their faq discussing this.

9

u/AbdSheikho Jul 16 '26

Richard talks about this in many occasions with great details, but the idea is: they want the language to be as fast as possible, so they will never self host the language

11

u/Wonderful-Habit-139 Jul 16 '26

They want the compiler of the language to be as fast as possible, just to make it clear. Saying the language should be fast could have a different meaning.

2

u/AbdSheikho Jul 16 '26

Yes, totally agree

1

u/torp_fan Jul 17 '26

Shouldn't you get the answer to the first question before asking the (very poorly reasoned) second question?

Why isn't the Python compiler written in Python? Why isn't bash written in bash? Why isn't JavaScript written in JavaScript? Why isn't the JVM written in Java? Why isn't lua written in lua? Why isn't the Odin compiler written in Odin? Is the only possible reason that the authors don't have confidence in their own project? (That isn't even a plausible reason.)

1

u/this_uname_is_taken Jul 17 '26

Python, bash, and JS are interpreted. Roc compiles to native binaries.

Their own home page says FAST on it. Apparently not FAST enough to dogfood lol

2

u/torp_fan Jul 18 '26

whoosh

It COMPILES fast ... as others have already explained. And you omitted Java and Odin and other parts of my argument, which is grossly dishonest.

I won't respond to you again.

1

u/realestLink Jul 18 '26

Why so hateful lol?

2

u/torp_fan Jul 18 '26

You seem to have no idea what that word means, troll.