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.

Autonomous – Superintelligent financial advisor at 0% advisory fees

https://becomeautonomous.com/
1•DTE•24s ago•0 comments

Show HN: Building this platform for CTO's/devs/founders

1•akhnid•37s ago•0 comments

Template Parameter Deduction: Eliminating Hidden Copies in Generic Code

https://0xghost.dev/blog/template-parameter-deduction/
1•0xghost•52s ago•0 comments

Hydrogen plays part in global warming, study says

https://www.japantimes.co.jp/environment/2025/12/18/energy/hydrogen-global-warming/
1•PaulHoule•3m ago•0 comments

It's Done

1•svenmalvik•4m ago•0 comments

Robotopia: A 3D, First-Person, Talking Simulator

https://elbowgreasegames.substack.com/p/introducing-robotopia-a-3d-first
2•psawaya•4m ago•0 comments

'Books are going to take longer to get to libraries'

https://www.tcj.com/books-are-going-to-take-longer-to-get-to-libraries-what-baker-taylors-demise-...
1•Tomte•5m ago•0 comments

Agentic PM tool, open-sourcing in public

https://github.com/complexus-tech/fortyone.app
1•josemukorivo•5m ago•1 comments

Show HN: We built a permissions layer for Notion

https://notionportals.com/
2•PEGHIN•5m ago•0 comments

How to Code Claude Code in 200 Lines of Code

https://www.mihaileric.com/The-Emperor-Has-No-Clothes/
2•nutellalover•5m ago•0 comments

Finding real market signals before deciding what to build or write

https://vect.pro/#/signup?continue=%2Fapp%2Ftools%3Ftool%3DMarket%2520Signal%2520Analyzer
2•MMAFRAZ•6m ago•1 comments

Task-free intelligence testing of LLMs

https://www.marble.onl/posts/tapping/index.html
2•amarble•8m ago•0 comments

An Overview of the Spring System [pdf]

https://web.archive.org/web/20200510024104/https://www.cs.fsu.edu/~awang/courses/cop5611_s2004/sp...
1•mrunix•8m ago•0 comments

Show HN: Production-ready ML loan prediction system (88.62% accuracy)

https://github.com/olatunjitobiloba/loan-predictor-api
1•0luwatobiloba•9m ago•0 comments

Show HN: A Free Supabase Leaks Scanner and Audits RLS in Seconds

https://supaexplorer.com/supabase-leak-scanner
1•xyborg•9m ago•0 comments

Raising Kids After Knowledge Became a Commodity

https://liorz.github.io/blog/posts/fallacy-education-for-academic-excellence/
2•Protostome•12m ago•1 comments

Getting started with Claude for software development

https://steveklabnik.com/writing/getting-started-with-claude-for-software-development/
2•landonxjames•13m ago•0 comments

Electromagnetic fields act via activation of voltage-gated calcium channels

https://pmc.ncbi.nlm.nih.gov/articles/PMC3780531/
1•CGMthrowaway•14m ago•0 comments

Non-violent game design patterns

https://www.scribd.com/document/810435967/nonviolent-game-patterns
2•Archelaos•15m ago•0 comments

Mini Radio (ESP32 Si4372 Receiver)

https://atsmini.github.io/
1•slow_typist•15m ago•0 comments

UNSW Face Test: Are you super recognizer

https://facetest.psy.unsw.edu.au/UNSWfacetest.html
1•arunc•16m ago•0 comments

Blosxom: The Zen of Blogging

http://www.blosxom.com/
2•Tomte•19m ago•0 comments

The rise and fall of the company behind Reader Rabbit (2018)

https://theoutline.com/post/6293/reader-rabbit-history-the-learning-company-zoombinis-carmen-sand...
1•mmcclure•23m ago•0 comments

War and Nature, When Two Extreme Young Meet

https://www.eomag.io/article/geome-nadav-pablo
1•Nadav--Shanun•23m ago•0 comments

Show HN: Turn your PRs into marketing updates

https://personabox.app
2•mpc75•24m ago•0 comments

Show HN: Maravel Framework Dev 1.1.0 Adds 38 Dev Commands to Maravel/Lumen

https://marius-ciclistu.medium.com/maravel-framework-dev-1-1-0-adds-38-dev-commands-to-maravel-lu...
1•marius-ciclistu•24m ago•0 comments

RamenHaus

https://ramen.haus/
2•surprisetalk•24m ago•0 comments

AI Is Creating More Work, Countering the Doomers for Now

https://humanprogress.org/ai-is-creating-more-work-countering-the-doomers-for-now/
1•surprisetalk•25m ago•1 comments

Advancements in Self-Driving Cars

https://thezvi.substack.com/p/advancements-in-self-driving-cars
1•paulpauper•25m ago•0 comments

Tailwind CSS Announces 75% Layoffs as LLMs Reshape OSS Business Models

https://socket.dev/blog/tailwind-css-announces-layoffs
2•feross•26m ago•1 comments