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

Comments

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

https://reportmill.com/SnapCode

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

NIST narrows scope of CVE to keep up with rising tide of vulnerabilities

https://cyberscoop.com/nist-narrows-cve-analysis-nvd/
1•lschueller•2m ago•0 comments

When GPUs Fail Quietly: Observability-Aware Early Warning Beyond Telemetry

https://arxiv.org/abs/2603.28781
1•matt_d•4m ago•0 comments

Federated, End-to-End Encrypted Document Storage with Git

https://blog.foks.pub/posts/federated-e2e-encrypted-doc-storage-with-git/
1•maxtaco•4m ago•0 comments

Does Gas Town 'steal' usage from users' LLM credits to improve itself?

https://github.com/gastownhall/gastown/issues/3649
2•rektomatic•5m ago•0 comments

So, you want to be a darknet drug lord

https://pastebin.com/raw/GrV3uYh5
1•pRusya•6m ago•1 comments

Firefox appears to be bulk removing extensions with no explanation

https://discourse.mozilla.org/t/add-on-removed-without-explanation/147949
2•newswangerd•7m ago•0 comments

The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
1•tchalla•9m ago•0 comments

Ticketmaster and Live Nation found Guilty of anticompetitive venue monopoly

https://apnews.com/article/live-nation-ticketmaster-antitrust-trial-f0ffdd20dd4f64e8b4bb9d97134b826f
1•randycupertino•9m ago•2 comments

V&A Museum deletes maps and images deemed sensitive by Beijing from publications

https://www.theguardian.com/culture/2026/apr/14/v-and-a-censored-catalogues-demands-chinese-printer
1•ilamont•9m ago•0 comments

US and Israel's war on Iran is a disaster for the environment, analysis shows

https://www.theguardian.com/world/2026/mar/21/middle-east-iran-conflict-environment-climate
1•PaulHoule•10m ago•0 comments

Trace: Capability-Targeted Agentic Training

https://scalingintelligence.stanford.edu/blogs/trace/
1•mbeissinger•10m ago•0 comments

DeepBlue Marine Unlocks Africa's Coastal Economy Through Premium Experience

https://deep-blue-marine-5f14a6b1.base44.app
1•DeepBlue_Marine•10m ago•0 comments

Jury finds Live Nation, Ticketmaster had anti-competitive monopoly

https://www.cbc.ca/lite/story/9.7164989
2•colinprince•11m ago•0 comments

Great Docs: Beautiful Documentation for Python Packages

https://opensource.posit.co/blog/2026-04-15_introduction/
1•dbaupp•11m ago•0 comments

Graphene just defied a fundamental law of physics

https://www.sciencedaily.com/releases/2026/04/260415042152.htm
2•HardwareLust•12m ago•0 comments

Show HN: Originary – emit signed records for MCP tools

https://github.com/peacprotocol/peac
1•jithinraj•12m ago•0 comments

Retrofitting JIT compilers into C interpreters with ykllvm

https://tratt.net/laurie/blog/2026/retrofitting_jit_compilers_into_c_interpreters.html
1•fanf2•13m ago•0 comments

Cloudflare Browser Run. Will it go around Cloudflare's own blocking?

https://blog.cloudflare.com/browser-run-for-ai-agents/
2•touwer•14m ago•0 comments

Meta-Harness: automated search over task-specific model harnesses

https://github.com/stanford-iris-lab/meta-harness
1•mbeissinger•15m ago•0 comments

Hacker News Daily podcast, created with vibecasting

https://vibecasting.fm/vibecasts
2•ryanj20021•15m ago•1 comments

Wq_affn_cache_shard Merged for Linux 7.1 Significant Win for CPUs Many Cores

https://www.phoronix.com/news/Linux-7.1-WQ
1•Bender•15m ago•0 comments

Trump's push to cut interest rates has echoes of 'banana republic', says Yellen

https://www.theguardian.com/business/2026/apr/15/donald-trump-cut-interest-rates-janet-yellen-us-...
6•mitchbob•16m ago•0 comments

Show HN: Omi – watches your screen, hears conversations, tells you what to do

https://github.com/BasedHardware/omi
2•kodjima33•17m ago•1 comments

Windsurf 2.0

https://windsurf.com/blog/windsurf-2-0
4•dabit3•17m ago•2 comments

Show HN: Mdview.io – online md viewer with responsive tables

https://mdview.io/
1•Igor_Wiwi•18m ago•0 comments

Evaluating Agents for Scientific Discovery

https://allenai.org/blog/evaluating-scientific-discovery-agents
1•gmays•18m ago•0 comments

Show HN: Stagewise Reads Files Without Depending on the Model API

https://stagewise.io/news/file-transformation-pipeline
1•glenntws•19m ago•0 comments

New 3D map of Universe could solve dark energy mystery

https://arstechnica.com/science/2026/04/desi-completes-its-3d-map-of-universe-right-on-schedule/
1•nobody9999•20m ago•0 comments

Customers revolt as GitHub Copilot 'fixes' rate limits

https://www.theregister.com/2026/04/15/github_copilot_rate_limiting_bug/
1•GaryBluto•21m ago•0 comments

LLM from scratch, part 32k – Interventions: gradient accumulation

https://www.gilesthomas.com/2026/04/llm-from-scratch-32k-interventions-training-our-best-model-lo...
1•gpjt•22m ago•0 comments