frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

palata•1y 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•1y 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•1y 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•1y ago
And here's an entire Java IDE with CheerpJ that downloads less than 15mb:

https://reportmill.com/SnapCode

palata•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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.

'The language of Pokémon is universal': fans are still catching after 30 years

https://www.theguardian.com/games/2026/aug/02/the-language-of-pokemon-is-universal-why-fans-are-s...
1•tzmlab•6m ago•0 comments

Hey everyone, wanted to share something I built in case it helps someone here

https://foliumcv.com/
1•nahuelgiudizi•15m ago•1 comments

RFK Jr tells US families to vaccinate children against measles amid outbreak

https://www.theguardian.com/us-news/2026/aug/02/rfk-jr-measles-vaccination
3•doener•17m ago•0 comments

The Challenge of Recovering SpaceX's Starship at Sea [video]

https://www.youtube.com/watch?v=0i0hpJ0Hqj4
2•sbuttgereit•22m ago•0 comments

Attio – Next Gen CRM

https://attio.com
2•flurly•22m ago•0 comments

Cooked: A DIY Manifesto (2013) [pdf]

https://foodwriting.ua.edu/wp-content/uploads/2021/10/Cooked-exerpt.pdf
3•geneticdrifts•23m ago•0 comments

The diabolical world of convincing AI thirst traps

https://www.vox.com/culture/492604/ai-deepfake-gay-influencers-tiktok-thirst-traps
5•nabbed•23m ago•1 comments

Why Were the Dabaos Late?

https://www.crowdsupply.com/baochip/dabao/updates/why-were-the-dabaos-late
4•mananaysiempre•26m ago•1 comments

Crypto miners are stealing power in Southeast Asia

https://www.dw.com/en/how-crypto-miners-are-stealing-power-in-southeast-asia/a-78175364
3•tchalla•27m ago•0 comments

Europe Is a Country

https://www.noelmaurer.com/p/europe-is-a-country
3•barry-cotter•32m ago•0 comments

Study of 2M newborns shows refusing vitamin K shot led to higher bleeding risk

https://medicalxpress.com/news/2026-07-million-newborns-vitamin-shot-higher.html
2•Gaishan•32m ago•0 comments

New spinning drone hides in plain sight

https://news.northwestern.edu/stories/2026/07/new-spinning-drone-hides-in-plain-sight
7•defrost•35m ago•1 comments

Show HN: Blanked – Compare tech hiring processes by role and company

https://www.blanked.work/
2•mustafak99•40m ago•0 comments

Reaping Without Sowing

https://tjoresearchnotes.wordpress.com/2026/08/02/reaping-without-sowing/
2•mathgenius•40m ago•0 comments

Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours

https://github.com/pg83/shitty
13•pshirshov•42m ago•0 comments

Show HN: I'm 16 y/o and Built the only AI Agent for Hardware and Software Dev

https://github.com/spikonado/sprocket
3•amronos•43m ago•1 comments

Show HN: DRM-CLI – open-source release manager for MSSQL/PostgreSQL/Oracle

https://github.com/dband-drm/drm-cli
2•dband-drm•47m ago•0 comments

A causal history can exist locally everywhere and globally nowhere

https://zenodo.org/records/21606970
2•groverbennett•52m ago•0 comments

Wireless Transec Taxonomy

https://transec-taxonomy.pages.dev
2•belabartok39•53m ago•0 comments

Supply and Demand Is Not What Most People Think

https://shonczinner.substack.com/p/supply-and-demand-is-not-what-most
4•paulpauper•56m ago•0 comments

Bitcoin cold-wallet attack spreads to 4,500 addresses as losses near $89M

https://www.coindesk.com/tech/2026/08/02/bitcoin-cold-wallet-attack-spreads-to-4-500-addresses-as...
13•rbanffy•58m ago•3 comments

Wham! 10 Days in China [video]

https://www.youtube.com/watch?v=P7oAaJqqv8w
2•sxzygz•58m ago•0 comments

What Else Do We Lose When People Give Up Booze?

https://www.nytimes.com/2026/08/01/style/what-else-do-we-lose-when-people-give-up-booze.html
8•bookofjoe•1h ago•2 comments

AI poster wins Ohio State Fair contest

https://www.ohiostatefair.com/p/get-involved/arts/poster-contest
42•AlexAplin•1h ago•21 comments

Negative social ties as risks for faster aging, inflammation, and multimorbidity

https://pmc.ncbi.nlm.nih.gov/articles/PMC12933095/
7•davidbarker•1h ago•1 comments

Mention of Synon, the real inventors of Rapid Application Development, in 1986 [pdf]

http://archive.computerhistory.org/resources/access/text/2017/06/102726714-05-05-acc.pdf
2•jambalaya8•1h ago•0 comments

Abundant empirical evidence of multilevel selection

https://www.frontiersin.org/journals/ecology-and-evolution/articles/10.3389/fevo.2026.1752597/full
2•marojejian•1h ago•0 comments

Unexpected events and prosocial behavior: the Batman effect

https://www.nature.com/articles/s44184-025-00171-5
2•davidbarker•1h ago•0 comments

A Baby Bust Is Not yet a Growth Boom

https://www.labormarketmatters.com/p/a-baby-bust-is-not-yet-a-growth-boom
3•paulpauper•1h ago•0 comments

Teaching an AI to know itself: Building a local LLM agent in D

https://blog.dlang.org/2026/06/07/teaching-an-ai-to-know-itself-building-a-local-llm-agent-in-d/
2•teleforce•1h ago•0 comments