Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Using Java 9 Modularization to Ship Zero-Dependency Native Apps. Parent comment
I just tried building a statically linked 'hello world' c++ program, and co-incidentally, the binary also happened to be 2.1 MB!
#include <iostream> int main( int, const char *[] ) { std::cout << "Hello World!" << std::endl; return 0; }
I just tried building a statically linked 'hello world' c++ program, and co-incidentally, the binary also happened to be 2.1 MB!
'g++ -static -o hello hello.cpp' produces a binary of 2191112 bytes (Linux x64). Stripping it of debug symbols leaves a 1.7 MB file.