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?

App Defaults in March 2026

https://brainbaking.com/post/2026/03/app-defaults-march-2026/
1•Brajeshwar•1m ago•0 comments

Gorgeous DIY camera looks straight out of Severance

https://www.dpreview.com/articles/9055612016/saturnix-diy-camera-alien-sci-fi-raspberry-pi
1•swq115•3m ago•0 comments

MXFP8 GEMM: Up to 99% of cuBLAS Performance Using CUDA and PTX

https://danielvegamyhre.github.io/2026/03/29/mxfp8-gemm.html
1•matt_d•8m ago•0 comments

We Need Servers – Lots of Servers

https://www.nextplatform.com/compute/2026/03/26/we-need-servers-lots-of-servers/5211678
1•jonbaer•11m ago•0 comments

Everyone Hates iPhone Autocorrect. An Update Fixes One of the Biggest Problems

https://www.wsj.com/tech/apple-iphone-autocorrect-update-7659d618
1•RyanShook•12m ago•1 comments

Searching for the Perfect Sync

https://sunshine-jones.com/searching-for-the-perfect-sync/
1•lightyrs•15m ago•1 comments

Volvo Infotainment Glitches Spark Class Action Lawsuit

https://www.autoblog.com/news/volvo-infotainment-glitches-spark-major-class-action-lawsuit
1•carefree-bob•20m ago•1 comments

Epic Lays Off Employee with Terminal Brain Cancer Who Cant Get LifeInsurance Now

https://kotaku.com/epic-games-layoffs-fortnite-brain-cancer-2000682941
1•Jimmc414•20m ago•1 comments

Show HN: React-Rewrite – Figma for localhost that directly edits your codebase

https://github.com/donghaxkim/react-rewrite
1•donghaxkim•23m ago•0 comments

The Socially Acceptable Use of AI in Business

https://kellblog.com/2026/03/29/on-the-socially-acceptable-use-of-ai-in-business/
1•doppp•26m ago•0 comments

AI-powered migrations from Postgres to ClickHouse

https://clickhouse.com/blog/ai-powered-migraiton-from-postgres-to-clickhouse-with-fiveonefour
1•tosh•27m ago•0 comments

SparkID: Fast, sortable, compact unique IDs

https://www.youssefm.com/posts/sparkid
1•pinkbeanz•28m ago•0 comments

GPT 5.4 sucks at front end

1•apoorvdarshan•30m ago•0 comments

Portable MicroNeedle Fractional RF Machine

https://www.sanhelasers.com/products/portable-fractional-microneedle-rf-machine/
1•SANHE•38m ago•0 comments

The Sudden Fall of OpenAI's Most Hyped Product Since ChatGPT

https://www.wsj.com/tech/ai/the-sudden-fall-of-openais-most-hyped-product-since-chatgpt-64c730c9
11•fortran77•39m ago•3 comments

Pretext

https://simonwillison.net/2026/Mar/29/pretext/
1•lumpa•40m ago•0 comments

How to Recognise Kentucky on a Map

https://mammothmemory.net/geography/usa/states-of-america/how-to-remember-where-the-american-stat...
2•kamaraju•40m ago•0 comments

Training the Idea Muscle

https://sfalexandria.com/posts/rileys-ideas/
3•nanfinitum•44m ago•0 comments

PyTorch Autograd and Mutation

https://blog.ezyang.com/2026/03/autograd-and-mutation/
2•matt_d•48m ago•0 comments

Why Don't You Use String Views Instead of Passing Std:Wstring by Const&

https://giodicanio.com/2024/05/14/why-dont-you-use-string-views-like-std-wstring_view-instead-of-...
2•Orochikaku•50m ago•0 comments

Agentic Hive – Manage Claude Code and Codex Tmux Sessions from a Browser

https://github.com/wisbric/agentic-hive
2•sscharlott•52m ago•0 comments

RAM Bubble Popping?

https://twitter.com/aakashgupta/status/2038077441911275594
1•roganp•57m ago•0 comments

How We Rewrote 130K Lines from React to Svelte in Two Weeks

https://strawberrybrowser.com/blog/react-to-svelte
3•thunderbong•59m ago•0 comments

Show HN: Real-time visualization of Claude Code agent orchestration

https://github.com/patoles/agent-flow
2•daco•1h ago•0 comments

Will This 'Miracle' Battery Change Your Mind About EVs?

https://www.wsj.com/lifestyle/cars/donut-lab-solid-state-battery-ssb-ev-4e6ad966
2•helterskelter•1h ago•2 comments

Seeing Trump Clearly

https://www.craigmurray.org.uk/archives/2026/03/seeing-trump-clearly/
2•curmudgeon22•1h ago•2 comments

We audited our own AI-written codebase. 13 issues, 5 categories

https://koalr.com/blog/ai-codebase-audit
1•Andrew_McCarron•1h ago•0 comments

GrapheneOS Refuses Age Verification, May Exit Regions That Enforce It

https://itsfoss.com/news/grapheneos-refuses-age-verification/
2•tuananh•1h ago•0 comments

How Ants Map Social Identity

https://neurosciencenews.com/ant-social-recognition-behavioral-30359/
1•bookofjoe•1h ago•0 comments

AI startups are eating the venture industry and the returns, so far, are good

https://techcrunch.com/2026/03/20/ai-startups-are-eating-the-venture-industry-and-the-returns-so-...
1•gmays•1h ago•2 comments