5 ms·
Just target the JVM or CLR, enjoy 25 years of ecosystem maturity in libraries, and bytecode instrumentation, and be done with it.
by pjmlp 2y ago
Just target the JVM or CLR, enjoy 25 years of ecosystem maturity in libraries, and bytecode instrumentation, and be done with it.
- progfix 2y agoCan you run JVM or CLR apps in the browser?
- pjmlp 2y agoWhere is the browser in "Orca: WebAssembly Apps Without the Web."?
- meiraleal 2y agoWhere is Orca in "Can you run JVM or CLR apps in the browser?" If you don't have an answer you can help us all not replying
- netghost 2y agoWelcome to the future! https://en.wikipedia.org/wiki/Java_applet https://en.wikipedia.org/wiki/Java_applet
- RandomThoughts3 2y agoThis is not Java applet. The browser can already run WASM code natively. This is the JVM but using WASM as bytecode, which is to say it is yet another WASM interpreter but this one provides a runtime with a canvas.
- pjmlp 2y agoBasically a Apple II running UCSD Pascal.
- camgunz 2y agoWhy would you need to if they run outside the browser?
- rictic 2y agoIt is way easier to get someone to click a link than to get them to download and run your app.
- pjmlp 2y agoOrca requires to download and run your app.
- mcosta 2y agoThen what is Orca useful for?
- szundi 2y ago[flagged]
- pookha 2y agoMaybe replacing containers...I had a better developer experience and a better overall quality of life when I deployed war files into a servelet container (tomcat). I wasn't patching operating system vulnerabilities across a jagged sea of micro service images or patching vendor supplied images either (literally had to do that with Kafka). I deployed a fucking war file. That's it. And I'd also imagine that a WASM module\app would have a much snappier start time without having to lug around the overhead of a container...And "Alpine Linux" can go ahead and kiss my ass (no offense).
- txdv 2y agoYes, there are multiple efforts which compile JVM bytecode and CIL bytecode to WASM.
- useerup 2y agoMicrosoft has ported CLR (.NET Core) to Webassembly and it runs in the browser. You can indeed run CLR code in the browser. That is how Blazor works
- tracker1 2y agoIt's pretty bloated and slow compared to alternatives. This may improve if WasmGC gets integrated instead of part of the payload, but it's still not a great solution, especially on constrained devices. The flip side, is running in server mode means the laggy round trip actions that feel somewhat painful in contrast, reminding me of ASP.Net WebForms and how painful that was in practice.
- cedws 2y agoBetter performance too.
- vbezhenar 2y agoMature desktop Spring Boot app, eating 500 MB and starting 15 seconds. I'm not joking, no...
- pjmlp 2y agoAlready chosing Spring for a desktop application was the first major error.
- dualogy 2y ago> _Just target the JVM or CLR_ In that case: or transpile to Go. Just as cross-platform, but native binaries, fast build, and probably simpler code-gen. Still get GC, still get a fine ecosystem & stdlib, still can make wasm from the generated Go code, still can use boxing/unboxing (`any` instead of `object`) if the source lang is not-statically-typed. Unless you have C deps or "native GUI" needs (ie. C deps) of course =)
- lolinder 2y agoDoes Go have a mature cross-platform GUI toolkit?
- freeone3000 2y agowasm doesn't either :)
- lolinder 2y agoJVM does.
- Deukhoofd 2y agoJVM and the CLR are great, but what WASM offers that those do not is sandboxing. Being able to load in external plugins without having to worry about them opening random files they shouldn't, or starting network connections is some extremely useful functionality. For this case, where the entire application is WASM you could get benefits if you for some reason have a malicious dependency. Instead of it being able to run with full user permissions, it will be limited by the interface offered.
- pjmlp 2y agoUntil it becomes a juicy attack vector, worth exploring monetarily like everything else. "Everything Old is New Again: Binary Security of WebAssembly" https://www.usenix.org/conference/usenixsecurity20/presentation/lehmann https://www.usenix.org/conference/usenixsecurity20/presentat... Just one of the papers slowly coming up on USENIX and other security related conferences. Want a proper sandbox outside the browser? Use OS processes, containers and OS IPC.
- Deukhoofd 2y agoTo a degree, everything can be exploited, for sure. Memory safety always remains an issue. The sandboxing I was referring to however was the sandboxing from arbitrary syscalls. While some operating systems have functionality to do so (for example OpenBSD's pledge), this is unfortunately still very much a niche feature. Containers solve this problem to a degree, but running GUIs or plugins within them is non-trivial for end users.
- deleted 2y ago[deleted]
- actionfromafar 2y agoOr use OS processes etc and WASM sandbox.
- vbezhenar 2y agoBrowser engine is a very juicy attack vector. So it makes sense to use browser engines IMO.
- deleted 2y ago[deleted]