News for hackers. Stuff that matters.
Re:Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go by callesgg on Wednesday December 13, 2017 @12:02PM (#15915493)
Line for line Go will be faster it is compiled.

It is the only thing that matters line for line.

Re:Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go by blattimwind on Wednesday December 13, 2017 @01:12PM (#15916109)
Line for line benchmarks are what-the-fuck-are-you-even-trying-to-do level cringe.
Re:Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go by TheDong on Wednesday December 13, 2017 @12:05PM (#15915516)
No, it's not the only thing that matters. Java's compiled too and was included here, but Go still beat it out.

It's likely that C or Rust or C++ would be much faster than Java or Go since they have large runtime overheads; it turns out having a runtime and how heavy it is matter too, not just if it's compiled.

There are also cases where non-compiled languages can beat out compiled ones. For example, lua with LuaJIT is incredibly fast, and beats out compiled languages with heavy runtimes (like java/C#) in quite a few microbenchmarks.

Re:Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go by issaria on Wednesday December 13, 2017 @01:41PM (#15916345)
Java is compile to bytecode which is then interpreted by a virtual machine, it's not compiled to native code, that's why you cannot distribute Java programs as executable like go.
Re:Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go by amorphid on Wednesday December 13, 2017 @04:16PM (#15917740)
Is there a way to bundle the JVM (or the parts you need) with the Java app you'd like to run? Erlang (and Elixir) does this with the Erlang VM (BEAM), allowing you to bundle VM+app as a release. The Erlang release must be compiled for the platforms on which that release will be run. It's not quite as elegant as a Go binary, but it's still pretty handy.
Re:Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go by issaria on Monday December 18, 2017 @10:07AM (#15952095)
Yes, there is a javapackager in java 7 and 8, but with jigsaw that comes with java9, it becomes easier: https://steveperkins.com/using-java-9-modularization-to-ship...
Re:Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go by pjmlp on Wednesday December 13, 2017 @04:11PM (#15917693)
Sure you can, https://www.excelsiorjet.com/

Java has a specification and has lots of implementations.

The majority of commercial implementations of Java have native code compilers, and Oracle is in the process of improving the AOT compiler introduced in Java 9.

Re:Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go by flavio81 on Wednesday December 13, 2017 @02:35PM (#15916855)
Java has a JIT that will compile to machine language during run time.