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.
[ Parent
| on HN ]
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.
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?
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.