2 ms·
> 57K Lines of C++ to 75K Lines of Rust ... > A lot of the increase in line count can be explained by rustfmt’s formatting, as it likes to spread code out ove
by djoldman 2y ago
> 57K Lines of C++ to 75K Lines of Rust
...
> A lot of the increase in line count can be explained by rustfmt’s formatting, as it likes to spread code out over multiple lines, like: ...
I wonder what the character count diff is?
- ComputerGuru 2y agoSo the problem with character counts is that unless you put in an insane amount of effort to calculate it, you're not going to get "significant chars" but rather "bytes" That said, you asked so here's the result of the difference within the `src/` directories comparing 3.7.1 and 4.0 beta (so excluding docs, fish scripts, etc): > cd fish3/src; find . -type f -exec cat {} + | tr -d '[:space:]' | wc -c 2172330 > cd fish-shell/src; find . -type f -exec cat {} + | tr -d '[:space:]' | wc -c 2207996 That's an increase of 35,666 bytes, or just 1.6% If you don't exclude whitespace, the difference is just under +250k bytes (an 8% increase).