frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Analyzing the Performance of WebAssembly vs. Native Code

https://ar5iv.labs.arxiv.org/html/1901.09056
44•liminal•1h ago

Comments

turbolent•1h ago
... in browsers. Which at best JIT compile. There are several WASM runtimes that AOT compile and have significantly better performance (e.g. ~5-10% slower).

The title is highly misleading.

astafrig•1h ago
It’s not misleading to measure the performance of WebAssembly in a web browser.
pyrolistical•1h ago
Just means the browsers can catch up.

Initially slower but then faster after full compilation

padenot•48m ago
Browsers have been doing (sometimes tiered) AOT compilation since wasm inception.
chalcolithic•44m ago
could you please name them?
icsa•1h ago
45% slower to run everywhere from a single binary...

I'll take that deal any day!

andyferris•1h ago
45% slower to run everywhere from a single binary... with less security holes, without undefined behavior, and trivial to completely sandbox.

Its definitely a good deal!

ben-schaaf•55m ago
Native code generally doesn't have undefined behaviour. C has undefined behaviour and that's a problem regardless of whether you're compiling to native or wasm.
pron•45m ago
> without undefined behavior

Undefined behaviour is defined with respect to the source language, not the execution engine. It means that the language specification does not assign meaning to certain source programs. Machine code (generally) doesn't have undefined behaviour, while a C program could, regardless of what it runs on.

gishh•1h ago
That which is old is new again. The wheel keeps turning…

“Wait we can use Java to run anywhere? It’s slow but that’s ok! Let’s ride!”

ori_b•1h ago
Is compiling so hard?
rlili•1h ago
That it’s not even an order of magnitude slower sounds actually pretty good!
ModernMech•1h ago
Yeah, I've seen this when test Rust code compiled into native and wasm. I don't know about 45% though, I haven't measured it.
vlovich123•1h ago
This is pretty good actually considering the low hanging optimizer optimizations left and that the alternative is JS which generally performs 2-10x slower.

I think vectorization support will narrow the aggregate difference here as a lot of SPEC benefits from auto vectorization if I recall correctly.

PantaloonFlames•1h ago
45% slower means..?

Suppose native code takes 2 units of time to execute.

“45% slower” is???

Would it be 45% _more time?_

What would “45% _faster_” mean?

azakai•55m ago
0% slower means "the same speed." The same amount of seconds.

10% slower means "takes 10% longer." 10% more seconds.

So 45% slower than 2 seconds is 1.45 * 2 = 2.9 seconds.

oersted•52m ago
It’s a fair point, that way of expressing it is always a bit confusing. Is it the original time plus 45%? Is it 45% of the original speed?

I think it is easier to understand in terms of throughput.

So 45% less work per unit of time, so 55% of the work.

tharakam•18m ago
I guess it is clearer if expressed like "Native application took only x% of WASM equivalent".
azakai•56m ago
The data here is interesting, but bear in mind it is from 2019, and a lot has improved since.
b_e_n_t_o_n•56m ago
45% slower seems pretty decent considering they use a wasm kernel they developed to mimic the unix kernel so they can run non-modified unix programs inside the browser. It's actually pretty impressive that they did this, and even more impressive that it works and like another commentator said, is not even an order of magnitude slower.

I'm more interested in 1) usages of wasm in the browser that don't involve running unmodified unix programs and 2) wasm outside the browser for compile-once-run-anywhere usecases with sandboxing / security guarantees. Could it be the future for writing native applications?

Languages like Kotlin, C#, Rust, as well as C/C++ etc support wasm quite well. Could we see that be a legitimate target for applications in the future, if the performance gap was closer to 10%-ish? I would personally prefer running wasm binaries with guaranteed (as much as possible ofc) sandboxing compared to raw binaries.

edit: it's from 2019, there have been significant improvements made to wasm since then.

wmf•42m ago
wasm outside the browser for compile-once-run-anywhere usecases with sandboxing / security guarantees

Please just use Docker in a microVM or whatever. It's 0% slower and 100% more mature.

rowanG077•6m ago
Setting up docker and a microVM is orders and orders of magnitude harder and less ergonomic then using your browser. These are not at all interchangeable.
fanf2•52m ago
(2019)
gnabgib•44m ago
(2019) Popular in:

2019 (250 points, 172 comments) https://news.ycombinator.com/item?id=20458173

2020 (174 points, 205 comments) https://news.ycombinator.com/item?id=19023413

Python concurrency: gevent had it right

https://harshal.sheth.io/2025/09/12/python-async.html
1•hsheth2•3m ago•0 comments

Quinnypig/Yeet

https://github.com/quinnypig/yeet
2•rootforce•9m ago•0 comments

Ask HN: Lawyers of HN, how do you deal with AI slop?

3•gardnr•10m ago•0 comments

AI researchers 'embodied' an LLM into a robot – and it channeled Robin Williams

https://techcrunch.com/2025/11/01/ai-researchers-embodied-an-llm-into-a-robot-and-it-started-chan...
1•gnabgib•11m ago•0 comments

Ford Foundation's New Leader Vows to Protect Elections and the Rule of Law

https://www.nytimes.com/2025/11/03/us/politics/ford-foundation-heather-gerken-trump.html
2•whack•12m ago•0 comments

Unpaid Domestika and CGMA Instructors Protest Online, Students Join over Billing

https://www.classcentral.com/report/domestika-unpaid-instructors/
1•raybb•13m ago•0 comments

11X Faster ScyllaDB Backup

https://www.scylladb.com/2025/11/04/11x-faster-scylladb-backup/
1•tanelpoder•13m ago•0 comments

Thoughts by a non-economist on AI and economics

https://www.lesswrong.com/posts/QQAWu7D6TceHwqhjm/thoughts-by-a-non-economist-on-ai-and-economics
1•gwintrob•19m ago•0 comments

Petri Dish Neural Cellular Automata

https://pub.sakana.ai/pdnca/
1•hardmaru•20m ago•0 comments

Lazy Backup (2006)

http://www.aaronsw.com/weblog/lazybackup
3•varun_ch•29m ago•1 comments

Free Learning in Today's Society: Some Personal Experiences and Reflections

https://www.lesswrong.com/posts/pESH2aYfu4B9rhNEm/free-learning-in-today-s-society-some-personal-...
2•gmays•36m ago•0 comments

Show HN: Send USDC via Email

https://btwnfriends.com/
3•Must_be_Ash•38m ago•0 comments

The Physics of News, Rumors, and Opinions

https://arxiv.org/abs/2510.15053
2•Anon84•39m ago•0 comments

Experiences with AI-Generated Pornography

https://link.springer.com/article/10.1007/s10508-025-03227-x
3•tokai•42m ago•0 comments

Datadog Instance Explorer

https://instances.datadoghq.com/
2•scapecast•48m ago•0 comments

You Freeze in Meetings (Even When You Know You Stuff)

https://www.youtube.com/watch?v=BOOB4nlhTZ4
3•polymath88•49m ago•1 comments

Ups Cargo Plane Crashes in Kentucky

https://www.wsj.com/business/logistics/ups-cargo-plane-crashes-in-kentucky-1a199671
2•CSMastermind•52m ago•1 comments

Enabling Trillion-Parameter Models on AWS EFA

https://research.perplexity.ai/articles/enabling-trillion-parameter-models-on-aws-efa
2•tanelpoder•53m ago•0 comments

FDA described as a "clown show" amid latest scandal; top drug regulator is out

https://arstechnica.com/health/2025/11/fda-described-as-a-clown-show-amid-latest-scandal-top-drug...
33•duxup•1h ago•5 comments

UBS chair warns of 'looming systemic risk' from private credit ratings

https://www.ft.com/content/73ee8c6d-3c04-425e-9d2c-ecbf2f376a4f
3•moose_man•1h ago•0 comments

Why Crypto Can't Build Anything Long-Term

https://x.com/therosieum/article/1984987750647333350
4•salkahfi•1h ago•1 comments

How Much AI Spending Is Too Much? Investors Are Starting to Wonder

https://www.wsj.com/finance/stocks/how-much-ai-spending-is-too-much-investors-are-starting-to-won...
9•moose_man•1h ago•0 comments

Famous Method of Valuing Stocks Is Pointing Toward Some Rough Years Ahead

https://www.wsj.com/finance/investing/this-famous-method-of-valuing-stocks-is-pointing-toward-som...
3•moose_man•1h ago•1 comments

For a Literary Saint, Margaret Atwood Can Sure Hold a Grudge

https://www.nytimes.com/2025/11/01/books/review/margaret-atwood-book-of-lives-memoir.html
3•binning•1h ago•0 comments

Cleaning an orange iPhone 17 Pro with hydrogen peroxide turns it pink

https://www.pcmag.com/news/has-your-orange-iphone-17-turned-pink-turns-out-youre-to-blame
3•zdw•1h ago•0 comments

Trump reverses course to renominate billionaire Musk ally to lead NASA

https://www.theguardian.com/science/2025/nov/04/trump-jared-isaacman-nasa
8•foobarbecue•1h ago•1 comments

What's the deal with the popcorn button? [video]

https://www.youtube.com/watch?v=Limpr1L8Pss
1•Sir_Twist•1h ago•0 comments

Problems regulating emotions during pregnancy linked with perinatal depression

https://theconversation.com/problems-regulating-emotions-during-pregnancy-linked-with-perinatal-d...
3•binning•1h ago•0 comments

GenAI for Computing Careers: A Sunny Take

https://cacm.acm.org/blogcacm/genai-for-computing-careers-a-sunny-take/
2•tjr•1h ago•0 comments

Taliban ban books written by women from Afghan universities

https://www.bbc.co.uk/news/articles/c0kn7yyzrjgo
4•binning•1h ago•0 comments