Hacker News new | past | comments | ask | show | jobs | submit login

> Tips for stable and portable software

I think a more accurate title would be "Tips for stable and portable C programs"




The author lists a number of languages considered stable, C being one of them because of widespread support and portability. Java isn't portable for example because it depends on the JVM (and I know GraalVM is a thing but will you still be able to use it in ten years?).


The argument against Java is weak... You can take the latest JVM and run any jar from 1999. Also, Java has had jlink in the latest versions which compiles a runtime that does not require a JVM installation, you don't need GraalVM for that.


The JVM has multiple implementations across a huge range of architectures. Java is managed by a standards process.

Once excluded, the article goes into depth on a range of things that one could argue Java specifically addresses and in a better, more portable way.

One could argue about GUIs, but the portability of GUIs is not just a Java/Swing problem.


> Java isn't portable for example because it depends on the JVM

By that logic C isn't portable because it relies on libc.


Show me a JavaScript developer that cares deeply about POSIX or the operating system they are running on.

And what about Windows? It is still used on 80% on all computers? So why is POSIX essential?


Haven't done much work with servers I take it.

Almost any OS running on a server is going to be POSIX, probably Linux or BSD.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: