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

Comments

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

https://reportmill.com/SnapCode

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

Porting MiniJinja to Go with an Agent

https://lucumr.pocoo.org/2026/1/14/minijinja-go-port/
1•keybits•48s ago•0 comments

One for the Treble, Two for the Time

https://tigerbeetle.com/blog/2026-01-14-bitemporality/
2•jorangreef•3m ago•0 comments

UK secures record supply of offshore wind projects

https://www.bbc.co.uk/news/articles/cn9zyx150xdo
2•ljf•3m ago•0 comments

Implementing DistBelief (2018)

https://jcaip.github.io/Distbelief/
1•thomasjb•4m ago•0 comments

logfmt (2013)

https://brandur.org/logfmt
2•tosh•5m ago•0 comments

The Volkswagen ID. Buzz Won't Get a 2026 Model

https://insideevs.com/news/782418/vw-id-buzz-electric-bus-canceled-2026/
2•teleforce•7m ago•0 comments

The proposed design of the digital euro: A critical analysis

https://link.springer.com/article/10.1007/s42521-025-00171-2
2•gnufx•7m ago•0 comments

Daniel Dennett: Where am I? [pdf]

https://www.lehigh.edu/~mhb0/Dennett-WhereAmI.pdf
1•georgestrakhov•9m ago•1 comments

Show HN: Riemann Hypothesis Attempt (Academia Link) – Please Discuss

https://www.academia.edu/145999987/The_Spectral_Geometric_Proof_of_the_Riemann_Hypothesis_An_Isom...
1•MohskiBroskiAI•11m ago•0 comments

The Wall Looks Permanent Until It Falls

https://data4democracy.substack.com/p/the-wall-looks-permanent-until-it
1•maxerickson•12m ago•0 comments

Show HN: Simple time zone converter and world clock for everyone

https://www.usetizo.com/
2•yelston•14m ago•0 comments

Show HN: Tiny FOSS Compass and Navigation App (<2MB)

https://github.com/CompassMB/MBCompass
2•nativeforks•15m ago•0 comments

Show HN: I built a lightweight banner tool because existing ones felt overkill

https://www.usepomo.com/
2•yelston•15m ago•0 comments

ShiftHappens

https://github.com/interrupt22/shifthappens
1•jamestennant•17m ago•1 comments

HN SHOW: Build Products That Click

https://app.holyshift.ai/
1•likethejade87•18m ago•1 comments

Never Miss a Subscription Payment Again

https://tracksub.app
1•bidya271•18m ago•0 comments

Tell HN: I Downgraded from macOS Tahoe to Sequoia

1•inatreecrown2•18m ago•0 comments

TvOS Review: A Neutral Static-Analysis Example Involving WebKit Linking

https://qoli.notion.site/HSBBrowserAppStore-tvOS-review-public-en-2e8c1b36c40181e98f05ddca7e8d38a9
1•ronniew•21m ago•0 comments

Instrumenting distributed systems for operational visibility

https://aws.amazon.com/builders-library/instrumenting-distributed-systems-for-operational-visibil...
1•tosh•22m ago•0 comments

A Claude Code plugin for spec-driven development with Ralph-style loops

https://github.com/tzachbon/smart-ralph
2•tzachb•23m ago•0 comments

OpenProject 17.0 released: real-time collaboration in documents

https://www.openproject.org/docs/release-notes/17-0-0/
1•openprojectgmbh•24m ago•1 comments

Bug-BOUNTY.md: we stop the bug-bounty end of Jan 2026

https://github.com/curl/curl/pull/20312
2•_____k•25m ago•0 comments

Tesla to offer self-driving software only on monthly basis from Feb 14 Musk says

https://www.reuters.com/business/autos-transportation/tesla-offer-self-driving-software-only-mont...
3•comebhack•30m ago•0 comments

I Hate GitHub Actions with Passion

https://xlii.space/eng/i-hate-github-actions-with-passion/
2•xlii•31m ago•0 comments

Show HN: TLD – a minimal, self-hosted, Twitch live stream recorder

https://codeberg.org/naughtyfinch/twitch-live-downloader
1•naughtyfinch•31m ago•0 comments

GitHub hijacks and breaks browser search

https://abstractnonsense.xyz/micro-blog/2026-01-14-github-hijacks-and-breaks-browser-search/
2•subset•34m ago•0 comments

Show HN: World CEO Cockpit

https://www.maximevidal.com/progress-monitoring
2•vmaxmc2•36m ago•1 comments

Police chief apologises after AI error used to justify Maccabi Tel Aviv ban

https://www.theguardian.com/uk-news/2026/jan/14/west-midlands-police-chief-apologises-ai-error-ma...
6•chrisjj•36m ago•2 comments

What do the struggles of capitalism and communism have in common?

https://blog.hermesloom.org/p/what-do-the-struggles-of-capitalism
1•sigalor•37m ago•1 comments

More sustainable epoxy thanks to phosphorus

https://www.empa.ch/web/s604/flamm-hemmendes-epoxidharz-nachhaltiger-machen
2•JeanKage•41m ago•0 comments