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•7mo ago

Comments

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

https://reportmill.com/SnapCode

palata•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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.

Hyper-Util Composable Pools

https://seanmonstar.com/blog/hyper-util-composable-pools/
1•todsacerdoti•2m ago•0 comments

The case for taking the giving what we can pledge

https://benthams.substack.com/p/a-life-that-cannot-be-a-failure
1•paulpauper•2m ago•0 comments

A Governance Innovation Crisis

https://www.overcomingbias.com/p/a-governance-innovation-crisis
1•paulpauper•4m ago•0 comments

The Scramble for the Seafloor

https://www.nybooks.com/online/2025/12/10/the-scramble-for-the-seafloor/
1•mitchbob•7m ago•1 comments

Hashcards: A Plain-Text Spaced Repetition System

https://borretti.me/article/hashcards-plain-text-spaced-repetition
1•thomascountz•7m ago•0 comments

Ask HN: What Are You Working On? (December 2025)

1•david927•7m ago•0 comments

Elon Musk Is Wrong About Basic Income and Crime: Here Is the Evidence He Ignored

https://scottsantens.substack.com/p/elon-musk-is-wrong-about-universal-basic-income-ubi-and-crime
1•2noame•8m ago•0 comments

Nippon Steel's Acquisition of US Steel: A $15B Deal

https://imaa-institute.org/blog/nippon-steels-acquisition-of-us-steel/
1•eatonphil•9m ago•0 comments

Job apocalypse? Humbug AI is creating new occupations

https://www.economist.com/business/2025/12/14/job-apocalypse-humbug-ai-is-creating-brand-new-occu...
1•edward•10m ago•0 comments

The Twelve Slices of Christmas: How Vasco Chained the Chaos

https://perladvent.org/2025/2025-12-14.html
1•oalders•12m ago•1 comments

Inside The Dark and Predatory World of Crypto Casinos

https://www.nytimes.com/interactive/2025/12/09/us/crypto-casinos-gambling-streamers.html
1•thm•13m ago•0 comments

The next version of the web will be built for machines, not humans

https://www.economist.com/interactive/science-and-technology/2025/12/10/the-next-version-of-the-w...
1•edward•13m ago•0 comments

The best software podcast episodes I ever heard

https://thundergolfer.com/ten-best-software-podcast-episodes
2•jonobelotti•14m ago•0 comments

I added native time awareness to CrewAI to fix LLM date hallucinations

https://github.com/crewAIInc/crewAI/pull/4082
1•sherwin27•14m ago•1 comments

What Does Hadolint Do?

https://hadolint.com/what-does-hadolint-do/
1•mooreds•15m ago•0 comments

The Creation of America's Car Culture [audio]

https://thewaroncars.org/2025/11/11/episode-161-the-creation-of-americas-car-culture/
1•mooreds•16m ago•0 comments

Show HN: Llmwalk – explore the answer-space of open LLMs

https://github.com/samwho/llmwalk
1•samwho•18m ago•0 comments

Record $4.4B flows into Israeli cybersecurity as global VCs outpace locals in 25

https://www.ynetnews.com/business/article/rjggjusz11g
1•myth_drannon•21m ago•0 comments

Rust Coreutils 0.5.0 Release: 87.75% compatibility with GNU Coreutils

https://github.com/uutils/coreutils/releases/tag/0.5.0
3•maxloh•22m ago•1 comments

Carlito's Way

https://zmef.freeshell.org/carlitoway.html
2•zmef•25m ago•1 comments

Could a 5-day RTO be around the corner for Big Tech?

https://blog.pragmaticengineer.com/the-pulse-could-a-5-day-rto-be-around-the-corner-for-big-tech/
3•srijan4•26m ago•0 comments

A basic implementation of a virtual continuum fingerboard

https://continuum.awalgarg.me
1•todsacerdoti•26m ago•0 comments

Kaniko – Build Container Images in Kubernetes

https://github.com/osscontainertools/kaniko
1•bixilon•31m ago•0 comments

In Defense of Papyrus

https://designforhackers.com/blog/papyrus-font/
1•thimabi•32m ago•0 comments

FamFS Hopes to Go Upstream in 2026

https://www.phoronix.com/news/FamFS-2026-Upstream-Hopes
1•Bender•34m ago•0 comments

Transmutation Challenge

https://vinyasi.substack.com/p/transmutation-challenge
1•vinyasi•34m ago•0 comments

Show HN: CodeContext – Cut developer onboarding time from months to weeks

https://github.com/sonii-shivansh/CodeContext
1•shivanshsonii•35m ago•0 comments

FDA drug trials exclude a widening slice of Americans

https://medicalxpress.com/news/2025-12-fda-drug-trials-exclude-widening.html
3•bikenaga•35m ago•1 comments

I wrote JustHTML using coding agents

https://friendlybit.com/python/writing-justhtml-with-coding-agents/
1•simonw•36m ago•1 comments

Misinformation is an inevitable biological reality across nature

https://phys.org/news/2025-12-misinformation-inevitable-biological-reality-nature.html
1•Brajeshwar•38m ago•3 comments