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•8mo ago
It reminds me more of flat buffers though. Does protobuf also have zero allocation (beyond initial ingestion) and no pointer jumps?
cstrahan•8mo ago
No, one example of why being variable sized integers.

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

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

Shark attack truth: Why experts won't admit population boom

https://www.news.com.au/technology/science/animals/shark-attack-truth-why-experts-wont-admit-popu...
1•SirLJ•9m ago•0 comments

The 2026 Linux Summer Games [video]

https://www.youtube.com/watch?v=URbW3j_GYKg
1•zdw•11m ago•0 comments

Yat Another HTTP Proxy Analyzer

https://github.com/jp/Hermes-Proxy
1•gros_pigeon•15m ago•1 comments

ICE flew 2-year-old to Texas despite court order to release her from custody

https://kstp.com/kstp-news/top-news/ice-flew-2-year-old-to-texas-despite-court-order-to-release-h...
5•therobots927•18m ago•0 comments

Nvidia and Linux, a Question

1•mashally•19m ago•1 comments

Europeans Can Turn 2 Car Seats into 4 Child Seats, but It's Illegal in America

https://www.theautopian.com/why-europeans-can-convert-two-car-seats-into-four-child-seats-but-its...
1•josephcsible•20m ago•0 comments

Need Feedback for Idea

1•molozey•21m ago•0 comments

"People are going to stop and ask you, 'How can I help?' Let them."

https://www.npr.org/2026/01/20/nx-s1-5683170/let-them-the-small-bit-of-advice-that-made-a-big-dif...
1•NaOH•26m ago•0 comments

NASA about to send people to the moon – in a spacecraft not everyone thinks safe

https://www.cnn.com/2026/01/23/science/artemis-2-orion-capsule-heat-shield
2•everybodyknows•30m ago•0 comments

Have We Been Wrong About Language for 70 Years? New Study Challenges Theory

https://scitechdaily.com/have-we-been-wrong-about-language-for-70-years-new-study-challenges-long...
1•mikhael•34m ago•0 comments

Health insurance execs shift blame for costly, confusing health care system

https://www.statnews.com/2026/01/22/health-insurance-execs-blame-high-costs-hospitals-doctors-pha...
2•brandonb•43m ago•0 comments

Get Shit Done

https://github.com/glittercowboy/get-shit-done
1•davidkimai•46m ago•0 comments

Fuggerei

https://www.fugger.de/en/fuggerei
1•thunderbong•46m ago•0 comments

Ask HN: How are you enforcing permissions for AI agent tool calls in production?

1•amjadfatmi1•47m ago•0 comments

Caroline Ellison Former Alameda CEO Released from Prison After 440 Days

https://www.sec.gov/enforcement-litigation/litigation-releases/lr-26450
26•sizzle•47m ago•3 comments

The Epic Survey of Mason and Dixon

https://www.nspe.org/career-growth/pe-magazine/march-2014/the-epic-survey-mason-dixon
1•MrBuddyCasino•48m ago•0 comments

Agency Recruiters can sell retained searches

https://talnet.co/posts/how-agency-recruiters-can-sell-retained-searches-20260242311174
1•bouia•54m ago•0 comments

Turn any developer into a low performer

https://pipify.lovable.app/
1•thedeep_mind•56m ago•1 comments

Agents.md as a Dark Signal

https://joshmock.com/post/2026-agents-md-as-a-dark-signal/
1•vinhnx•58m ago•0 comments

December in Servo

https://servo.org/blog/2026/01/23/december-in-servo/
1•todsacerdoti•58m ago•0 comments

Ditching Flickr for Immich, Protecting My Kids

https://ericcaron.com/securing-memories-upgrading-privacy/
1•ecaron•58m ago•0 comments

A new direction for students in an AI world: Prosper, prepare, protect

https://www.brookings.edu/articles/a-new-direction-for-students-in-an-ai-world-prosper-prepare-pr...
1•gmays•1h ago•0 comments

AI can 10x developers in creating tech debt

https://stackoverflow.blog/2026/01/23/ai-can-10x-developers-in-creating-tech-debt/
5•thebeardisred•1h ago•2 comments

Why a God Can't Play a Link to the Past [video]

https://www.youtube.com/watch?v=nQ6e2_QKnmg
1•todsacerdoti•1h ago•0 comments

Show HN: A simple algorithm for shifting solid-color image backgrounds (WASM)

https://github.com/ufoym/bgcolor-shift
4•ufoym•1h ago•0 comments

Customer growth is slow. Who do I talk to?

1•alance•1h ago•2 comments

The End of Discovery?

https://write.as/thoughts-on-nanofactories/the-end-of-discovery
1•soundworlds•1h ago•0 comments

Show HN: Flux, A Python-like language in Rust to solve ML orchestration overhead

https://github.com/cmc-labo/flux
3•hpscript•1h ago•2 comments

Python's `json.tool` Utility

https://docs.python.org/3/library/json.html
1•dvrp•1h ago•0 comments

AI agent generates rebuttals for papers

https://arxiv.org/abs/2601.14171
1•meander_water•1h ago•0 comments