by _asummers · 9y ago · 0 comments
In Java, this might be java.util.Collections package, or java.util.Concurrent. or in C++ that might be Boost. In Elixir, I start with Kernel.ex[0]
https://github.com/elixir-lang/elixir/blob/master/lib/elixir...
~ $ cat empty.c
int main(void) {return 42;}
~ $ gcc -static empty.c -O3
~ $ strip a.out
~ $ size
text data bss dec hex filename
677598 5792 10464 693854 a965e a.out
~ $ diet gcc -static empty.c -O3
~ $ strip a.out
~ $ size
text data bss dec hex filename
901 32 76 1009 3f1 a.outStandard libraries are often a very mixed bag of stuff because things are added but rarely taken away. Some it may be very new, and some of it may have been written before the idioms of a language were even finalized, and then frozen by compatibility needs. If you don't already have a strong sense of good style (or what is currently considered good practice for a language) you may find it difficult to identify what is good and what is a relic of history.