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?

AI, your way: introducing the Poolside Platform

https://poolside.ai/blog/introducing-the-poolside-platform
1•icey•1m ago•0 comments

10 years helping Rails devs reach App Store. Today, someone shipped without me

https://masilotti.com/shipped-without-me/
1•joemasilotti•1m ago•0 comments

Richard Dawkins concludes AI is conscious, even if it doesn't know it

https://www.theguardian.com/technology/2026/may/05/richard-dawkins-ai-consciousness-anthropic-cla...
1•alefalfa•3m ago•0 comments

Oil 101, Second Edition

https://oil101.morgandowney.com
1•mxschumacher•3m ago•0 comments

An Open Letter to Jay Bhattacharya

https://www.science.org/content/blog-post/open-letter-jay-bhattacharya
2•jeromechoo•4m ago•0 comments

Show HN: I built a spoiler-free WWE dashboard for 2001-2019 with 15,000 matches

https://warner-wvez.github.io/wrestling-dashboard/
2•wvez22•5m ago•0 comments

PostHog Code

https://posthog.com/code
4•bewal416•5m ago•0 comments

Nostr Mail – Nostr Mail Documentation

https://nogringo.github.io/nostr-mail/#what-is-nostr-mail
3•janandonly•6m ago•0 comments

Spaces Protocol May 2026 Update

https://spacesprotocol.org/blog/may-2026-update/
1•ca98am79•7m ago•0 comments

Orbee chat: your name, your people, your rules

https://orbee.chat/
1•ca98am79•7m ago•0 comments

Changes in Hospital Finance, Operations and Quality After Management Consultants

https://jamanetwork.com/journals/jama/article-abstract/2848641
2•randycupertino•8m ago•1 comments

DigitalOcean's NYC region looked fine – until we ran it again

https://webbynode.com/articles/digitalocean-nyc1-performance-drops-over-time
3•gsgreen•9m ago•0 comments

Understand EOB and medical bill text locally in Chrome

https://chromewebstore.google.com/detail/keepmd-eob-decoder/dojjljfafpojmbhjljnkpglmahhglbco
2•teddyX•9m ago•1 comments

OpenAI smartphone leak reveals next-gen chipset and more details

https://www.notebookcheck.net/OpenAI-smartphone-leak-reveals-next-gen-chipset-and-more-details.12...
1•thunderbong•9m ago•0 comments

Detecting silent LLM agent degradation before users do

https://www.ainative.builders/platform/silent-agent-degradation-detection
2•v1b3•10m ago•1 comments

UALink AI Accelerator Spec Maintains Rapid Update Pace

https://www.eetimes.com/ai-accelerator-spec-maintains-rapid-update-pace/
1•mindcrime•11m ago•0 comments

The exotic particles that could break the Standard Model

https://www.nature.com/articles/d41586-026-01387-x
2•digital55•12m ago•0 comments

Quantum Key Distribution (QKD) and Quantum Cryptography (QC)

https://www.nsa.gov/Cybersecurity/Quantum-Key-Distribution-QKD-and-Quantum-Cryptography-QC/
5•mooreds•13m ago•0 comments

Teeny-Tiny Notes

https://khoaly.xyz/teeny-tiny-notes/
2•speckx•13m ago•0 comments

National space weather center on chopping block

https://www.nytimes.com/2026/03/13/climate/ncar-breakup-plan-nasa-noaa.html
1•eliascanetti•16m ago•0 comments

David Attenborough, 'the voice for nature,' turns 100

https://www.reuters.com/world/uk/david-attenborough-the-voice-nature-turns-100-2026-05-05/
1•jmsflknr•17m ago•0 comments

Dreamer: Make any coding agent self-evolving, across the whole team

https://github.com/luml-ai/dreamer
3•iryna_kondr•18m ago•1 comments

The Other Twin Towers in the Spider-Man Trailer

https://ironicsans.ghost.io/the-other-twin-towers-in-the-spider-man-trailer/
2•caminanteblanco•18m ago•0 comments

CBOMkit: Explore the Use of Cryptography in Software

https://www.zurich.ibm.com/cbom/
2•mooreds•19m ago•0 comments

Tokens and Dreams

https://charlesleifer.com/blog/tokens-and-dreams/
2•cleifer•19m ago•0 comments

Curious cases of financial engineering in biotech

https://www.owlposting.com/p/curious-cases-of-financial-engineering
1•abhishaike•19m ago•0 comments

Cross-target schema drift in Cal.com: 1 finding in 1096 fields

https://github.com/wiaahmarketplace/typerion-oss/tree/main/examples/case-studies/calcom
1•Techman92•21m ago•0 comments

Congress Is Doing Little to Prepare for Potential A.I. Job Losses

https://www.nytimes.com/2026/05/05/business/artificial-intelligence-safety-net.html
2•cdrnsf•22m ago•3 comments

Eight vaccines linked to a lower risk of dementia

https://www.gavi.org/vaccineswork/eight-vaccines-linked-lower-risk-dementia
5•ivankra•22m ago•0 comments

IBM didn't want Microsoft to use the Tab key to move between dialog fields

https://devblogs.microsoft.com/oldnewthing/20260505-00/?p=112298
38•SeenNotHeard•23m ago•14 comments