by TeaVMFan on 12/14/24, 11:32 PM with 55 comments
by TeaVMFan on 12/14/24, 11:32 PM
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/TeaVmBasedSites.html
TeaVM compiles Java code to run in the browser, efficiently and quickly. It features short build times, small downloadable files, and a batteries-included toolset (including minification, tree-shaking, and packaging). Previous releases have conquered all similar open-source tools (that support threading) in independent testing: https://renato.athaydes.com/posts/comparing-jvm-alternatives...
by shannah78 on 12/15/24, 2:16 PM
I emailed Alexey (the creator of TeaVM) to ask if he had plans for thread support, and he replied that, while "proper" threads weren't possible, he had some ideas for supporting green threads. Over the following 6 months or so, Alexey would share updates on progress he had made on the thread front. In March 2015, he shared that he had found a new approach for async code that wouldn't affect the performance of single-threaded code, and would support natural stack traces. We released a preview of our web port using TeaVM a month later, and it exceeded all of our expectations, both in how easy it ended up being to do the port (because of TeaVM), and on the performance.
Alexey's solution for supporting threads, was truly a piece of genius. Had he not created TeaVM, and added threading support, I don't think we would have ended up with our web port - or, at the very least it wouldn't have ended up performing nearly as well.
by RyanHamilton on 12/15/24, 11:02 AM
by jurmous on 12/15/24, 7:42 AM
by seinecle on 12/15/24, 7:20 AM
Could you list 3 or 4 of them please?
by LoveMortuus on 12/16/24, 7:46 AM
Would this allow me to play Puzzle Pirates (a Java game) in the browser, or would the developers still need to do some work for the game to be actually playable in the browser?
by sebazzz on 12/15/24, 1:18 PM
by worik on 12/15/24, 8:59 AM
by Alifatisk on 12/15/24, 10:59 AM
by pjmlp on 12/15/24, 9:10 AM
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