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?

Madadh – deterministic fail-closed control system for protected runtimes

https://madadh.systems
1•MADADAHSYSTEMS•2m ago•0 comments

Artemis II crew splashes down in Pacific Ocean, ending record-breaking moon flyb

https://www.theguardian.com/science/2026/apr/10/artemis-ii-landing-return-moon-mission
1•hkhn•2m ago•0 comments

Bring Back Buddy

https://github.com/anthropics/claude-code/issues/45596
1•agiacalone•3m ago•0 comments

SBTI Personality Test – The Funniest Personality Quiz You'll Ever Take

https://sbti.guru/en/
1•luosix•5m ago•0 comments

Enforcing new limits and retiring Opus 4.6 Fast from Copilot Pro+

https://github.blog/changelog/2026-04-10-enforcing-new-limits-and-retiring-opus-4-6-fast-from-cop...
1•ValentineC•5m ago•0 comments

An Agent That Grows with You – Hermes Agent

https://hermesagent.best/
1•luosix•6m ago•0 comments

To Fill Air Traffic Controller Shortage, FAA Turns to Gamers

https://www.nytimes.com/2026/04/10/us/politics/air-traffic-controller-gamer.html
1•bookofjoe•20m ago•1 comments

Is VC the new PMF strategy?

1•networkOne•23m ago•0 comments

AMD GPU LLM Performance Testing

https://github.com/alainnothere/AmdPerformanceTesting
3•xlayn•31m ago•1 comments

Bringing Rust to the Pixel Baseband

https://security.googleblog.com/2026/04/bringing-rust-to-pixel-baseband.html
3•el_duderino•31m ago•0 comments

Jonathan Ive, Designer, Apple – "A computer can be sexy."

https://www.slate.com/articles/technology/top_right/2011/08/jonathan_ive_designer_apple.html
1•goekjclo•31m ago•0 comments

Sam Altman speaks out after alleged attack on SF home,links to rising AI anxiety

https://www.msn.com/en-us/news/crime/sam-altman-speaks-out-after-alleged-attack-on-sf-home-links-...
2•rmason•32m ago•2 comments

Show HN: Palmier – Dispatch and schedule AI agents from your phone

https://www.palmier.me
2•caihongxu•36m ago•0 comments

Latest Episode of Apple's "For All Mankind" Erases Taiwan

https://old.reddit.com/r/taiwan/comments/1sho71p/latest_episode_of_apples_for_all_mankind_erases/
1•GeoPolAlt•38m ago•0 comments

We open sourced KubeezCut, a free browser based editor integrated with Kubeez

https://github.com/MeepCastana/KubeezCut
1•Meeeeeep•40m ago•0 comments

Framework: ' personal computing as we know it is dead'

https://www.pcgamer.com/hardware/framework-there-is-a-very-real-scenario-in-which-personal-comput...
1•evo_9•44m ago•1 comments

'Blips' led Australian backyard astronomers to a world-first planetary discovery

https://www.sbs.com.au/news/article/how-amateur-astronauts-are-reshaping-what-we-know-about-space...
2•defrost•47m ago•0 comments

Families Spent Decades on Louisiana's Bayous. The Power Company Pulled the Plug

https://www.wsj.com/us-news/families-spent-decades-on-louisianas-bayous-the-power-company-pulled-...
2•bookofjoe•48m ago•1 comments

Relics of an ancient sandstorm on Mars point to Earth-like winds

https://www.science.org/content/article/relics-ancient-sandstorm-mars-point-earth-winds
1•gmays•58m ago•0 comments

Yout.com Hopes Supreme Court's Cox Ruling Helps Its Case; RIAA Disagrees

https://torrentfreak.com/yout-com-hopes-supreme-courts-cox-ruling-helps-its-case-riaa-disagrees/
2•Cider9986•59m ago•0 comments

Show HN: I forced Claude to play Tetris in Emacs

https://imgur.com/a/e3nxq5k
2•iLemming•1h ago•0 comments

Elon of Ed-Tech

https://getlearnix.com/
1•noahjohnson1•1h ago•3 comments

Tutorial on Event-based Cameras(2020) [pdf]

https://rpg.ifi.uzh.ch/docs/scaramuzza/Tutorial_on_Event_Cameras_Scaramuzza.pdf
1•o4c•1h ago•0 comments

New Kodak Film – Verita 200D Colour Negative

https://www.kodak.com/en/company/press-release/kodak-verita-200d-color-negative-film/
1•coolandsmartrr•1h ago•2 comments

The War Is Turning Iran into a Major World Power

https://www.nytimes.com/2026/04/06/opinion/iran-war-strait-hormuz.html
4•spopejoy•1h ago•3 comments

Google's Gmail Upgrade Decision: 2B Users Must Act Now

https://www.forbes.com/sites/zakdoffman/2026/04/10/googles-gmail-upgrade-decision-2-billion-users...
7•teleforce•1h ago•3 comments

Give your coding agents the context your repo has

https://aspenkit.dev/
2•mvoutov•1h ago•0 comments

Neural Computers

https://arxiv.org/abs/2604.06425
2•Anon84•1h ago•0 comments

RAG 40x faster using binary quantization (2024)

https://lightning.ai/lightning-ai/templates/rag-40x-faster-using-binary-quantization
4•teleforce•1h ago•0 comments

From error-handling to structured concurrency

https://blog.nelhage.com/post/concurrent-error-handling/
1•vinhnx•1h ago•0 comments