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 creepiest 'sales demo' of all time

https://www.appenmedia.com/opinion/letter-to-the-editor-the-creepiest-sales-demo-of-all-time/arti...
1•slowin•41s ago•0 comments

Show HN: Free FIRE calculators that run in the browser

https://firecalculatorhq.com/
1•jonaseriksen•1m ago•0 comments

Drinking with Datalog

https://ianthehenry.com/posts/drinking-with-datalog/
1•smartmic•1m ago•0 comments

The Dark Energy Camera's New Image Is Reminiscent of van Gogh

https://www.universetoday.com/articles/the-dark-energy-cameras-new-image-is-reminiscent-of-van-gogh
1•rbanffy•2m ago•1 comments

A Linux Kernel 0-day Journey – From a limited UAF to Physical Memory R/W

https://1day.dev/posts/linux-kernel-0day.html
1•speckx•2m ago•0 comments

ascdraw: Editor for ASCII/UTF-8 diagrams (in 144FPS)

https://github.com/exlee/ascdraw
1•xlii•2m ago•0 comments

FIFA World Cup-A Technological Revolution and New Standard for Live Broadcasting

https://vimegs.com/fifa-world-cup-2026-a-technological-revolution-and-new-standard-for-live-sport...
1•LukasMarek•5m ago•1 comments

A Star Orbiting Our Galaxy's Supermassive Black Hole Tests Limits of Relativity

https://www.universetoday.com/articles/a-star-orbiting-our-galaxys-supermassive-black-hole-tests-...
2•rbanffy•5m ago•0 comments

Show HN: Provena: Open-Source Library for AI Agent Context Governance

https://github.com/rajfirke/provena
1•rfirke•5m ago•0 comments

Why do we love music? (2018)

https://pmc.ncbi.nlm.nih.gov/articles/PMC6353111/
1•jstrieb•5m ago•0 comments

Smart Business solutions helping businesses succeed (blog post)

https://www.portotheme.com/the-smart-solutions-helping-businesses-succeed-in-2026/
1•knutmartin•6m ago•0 comments

Mark Walter's Insurers, Guggenheim Probed by Prosecutors

https://www.bloomberg.com/news/articles/2026-07-20/billionaire-mark-walter-s-firms-probed-by-fede...
1•petethomas•6m ago•0 comments

Can Seedance 2.0 Draw in 2D? The Anime Animation Playbook

https://www.atlascloud.ai/blog/guides/seedance-2.0-animation-2d
1•makaimc•11m ago•0 comments

Wrote some thoughts on a passion-project game idea I've been tinkering with

https://bennorthmore.com/journals/a-game-about-laundry/
1•surprisefox•11m ago•0 comments

One Man's Quest to Fix Every Deadly Guardrail

https://www.newyorker.com/magazine/2026/07/27/one-mans-quest-to-fix-every-deadly-guardrail
1•littlexsparkee•11m ago•0 comments

'Vibecoded' Apps Are Flooding the App Store. Is That Good for Apple?

https://www.nytimes.com/2026/07/20/technology/apple-app-store-vibecoding.html
1•fortran77•14m ago•1 comments

Bunker Boyz [video]

https://www.youtube.com/watch?v=tJuqBlamd6o
2•beklein•15m ago•0 comments

Can Math as We Know It Survive AI?

https://aventineresearchinstitute.substack.com/p/can-math-as-we-know-it-survive-ai
1•TMWNN•15m ago•0 comments

Can You Just Do Things?

https://asteriskmag.com/issues/12/can-you-just-do-things
1•bonefishgrill•16m ago•0 comments

Show HN: Cognikernel- Local Memory for AI Coding Assistants

https://github.com/KanishkNoir/cognikernel
1•KanishkNoir•17m ago•0 comments

Government can seize private land to make way for new AI data center power

https://www.tomshardware.com/tech-industry/artificial-intelligence/power-companies-can-seize-priv...
2•rbanffy•19m ago•0 comments

StemDeck: Free local stem separation, DAW mixer, mobile UI, Docker support

https://github.com/stemdeckapp/stemdeck
2•thclpr•20m ago•0 comments

Dispatch (YC P26) targets 2027 flight for a refurbishable orbital return vehicle

https://runtimewire.com/article/dispatch-targets-2027-flight-refurbishable-orbital-return-vehicle
1•ryanmerket•20m ago•0 comments

One Document, Two Hands

https://sunilpai.dev/posts/one-document-two-hands/
1•coloneltcb•21m ago•0 comments

Hitchcock and Herrmann: The Friendship and Film Scores That Changed Cinema

https://www.lrb.co.uk/the-paper/v48/n13/jonathan-coe/where-was-the-drum-kit
1•mitchbob•21m ago•1 comments

Knowing, Remembering, Exactly, Vaguely: An Agent-Native Database (PlatypusDB)

https://pentad.ai/PLRN/020/
1•kendallgclark•21m ago•1 comments

AT&T loses key ruling in bid to stop offering basic phone service in California

https://arstechnica.com/tech-policy/2026/07/att-loses-key-ruling-in-bid-to-stop-offering-basic-ph...
3•LorenDB•23m ago•0 comments

Unplanned impact: NASA says SpaceX rocket parts could hit Moon

https://www.euronews.com/my-europe/2026/07/20/unplanned-impact-nasa-says-spacex-rocket-parts-coul...
4•devonnull•23m ago•0 comments

PostQ: PQC Readiness Inventory and Migration

https://postq.dev/contact
2•PallabPaul•24m ago•0 comments

Building Software from My Phone

https://blog.exe.dev/building-software-from-your-phone
2•bryanmikaelian•24m ago•0 comments