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

Comments

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

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

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

The Snapshot Paradox

https://docs.eventsourcingdb.io/blog/2026/03/02/the-snapshot-paradox/
1•goloroden•2m ago•0 comments

Daily News Now tops search results for local news podcasts with AI content

https://indicator.media/p/this-ai-generated-podcast-network-publishes-11-000-episodes-a-day-it-s-...
1•speckx•2m ago•0 comments

The design process is fundamentally changing

https://www.youtube.com/watch?v=eh8bcBIAAFo
1•vincirufus•5m ago•0 comments

Show HN: Nabla – Pure Rust GPU math engine, 7.5× faster matmul than PyTorch

https://github.com/fumishiki/nabla
1•fumishiki•5m ago•1 comments

Minecraft Server Setup Tool – An Interactive CLI for Scaffolding and Management

https://marshy-dew-d95.notion.site/Minecraft-Server-Setup-Tool-305cfa0d34eb8075bd91faba7f9e3ef7
1•Stephcraft•5m ago•1 comments

How to Solve the Rubik's Cube

https://www.cantorsparadise.com/how-to-solve-the-rubiks-cube-8d5d3f8f3d80
1•tzury•6m ago•0 comments

Show HN: My ADHD girlfriend has 50 work tabs open, so I built ⌘J

https://daysift.com/
1•fvincenti•6m ago•0 comments

Show HN: Umbra is an ESR fork that doesn't spy on you

https://github.com/openconstruct/umbra/releases
1•jerrimu•6m ago•0 comments

I forced AI to reason like a senior engineer

3•infinri•7m ago•0 comments

Runtime validation in Python type annotations

https://blog.natfu.be/validation-in-type-annotations/
1•NeutralForest•8m ago•0 comments

Show HN: PraxisJS – signal-driven front end framework and AI experiment

https://praxisjs.org/
2•mateusgx•9m ago•0 comments

Social Cache Busting

https://www.autodidacts.io/social-cache-busting/
1•Curiositry•10m ago•0 comments

Perplexity Cannot Always Tell Right from Wrong

https://ianbarber.blog/2026/02/24/perplexed/
2•matt_d•10m ago•0 comments

Show HN: Tensor.cx – Turn your documents into AI search in 30 seconds

https://tensor.cx/
1•serkanaltuntas•11m ago•0 comments

OpenAl reveals more details about its agreement with The Pentagon

https://techcrunch.com/2026/03/01/openai-shares-more-details-about-its-agreement-with-the-pentagon/
1•amichae2•11m ago•0 comments

Why does C have the best file API

https://maurycyz.com/misc/c_files/
1•maurycyz•11m ago•0 comments

AWS Middle East Central Down, apparently struck in war

https://health.aws.amazon.com/health/status
4•earthboundkid•12m ago•0 comments

Show HN: Sophia – Review Change Requests Instead of Pull Requests

https://github.com/Kevandrew/sophia
1•VanAndell•13m ago•0 comments

A new account made over $515,000 betting on the U.S. strike against Iran

https://xcancel.com/cabsav456/status/2027937130995921119
8•doener•13m ago•5 comments

Tsink – Embedded Time-Series Database for Rust

https://saturnine.cc/tsink/
1•todsacerdoti•15m ago•0 comments

Solving the Good Will Hunting Problem

https://www.scientificamerican.com/article/why-mathematicians-hate-good-will-hunting/
2•nhatcher•18m ago•0 comments

Traction Is Often a Lie

https://16vc.substack.com/p/traction-is-often-a-lie
1•Sridhara1•18m ago•0 comments

Mahmoud Ahmadinejad, Iran's ex-president, killed in Israeli airstrikes

https://nypost.com/2026/03/01/world-news/mahmoud-ahmadinejad-irans-ex-president-killed-in-israeli...
2•romanhn•18m ago•0 comments

Inter-generational Tool Knowledge for your Agents

https://indiestack.fly.dev/
2•Oatcake21•21m ago•3 comments

Star Trek Comm Badge for Home Assistant Voice Control

https://www.instructables.com/Star-Trek-Comm-Badge-for-Home-Assistant-Voice-Cont/
2•rdamico•22m ago•0 comments

Show HN: Imagedojo.ai – Blind arena for Google, OpenAI, and xAI image generators

https://imagedojo.ai/
1•vtail•23m ago•3 comments

The Panopticon Is Here: How the US Government Built an AI Superweapon

https://matt728243.substack.com/p/the-panopticon-is-here-how-the-us
1•resters•25m ago•0 comments

Let's talk about the humanoid robot in the room

https://matthiasplappert.com/blog/2026/humanoid-robot-in-the-room/
1•sherlock_h•26m ago•0 comments

Ask HN: Where do you see yourself in 5 years?

1•eimrine•26m ago•0 comments

Ganak: The Making of a Versatile, High Performance Model Counter

https://www.msoos.org/2026/03/ganak-the-making-of-a-versatile-high-performance-model-counter/
1•matt_d•27m ago•0 comments