News for hackers. Stuff that matters.
Re:WebAssembly: Docker Without Containers by ridruejo on Wednesday December 21, 2022 @07:10AM (#34079601)
One way of looking at it that helped me wrap my head of why “this time is different”, is that Wasm is not so much as a language but a compilation target (as say x86) so it can really run anything
Re:WebAssembly: Docker Without Containers by pletnes on Wednesday December 21, 2022 @07:45AM (#34079984)
That’s what JVM promised! They just made Java so there would be at least one familiar-looking (to C++ devs) language for it. Indeed, there are quite a few JVM languages out there, just not as many as some had hoped in 1995.
Re:WebAssembly: Docker Without Containers by cle on Wednesday December 21, 2022 @08:01AM (#34080142)
The JVM executes Java bytecode, which is a compilation target for Java and many other languages. In this regard, architecturally it is exactly the same.
Re:WebAssembly: Docker Without Containers by acdha on Wednesday December 21, 2022 @08:27PM (#34088603)
Kind of - it was designed for Java so other languages were suboptimal for a long time, especially dynamic ones. Combined with the low quality of Java application servers and tooling, that approach was unpopular by the time things like InvokeDynamic matured and then Oracle’s licensing moves gave a lot of places reason for caution.
Re:WebAssembly: Docker Without Containers by int_19h on Sunday December 25, 2022 @10:04PM (#34134116)
The biggest problem when compiling to JVM bytecode isn't dynamic languages - even if they are slower, it's tolerable. It's stuff like C++, where the whole point is being fast, but JVM simply lacks the necessary primitives to compile to.
Re:WebAssembly: Docker Without Containers by FlyingSnake on Wednesday December 21, 2022 @08:37AM (#34080531)
Scala, Kotlin, Groovy proved that JVM can be used as a compilation target. Same was proven with Iron* languages on CLR. How is it different this time?
Re:WebAssembly: Docker Without Containers by pbecotte on Wednesday December 21, 2022 @12:36PM (#34083727)
It can run "anything" ... so long as someone has set up that project to correctly compile to a wasm target. "docker build" lets you build a package out of any software, without having to know much about it. "setting up a compiler for a new project, given the source code and maybe a separate toolchain for some other target that works", is a much more involved task.

There is no world where people are just grabbing an existing app and saying "hey, I'm gonna drop this into my wasm runtime real quick"