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?

RetroWEB 2.0: a forwarding proxy for old browsers

https://bjornsblog.nl/retroweb-now-works-as-a-real-web-proxy/
1•O1111OOO•1m ago•0 comments

The Psychology of Letting Go

https://www.autodidacts.io/the-psychology-of-letting-go/
1•Curiositry•5m ago•0 comments

Staff at the US center for AI safety are reporting to the White House

https://apnews.com/article/ai-safety-trump-white-house-d3318eb2cf011df53e9ddb3e03d25f13
1•sshah03•7m ago•0 comments

Jensen Huang Betrayed Nvidia, Not Just His Family

https://daringfireball.net/linked/2026/11/08/huang-betrayed-nvidia
2•JumpCrisscross•8m ago•1 comments

Nvidia launches investigation into CEO's alleged relationship with Chinese spy

https://www.npr.org/2026/11/08/nx-s1-6034036/nvidia-launches-investigation-into-ceos-alleged-rela...
1•berkeleyjunk•9m ago•0 comments

Replacing corporations with openly operated ERP

https://gradienterp.cloud/
1•mxfactorial•10m ago•0 comments

Artificial Analysis Decision Index v2

https://artificialanalysis.ai/articles/decision-index-v2
1•hjun1052•19m ago•0 comments

Parse_number() as a SQLite extension: C vs. Rust

https://simonwillison.net/2026/Nov/8/sqlite-parse-number-c-vs-rust/
1•sshah03•22m ago•0 comments

Ian Murdock – And we learn about Debian

https://larrymurdock.substack.com/p/ian-murdock-72d
3•thesuperbigfrog•24m ago•0 comments

Show HN: Airlock – Policy-as-code for fleets of AI coding agents

https://airlock.lunareng.com/docs
1•lovetocode•27m ago•0 comments

Show HN: Replay your Claude Code logs to count parallel session collisions

https://github.com/dooly6276/claude-bulkhead
2•dooly6276•31m ago•0 comments

Learning Abstractions: The Next Frontier for AI

https://twitter.com/jmugan/status/2119593410268999700
1•jmugan•35m ago•0 comments

Show HN: Midgarth Quest. Browser-Playable Mmorpg Written by AI

https://midgarth.quest/
2•anacrolix•36m ago•0 comments

Don't make me a meat proxy

https://uptownhr.com/blog/dont-make-me-a-meat-proxy/
1•uptownhr•36m ago•0 comments

CCTV captures streets shaking as 5.7-magnitude earthquake hits Japan

https://www.aljazeera.com/video/newsfeed/2026/11/8/cctv-captures-streets-shaking-as-5-7-magnitude...
2•mikhael•42m ago•0 comments

China's Top Spy Agency Recruited Woman Who Targeted Jensen Huang

https://www.nytimes.com/2026/11/06/us/politics/chinese-spy-agency-nvidia-jensen-huang.html
3•bookofjoe•42m ago•1 comments

Vibecoding in Plato's Cave (AI, Music Tech, and Star Trek) [video]

https://www.youtube.com/watch?v=4NExTWq_wvk
2•prollings•43m ago•0 comments

LaFranceenDébat: An open-source platform for peaceful,source-based public debate

https://lafranceendebat.fr/
1•wbelbeche•44m ago•0 comments

Starlink is in 223 countries, but in India its IP addresses sit almost unused

https://ipinfo.io/blog/starlink-223-countries
3•emot•44m ago•0 comments

Blacksmith.sh: security incident affecting CI job logs

https://status.blacksmith.sh/cmw5fokyu013w13mrtneqjv5l
2•tjwds•45m ago•0 comments

The Commanding Heights: Where AI will create wealth [pdf]

https://commanding-heights.com/commanding-heights.pdf
2•CharlesW•45m ago•0 comments

Superscore Remix – highly accurate character replacements and lip sync

https://www.superscore.ai/gallery/94a6697b2c1442fcb20b08c473dbe0fd534dca6ec0e847878275b5d5551fba54
1•chicken_little_•49m ago•0 comments

Open Source AI Research Collaboration Platform

https://station-house.net/
1•stationhouse•1h ago•1 comments

I am building Threadz. Human first AI writing app

2•shoebilyas_hanz•1h ago•1 comments

Show HN: TabVault – Export Chrome Tab Groups to Obsidian as Markdown

https://github.com/aryamantepal/tabvault
1•aryamantepal•1h ago•0 comments

Tinker – a lightweight WoW addon manager

https://tinker.lukeed.com/
1•lukeed•1h ago•1 comments

Ask HN: What do you use to get the latest technical AI news?

1•tini-giang•1h ago•1 comments

Open Source Web Operating System Terminal Velocity

https://republicka.life/terminal-velocity.html
1•BardPresident•1h ago•0 comments

Turn prompts into images and editable SVGs with GPT Image 2.6

https://reapi.ai/models/gpt-image-2-6
1•andrew06124•1h ago•0 comments

Unlocking any car from X brand in most of the world

https://shubs.io/unlocking-any-car-from-x-brand-in-most-of-the-world/
27•infosecau•1h ago•13 comments