frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

CheerpJ 4.0: WebAssembly JVM for the browser, now with Java 11 and JNI support

https://labs.leaningtech.com/blog/cheerpj-4.0
9•apignotti•6mo ago

Comments

palata•6mo ago
That's technically pretty cool, but it makes me wonder:

In order to run a Java Desktop app, I need to install a JVM first (or the Desktop app can embed it, I guess that's what IntelliJ does, right?).

Now if I run CheerpJ, it means that I essentially download a JVM when I load the page (every time), and run code in that JVM. But at this point, why not downloading a Desktop app?

It feels like we are going around, shipping simple web pages together with full browsers and calling that "desktop apps" (e.g. ElectronJS), then shipping complete JVMs as web pages and calling that a "web page"... why don't we just ship simple webpages through browsers and complex desktop apps through package managers?

apignotti•6mo ago
With CheerpJ you are downloading the subset of the JVM that you need, and actually only once thanks to the standard browser cache.

There are many reasons why shipping via the browser is a better choice compared to shipping desktop apps. The main 3 in my opinion are:

1. Distribution: Give your user a link and the app will start 2. Isolation: The user can have confidence the app won't read his personal files. 3. Cross-platform: Every OS and every device, for real this time

yuri91•6mo ago
For reference, when loading https://browsercraft.cheerpj.com for the first time (up to loading a world), my browser downloaded ~32MB.

The second time almost nothing.

jeffreportmill1•6mo ago
And here's an entire Java IDE with CheerpJ that downloads less than 15mb:

https://reportmill.com/SnapCode

palata•6mo ago
> With CheerpJ you are downloading the subset of the JVM that you need

That's interesting! May I ask how it works? Does that also happen with e.g. IntelliJ?

> Every OS and every device, for real this time

Doesn't the JVM run everywhere in 2025?

apignotti•6mo ago
> That's interesting! May I ask how it works? Does that also happen with e.g. IntelliJ?

Byte ranges request do most of the heavy lifting, data is loading exclusively on-demand.

> Doesn't the JVM run everywhere in 2025?

What about iOS? Android has Java, but can't run desktop Java apps. Chromebooks also have limits.

palata•6mo ago
> Byte ranges request do most of the heavy lifting, data is loading exclusively on-demand.

I don't understand what that means. The JVM is supposed to interpret and sometimes compile bytecode, right? How can it be done with only a fraction of the JVM?

Or are you saying that it is constantly communicating with a server that does the work?

apignotti•6mo ago
The VM itself is very small, it's the OpenJDK runtime that is quite sizeable. Byte ranges are used to only download the parts of the runtime (in terms of bytecode) that are required.

There is no server-side computation. CheerpJ runs code exclusively client-side.

palata•6mo ago
But you said before that you only download a subset of the JVM, right? Or did you mean a subset of the JDK, including the JVM and... I guess other stuff?
apignotti•6mo ago
I meant the JVM in an extended sense: the combination of the bytecode parsing, JIT compiler and OpenJDK runtime. You are right, I should have been more precise and refer to only the runtime part, which is by far the most significant.
palata•6mo ago
I was not trying to prove you wrong, I'm just genuinely interested :-). I don't see a lot of articles about the JVM these days.

Human behavior is an intuition-pump for AI risk

https://invertedpassion.com/human-behavior-is-an-intuition-pump-for-ai-risk/
1•paraschopra•2m ago•0 comments

Declaration of Digital Independence

https://digitalindependence.eu/
1•robin_reala•4m ago•0 comments

Ask HN: Why the Black Line on Top?

1•BaudouinVH•5m ago•2 comments

A subtly obvious e-paper room air monitor (Part 1: Why?)

https://www.nicolin-dora.ch/blog/en-epaper-room-air-monitor-part-1/
1•nomarv•6m ago•1 comments

Valar Atomics: First Startup to Achieve Criticality

https://twitter.com/isaiah_p_taylor/status/1990535382438719825
1•mariecurie•7m ago•1 comments

Orchestro CLI – Intelligent testing framework for CLI/TUI applications

https://github.com/jonthemediocre/orchestro-cli
1•Jonthemediocre•7m ago•1 comments

Show HN: Hirelens – AI Resume Analyzer for International Job Seekers

https://www.hirelens.co/
1•hl_maker•13m ago•0 comments

Quake.exe got its TCP/IP stack

https://fabiensanglard.net/quake_chunnel/
1•todsacerdoti•16m ago•0 comments

The Most-Watched YouTube Video Hasn't Made Its Creator Rich

https://www.wsj.com/tech/the-worlds-most-watched-youtube-video-hasnt-made-its-creator-rich-e409f9a9
1•Brajeshwar•17m ago•0 comments

Jeffrey Epstein used SEO to bury news about his crimes

https://www.theverge.com/report/822311/jeffrey-epstein-emails-google-search-seo-pr
5•timpera•19m ago•1 comments

AI scientist claimed to do six months of research in just a few hours

https://www.newscientist.com/article/2503516-ai-scientist-claimed-to-do-six-months-of-research-in...
1•Brajeshwar•21m ago•0 comments

The Zero-Bullshit Protocol

https://gracefultc.gumroad.com/l/wuxpg
1•Thugonerd•22m ago•1 comments

Kinescope

https://en.wikipedia.org/wiki/Kinescope
1•exvi•25m ago•0 comments

COP30 climate pledges favor unrealistic land-based carbon removal over em. cuts

https://phys.org/news/2025-11-cop30-climate-pledges-favor-unrealistic.html
1•g-b-r•25m ago•0 comments

The oddest UN resolutions in history seeks to solidify shaky Gaza ceasefire

https://www.theguardian.com/world/2025/nov/18/one-of-the-oddest-un-resolutions-in-history-seeks-t...
1•NomDePlum•25m ago•0 comments

China Escalates Spat with Japan over Comments Made About Taiwan [video]

https://www.youtube.com/watch?v=iAnsFsZDBVY
1•mgh2•34m ago•0 comments

Ex-World Bank Insider on Declining West and the New World Order [video]

https://www.youtube.com/watch?v=-qAvOxGESvs
2•gessha•38m ago•0 comments

The Polygons of Another World: Super Nintendo

https://fabiensanglard.net/another_world_polygons_SNES/
1•tosh•39m ago•0 comments

Y'all mind if I complain for 15 minutes? [video]

https://www.youtube.com/watch?v=NBZv0_MImIY
2•stateoff•40m ago•1 comments

Apple's iPhone Sales Surge in China to Take 25% Market Share

https://www.bloomberg.com/news/articles/2025-11-18/apple-s-iphone-sales-surge-in-china-to-take-25...
1•mgh2•42m ago•1 comments

Show HN: Style XML Feeds Without XSLT

https://github.com/dfabulich/style-xml-feeds-without-xslt
2•dfabulich•47m ago•0 comments

Ask HN: What do you use for speaker diarization?

1•mjbale116•53m ago•0 comments

AI algorithms is making all products look the same (2021) [video]

https://www.youtube.com/watch?v=V8msfSiTWLg
2•mgh2•1h ago•0 comments

AI for IA: LLMs as thinking tools (2024)

https://www.patreon.com/posts/ai-for-ia-large-118120516
2•thoughtpeddler•1h ago•0 comments

Cambridge Dictionary's 2025 word of the year captures modern phenomenon

https://www.cnn.com/2025/11/17/world/parasocial-cambridge-dictionary-scli-intl
2•jb1991•1h ago•0 comments

Churk Moore retired colorforth after w11 update broke it

https://lobste.rs/s/wqrzcy/chuck_moore_retires_from_colorforth
7•ngcc_hk•1h ago•3 comments

Getting drunk to get ahead is the hangover of another age

https://www.thetimes.com/business-money/companies-markets/article/getting-drunk-to-get-ahead-is-t...
3•petethomas•1h ago•0 comments

Bezos returns to the trenches as co-CEO of new AI startup, Project Prometheus

https://techcrunch.com/2025/11/17/jeff-bezos-reportedly-returns-to-the-trenches-as-co-ceo-of-new-...
2•taubek•1h ago•1 comments

A fault-tolerant neutral-atom architecture for universal quantum computation

https://www.nature.com/articles/s41586-025-09848-5
1•SweetSoftPillow•1h ago•0 comments

Show HN: StenifyAI – AI-generated meeting minutes based on meeting type

https://stenify.ai
3•desmondddm•1h ago•0 comments