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.

The New Food-Stamp Rules Will Make Your Head Spin

https://www.theatlantic.com/health/2026/01/snap-soda-ban-food-stamps/685637/
1•JumpCrisscross•35s ago•0 comments

Dps

https://engineering.fb.com/2019/08/15/security/zoncolan/
1•JohnCorey•4m ago•0 comments

Show HN: AudiobookHub – Blinkist-style summaries and full classics

https://www.audiobookhub.net/
1•baoyashishui•4m ago•1 comments

Something Is Wrong with Russia's Children

https://www.theatlantic.com/international/2026/01/russia-children-violence-war/685635/
1•JumpCrisscross•9m ago•0 comments

China blocks Nvidia H200 AI chips that US Government cleared for export – report

https://www.theguardian.com/technology/2026/jan/17/china-blocks-nvidia-h200-ai-chips-that-us-gove...
1•sorokod•9m ago•0 comments

Fatberg the size of 4 buses likely birthed poo balls that closed Sydney beaches

https://www.theguardian.com/australia-news/2026/jan/17/fatberg-poo-balls-sydney-beaches-malabar-o...
1•ljf•17m ago•0 comments

YouTube relaxes monetization policy on videos with controversial content

https://apnews.com/article/youtube-monetization-update-policy-controversial-issues-545e27e27e26e0...
1•01-_-•18m ago•0 comments

FestiveEcho

https://github.com/StnkRB/Chrome-Extension-X-AutoComment
1•rahulbootstrap•21m ago•1 comments

ClickHouse valued at $15B as database analytics firm rides AI wave

https://www.reuters.com/technology/database-management-firm-clickhouse-valued-15-billion-amid-ai-...
1•shadow28•21m ago•0 comments

True story of the 1916 hanging of Murderous Mary, a circus elephant

https://www.themoonlitroad.com/murderous-mary-the-elephant/
2•joebig•22m ago•0 comments

Show HN Rundown transforms docs into executable workflows

https://rundown.cool/
1•tobyhede•23m ago•0 comments

Tyler Cowen's AI Campus

https://arnoldkling.substack.com/p/tyler-cowens-ai-campus
1•samuel246•30m ago•0 comments

Show HN: Local AI that knows when you're burning out

https://www.humonos.com/beta
2•jaskirat1216•34m ago•0 comments

Why Systems Fail Under Load

https://www.youtube.com/watch?v=oO6pBX8_g6o
1•paperplaneflyr•40m ago•0 comments

GPT-5.2 does not follow instructions and ignores my prompts

https://old.reddit.com/r/OpenAI/comments/1mwyz6m/gpt_5_pro_no_following_instructions_and_ignoring/
1•behnamoh•43m ago•2 comments

Ask HN: How are you preventing LLMs from hallucinating in real workflows?

1•Agent_Builder•43m ago•0 comments

Built an app that aggregates Prediction Markets with AI Context

https://saipintel.ai:443/
1•everythingalt•46m ago•1 comments

Vibe coding is a blight on open-source

https://old.reddit.com/r/webdev/comments/1qcxres/vibe_coding_is_a_blight_on_opensource/
3•doppp•51m ago•0 comments

Learning better decision trees – LLMs as Heuristics for Program Synthesis

https://mchav.github.io/learning-better-decision-tree-splits/
1•mchav•51m ago•0 comments

Divorce app to save you lawyers fee

https://replantlife.com/
1•cheroll•54m ago•1 comments

Meditation and Unconscious: A Buddhist Monk and a Neuroscientist (2022)

https://thereader.mitpress.mit.edu/meditation-and-the-unconscious-buddhism-neuroscience-conversat...
2•arunc•1h ago•0 comments

Do not give up your brain

https://cassidoo.co/post/good-brain/
2•gpi•1h ago•0 comments

Reality Is Breaking the "AI Revolution"

https://www.planetearthandbeyond.co/p/reality-is-breaking-the-ai-revolution
5•handfuloflight•1h ago•0 comments

Teen Jailed After Exploiting Refund Policy for $570k

https://www.vice.com/en/article/teen-jailed-after-exploiting-refund-policy-for-570000/
3•lnguyen•1h ago•1 comments

RubyShell: Ruby way to create shell scripts

https://github.com/albertalef/rubyshell
1•thunderbong•1h ago•0 comments

Ask HN: Convince me on why AI matters

1•moh20•1h ago•4 comments

New York proposal requires 3D printer manufacturers to prevent printing guns

https://www.tomshardware.com/3d-printing/new-york-state-takes-steps-to-ban-3d-printed-guns-propos...
3•josephcsible•1h ago•2 comments

Anatomy of an Excellent OpenCode Skill: Lessons from Cloudflare-Skill

https://medium.com/@jpcaparas/anatomy-of-an-excellent-opencode-skill-lessons-from-cloudflare-skil...
2•zenoware•1h ago•0 comments

The missed opportunity of constrained decoding

https://michaelorenstein.com/blog/zero-entropy-tokens/
2•killcoder•1h ago•4 comments

Show HN: I've Built a Python Playground

https://playcode.io/python-compiler
2•ianberdin•1h ago•0 comments