News for hackers. Stuff that matters.
Re:Is It Time for Swift? by shawn-butler on Sunday January 31, 2016 @12:05AM (#11005305)
> git clone https://github.com/mozilla/firefox-ios.git FireFox-ios

> cloc FireFox-ios/

1068 text files. 928 unique files. 303 files ignored.

C 1 files 10606 blank 51150 comment 94618 code

Swift 332 files 9660 blank 5808 comment 43474 code

EDIT: I give up trying to format the output correctly

Re:Is It Time for Swift? by deathanatos on Sunday January 31, 2016 @12:48AM (#11005394)
The single .c file, I'm guessing is: https://github.com/mozilla/firefox-ios/blob/master/ThirdPart...

It appears to be the source for sqlite3, all concatenated together, which is why it's absurdly long.

And it's third party, so its not really their code, but of course the tooling can't tell that.

Re:Is It Time for Swift? by Someone on Sunday January 31, 2016 @05:53AM (#11005997)
I haven't checked, but chances are it is the SQLite amalgamation or a tweaked version of it. https://www.sqlite.org/amalgamation.html:

"The standard makefiles for SQLite have a target for building an object we call the "amalgamation". The amalgamation is a single C code file, named "sqlite3.c", that contains all C code for the core SQLite library and the FTS3, FTS5, RTREE, DBSTAT, JSON1, and RBU extensions. This file contains about 184K lines of code (113K if you omit blank lines and comments) and is over 6.4 megabytes in size".