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.

Tibetan man dies after setting himself on fire outside UN in New York

https://www.theguardian.com/world/2026/jul/03/tibet-china-man-tibetan-flag-set-himself-on-fire-di...
1•toilet•39s ago•0 comments

Claude, please stop trying to memorize random crap

https://12gramsofcarbon.com/p/agentics-memorizing-session-transcripts
1•theahura•1m ago•0 comments

Show HN: Daily vibe-coding video games, day 81: World Domination

https://gamevibe.us/81-world-domination
1•pzxc•2m ago•0 comments

Initial Reaction to "The Future of Software Development" TWSoftwareDev26

https://blog.herlein.com/post/retreat-observations/
2•gherlein•6m ago•0 comments

Show HN: I got tired of messy PDF bank statements, so I built a RAM-only parser

https://banktoledger.com
2•Jithu247•7m ago•0 comments

Beyond Horizon analysis: Planet Labs – persistent friction

https://beyondhorizonforesight.substack.com/p/beyond-horizon-analysis-planet-labs
2•beyondhorizonfs•8m ago•0 comments

Testing Claude Sonnet 5's agentic claims

https://developer.puter.com/blog/claude-sonnet-5-puter-js/
2•reynaldi•11m ago•0 comments

How to Survive 3 Years in North Korea as a Foreigner

https://mydiplomaticlife.com/how-to-survive-3-years-in-north-korea-as-a-foreigner/
2•chipndale•13m ago•1 comments

A First Course in Causal Inference

https://arxiv.org/abs/2305.18793
2•Anon84•16m ago•0 comments

Why Major Tech Companies Are Investing in Video Streaming Architecture

https://www.forbes.com/councils/forbestechcouncil/2026/07/02/the-real-reason-major-tech-companies...
2•mondainx•18m ago•0 comments

Costco Is the Anti-Amazon

https://phenomenalworld.org/analysis/the-anti-amazon/
2•bookofjoe•18m ago•1 comments

The Inside Story Of Leverage Research 1.0

https://lydialaurenson.substack.com/p/the-inside-story-of-leverage-research
2•bluepeter•19m ago•0 comments

Factories Are Just Rooms

https://interconnected.org/home/2026/07/03/factories
2•arbesman•20m ago•0 comments

Agentic Symphony: Multi-Agent Collaboration for Emergent Musical Composition

https://www.youtube.com/watch?v=QMUXoImgTIA
2•dennisjoseph•20m ago•0 comments

PrivAiTe: Self-hosted proxy that redacts PII from LLM calls, incl. tool-calls

https://github.com/crp4222/PrivAiTe
2•crp4222•21m ago•0 comments

Another Side Project

https://myprolink.info/
2•mr_betamax•22m ago•0 comments

What we learned building a multi-agent PDF table extractor

https://unstract.com/blog/multi-agent-pdf-table-extraction/
2•naren87•23m ago•0 comments

America, 1926: What a Forgotten 100-Year-Old Report Says About Who We Are

https://www.derekthompson.org/p/america-1926-an-absurdly-deep-dive
2•momentmaker•24m ago•0 comments

Why are we still uploading PDFs just to compress them?

https://lumli.io/blog/pdf-compression-cloud-subscription-2026
2•lumli•26m ago•0 comments

Best Simple System for Now

https://dannorth.net/blog/best-simple-system-for-now/
3•daan-k•27m ago•0 comments

Show HN: AI latent space with overlapping manifolds

https://github.com/PJHkorea/Egregore/blob/main/integrated_egregore_core_test_v6_4.py
2•PJHkorea•28m ago•4 comments

The Honest SendGrid Inbound Parse Alternative – MailKite

https://mailkite.dev/blog/sendgrid-inbound-parse-alternative/
2•bucabay•29m ago•0 comments

Jamesob's guide to running SOTA LLMs locally

https://github.com/jamesob/local-llm
3•livestyle•30m ago•0 comments

It Still Can't Do My Job: Four Years of Moving Goalposts (2022–2026)

https://publicznyprofil.github.io/ai_cant_do_your_work/
17•mydreamof•31m ago•20 comments

The and Justice for All" Book Club

https://markmbello.substack.com/p/please-join-us-tomorrow
1•lawsuitllc•32m ago•0 comments

Battery startups see 'crazy' demand to smooth power surges in data centers

https://www.ft.com/content/55c10ef1-1589-47b2-9fa8-a2a04f5cf316
2•alephnerd•33m ago•0 comments

Dropway: Share LLM artifacts with your team

https://www.hugedomains.com/domain_profile.cfm?d=dropway.com
1•d_pang•35m ago•0 comments

Show HN: SigRank – Competitive Stat Screen and Operator Performance Evals O7

https://github.com/SunrisesIllNeverSee/sigrank-app
1•Burnmydays•35m ago•0 comments

Golden Paths Weren't Built for Agents

https://www.massdriver.cloud/blogs/golden-paths-werent-built-for-agents-part-1
1•mooreds•37m ago•0 comments

AI coding is addictive. Engineers are paying the price

https://leaddev.com/ai/ai-coding-is-addictive-engineers-are-paying-the-price
3•sefrost•39m ago•1 comments