4 ms·
For the distribution of languages inside fuchsia, this is the output of "tokei -s lines" in the git checkout of fuchsia: https://gist.githubusercontent.com/est3
by est31 7y ago
For the distribution of languages inside fuchsia, this is the output of "tokei -s lines" in the git checkout of fuchsia: https://gist.githubusercontent.com/est31/5c13979043e760a597a019999d5602de/raw/acd8458ab45ebac186dc1a0e700985fb68d663db/gistfile1.txt https://gist.githubusercontent.com/est31/5c13979043e760a597a...
According to this, Rust is the language with the most lines in fuchsia. It's important to point out however that of those 2.2 million lines, 1.4 million come from the third_party directory, which includes vendored libraries, mostly Rust ones, and sometimes also multiple versions of a library. The src directory contributes 0.7 million lines of Rust. If you add up the two numbers, you get 2.1 million, so most Rust code resides in those two directories.
This is the tokei output of the src directory: https://gist.githubusercontent.com/est31/5c13979043e760a597a019999d5602de/raw/5e770560cb9dbdfa6e5d95d7bb741334f29e7aff/gistfile2.txt https://gist.githubusercontent.com/est31/5c13979043e760a597a...
To compare those 0.7 million with other big Rust codebases: Servo has 0.39 million lines, the Rust compiler 1.4, and parity-ethereum has 0.18 (using tokei and only looking at the git repos here, without excluding and tests or including dependencies outside of the recursively checked out repo).
- bluejekyll 7y agodoes the src directory include any vendored software for the other languages? Or is that also only fuchsia code?
- est31 7y agoCould you clarify your question? The fuchsia subdir contains various user space components of the OS, like a network stack, bluetooth, graphics drivers, etc. Also some tools and test code. Rust is used in most of the components I looked at.
- bluejekyll 7y agoEdited my comment. Didn’t notice that vendored got spelling corrected to censored :(
- est31 7y agoOk now your question makes sense, thanks. > does the src directory include any vendored software for the other languages? Or is that also only fuchsia code? It doesn't contain vendored software. The third_party dir is responsible for that, at least for Rust and Go. The C libraries used are in separate repos I think.
- mythz 7y agoNot sure what these results is meant to be measuring since most UI Apps are written in Dart which is unlikely captured by the 10k LOC across 123 files reported. Unfortunately since they've removed their mirror on GitHub we can't easily compare these results vs GitHub project stats, unfortunately their https://fuchsia.googlesource.com https://fuchsia.googlesource.com UI is particularly useless at showing any kind of aggregate analysis.
- est31 7y agoI cloned the fuchsia repo, this one: https://fuchsia.googlesource.com/fuchsia/ https://fuchsia.googlesource.com/fuchsia/ It's the main repo but some components are outside. I presume that the UI apps are among those components.
- mda 7y agoSome UI apps are here: https://fuchsia.googlesource.com/topaz/ https://fuchsia.googlesource.com/topaz/