Hacker News new | ask | show | jobs
by The_rationalist 2162 days ago
If they used such a sandboxing technology, could they bring true support for other programming languages than js? (webassembly has no seamless support of browser APIs and no seamless js interop) I strongly think that bringing graalVM polyglotism to browsers is one of the biggest breakthroughs awaiting browsers this century! It would bring the pleasure and expressiveness of modern programming languages, bring more performance and bring an insanely big advantages, order of magnitude too big for our homo sapiens brains to realize: bring the other programming ecosystems such as the Java one, as such bring hundreds of billions of dollars of existing human resources AKA the best open source libraries in the world, solving any niche problem at will.
2 comments

Java ran in the browser less than 5 years ago and it was a disaster.
Explaining why it was and why it would still be a disaster would bring actual intellectual value to your comment. The old plugin interface was not at all integrated with browser APIs nor interoperable with js like ts is. The security issues are nothing undoable, one just need to fully sandbox the VM, V8 has nothing special that couldn't be added to graalVM.

Meanwhile not having programming languages is a disaster as I explained in my parent comment but did your brain process the added value that such a change would bring to the world?

I didn't think it needed to be stated why. It was horrible from a security perspective. The world has completely changed in terms of end user security since Java went from default-run to click-by-default to denied.

"One just needs to fully sandbox the VM" this is easier said than done. I explained in another post why Apparmor/Selinux are not nearly as effective as the Chrome sandbox. As for V8, sure, you could port over many mitigations it has to graalVM and get it running in a similar sandbox. Feel free, I'd certainly support you doing so.

Sure, my brain processes the benefit of other languages just fine. I'm excited to see wasm come to the browser.

I explained in another post why Apparmor/Selinux are not nearly as effective as the Chrome sandbox. Interesting, where can I find such post?

I'm excited to see wasm come to the browser. Yeh but it doesn't have native binding with the browser APIs nor does it have multilanguage interoperability, hence the added values of graalvm over wasm.

Java not running in the browser is still a disaster. Python and Go would be awesome.
Yes, not only would it allow support for other programming languages but it would be orders of magnitude faster than JavaScript. I agree with pretty much everything you said.