frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Knitting – shared-memory function calls for JavaScript workers

https://knittingdocs.netlify.app/
1•mimiMonads•1h ago
What it is

Knitting is a from-scratch concurrency framework for JavaScript built on shared memory. Instead of manually wiring message protocols, you just call functions across threads.

Why I built it

A couple years ago I was doing a multithreaded simulation in Python. It was slow, so I rewrote it in JS — and then hit workers.

Using postMessage felt like more work than the simulation itself, and it still wasn’t fast.

That left me with a question: why is message passing the default when shared memory already exists?

What’s different

The core idea is simple: make cross-thread calls feel like normal function calls.

call.myTask(args) → returns a Promise, no manual protocol.

Under the hood: - shared-memory request/response mailboxes - atomic slot coordination (no locks) - small payloads inline, larger ones in buffers - Atomics.wait / notify for wakeups

Why it might be interesting

This works best when coordination overhead dominates.

In Deno benchmarks: - ~3.5x faster than postMessage for 1 message - ~9.5x at 25 messages - ~10.7x at 50 messages

There are also Node, Bun, and Tokio comparisons in the docs.

Try it

Docs: https://knittingdocs.netlify.app/ Benchmarks: https://knittingdocs.netlify.app/benchmarks/ GitHub: https://github.com/mimiMonads/knitting

Limitations

- No browser support yet - No pub/sub model - Fixed thread pool size

Feedback

I built this mainly for workloads like HTTP / sockets.

I’m especially interested in: - where this model actually breaks - whether function-call IPC is a dead end or a useful abstraction

Make better decisions based on criteria that are important to you

https://www.decidit.de/en
1•bjoern_live•2m ago•0 comments

Are Strings Still Our Best Hope for a Theory of Everything?

https://www.quantamagazine.org/are-strings-still-our-best-hope-for-a-theory-of-everything-20260323/
1•isaacfrond•3m ago•0 comments

SIDN chooses European-based infrastructure for .nl DNS anycast (i3D.net)

https://www.i3d.net/sidn-partners-with-i3dnet-dns-infrastructure/
1•sgaduuw•5m ago•1 comments

Important Updates to GitHub Copilot for Students

https://github.com/orgs/community/discussions/189268
1•tamnd•6m ago•0 comments

The ancient reason there are 60 minutes in an hour

https://www.bbc.com/future/article/20260320-the-ancient-reason-there-are-60-minutes-in-an-hour-an...
2•jeffwass•8m ago•0 comments

I built a 30-second dinner decider because weeknight decision fatigue is real

https://orla-app-swart.vercel.app/
2•HoneyBarny•10m ago•0 comments

ISS: Instant Space Switcher for macOS

https://github.com/joshuarli/iss
2•fanf2•16m ago•0 comments

Head-mounted VR hardware will never happen, says Neal Stephenson

https://www.theregister.com/2026/03/24/neal_stephenson_death_of_metaverse/
2•jjgreen•19m ago•0 comments

Arm to host 'Arm Everywhere' event and webcast

https://newsroom.arm.com/news/arm-everywhere-event
2•makerofthings•19m ago•0 comments

Show HN: Using the Web Audio API to simulate various tuning forks

https://github.com/evoluteur/healing-frequencies
1•evoluteur•21m ago•0 comments

Local Bernstein theory, and lower bounds for Lebesgue constants

https://terrytao.wordpress.com/2026/03/23/local-bernstein-theory-and-lower-bounds-for-lebesgue-co...
1•jjgreen•21m ago•0 comments

Microsoft's "Fix" for Windows 11: Flowers After the Beating

https://www.sambent.com/microsofts-plan-to-fix-windows-11-is-gaslighting/
4•h0ek•22m ago•0 comments

Users Quit ChatGPT for Claude in 1,487% Surge

https://www.forbes.com/sites/rachelwells/2026/03/23/users-quit-chatgpt-for-claude-in-1487-surge-h...
4•doener•22m ago•0 comments

Comb Shaped Slices: Why I'm not picking a vertical

https://paolino.me/comb-shaped-slices/
2•earcar•25m ago•0 comments

Review AI agent changes locally before you push

https://github.com/gdaybrice/linemark
1•gdaybrice•25m ago•0 comments

Following 94M Relationships Down the Rabbit Hole on Your Local PC

https://graphscope.io/blog/tech/2026/03/24/Following-94-Million-Relationships
4•robeenly•26m ago•1 comments

These Beeps Started in 1924

https://twitter.com/robertgraham/status/2036208633814639088
1•tosh•26m ago•0 comments

UK's Trustpilot fined $4.6M by Italian regulator for misleading consumers

https://www.reuters.com/business/italy-fines-trustpilot-46-million-misleading-consumers-2026-03-23/
1•giuliomagnifico•27m ago•0 comments

Show HN: I built DoodleDuel, a free browser drawing game with an AI judge

https://doodleduel.co/?a=9000
1•yagelar•30m ago•2 comments

Sand Under a Microscope – Magnified Sand Photos

https://magnifiedsand.com/
3•thunderbong•32m ago•0 comments

We almost bought an automation platform. Cowork was one

https://barazany.dev/blog/we-already-had-the-automation-platform
2•barazany•34m ago•0 comments

Ask HN: Founders of estonian e-businesses – is it worth it?

3•udl•35m ago•0 comments

Rapprochement between Hyperion and Amiga; OS 3.2 available again

https://amiga-news.de/en/news/AN-2026-03-00108-EN.html
1•doener•38m ago•1 comments

OpenAI Parameter Golf Challenge

https://openai.com/index/parameter-golf/
3•mellosouls•40m ago•0 comments

I built a free web tool to generate Kubernetes YAML for Podman play kube

https://podman-generator.rzen.at/
2•Garfieldttt•48m ago•1 comments

Ask HN: Depending on AI for anything important is a horrible idea, agree?

2•roschdal•49m ago•0 comments

Porting Doom to ESP32-P4 Using Doom Generic

https://github.com/alexkid77/ESP32P4DOOM
1•alexkid777•51m ago•1 comments

Show HN: VeilVault – an Android password manager built to stay local

https://veilvault.codeveil.de/index.en.html
1•codeveil•52m ago•1 comments

Someone has publicly leaked an exploit kit that can hack iPhones

https://techcrunch.com/2026/03/23/someone-has-publicly-leaked-an-exploit-kit-that-can-hack-millio...
1•simonebrunozzi•54m ago•1 comments

Show HN: I built the modern, clean and AI native linktree app

https://linkroot.space
1•IsruAlpha2•55m ago•1 comments