Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by krapp on Saturday December 19, 2020 @11:15AM
(#25478322)
There are plenty of languages other than this AssemblyScript that compile to Webassembly whereas only Java code compiled to Java bytecode. It's no more another Java than another C or Lua or any other language that just happens compiles to a binary or bytecode.
[ Parent
| on HN ]
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by kabes on Saturday December 19, 2020 @11:27AM
(#25478442)
A lot of languages compile to java bytecode.
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by krapp on Saturday December 19, 2020 @11:49AM
(#25478687)
Fair enough. How many of those languages are just considered reinventions of Java?
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by acover on Saturday December 19, 2020 @12:17PM
(#25478997)
There's an entire list of existing languages that compile to the jvm. A small sample:
COBOL Common Lisp Haskell JavaScript
Most of the languages are not similar to Java.
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by lolive on Saturday December 19, 2020 @05:20PM
(#25481801)
Scala is definitely NOT Java
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by NeutronStar on Saturday December 19, 2020 @08:02PM
(#25482906)
No, but he's arguing that Scala compiles to Java bytecode
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by remram on Wednesday December 23, 2020 @10:38AM
(#25518655)
By "Java" I meant the runtime, apologies.
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by simplify on Saturday December 19, 2020 @05:32PM
(#25481895)
How lucky the young must be, to not hear of Java nor JRE.
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by rat87 on Saturday December 19, 2020 @10:11PM
(#25483512)
There are far more languages that compile to Java bytecode then to javascript or Webassembly and it has been a thing for far longer. The Java virtual machine has a good jit-compiler(at least for java but often for other languages too) and a good garbage collector. It offers access to many useful libraries especially for desktop guis so its long been a target. Most popular languages targeting java include groovy, scala, clojure, Kotlin. Also Jruby is a fairly popular alternative ruby implementation on top of the JVM
You're probably thinking of something like cpythons bytecode which is unstable internal only thing (breaking compatibility with minor python versions). Java bytecode has to be stable since it had to be shared by multiple jvm implementations. And even then a famous ruby hacker made a ruby-to-python-bytecode-compiler(now probably broken by version changes).