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

Comments

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

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

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

R2R: Navigating Divergent Reasoning with Small-Large Model Token Routing (2025)

https://arxiv.org/abs/2505.21600
1•davikr•42s ago•0 comments

Loss of animal insulin in Canada highlights how patients can be left behind

https://www.theglobeandmail.com/canada/article-discontinued-animal-insulin-canada/
1•lqueenan•2m ago•0 comments

Show HN: Blues Translations

https://www.youtube.com/playlist?list=PLlEinYcokIibbz-BEEO9jDAuK7Z_2uujh
1•ersinesen•2m ago•0 comments

Improving LLM Inference with Continuous Batching: Orca Through Tinyorca

https://www.junupark.xyz/blog/posts/improving-llm-inference-with-continuous-batching-orca-through...
1•immortal3•5m ago•0 comments

Show HN: DreamGraph MCP v5.1 – Autonomous Cognitive Layer for Software Systems

https://github.com/mmethodz/dreamgraph
1•mmethodz•8m ago•0 comments

ENIAC's Architects Wove Stories Through Computing

https://spectrum.ieee.org/eniac-80th-anniversary-weaving
1•Brajeshwar•11m ago•0 comments

The War Against Misinformation Is Over. The Lies Won

https://thewalrus.ca/the-war-against-misinformation-is-over-the-lies-won/
2•cainxinth•14m ago•0 comments

Half of planned US data center builds have been delayed or canceled

https://www.tomshardware.com/tech-industry/artificial-intelligence/half-of-planned-us-data-center...
1•Growtika•14m ago•1 comments

I connected Claude to my AI runtime – they invented a new language

1•seifbenayed1992•14m ago•0 comments

Show HN: TurboQuant-WASM – Google's vector quantization in the browser

https://github.com/teamchong/turboquant-wasm
2•teamchong•16m ago•0 comments

Show HN: First Native macOS SDK for NXP NTAG 424 DNA NFC Authentication

https://github.com/jetnoir/ntag424-macos
1•ethical•17m ago•0 comments

An up-to-date repository of real world design system UI components

https://component.gallery/
2•interweb•18m ago•0 comments

AO3 Is Exiting Open Beta

https://www.transformativeworks.org/ao3-is-exiting-open-beta/
1•t-3•18m ago•0 comments

IBM, Cisco fighting Colorado right to repair

https://www.gadgetreview.com/colorado-passed-the-worlds-strongest-repair-law-now-tech-giants-are-...
1•dryadin•19m ago•1 comments

Cryptography's "Five Worlds" [video]

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

Show HN: A tool to make AI show evidence inline

https://github.com/dvelton/eyeball
1•deevelton•20m ago•0 comments

Author of "Careless People" banned from saying anything negative about Meta

https://www.thetimes.com/uk/technology-uk/article/sarah-wynn-williams-careless-people-meta-nrffdfpmf
10•macleginn•20m ago•1 comments

Yes, Therapy Sessions Are Being Used to Train AI

https://www.thebignewsletter.com/p/yes-therapy-sessions-are-being-used
1•jyunwai•22m ago•0 comments

Getting to Know the Know-It-Alls: On a new history of pedantry

https://hedgehogreview.com/issues/humanism-in-a-posthumanist-age/articles/getting-to-know-the-kno...
1•cainxinth•22m ago•0 comments

OpenAI executive shuffle includes new role for COO

https://techcrunch.com/2026/04/03/openai-executive-shuffle-new-roles-coo-brad-lightcap-fidji-simo...
1•SilverElfin•23m ago•0 comments

New radio app in BETA –> Auralo

https://testflight.apple.com/join/mEtdrzZ5
1•marc0janssen•24m ago•1 comments

Weather Channel RetroCast Now Technical Breakdown

https://twitter.com/leemartin/status/2040428548964405402
1•leemartin•26m ago•1 comments

Landdown: Simple Sandboxing for Shell Scripts

https://git.sr.ht/~marcc/landdown
2•fanf2•27m ago•1 comments

Show HN: MyPDFBoy – Free PDF redaction that deletes the data

https://mypdfboy.com/
2•stanguc•27m ago•0 comments

Who was the actual target of the axios supply chain attack?

1•JohannMac•29m ago•0 comments

'The frontline is like Terminator': fighting robots give Ukraine hope in war

https://www.theguardian.com/science/2026/mar/16/a-molten-mushy-state-scientists-may-have-found-a-...
2•brkumar•32m ago•0 comments

Ice Age dice show early Native Americans may have understood probability

https://arstechnica.com/science/2026/04/ice-age-dice-show-early-native-americans-may-have-underst...
3•Brajeshwar•32m ago•0 comments

Boeing 777-9 Maximum Brake Energy Certification Testing [video]

https://www.youtube.com/watch?v=f2YQpDkqkn4
4•xnx•37m ago•2 comments

Apple's Spotlight Search Results Come with Engagement Metrics. No One Knew

https://www.buchodi.com/apples-spotlight-search-results-come-with-engagement-metrics-no-one-knew/
4•lmbbuchodi•41m ago•1 comments

Show HN: A simple iOS app that helps you give yourself some time"

https://apps.apple.com/tr/app/alnuo/id6761344069
3•sezginozgur•42m ago•0 comments