frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

We built a faster WASM-bindgen (2.5×) for high-frequency JavaScript<–>Rust calls

https://github.com/stylearcade/zaw
3•tristanhoy•2h ago

Comments

tristanhoy•2h ago
A few years back we tried moving our in-memory database engine from Typescript to Rust but found the prototype gains were pretty much deleted by wasm-bindgen because of the high call frequency in our setting.

Moving more of our stack into Rust wasn't viable, so we shelved the project and focused on other areas.

Turns out this is a pretty common experience.

Now we're trying again, but this time with our own binding protocol. It’s 2.5× faster at the boundary, but more importantly, it shifts the break-even point dramatically. Offloading to WASM becomes viable at much smaller data sizes (e.g. ~100 elements), enabling cases that weren’t previously worth it — including ours.

The only trade off is significantly worse DX - the bindings are manual and more verbose, but I'm sure someone could solve this with codegen/macros on either side. For now we're focused on performance.

It's pretty much neck and neck between our Rust and Zig implementations so take your pick.

InkCanon•1h ago
Could you explain more on what bindgen was lacking and what you did different?
tristanhoy•59m ago
wasm-bindgen generates a lot of marshalling code on both sides with dynamic allocations and this kills performance.

For low-level algorithms, this means that JS + wasm-bindgen will only be marginally faster than pure JS - the overhead of crossing the boundary is that much of an issue: https://dev.to/bence_rcz_fe471c168707c1/rust-webassembly-per...

With zaw, it uses a pre-allocated, fixed-width buffer for communication, same technique as Bence uses in that article.

It's a night and day difference.

AWS crash causes $2k Smart Beds to overheat and get stuck upright

https://www.dexerto.com/entertainment/aws-crash-causes-2000-smart-beds-to-overheat-and-get-stuck-...
1•sinoue•8m ago•1 comments

The Different Levels of Broken Stats

https://medium.com/luminasticity/the-different-levels-of-broken-stats-30e90958f479
1•bryanrasmussen•8m ago•0 comments

Felix Baumgartner

https://en.wikipedia.org/wiki/Felix_Baumgartner
1•kamaraju•9m ago•0 comments

Statement on Superintelligence

https://superintelligence-statement.org/
2•jedixit•12m ago•1 comments

Snapple FAIct Generator

https://snapplefaicts.com/
1•enjoyyourlife•15m ago•0 comments

Split the States Riddle

https://github.com/norvig/pytudes/blob/main/ipynb/SplitStates.ipynb
1•vismit2000•18m ago•0 comments

Hacktoberfest 2025

https://hacktoberfest.com
1•prasetyodimas•25m ago•0 comments

Reinforcement Fine Tuning a Pangu Model

https://www.youtube.com/watch?v=n5g6hgituDY
1•kesor•26m ago•0 comments

Netflix 'all in' on leveraging AI as the tech creeps into entertainment industry

https://www.cnbc.com/2025/10/22/netflix-all-in-on-leveraging-ai-in-its-streaming-platform.html
1•mucha•31m ago•1 comments

Money, muscles and anxiety: why the manosphere clicked with young men

https://www.theguardian.com/technology/ng-interactive/2025/oct/21/why-the-manosphere-clicked-for-...
1•sandebert•33m ago•0 comments

Evaluating the Infinity Cache in AMD Strix Halo

https://chipsandcheese.com/p/evaluating-the-infinity-cache-in
6•zdw•33m ago•0 comments

Cards Against Humanity lawsuit forced SpaceX to vacate land on US/Mexico border

https://arstechnica.com/tech-policy/2025/10/cards-against-humanity-gets-settlement-from-spacex-pl...
1•healsdata•36m ago•0 comments

Show HN: Microphone Test

https://www.microphonetest.com
1•nadermx•37m ago•0 comments

The world needs more spaceports. Oman wants to help

https://restofworld.org/2025/oman-space-industry-launchpad-satellites/
1•ywnzzn•38m ago•0 comments

AI Visibility Audits in Regulated Sectors

https://www.aivojournal.org/ai-visibility-audits-in-regulated-sectors-from-risk-reporting-to-reve...
1•businessmate•39m ago•2 comments

Engineering Managers Should (Sometimes) Write Code

https://www.brethorsting.com/blog/2025/10/engineering-managers-should-(sometimes)-write-code/
1•aaronbrethorst•47m ago•0 comments

Show HN: Memory-Induced Phase Transitions Across Digital Systems

https://github.com/Kaidorespy/memory-phase-transition
1•formslip•48m ago•0 comments

Show HN: Now you can run any GitHub Actions locally in your cron job using Dagu

https://docs.dagu.io/features/executors/github-actions#basic-usage
2•yohamta•48m ago•0 comments

Charts can be social artifacts that communicate more than just data

https://news.mit.edu/2025/charts-can-be-social-artifacts-communicate-more-than-data-1022
1•fleahunter•49m ago•0 comments

Show HN: BlurFaces – one‑tap face blurring in the browser (no upload)

https://blurfaces.org
2•n00bi3s2•53m ago•0 comments

Viral 'Free Potatoes' Post Cost This Farmer 150 Tons of Crops

https://www.vice.com/en/article/viral-free-potatoes-post-cost-this-farmer-150-tons-of-crops/
1•xbmcuser•53m ago•0 comments

A Tool That Crushes Creativity – AI Slop Is Winning

https://www.theatlantic.com/technology/2025/10/ai-slop-winning/684630/
1•blondie9x•54m ago•1 comments

Chile Embodies A.I.'s No-Win Politics

https://www.nytimes.com/2025/10/20/technology/chile-ai-politics.html
2•1vuio0pswjnm7•55m ago•0 comments

Fyrox Game Engine 1.0 Release Candidate

https://fyrox.rs/blog/post/fyrox-game-engine-1-0-0-rc-1/
2•SeanAnderson•56m ago•0 comments

Spotify running ICE recruitment ads about "dangerous illegals"

https://djmag.com/news/spotify-defends-running-ice-recruitment-ads-about-dangerous-illegals-part-...
4•usrxcghghj•56m ago•0 comments

OpenAI's Apps SDK – How It Works

1•zachpark•58m ago•1 comments

Quantum computing 'lie detector' proves Einstein's spooky action at a distance

https://www.livescience.com/technology/computing/quantum-computing-lie-detector-finally-proves-th...
1•aard•1h ago•0 comments

AVR Simulator – JavaScript implementation of the 8-bit AVR instruction set

https://jonopriestley.github.io/avrsim/
1•subleq•1h ago•0 comments

My Programming Career Is a Historical Artifact

https://payne.io/posts/historical-artifact/
2•alexsanjoseph•1h ago•0 comments

How the Brain Moves from Waking Life to Sleep (and Back Again)

https://www.quantamagazine.org/how-the-brain-moves-from-waking-life-to-sleep-and-back-again-20251...
1•pykello•1h ago•0 comments