frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Packed Data Support in Haskell

https://arthi-chaud.github.io/posts/packed/
77•matt_d•9mo ago

Comments

nine_k•9mo ago
> Introducing the ‘packed’ data format, a binary format that allows using data as it is, without the need for a deserialisation step. A notable perk of this format is that traversals on packed trees is proven to be faster than on ‘unpacked’ trees: as the fields of data structures are inlines, there are no pointer jumps, thus making the most of the L1 cache.

That is, a "memory dump -> zero-copy memory read" of a subgraph of Haskell objects, allowing to pass such trees / subgraphs directly over a network. Slightly reminiscent of Cap'n Proto.

90s_dev•9mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•9mo ago
They mention this in the article.
spockz•9mo ago
It reminds me more of flat buffers though. Does protobuf also have zero allocation (beyond initial ingestion) and no pointer jumps?
cstrahan•8mo ago
No, one example of why being variable sized integers.

See https://protobuf.dev/programming-guides/encoding/

carterschonwald•9mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•9mo ago
> the serialised version of the data is usually bigger than its in-memory representation

I don’t think this is common. Perhaps for arrays of floats serialized as JSON or something. But I can’t think of a case where binary serialization is bigger. Data types like maps are necessarily larger in memory to support fast lookup and mutability.

nine_k•9mo ago
I suppose all self-describing formats, like protobuf, or thrift or, well, JSON are bigger than the efficient machine representation, because they carry the schema in every message, one way or another.
IsTom•9mo ago
If you use a lot of sharing in immutable data it can grow a lot when serializing. A simple pathological example would be a tree that has all left subtrees same as the right ones. It takes O(height) space in memory, but O(2^height) when serialized.
gitroom•9mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•9mo ago
This was very well written. Excellent article!
NetOpWibby•9mo ago
Is this like MessagePack for Haskell?

Fast Joystick Read – Elon Musk on Usenet, 1994

https://twitter.com/UsenetGems/status/2004876626161721467
1•nomilk•4m ago•0 comments

World’s most powerful literary critic is on TikTok

https://www.newstatesman.com/culture/books/2026/01/the-worlds-most-powerful-literary-critic-is-on...
2•insistey•4m ago•0 comments

Non-Functional Requirements: The Secret Sauce Nobody Wants to Season

https://blog.hermesc.gr/non-functional-requirements-the-secret-sauce-nobody-wants-to-season/
1•puppion•12m ago•0 comments

Show HN: Voice to Text– Free browser-based speech-to-text with local projects

https://www.voicetotextonline.com/
1•digi_wares•13m ago•0 comments

Show HN: Structured data extraction using local quantized LLMs

https://github.com/nxank4/loclean
1•nxank4•21m ago•0 comments

Jurassic Park: SGI Computers (2010)

http://www.sgistuff.net/funstuff/hollywood/jpark.html
1•exvi•24m ago•0 comments

Earth's Rotation Limits IBIS Performance to 6.3 Stops

https://thecentercolumn.com/2020/01/17/earths-rotation-limits-ibis-performance-to-6-3-stops/
3•Geo_ge•24m ago•0 comments

Lawsuit Claims Meta Can See WhatsApp Chats in Breach of Privacy

https://www.bloomberg.com/news/articles/2026-01-25/lawsuit-claims-meta-can-see-whatsapp-chats-in-...
3•g-b-r•25m ago•0 comments

The Brain of the Greatest Solo Climber

https://nautil.us/the-strange-brain-of-the-worlds-greatest-solo-climber-236051/
1•blondie9x•26m ago•0 comments

'Jurassic Park' at 30: The Gift That Keeps on Giving (2023)

https://scriptmag.com/screenplays/jurassic-park-at-30-the-gift-that-keeps-on-giving
3•exvi•27m ago•0 comments

Jurassic Park: Effects Team Brings Dinosaurs Back from Extinction (1993)

https://theasc.com/articles/jurassic-park-effects-team-brings-dinosaurs-back
2•exvi•27m ago•0 comments

Oculomics and AI: The eye as a biomarker for health span

https://www.sciencedirect.com/science/article/pii/S2162098926000083
1•walterbell•39m ago•0 comments

New AI Architecture

https://figshare.com/articles/preprint/Elastic_Pattern_Neural_Network_EPNN_PDF/31145314?file=6132...
1•AG25•47m ago•1 comments

Show HN: PodCost – Find wasted GPU and Kubernetes spend (with live demo)

https://podcost.io/
1•MGabrIbrah•58m ago•0 comments

Compiling Models to Megakernels

https://blog.luminal.com/p/compiling-models-to-megakernels
1•jafioti•59m ago•0 comments

Vnsh – An ephemeral, host-blind file sharing tool for AI context

https://vnsh.dev
1•raullen•1h ago•1 comments

What Ralph Wiggum loops are missing

https://xr0am.substack.com/p/what-ralph-wiggum-loops-are-missing
4•xR0am•1h ago•0 comments

AI won't take your job. A guy with a $599 Mac Mini and Claude will

https://webmatrices.com/post/ai-won-t-take-your-job-a-guy-with-a-599-mac-mini-and-claude-will
2•bishwasbh•1h ago•0 comments

149M Infostealer Credentials Exposed in Unsecured Database

https://thecyberedition.com/149m-infostealer-credentials-exposed-in-unsecured-database/
1•thehacknews•1h ago•1 comments

What If We Took Message-Passing Seriously?

https://worksonmymachine.ai/p/what-if-we-took-message-passing-seriously
1•thunderbong•1h ago•0 comments

Because Coordination Is Expensive

https://surfingcomplexity.blog/2026/01/24/because-coordination-is-expensive/
3•azhenley•1h ago•0 comments

Palantir has no place in UK public services

https://www.opendemocracy.net/en/zarah-sutlana-palantir-no-place-uk-public-services-ministry-of-d...
85•jethronethro•1h ago•17 comments

Canon and Compass into <Si Wu Zi> Scripture

https://jimiwen.substack.com/p/si-wu-zi
1•jimiwen•1h ago•0 comments

Eightfold AI sued for job candidate reports without their consent

https://www.hrdive.com/news/eightfold-ai-lawsuit-job-candidate-consumer-reports/810332/
3•felineflock•1h ago•0 comments

Debugging a "weird SIGSEGV" core dump with Codex and GDB inside Docker

https://medium.com/@haohang.shi/codex-in-docker-debugging-from-a-weird-sigsegv-core-dump-to-a-rea...
1•Sep142324•1h ago•1 comments

The Great Escape and Stalag Luft III

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

Trump Family's $6.8B Fortune Is Increasingly Tied to Crypto

https://www.bloomberg.com/news/features/2026-01-20/donald-trump-family-net-worth-increasingly-com...
19•zerosizedweasle•1h ago•7 comments

Stable-DiffCoder: Pushing the Frontier of Code Diffusion Large Language Models

https://bytedance-seed.github.io/Stable-DiffCoder/
2•akshayt•1h ago•0 comments

TikTok is officially US-owned for American users, here's what's changing

https://9to5mac.com/2026/01/23/tiktok-is-officially-us-owned-for-american-users-heres-whats-chang...
25•WaitWaitWha•1h ago•26 comments

Training Medical AI to Think Like a Doctor [video]

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