News for hackers. Stuff that matters.
Re:Roc rewrites the compiler in Zig by coffeeaddict1 on Tuesday February 04, 2025 @05:13PM (#42939712)
Have you not read the post? Because compile times. Rust has awful compile times. If it didn't, I'm sure the Roc team would have stayed with Rust.
Re:Roc rewrites the compiler in Zig by greener_grass on Wednesday February 05, 2025 @05:57AM (#42946793)
Yes, I read the post.

I don't understand why the goal is not to (eventually) implement Roc in Roc, maybe with a dash of something else for the "platform".

Roc is pitched as a general purpose functional programming language with great performance.

How does a compiler not fall under this category?

Re:Roc rewrites the compiler in Zig by Hasnep on Wednesday February 05, 2025 @07:00AM (#42947305)
Roc is pitched as having great performance for a GC'd language, that is, on par with Java, Go, C# instead of Ruby, Python, JS. The Roc compiler team are looking for C, C++, Rust, Zig kind of performance. Roc will, by design, never reach that kind of speed.
Re:Roc rewrites the compiler in Zig by greener_grass on Wednesday February 05, 2025 @07:23AM (#42947503)
We already have many great GC'd functional languages at that performance level.

I first learned about Roc from this talk:

https://www.youtube.com/watch?v=vzfy4EKwG_Y

That's a niche that is not currently filled (well, maybe MLTon) and that has me very excited! I'm sure I'm not alone here.

Re:Roc rewrites the compiler in Zig by Skinney on Thursday February 06, 2025 @04:45AM (#42960748)
Go's compiler is written in Go, and is known to compile very quickly. I'm not sure I understand why Roc needs to be even faster than that?