4 ms·
It's strange that the Fuchsia homepage says that it is written in 'C', when wikipedia says it's written in 'C, C++, Dart, Go, Rust, Python'. I've counted the nu
by nuc1e0n 4y ago
It's strange that the Fuchsia homepage says that it is written in 'C', when wikipedia says it's written in 'C, C++, Dart, Go, Rust, Python'. I've counted the number of lines in the fuchsia codebase myself using `cloc .` and the results are below. It is not written in solely C or even mostly C. In fact there are more lines of code written in Rust. The fuchsia team should rectify this incorrect information on their homepage. Why is the implementation language even listed as the first thing on the homepage? It's really odd.
$ cloc .
69394 text files.
66754 unique files.
22781 files ignored.
14 errors:
Line count, exceeded timeout: ./scripts/third_party/d3_v3/d3.js
Line count, exceeded timeout: ./src/diagnostics/archivist/src/inspect/mod.rs
Line count, exceeded timeout: ./src/lib/diagnostics/selectors/src/parser.rs
Line count, exceeded timeout: ./src/proc/tests/android/gvisor/expectations/default.json5
Line count, exceeded timeout: ./src/settings/service/src/light/light_controller.rs
Line count, exceeded timeout: ./third_party/golibs/vendor/golang.org/x/net/idna/tables10.0.0.go
Line count, exceeded timeout: ./third_party/golibs/vendor/golang.org/x/net/idna/tables11.0.0.go
Line count, exceeded timeout: ./third_party/golibs/vendor/golang.org/x/net/idna/tables12.0.0.go
Line count, exceeded timeout: ./third_party/golibs/vendor/golang.org/x/net/idna/tables13.0.0.go
Line count, exceeded timeout: ./third_party/golibs/vendor/golang.org/x/net/idna/tables9.0.0.go
Line count, exceeded timeout: ./third_party/gvisor_syscall_tests/expects/netstack3/loopback_expectations.cc
Line count, exceeded timeout: ./third_party/gvisor_syscall_tests/expects/netstack3/tcp.json5
Line count, exceeded timeout: ./third_party/rust_crates/vendor/tuf-0.3.0-beta11/src/metadata.rs
Line count, exceeded timeout: ./tools/auto_owners/src/main.rs
github.com/AlDanial/cloc v 1.90 T=142.47 s (328.0 files/s, 107722.2 lines/s)
---------------------------------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------------------------------
JSON 2186 50 0 4674452
Rust 13783 404572 625522 3339090
C++ 10232 402599 236729 1937881
Go 3227 91268 152628 671742
C/C++ Header 8236 174436 243376 619602
Markdown 3717 108561 72 318674
Assembly 447 35435 18812 293467
C 1591 47081 64048 271343
CSV 17 0 0 140374
Dart 637 10788 11546 61906
Python 424 11559 13427 47039
Perl 41 5210 4997 38375
diff 4 960 33038 36364
TOML 734 3762 5518 21375
YAML 326 976 1555 19767
JavaScript 68 3340 10315 19305
Bourne Shell 286 3536 5394 16504
Bourne Again Shell 230 2882 4408 14259
SVG 72 66 362 11872
GLSL 57 2551 5322 7493
HTML 29 614 39 7344
JSON5 109 303 2199 6100
XML 42 468 172 5258
Protocol Buffers 35 1214 1746 3007
Bazel 37 325 299 2367
reStructuredText 9 538 152 1034
Starlark 20 192 418 856
Handlebars 38 123 8 838
Mako 8 70 0 537
make 16 100 34 371
JSX 2 13 31 250
vim script 10 72 124 232
CMake 4 44 123 227
Lisp 6 81 99 217
Dockerfile 18 42 30 211
Pascal 3 50 68 209
CSS 8 26 16 190
Jinja Template 3 16 0 175
Qt 1 0 0 156
Meson 5 27 18 98
Fish Shell 2 18 43 92
awk 1 14 3 80
Windows Module Definition 1 7 0 46
HLSL 2 6 0 38
Qt Project 1 11 3 31
DOS Batch 1 3 0 20
INI 2 2 0 16
Nix 1 1 0 6
---------------------------------------------------------------------------------------
SUM: 46729 1314012 1442694 12590890
---------------------------------------------------------------------------------------
- pjmlp 4y agoThis is the Fuchisa homepage, https://fuchsia.dev/ https://fuchsia.dev/, not what is on that screenshot.