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.

IQuest-Coder-V1

https://github.com/IQuestLab/IQuest-Coder-V1
1•miohtama•1m ago•0 comments

I accidentally indexed my SaaS using Google's site: search

https://www.google.com/search?q=site%3Avect.pro&oq=&gs_lcrp=EgZjaHJvbWUqCQgAECMYJxjqAjIJCAAQIxgnG...
1•WoWSaaS•4m ago•1 comments

The Math Book (2012)

https://sprott.physics.wisc.edu/pickover/math-book.html
1•vismit2000•7m ago•0 comments

Denmark becomes first country in world to end letter delivery

https://www.abc.net.au/news/2025-12-31/denmark-postal-service-ends-letter-delivery/106188988
2•Tomte•10m ago•1 comments

MHC: Manifold-Constrained Hyper-Connections

https://arxiv.org/abs/2512.24880
1•ipnon•12m ago•0 comments

Ask HN: How did you learn to code?

3•chistev•21m ago•1 comments

The State of OSS Funding data [pdf]

https://github.com/andrew/state-of-oss-funding/blob/032d4b6134b36ea3c0aa378ee946ad4f77a2ac79/slid...
1•8organicbits•24m ago•0 comments

Bulgaria and the Euro

https://en.wikipedia.org/wiki/Bulgaria_and_the_euro
1•tosh•26m ago•0 comments

Why many projects fail before execution begins

2•BenWebbProject•26m ago•0 comments

AI Disclosure Under U.S. Securities Law

https://zenodo.org/records/18113674
1•businessmate•29m ago•1 comments

Challenging algorithms and data structures every programmer should try (2022)

https://austinhenley.com/blog/challengingalgorithms.html
1•vismit2000•29m ago•0 comments

JShell Tutorial

https://cr.openjdk.org/~rfield/tutorial/JShellTutorial.html
1•wolfi1•32m ago•0 comments

Professional College Basketball Players??

https://www.brianvsutah.com/p/professional-college-basketball-players
1•bjshaw73•38m ago•0 comments

Atmospheric Computing

https://www.pfrazee.com/blog/atmospheric-computing
1•danabramov•39m ago•0 comments

Quantum-floor compression: Achieving GPT-4 capability at 1/120th the model size [pdf]

https://oroboroslab.github.io/quantum-floor-preview.pdf
2•cybertax•42m ago•2 comments

Claude Code in Action – Anthropic Official Claude Code Course

https://anthropic.skilljar.com/claude-code-in-action
3•Lwrless•47m ago•0 comments

Show HN: GitHub Action for AI/LLM Security Scanning in CI/CD

https://github.com/XSource-Sec/agent-audit-action
2•xsourcesec•57m ago•1 comments

Semantica – Open-source semantic layer and GraphRAG framework

5•kaifahmad1•57m ago•0 comments

The dumbest things that happened in tech this year

https://techcrunch.com/2025/12/31/the-dumbest-things-that-happened-in-tech-this-year/
3•jnord•59m ago•0 comments

RGB Mini-LED will transform the premium TV landscape in 2026

https://www.techradar.com/televisions/how-rgb-mini-led-will-transform-the-premium-tv-landscape-in...
2•ksec•59m ago•0 comments

Show HN: Collect and analyze Postmark Time to Inbox data

https://github.com/jonasmalacofilho/postmark-tti-histogram
2•jonasmalaco•59m ago•0 comments

China accuses Netherlands of making 'mistakes' over chipmaker Nexperia

https://www.cnbc.com/2025/12/31/china-accuses-netherlands-of-making-mistakes-over-chipmaker-nexpe...
3•jnord•1h ago•1 comments

Carnegie Mellon's Camera Lens Breakthrough Eliminates Background Photo Blur

https://hothardware.com/news/carnegie-mellon-lens-breakthrough
3•gslin•1h ago•0 comments

Show HN: Video to JPG – Extract frames in browser with blur detection

https://videotojpg.com
2•charlesding2024•1h ago•1 comments

2026 Predictions Scorecard

https://rodneybrooks.com/predictions-scorecard-2026-january-01/
4•calvinfo•1h ago•0 comments

How does Node.js load its built-in/native modules? (2021)

https://joyeecheung.github.io/blog/2021/07/06/how-does-node-js-load-its-builtins-native-modules/
2•aragonite•1h ago•0 comments

Show HN: A minimalist, ad-free alternative for receiving SMS online

1•mambazz•1h ago•0 comments

Dear Apple, Please Fix iOS Music

https://davids.town/dear-apple-please-fix-ios-music
4•DavidPiper•1h ago•0 comments

Get ready for the $5090 5090: GPU prices expected to soar next year

https://boingboing.net/2025/12/31/get-ready-for-the-5090-5090-gpu-prices-expected-to-soar-next-ye...
2•perihelions•1h ago•0 comments

Show HN: Importguard – Measure and enforce Python import-time behavior in CI

https://github.com/AryanKumar1401/importguard
2•AryanKumar1401•1h ago•0 comments