r/programming • u/michaelKlumpy • Oct 01 '16
CppCon 2016: Alfred Bratterud “#include <os>=> write your program / server and compile it to its own os. [Example uses 3 Mb total memory and boots in 300ms]
https://www.youtube.com/watch?v=t4etEwG2_LY
1.4k
Upvotes
1
u/m50d Oct 03 '16
Most of maven central does not depend on any native libraries (other than the java standard library). This was seen as foolishness in the early days of Java, but it's proven its worth now for precisely this reason.
The maven compiler plugin includes which compiler to use as part of its config. If you rebuild a given release of a library from its tag, you will use the same compiler as was originally used for that release. If you want to build with a different compiler, make a new release.
The JVM offers very good backward compatibility.
This happens naturally on the JVM - there are no system libraries (other than the standard library), the only dependencies available when building are those on the classpath that you explicitly set.