News for hackers. Stuff that matters.
Re:C++ vs. Rust Build Times by dcow on Friday January 06, 2023 @12:03PM (#34277390)
In what language or toolset can you compile a project like Chromium faster? Big projects take a while to compile. Nobody has broken this rule yet so why are we fixated on it being problematic? Obviously, we could not compile the project and eschew all the optimizations we get, but then the end user would be unhappy. I don't know, I've always found the tradeoff to be quite understandable and inoffensive: if I want faster development (among other things), I use an interpreted scripting language. If I want a fast end product (among other things) I compile and optimize to machine code beforehand (obviously it's not that simple, but you get the point).
Re:C++ vs. Rust Build Times by vegerot on Friday January 06, 2023 @01:01PM (#34278421)
Something to stress is that the article is not just about compile times. It’s about compile+test times.

If Chrome were written in Python it’d be hella slower iteration times

Re:C++ vs. Rust Build Times by netr0ute on Friday January 06, 2023 @01:12PM (#34278561)
> In what language or toolset can you compile a project like Chromium faster?

Go is super duper fast, so there's that.

Re:C++ vs. Rust Build Times by camel-cdr on Friday January 06, 2023 @04:22PM (#34281312)
Tcc was able to compile an older linux kernel on a single core 2.4 GHz Pentium 4 in under 15 seconds. [0]

[0] https://bellard.org/tcc/tccboot.html

Re:C++ vs. Rust Build Times by strager on Friday January 06, 2023 @11:45PM (#34285298)
> if I want faster development (among other things), I use an interpreted scripting language. If I want a fast end product (among other things) I compile and optimize to machine code beforehand

I want both. I was hoping Rust would give me both, but it doesn't.

Re:C++ vs. Rust Build Times by dcow on Sunday January 08, 2023 @07:21PM (#34305023)
I would hardly call Rust slow especially for the kind of things you’d use a scripting language for, though.