New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
11–20 of 59 posts
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#12Love the concept but no clear idea of a use case. Could you list 3 or 4 of them please?
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#13Love the concept but no clear idea of a use case. Could you list 3 or 4 of them please?
I would consider this for a project where I already have Java code on the backend and rewriting it for the front end in JS is a bigger barrier than adding TeaVM to the stack.
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#14The new release of TeaVM (0.11.0) now supports WebAssembly GC. This increases performance while further decoupling TeaVM apps from ECMAScript. TeaVM ( https://teavm.org/ ) is an Apache-licensed project, free for use in commercial projects. It is mature and used widely, including in frameworks like Flavour ( https://frequal.com/Flavour/book.html ) and more projects listed here: https://www.frequal.com/TeaVM/TeaVmBased…
whats the status of swing? can we port old applets easily? multi-threading or am i dreaming?
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#15Love the concept but no clear idea of a use case. Could you list 3 or 4 of them please?
JS frontend enthusiasts rationalized JS on the backend. Now Java backend enthusiasts can once again rationalize Java on the frontend. I would consider this for a project where I already have Java code on the backend and rewriting it for the front end in JS is a bigger barrier than adding TeaVM to the stack.
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#16Love the concept but no clear idea of a use case. Could you list 3 or 4 of them please?
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#17I am more enthusiastic with Kotlin also compiling to wasm with Jetpack compose and now working in all major browsers. It provides a full modern UI framework and also compiles to mobile and desktop. Code is also usable on server and if using the JVM fully interoperable with Java.
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#18Love the concept but no clear idea of a use case. Could you list 3 or 4 of them please?
* Grab B, some software that can run wasm [2].
* Run A on B.
Just one example, since this "algorithm" can generate endless combinations! You could create some game logic in Kotlin, Clojure or Scala, compile it to WASM, and run it on Taca [3] (a runtime for multimedia wasm apps that runs native and in browsers).
--
1: from TeaVM front page: "the source code is not required to be Java, so TeaVM successfully compiles Kotlin and Scala"
2: There are many projects out there embedding some WASM runtime, not just browsers.
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#19Love the concept but no clear idea of a use case. Could you list 3 or 4 of them please?
(For the Python version see https://simonwillison.net/2024/Dec/10/chatgpt-canvas/)
Re: New Java to WASM GC Transpiler: Run Java in the Browser, No Plugin Required
#20Love the revenge of plugins. We might have lost a decade since Unreal was running on Flash Crossbridge, yet thanks to Web trying to be a app platform to replace native apps, we are back full circle. Java, .NET have their plugins back, even if with additional turtles along the stack, and stuff like Flutter are the new Flash. I guess, thanks to all WebGL, WebGPU and WebAssembly folks
And of course this cannot be replicated with a Java plugin running in a (browser) WASM engine.