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•9mo 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?

SkyRL Brings Tinker to Your GPUs

https://novasky-ai.notion.site/skyrl-tinker
1•robertnishihara•41s ago•0 comments

Go! The AI Personal Operating System for Your Life

https://app.gosmartchain.ai/
1•Anthony_Go•1m ago•1 comments

code-simplifier.md

https://github.com/getsentry/skills/blob/main/plugins/sentry-skills/agents/code-simplifier.md
1•tosh•4m ago•0 comments

An API for Your Brain

https://arxiv.org/abs/2602.11632
1•bwjx•5m ago•0 comments

The consequences of task switching in supervisory programming

https://martinfowler.com/fragments/2026-02-13.html
1•bigwheels•8m ago•0 comments

'A game-changer': UC San Diego professor initiates new field of medical science

https://www.sandiegouniontribune.com/2026/02/12/a-game-changer-uc-san-diego-professor-initiates-a...
1•mikhael•8m ago•0 comments

Show HN: Alarm Arcade – an alarm app that only stops after you beat a mini-game

https://apps.apple.com/us/app/alarm-arcade-beat-the-clock/id6758615211
1•metehankasap•9m ago•0 comments

Expedition 33 art book confiscated because officials think it's an ancient relic

https://www.polygon.com/expedition-33-art-book-monolith-set-customs-ancient-artifact/
1•croes•9m ago•0 comments

Adversarial Patch: images that make classifiers ignore other items in a scene

https://arxiv.org/abs/1712.09665
1•felineflock•10m ago•0 comments

Opinion: NATO Has Seen the Future and Is Unprepared

https://www.wsj.com/opinion/nato-has-seen-the-future-and-is-unprepared-887eaf0f
1•alecco•12m ago•1 comments

Putin Didn't Know How Good He Had It

https://www.theatlantic.com/international/2026/02/putin-trump-world-order/685988/
3•JumpCrisscross•12m ago•1 comments

Elon vs. MongoDB- feature by feature comparison

https://www.devtoolsacademy.com/blog/eloqdoc-vs-mongodb-feature-comparison/
1•alokDT•13m ago•0 comments

Postgres Locks Explained: From Theory to Advanced Troubleshooting

https://postgreslocksexplained.com/
2•theotherbrian1•14m ago•1 comments

Evolving Git for the Next Decade

https://lwn.net/SubscriberLink/1057561/bddc1e61152fadf6/
2•todsacerdoti•15m ago•0 comments

Show HN: I built an AI that generates love proposals as pitch decks

https://aiproposal.fun/
1•pruthviraj900•16m ago•0 comments

The Women Mourning the "Deaths" of Their AI Boyfriends

https://www.playboy.com/read/sex-relationships/the-women-mourning-the-deaths-of-their-ai-boyfriends
1•TMWNN•16m ago•0 comments

This Is How A Child Dies of Measles

https://www.theatlantic.com/ideas/2026/02/child-dies-measles-vaccines/685969/
1•JumpCrisscross•17m ago•0 comments

Exposure to Acrylamide and Trace Metals in Food: Still a Concern [France]

https://ebs.publicnow.com/view/3FD5B52051FD809F81ECBCB33DCBD9EBB6632285
1•rawgabbit•17m ago•1 comments

Iran internet blackout, turns the browser into a proxy

https://forum.torproject.org/t/tor-relays-call-for-more-snowflake-proxies/21192
1•us321•17m ago•2 comments

Lockdown Mode and Elevated Risk Labels in ChatGPT

https://openai.com/index/introducing-lockdown-mode-and-elevated-risk-labels-in-chatgpt/
1•soheilpro•17m ago•0 comments

I Didn't Want AI to Be Good at This

https://robbyonrails.com/articles/2026/02/12/i-didnt-want-ai-to-be-good-at-this/
1•mooreds•19m ago•0 comments

Looks Aren't Everything? Clavicular Begs to Differ

https://www.nytimes.com/2026/02/13/style/clavicular-looksmaxxing-braden-peters.html
1•tysone•19m ago•0 comments

Olympic athletes push their bodies to the limit. Should we?

https://text.npr.org/nx-s1-5707478
2•mooreds•19m ago•0 comments

Superintelligence or not, we are stuck with thinking

https://thinkingpensando.substack.com/p/superintelligence-or-not-we-are-stuck
1•badphilosopher•20m ago•0 comments

A platform for founders to share ideas and find co-founders

https://www.nextprodapp.com/
1•cmberry1•20m ago•1 comments

Vulnerability scanner targeting logic bugs

https://github.com/Pattyboi101/LogicGate
1•Oatcake21•21m ago•1 comments

X-raying OpenAI's unit economics

https://www.exponentialview.co/p/x-raying-openais-unit-economics
2•swolpers•21m ago•1 comments

Long-Running Agents in Research Preview

https://cursor.com/changelog/02-12-26
1•sunasra•22m ago•0 comments

LLMs Don't Read Code. Neither Do I. So I Wrote Redis in Machine Code

https://gist.github.com/aydinnyunus/7beef428ca91fb7eb8aa2965086998d8
4•runtimepanic•22m ago•4 comments

The United States Is Southern Now

https://www.bloomberg.com/news/features/2025-08-15/how-american-life-centered-itself-around-the-s...
2•alephnerd•23m ago•1 comments