frontpage.
newsnewestaskshowjobs

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?

You're Not an Extension of Anyone's Self

https://prgrmmr.org/posts/not-an-extension-of-anyones-self/
1•speckx•30s ago•0 comments

Show HN: Nobel Prizes explained six ways, with a public fix log

https://nobelprize.swapniltamse.com/
2•swapnil-tamse•3m ago•0 comments

Microsoft Quicksand

https://github.com/microsoft/quicksand
2•tosh•7m ago•0 comments

AI Institute for Human-AI Cooperation

https://haicinstitute.org/
1•jawns•7m ago•0 comments

How Does Yamamoto Do What He Does? Toyota-Like Mechanics

https://robbinsathletics.com/yamamoto-pitching-mechanics/
1•robbinsathletic•9m ago•0 comments

Intelligence Explosion

3•silexia•10m ago•2 comments

Secret protection must scale with software: <2ms classifier in the push path

https://github.blog/ai-and-ml/github-copilot/secret-protection-must-scale-with-software/
2•havens•11m ago•0 comments

Thinking Will Become a Hobby

https://www.spinellis.gr/blog/20261008/?hn261008
1•DSpinellis•11m ago•0 comments

Strands Box: another open source sandbox

https://github.com/strands-agents/box/
3•shenli3514•12m ago•0 comments

CrowdStrike finds possible bank hacker's CV among exposed AI logs

https://www.theregister.com/cyber-crime/2026/10/08/crowdstrike-finds-possible-bank-hackers-cv-amo...
2•sbulaev•12m ago•0 comments

Broke Prod

2•cloaky233•12m ago•1 comments

Tigrisdata/objgit: Git backed by object storage

https://github.com/tigrisdata/objgit
3•corvad•14m ago•0 comments

Bloom Pod

https://bloom.inc/pages/pod
1•whatsreal•14m ago•0 comments

Show HN: Ember – your day never goes as planned, your calendar should adjust

https://demo.emberflow.space/
2•hhhkm•15m ago•1 comments

4-hour battery storage is cheaper to install than gas turbines all across globe

https://www.solarpowerworldonline.com/2026/10/4-hour-battery-storage-is-cheaper-to-install-than-g...
4•01-_-•15m ago•1 comments

German search engine ditches Mistral, bets on Chinese open-source AI

https://www.politico.eu/article/germany-ecosia-search-engine-mistral-china-open-source-ai/
4•everybodyknows•15m ago•0 comments

The Fastest Way to Be Done

https://iamstelios.com/blog/clean-the-kitchen/
1•i8s•15m ago•0 comments

Ario: Decentralized AI Inference and Systemic Transparency Architecture

https://zenodo.org/records/23132717
1•SepehrGhanbari•17m ago•0 comments

Apps that run on your Claude or ChatGPT plan

https://bringyourownsub.com/
2•saimunshahee•17m ago•0 comments

Healthcare for Seniors

https://homehealthcarechicago.care/
1•MWApex•19m ago•0 comments

How to Engineer Flowers [audio]

https://www.asimov.press/p/flowers
1•mailyk•22m ago•0 comments

They just merged my PR for the bound on the integer multiplication problem

https://github.com/CrocSwap/integer-mult-bounds/pull/37
2•GPUboy•22m ago•1 comments

Ask HN: Thoughts on OSC 7501?

2•paaloeye•24m ago•1 comments

Show HN: Convertix – Fast browser-based image to text extractor

https://convertix-fast-imager-co.blogspot.com/p/convertix-extract-text-from-image.html
2•tanjirods•25m ago•0 comments

Cheaters and Whistleblowers in the Agent Swarm

https://institute.deepmind.com/essays/cheaters-and-whistleblowers-in-the-agent-swarm/
4•linkregister•25m ago•0 comments

New gTLD Application for .lan

https://newgtldprogram-aps.icann.org/applications/CD2694T-T26351/summary
33•mzajc•27m ago•21 comments

Introducing Spotify Technology

https://technology.spotify.com/
3•leohonexus•28m ago•0 comments

A peer-to-peer computer management framework

https://clan.lol/
2•anavid7•31m ago•0 comments

HawkEye 360 – the space RF modality imagery can't replace, down 38% since IPO

https://beyondhorizonforesight.substack.com/p/hawkeye-360-record-revenue-a-stock
3•beyondhorizonfs•31m ago•0 comments

Trump administration is suspending Microsoft from a green card program

https://apnews.com/article/h1b-visa-program-vance-microsoft-e7b3a407f822702b269ee277d21343ea
5•ndsipa_pomu•32m ago•1 comments