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

Comments

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

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

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

Apple Plans M5-Based Private Cloud Compute Architecture for Apple Intelligence

https://9to5mac.com/2026/02/17/apple-plans-m5-based-private-cloud-compute-architecture-for-apple-...
1•alwillis•49s ago•0 comments

Deterministic Core, Agentic Shell

https://blog.davemo.com/posts/2026-02-14-deterministic-core-agentic-shell.html
1•amateurhuman•52s ago•0 comments

CalyxOS puts privacy and security into the hands of everyday users

https://calyxos.org
1•pretext•1m ago•0 comments

ChatGPT's Translation Skills Parallel Most Human Translators

https://spectrum.ieee.org/chatgpt-translate-skills-human-comparison
1•pseudolus•2m ago•0 comments

The Broken Equilibrium

https://stackgen.com/blog/the-broken-equilibrium
1•darccio•2m ago•0 comments

Don't Trip[Wire] Yourself: Testing Error Recovery in Zig

https://mitchellh.com/writing/tripwire
1•PaulHoule•3m ago•0 comments

What evidence format helps technical diligence decisions move faster?

https://sot-navigator.com/
1•mthdadalto•3m ago•1 comments

phyz: Differentiable Physics Engine for Rust

https://phyz.dev
2•ecto•3m ago•0 comments

Why I don't think AI is a bubble

https://honnibal.dev/blog/ai-bubble
1•syllogism•4m ago•0 comments

AI Panic Hits Trucking, Transport Stocks

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-02-12-2026/card/ai-panic-hi...
2•mattas•4m ago•0 comments

Paper, Scissors, Gravity

https://campedersen.com/phyz
1•ecto•4m ago•0 comments

Opinion: The Finance Industry Is a Grift. Let's Start Treating It That Way

https://www.nytimes.com/2026/02/06/opinion/capitalism-industry-financialization.html
3•cs702•5m ago•0 comments

You probably can't trust your password manager if it's compromised

https://www.theregister.com/2026/02/16/password_managers/
1•maguszin•5m ago•0 comments

Show HN: Lightweight tmux session and project manager written in Bash

https://github.com/rgcr/t-mux-manager
1•rgcr•5m ago•0 comments

Student

1•omarbouaziz•5m ago•0 comments

Gave Claude photographic memory for $0.0002/screenshot

https://github.com/deusXmachina-dev/memorylane
2•jzapletal•5m ago•1 comments

After Noam

https://justinpodur.substack.com/p/after-noam
1•hackandthink•5m ago•0 comments

IBM tripling down on hiring new grads

https://techcrunch.com/2026/02/12/ibm-will-hire-your-entry-level-talent-in-the-age-of-ai/
1•alirohde•6m ago•1 comments

Focus Better with a Dressing Table with Mirror and Lights

https://dreamhomestore.co.uk/collections/dressing-tables
1•millie2conroy•6m ago•1 comments

A C compiler in TypeScript, Written by Claude

https://github.com/Rajeev-K/c-compiler
1•rajeev-k•7m ago•0 comments

Show HN: Quackback – Open-source customer feedback your AI agent can triage

https://github.com/QuackbackIO/quackback
1•mortondev•8m ago•1 comments

Three Sketches of ASL-4 Safety Case Components

https://alignment.anthropic.com/2024/safety-cases/
1•consumer451•10m ago•0 comments

Use skills smarter with SkillDock's CLI manager

https://skilldock.io/skill/skilldock/skilldock-cli-usage
1•eugeneevstafev•11m ago•0 comments

Index, Count, Offset, Size

https://tigerbeetle.com/blog/2026-02-16-index-count-offset-size/
2•cyndunlop•11m ago•0 comments

I taught LLMs to play Magic: The Gathering against each other

https://mage-bench.com/
1•GregorStocks•11m ago•1 comments

Gentoo Takes the First Step to Ditch Microsoft Copilot-Infested GitHub

https://itsfoss.com/news/gentoo-github-switch-begins/
1•abdelhousni•11m ago•0 comments

I've Created Modular Open Source Shelters

https://thios.co/en/
1•pete-thios•12m ago•1 comments

StewReads – Turn Claude chats into Kindle ebooks

https://ankitgupta.dev/blog/building-stewreads
2•rajma•12m ago•1 comments

The Cloud Above the Clouds

https://subreply.com/reply/30957
1•lucianmarin•14m ago•0 comments

Metadata Is Not Understanding: Knowledge Graph Version Control for AI Code

https://hub.controlvector.io/blog/metadata-is-not-understanding
2•jwschmo218•15m ago•1 comments