(comments)
原始链接: https://news.ycombinator.com/item?id=44114483
The Hacker News thread discusses CheerpJ 4.1, which enables running Java 17 (preview) in the browser. Users are impressed, particularly by the Minecraft demo, which uses unmodified Minecraft and LWJGL JARs, with original LWJGL JNI code compiled from C++ to WebAssembly. Some note that Minecraft 1.2.5 is the most recent version supported.
One developer at CheerpJ confirmed they have internally run Minecraft 1.16.5. Users are curious about the potential of Oracle acquiring or developing a JVM for the browser. Discussions also cover WASM's potential, especially regarding cross-language library support and sandboxed plugins. CheerpJ uses JavaScript as its JIT compiler target, but aims to utilize WasmGC for better performance.
The thread contrasts CheerpJ with Java Applets, emphasizing CheerpJ's adherence to browser sandboxing. Network limitations are addressed, with CheerpJ supporting HTTP/HTTPS requests via standard Java UrlConnection APIs and offering Tailscale integration for more complex scenarios. Users note the project's ability to run entire JVM ecosystems of libraries from Javascript without glue code. Some users reported the post being downranked.
https://browsercraft.cheerpj.com/
reply