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?

Ask HN: How to think in terms of parallel Claude agents

2•gndp•1m ago•0 comments

Why Maine's Governor Just Killed a Pioneering Data Center Moratorium

https://www.motherjones.com/politics/2026/04/maine-data-center-janet-mills-veto/
1•cdrnsf•3m ago•0 comments

Sense, local code intelligence for AI coding agents

https://luuuc.github.io/sense/
1•luuuc•3m ago•0 comments

I found an old telephone and made it control Spotify

https://natya.is-a.dev/the-beetel/
1•birdculture•3m ago•0 comments

FSF Position on "Ethical" AI

https://www.fsf.org/blogs/licensing/rail-are-nonfree-and-unethical
1•j_m_b•4m ago•0 comments

The AI Compute Crunch Is Here (and It's Affecting the Economy)

https://www.404media.co/the-ai-compute-crunch-is-here-and-its-affecting-the-entire-economy/
1•Brajeshwar•4m ago•0 comments

Scientists are worried about Atlantic Meridional Overturning Circulation slowing

https://www.cbc.ca/news/science/amoc-slowdown-9.7176387
2•pseudolus•4m ago•0 comments

"Wealth inflation" has led to "elite overproduction"

https://greyenlightenment.com/2026/02/07/wealth-inflation-leads-to-elite-overproduction/
2•paulpauper•6m ago•0 comments

Claude OAuth

https://developer.puter.com/tutorials/claude-oauth/
1•ent101•6m ago•0 comments

Ada Palmer's "Inventing the Renaissance"

https://pluralistic.net/2026/04/25/machiavellian/
1•hn_acker•9m ago•0 comments

Chatnik: LLM Host in the Shell

https://rakuforprediction.wordpress.com/2026/04/25/chatnik-llm-host-in-the-shell-part-1-first-exa...
2•librasteve•9m ago•0 comments

Tabularis: A lightweight, cross-platform database client for developers

https://github.com/TabularisDB/tabularis
1•thunderbong•11m ago•0 comments

The implementation of Carrier Pigeon Internet Protocol RFC1149 25 years later

https://bsdly.blogspot.com/2026/04/the-implementation-of-carrier-pigeon.html
1•zdw•11m ago•0 comments

A Brain Dump of What I Worked on for Uncharted 4 (2016)

https://allenchou.net/2016/05/a-brain-dump-of-what-i-worked-on-for-uncharted-4/
1•downbad_•14m ago•1 comments

I built a deterministic 10k-node VRP solver on a $100 phone

1•CTSuwan•16m ago•0 comments

Hokusai and Tesselations

https://dl.ndl.go.jp/pid/1899550/1/11/
4•srean•16m ago•0 comments

Clean energy pushes fossil-fuel power into reverse for 'first time ever'

https://www.carbonbrief.org/clean-energy-pushes-fossil-fuel-power-into-reverse-for-first-time-ever/
1•xbmcuser•16m ago•0 comments

Simulacrum of Knowledge Work

https://blog.happyfellow.dev/simulacrum-of-knowledge-work/
2•thehappyfellow•16m ago•0 comments

Biometric Identification in a Vehicle Environment

https://patents.google.com/patent/US20250104469A1/en
1•LostMyLogin•20m ago•0 comments

GPT-5.5 is a biased evaluator: authorship and order effects

https://blog.valmont.dev/posts/gpt-5-5-is-a-biased-evaluator-authorship-and-order-effects/
1•cool-pear•21m ago•0 comments

The Quiltmaker's Gift (2000)

https://archive.org/details/brmqltm
1•xeonmc•24m ago•0 comments

Show HN: Readox, playlist-style read aloud extension for articles, PDFs and docs

https://chromewebstore.google.com/detail/readox-–-read-aloud-text/daipfoiakipdebhhklfongdfffepcffk
2•siegers•28m ago•0 comments

Adding Compilation Metadata to Binaries to Make Disassembly Decidable

https://arxiv.org/abs/2604.19628
2•matt_d•30m ago•0 comments

How to Attend the Altman vs. Musk Trial

1•major4x•31m ago•0 comments

WebTUI: Modular CSS Library that brings the beauty of Terminal UI to the browser

https://github.com/webtui/webtui
1•Lwrless•35m ago•0 comments

Show HN: HyperFrames – OSS Agentic HTML Video Framework for Agents

https://miguel07code.dev/writing/hyperframes
2•Miguel07Code•36m ago•1 comments

Framework Laptop 13 Pro: Major Upgrades and Linux Front and Center

https://boilingsteam.com/framework-laptop-13-pro-announced/
9•ekianjo•43m ago•0 comments

How Elon Musk Used SpaceX to Benefit Himself and His Businesses

https://www.nytimes.com/2026/04/24/technology/elon-musk-spacex-loans.html
5•1vuio0pswjnm7•43m ago•0 comments

Starting Sandboxes in Parallel

https://www.tensorlake.ai/blog/starting-1000-sandboxes-in-parallel?trk=feed_main-feed-card_feed-a...
1•gk1•44m ago•0 comments

M5Stack CardputerZero Powered by Raspberry Pi CM0 Launching on Kickstarter Soon

https://www.hackster.io/news/m5stack-unveils-the-cardputerzero-an-all-in-one-pocket-sized-gadget-...
1•Lwrless•45m ago•0 comments