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

Comments

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

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

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

Monthly Roundup #41: April 2025

https://thezvi.substack.com/p/monthly-roundup-41-april-2025
1•paulpauper•9s ago•0 comments

Google Uses Cox Ruling to Kill Last Copyright Claim in Textbook Piracy Lawsuit

https://torrentfreak.com/google-uses-cox-ruling-to-kill-last-copyright-claim-in-textbook-piracy-l...
1•Brajeshwar•16s ago•0 comments

Show HN: I built a systems programming language (Tin)

https://github.com/Azer0s/tin
1•arisim•1m ago•0 comments

Is it easy to build advanced AI features on SSE?

https://zknill.io/posts/everyone-said-sse-token-streaming-was-easy/
1•zknill•2m ago•0 comments

The Industrial Space Needs to Be Braver

https://kristopherleads.substack.com/p/heres-a-hot-take-for-you-the-industrial
1•kristopherleads•3m ago•1 comments

Show HN: Music from Your Git History

https://adamf.github.io/rebass/
1•adam_gyroscope•4m ago•0 comments

Show HN: I made a website to clean up recipe websites

https://tangled.org/dunkirk.sh/pear
1•clacker-o-matic•5m ago•0 comments

The Industry Decided to Harvest Users. I Decided to Build for Myself

https://marclewis.com/2026/04/24/the-industry-decided-to-harvest-users/
1•gottafixthat•5m ago•0 comments

Let's Talk About the Time the CIA Kidnapped Lunik

https://valeman.medium.com/the-west-talks-about-distillation-fine-lets-talk-about-the-time-the-ci...
1•ibobev•6m ago•0 comments

The Books That Take Revenge, Centuries Later

https://www.theatlantic.com/books/2026/04/shakespeare-brought-down-mccarthy-marjorie-garber-book-...
1•paulpauper•6m ago•0 comments

The Podcast Where You Can Eavesdrop on the A.I. Elite

https://www.nytimes.com/2026/04/26/business/dwarkesh-patel-podcast-ai.html
1•paulpauper•7m ago•0 comments

Constantine: Locates Fatal Security Bugs in Software

https://docs.praetorian.com/articles/1856234-constantine-locates-fatal-security-bugs-in-software
1•wslh•7m ago•0 comments

1Password Is Down

https://status.1password.com
5•etothet•9m ago•1 comments

First DeepSeek V4 Flash-Base-Int4 Quant

https://huggingface.co/EnsueAI/DeepSeek-V4-Flash-Base-INT4
4•saivegasena•9m ago•1 comments

Dutch central bank dithces AWS and chooses Lidl for European Cloud

https://www.techzine.eu/news/infrastructure/140634/dutch-central-bank-chooses-lidl-for-european-c...
3•benterix•10m ago•0 comments

I analyzed 571M Amazon reviews to find the most profanity-filled customer rants

https://burla-cloud.github.io/amazon-review-distiller/
1•jmp1062•10m ago•0 comments

Lean Game Server

https://adam.math.hhu.de/
1•alabhyajindal•12m ago•0 comments

OpenAI has updated partnership with Microsoft, services will be cross cloud

https://twitter.com/sama/status/2048755148361707946
1•ritzaco•12m ago•0 comments

Show HN: I spent 5 years building a financial planning and optimization tool

https://projectionlab.com/
1•scubakid•12m ago•0 comments

Antennagate

https://en.wikipedia.org/wiki/IPhone_4
1•euler2100•13m ago•0 comments

A Man Behind AlphaGo Thinks AI Is Taking the Wrong Path

https://www.wired.com/story/david-silver-ai-ineffable-intelligence-reinforcement-learning/
1•brandonb•13m ago•0 comments

How Meetings Got Cheap and What That Cost Us

https://alexoppenheimer.substack.com/p/how-meetings-got-cheap-and-what-that
1•crescit_eundo•13m ago•0 comments

SHOW HN: Dev Notes++ is the companion app for indie devs to track bugs, ideas

https://apps.apple.com/ca/app/dev-notes/id6762881892
1•myrcbox•13m ago•0 comments

Developers, Beware of Intel Core Ultra Series 3 (a.k.a. Panther Lake) Processors

https://kerkour.com/intel-panther-lake-avx512
1•Keyb0ardWarri0r•16m ago•1 comments

Show HN: Prediction market analysis app layering LLMs with data APIs

https://apps.apple.com/us/app/over-under-market-intelligence/id6761954121
2•noplace1ikegone•16m ago•0 comments

PgBackRest is dead. Now what?

https://mydbanotebook.org/posts/pgbackrest-is-dead.-now-what/
1•lavrot•16m ago•0 comments

Anthropic created a test marketplace for agent-on-agent commerce

https://techcrunch.com/2026/04/25/anthropic-created-a-test-marketplace-for-agent-on-agent-commerce/
2•Element_•16m ago•0 comments

UnixPC – Why did it fail?

https://www.youtube.com/watch?v=_x3uxKfFI-0
1•vapparatus•18m ago•0 comments

Ten People Are Quietly Deciding How AI Agents Will Prove Who They Are

https://clawdrey.com/blog/ten-people-quietly-deciding-agentic-identity.html
1•mooreds•18m ago•0 comments

From "What the Fuzz?" To "All the Fuzz " (Keynote Fuzzing Workshop NDSS'26)

https://www.youtube.com/watch?v=In3kRAVVbzQ
1•gannimo•19m ago•0 comments