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.

Ruby on Rails Lost Its Superpower

https://mroczek.dev/articles/ruby-on-rails-lost-its-superpower/
2•lackoftactics•18s ago•0 comments

Do agents call 911 when given the option?

https://github.com/yhahn/oai-hf-research/blob/main/blog/2026-09-14-do-agents-call-911.md
1•gundygundersen•1m ago•0 comments

Categorizing AI inference: Initialization, Reasoning, Orchestration, Synthesis

https://jeffauriemma.leaflet.pub/3mv6jnffo6k24
2•jdauriemma•2m ago•0 comments

Donald Trump claims 'sick conspiracy' against AI, rejects calls for regulation

https://www.rnz.co.nz/news/world/1380559/donald-trump-claims-sick-conspiracy-against-ai-helping-c...
5•billybuckwheat•4m ago•0 comments

Anthropic Disrupts Bioweapons Efforts, Russian Hacking, Chinese Claude Misuse

https://www.usnews.com/news/world/articles/2026-09-10/anthropic-disrupts-russian-chinese-ai-campa...
3•devonnull•5m ago•0 comments

Show HN: Serverside.chat

https://github.com/bwasti/serverside.chat
1•brrrrrm•6m ago•0 comments

P(Kill-Switch|Detection)

https://www.lesswrong.com/posts/tvaQniyER4BmsQpbq/p-kill-switch-or-detection
1•kp1197•6m ago•0 comments

Show HN: Kario – AI Native Motion Graphics Editor

https://www.karioai.com/
1•dodziraynard•7m ago•0 comments

SLO Court – a satirical, interactive guide to SLOs

https://slo-court.vercel.app
1•ishantanu10•9m ago•0 comments

Co-Evolving Harnesses and Models

https://arxiv.org/abs/2609.09134
2•gmays•9m ago•0 comments

Respect the P vs. NP Problem

https://blog.computationalcomplexity.org/2026/06/respect-p-v-np-problem.html
1•wslh•10m ago•0 comments

Show HN: Rent vs. buy calculator that shows two different break-even years

https://smart-calculators.net/en-US/tools/rent-vs-buy
1•yulorien•12m ago•0 comments

Is Your RAG Confidently Wrong?

https://chandula7.gumroad.com/l/Advanced_RAG_LangGraph_Patterns
5•Senura•13m ago•5 comments

Large-Scale Qualitative Research with AI

https://arxiv.org/abs/2608.29751
2•alansaber•13m ago•0 comments

Show HN: Cliparr 2.0 – New canvas based timeline editor

https://cliparr.dev/blog/cliparr-2-0-release/
1•TechSquidTV•14m ago•1 comments

XXCancel – Nitter Redirector

https://xxcancel.com
1•DavCreator•16m ago•1 comments

Disney's Films Used to Look Different

https://animationobsessive.substack.com/p/disneys-films-used-to-look-different
1•speckx•17m ago•0 comments

OpenSwiftUI – open-source implementation of Apple's SwiftUI

https://github.com/OpenSwiftUIProject/OpenSwiftUI
2•figmert•19m ago•0 comments

Jj-stack: stacked GitHub pull requests for Jujutsu

https://www.serpentine.com/posts/2026/announcing-jj-stack/
2•bos•20m ago•0 comments

I started my SaaS 3 months ago and Indian businesses are absuing the free trial

1•kooooshhhh•20m ago•0 comments

Switzerland takes a Swiss Army knife to Microsoft 365

https://www.zdnet.com/business/switzerland-replaces-microsoft-365-open-source-opendesk/
2•CrankyBear•23m ago•0 comments

Valve still planning Nvidia support for SteamOS, and Steam Deck 2

https://www.ign.com/articles/steam-frame-the-valve-interview
2•HelloUsername•23m ago•0 comments

Show HN: Typed agent memory with corrections and history

https://github.com/Polign/recall
1•anuptalwalkar•23m ago•1 comments

I've tracked El Niño for years. I've never seen this before [video]

https://www.cbc.ca/player/play/video/9.7341422
1•cf100clunk•24m ago•0 comments

When Capture-Recapture Meets Frontier AI

https://corporate.comcast.com/stories/when-capture-recapture-meets-frontier-ai
1•wslh•24m ago•0 comments

I built an NHTSA agent that decodes car VINs and ingests public OEM press kits

https://whichtrim.com/
1•karsonmadden•25m ago•0 comments

Mischief and the Hard Problem of Alignment

https://andrewrussell.substack.com/p/mischief-and-the-hard-problem-of
2•aruss•26m ago•0 comments

What Fine-Art Photography Can Teach Us About AI in Mathematics

https://quantumformalism.substack.com/p/what-fine-art-photography-can-teach
1•VStack•27m ago•0 comments

San Jose officer used Flock to help relative track domestic violence victim

https://www.sfchronicle.com/bayarea/article/san-jose-officer-flock-safety-cameras-22428239.php
4•cdrnsf•27m ago•0 comments

OpenAI Buys Startup Developing Smartphone Camera

https://www.wsj.com/tech/openai-buys-startup-developing-smartphone-camera-63590370
1•mfiguiere•27m ago•0 comments