News for hackers. Stuff that matters.
Re:Should I Learn Java in 2018 by bloomthrowaway on Friday July 13, 2018 @08:38AM (#17522387)
I'm really excited for WASM, it should be nearly as fast as native code. Java and native code aren't far apart though, so I would say 1.5-2x faster generally
Re:Should I Learn Java in 2018 by amelius on Friday July 13, 2018 @08:39AM (#17522397)
Ok, but I'm worried about the garbage collector, and if it can run concurrently without interrupting the program (as a native JVM would do it).
Re:Should I Learn Java in 2018 by bloomthrowaway on Friday July 13, 2018 @08:42AM (#17522411)
It should be able to... Hopefully Go and Java will be some of the first GC languages to target WASM, and we'll find out :) . Personally I'm more worried about the size of the GC getting added to the binaries than how fast it is.
Re:Should I Learn Java in 2018 by pjmlp on Friday July 13, 2018 @11:36AM (#17523806)
AssemblyScript already does it, if I am not mistaken.
Re:Should I Learn Java in 2018 by jackpeterfletch on Friday July 13, 2018 @08:45AM (#17522435)
If the Javascript garbage collecter can do it then I don't see why not.
Re:Should I Learn Java in 2018 by amelius on Friday July 13, 2018 @08:51AM (#17522468)
The JS GC can run in native code, in a separate native thread with shared memory access, and it can use things like memory barrier instructions, which have no equivalent in WASM yet.