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•1y ago

Comments

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

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

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

The Wireworld Computer(1987)

https://www.quinapalus.com/wi-index.html
1•o4c•6m ago•0 comments

Evals Will Break and You Won't See It Coming

https://wanglun1996.github.io/blog/your-evals-will-break.html
1•rajveerb•6m ago•1 comments

Training within 10 hours of bedtime measurably hurts recovery

https://tryterra.co/research/best-time-to-workout-for-sleep
2•kyriakosel•12m ago•0 comments

Company Was an American Success Story. Until MAHA Influencers Sank It

https://www.thefp.com/p/this-company-was-an-american-success-until-maha-sank-it
1•rmason•12m ago•0 comments

Trump Order Would Push Banks to Check Clients' Citizenship Status

https://www.wsj.com/finance/regulation/trump-order-would-push-banks-to-check-clients-citizenship-...
1•petethomas•17m ago•0 comments

You Can't Park at 0.1c

https://samirvarma.substack.com/p/you-cant-quietly-park-at-01c
1•qsi•18m ago•0 comments

What are account recovery options with FusionAuth?

https://fusionauth.io/community/forum/topic/3133/what-are-account-recovery-options-with-fusionauth
1•mooreds•23m ago•0 comments

Why "Fast AI" and "Safe AI" Were Never in Conflict

https://www.enkryptai.com/blog/why-fast-ai-and-safe-ai-were-never-actually-in-conflict
1•mooreds•24m ago•0 comments

Etymonline: An Online Etymology Dictionary

https://www.etymonline.com
1•airstrike•25m ago•0 comments

Debunking the job-hopping myth: A Data-Driven Look at Tenure and Turnover [pdf]

https://www.nirsonline.org/wp-content/uploads/2025/09/25-Debunking-Job-Hopping-Myth_FINAL.pdf
2•gmays•27m ago•0 comments

Enterprise AI: Mystery Meat, Kill Zones, Cognitive Surrender, Vibe Bombs

https://kyield.com/insights/newsletter/2026/05/vibe-bombs-cognitive-surrender.html
1•mooreds•27m ago•0 comments

Apple Taps Virtual Avatar Firm Animato's Expertise and Intellectual Property

https://www.macrumors.com/2026/05/19/apple-acquires-animato/
1•mgh2•29m ago•0 comments

Cyoda-Go: The Enterprise Edbms

https://github.com/Cyoda-platform/cyoda-go
1•petethomas•33m ago•0 comments

Alternatives to HN for "tech outside of AI" discussion?

2•summonerOS•34m ago•0 comments

Customizing an LLM for Enterprise Software Engineering

https://arxiv.org/abs/2605.16517
1•azhenley•34m ago•0 comments

Zephex is hosted MCP that gives AI coding editors persistent project context

https://zephex.dev
1•zephex•38m ago•0 comments

Repugnant Economics

https://marginalrevolution.com/marginalrevolution/2026/05/repugnant-economics.html
3•paulpauper•42m ago•0 comments

Show HN: SafeRun – Replay debugging and inline prevention for AI agents

1•Tidianez•42m ago•0 comments

Old Space, New Space: A Commercial Revolution in Innovation?

https://www.nber.org/papers/w35212
1•paulpauper•42m ago•0 comments

Australia and Pax Silica: The Quiet Foundations of a New Western Order?

https://sldinfo.com/2026/05/australia-and-pax-silica-the-quiet-foundations-of-a-new-western-order/
1•Gaishan•43m ago•0 comments

Sen. Cassidy casts deciding vote in legislation to end Iran war [video][40s]

https://www.youtube.com/watch?v=S-h8oM7kGEE
2•Bender•44m ago•0 comments

Vacuum flux has memory too [4]

1•sargstuff•44m ago•0 comments

Meta Begins 8k Global Job Cuts in Asian Hub of Singapore

https://finance.yahoo.com/sectors/technology/articles/meta-begins-8-000-global-004153394.html
3•doppp•47m ago•0 comments

Copyright Office Rejected My Attempt to Copyright a Tweet

https://www.techdirt.com/2014/08/04/copyright-office-rejected-my-attempt-to-copyright-tweet/
2•danhite•52m ago•1 comments

Ember: 365-day audited record of AI models vs. Polymarket, scored by Brier

https://emberfyi.com/
1•emberfyi•53m ago•0 comments

AI video editing is blowing my mind

https://aivideoediting.io/
1•pekingzcc•58m ago•0 comments

Architect of the UK Online Safety Act Calls for Its Complete Repeal

https://prestonbyrne.com/2026/05/19/architect-of-the-uk-online-safety-act-calls-for-its-complete-...
6•iamnothere•59m ago•0 comments

Rendezvous: A serverless, Zoom-like video conferencing web app

https://github.com/predatorray/rendezvous
2•zetaplusae•1h ago•0 comments

Generalization Dynamics of LM Pre-Training

https://jiaxin-wen.github.io/blog/generalization-dynamics
1•gmays•1h ago•0 comments

Iteration

https://blog.viktomas.com/posts/iteration/
1•luca-sctr•1h ago•0 comments