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•11mo ago

Comments

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

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

carterschonwald•11mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•11mo 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•11mo 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•11mo 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•11mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•11mo ago
This was very well written. Excellent article!
NetOpWibby•11mo ago
Is this like MessagePack for Haskell?

All your writing tools in one place

https://www.makethisclear.com/
1•Benjooo•1m ago•0 comments

Agentic coding at enterprise scale demands spec-driven development

https://venturebeat.com/orchestration/agentic-coding-at-enterprise-scale-demands-spec-driven-deve...
1•nslog•1m ago•0 comments

GLP-1 medicine improves liver health independent of weight loss

https://medicalxpress.com/news/2026-04-glp-medicine-liver-health-independent.html
1•geox•2m ago•0 comments

'This is a Witch Hunt': Poker World Rallies Behind the Lodge After $2M Seizure

https://www.pokernews.com/news/2026/04/texas-poker-room-witch-hunt-lodge-card-club-51027.htm
1•indigodaddy•2m ago•0 comments

ProductHunt Botched Our Launch

https://m-ric.com/blog/how-producthunt-botched-our-launch/
1•aubanel•2m ago•0 comments

OpenAI's internal memo about beating the competition

https://www.theverge.com/ai-artificial-intelligence/911118/openai-memo-cro-ai-competition-anthropic
1•jatins•3m ago•1 comments

Show HN: ClaudeMap – Google Maps for your codebase, runs as a Claude Code skill

https://github.com/QuinnAho/claudemap
1•Quinnaho•4m ago•0 comments

Loonies for Loongsons

https://www.leadedsolder.com/2026/04/14/loongson-ls3a5000-debian-linux.html
1•zdw•5m ago•0 comments

Critically Endangered Crafts in the UK

https://heritagecrafts.org.uk/categories-of-risk/
1•danhon•6m ago•0 comments

AI Browser Agent Leaderboard

https://leaderboard.steel.dev/
1•p0deje•7m ago•0 comments

Show HN: Hacienda-CLI – CLI to reconcile Spanish tax returns with the tax agency

https://github.com/jatorre/hacienda-cli
1•jatorre•7m ago•0 comments

PyCon US 2026: Why we're asking you to think about your hotel reservation

https://pyfound.blogspot.com/2026/04/pycon-us-2026-hotels.html
1•alibarber•8m ago•0 comments

Turn your best AI prompts into one-click tools in Chrome

https://blog.google/products-and-platforms/products/chrome/skills-in-chrome/
1•xnx•11m ago•0 comments

NYC to open municipal grocery store in 2027

https://www.grocerydive.com/news/new-york-city-owned-grocery-store-manhattan-mamdani/817381/
1•DarkContinent•11m ago•0 comments

Google App Available for Windows

https://blog.google/products-and-platforms/products/search/google-apps-windows-english/
2•pentagrama•12m ago•0 comments

Modifying FileZilla to Workaround Bambu 3D Printer's FTP Issue

https://lantian.pub/en/article/modify-computer/modify-filezilla-workaround-bambu-3d-printer-ftp-i...
2•speckx•13m ago•0 comments

All your Claude Code pain in 40 seconds [video]

https://www.youtube.com/watch?v=fL9DHA6rweo
1•vashchylau•15m ago•0 comments

MDN ditches React for web components in front end rebuild

https://developer.mozilla.org/en-US/blog/mdn-front-end-deep-dive/
4•damethos•15m ago•0 comments

NASA's Moon Base architecture plan [pdf]

https://www.nasa.gov/wp-content/uploads/2026/04/moon-base-architecture-users-guide.pdf
1•jonbaer•15m ago•0 comments

The Download: the state of AI, and protecting bears with drones

https://www.technologyreview.com/2026/04/14/1135847/the-download-state-of-ai-drones-protecting-be...
1•joozio•15m ago•0 comments

Taste Was Always the Job

https://wensenwu.com/thoughts/taste-is-the-job
3•matmult•16m ago•0 comments

Finding a parabola through two points with given slopes

https://www.johndcook.com/blog/2026/04/14/artz-parabola/
1•ibobev•17m ago•0 comments

I Restored the 35mm Negative to the Greatest Music Video of All Time

https://www.youtube.com/watch?v=i0CdkbIFz90
1•CharlesW•17m ago•0 comments

Squash and Stretch

https://www.joshwcomeau.com/animation/squash-and-stretch/
2•ibobev•17m ago•0 comments

Experiments Ring the 'Death Knell' for Sterile Neutrinos

https://www.quantamagazine.org/experiments-ring-the-death-knell-for-sterile-neutrinos-20260408/
4•ibobev•18m ago•0 comments

Chinese Reactions to Claude Mythos

https://www.chinatalk.media/p/chinese-reactions-to-claude-mythos
3•speckx•18m ago•0 comments

Systems Engineering: The Key to Building Agentic Software That Works

https://www.ashpreetbedi.com/articles/systems-engineering
2•ashpreet-bedi•18m ago•0 comments

Perceived Inequality and Populism

https://www.cambridge.org/core/journals/european-journal-of-political-research/article/perceived-...
2•PaulHoule•19m ago•0 comments

Reflections on an Interlude

https://arcol.io/blog/reflections-on-an-interlude
1•thomas-arcol•20m ago•0 comments

LLM inference engine written ground-up natively in C#/.NET

https://dotllm.dev/
3•vyrotek•20m ago•0 comments