News for hackers. Stuff that matters.
Re:C++20, How Hard Could It Be by xyzzy4747 on Sunday September 25, 2022 @10:46AM (#32971824)
I wonder how long it would take an experienced developer to rewrite all of Chrome in Rust. It would probably take a special person though who is an expert in C++, Rust, and the codebase.
Re:C++20, How Hard Could It Be by epinephrinios on Sunday September 25, 2022 @11:45AM (#32972453)
There are no "special" persons or superheroes. It is all about time + money.

If a tech giant wants this to happen - e.g. because memory un-safety is mostly the root of all evil - they can use people from the current team and throw a few millions on hiring new talent.

Re:C++20, How Hard Could It Be by pkasting on Monday September 26, 2022 @11:50AM (#32984654)
Well, Chrome has many, many hundreds of developers who have worked for many years on the codebase. If we froze the world and turned the whole team over to writing Rust, and we assumed people were perfectly productive in Rust from day one, we could maybe do it in five years.
Re:C++20, How Hard Could It Be by superdimwit on Sunday September 25, 2022 @10:53AM (#32971888)
30 years?
Re:C++20, How Hard Could It Be by xyzzy4747 on Sunday September 25, 2022 @11:01AM (#32971966)
Why do you think that? How complicated could it possibly be? Also as a person becomes more of an expert in a specific thing, they make progress much faster (if they remain motivated).

Also it’s just rewriting the logic. One could theoretically write unit tests for every function to make sure the inputs/outputs match.