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 Age of Eerie A.I. Political Ads Is Here

https://www.nytimes.com/2026/03/13/us/politics/ai-ads-campaign-deepfake.html
1•thm•2m ago•0 comments

Sunsetting Code with Me

https://blog.jetbrains.com/platform/2026/03/sunsetting-code-with-me/
1•ingve•3m ago•0 comments

Show HN: HiLo – A word guessing game based on binary search

https://hilogame.cc
1•ludovicianul•4m ago•0 comments

How I use crit to build crit

https://tomasztomczyk.com/blog/2026/how-i-use-crit-to-build-crit/
1•tomasz-tomczyk•5m ago•0 comments

Ask HN: AI Agents vs. Gateways vs. Harnesses

1•snthpy•6m ago•0 comments

Hackmate – a side project I built last year to help builders find collaborators

2•dfordp11•7m ago•0 comments

Horizon redress still a mess, MPs say – and Fujitsu hasn't paid a penny

https://www.theregister.com/2026/03/16/horizon_redress_still_a_mess/
1•Brajeshwar•7m ago•0 comments

Alaska sues GoFundMe, others over unauthorized charity pages

https://www.alaskasnewssource.com/2026/03/11/alaska-sues-gofundme-paypal-others-over-thousands-un...
1•gwbas1c•7m ago•0 comments

Show HN: DataCia – The database client that lets you focus

https://www.datacia.app/
1•rwiteshbera•8m ago•0 comments

Ogham MCP – Shared memory for AI coding agents, backed by Postgres

https://ogham-mcp.dev/
1•kevinburns•8m ago•0 comments

Home Care

https://dheeren.wuaze.com
1•peregrineturbo•9m ago•0 comments

Testing Universal Poster v10

1•Bobbymai•9m ago•0 comments

Show HN: HighSNR – Cut length and noise from your LLM context

https://www.high-snr.com/
2•gskm•9m ago•0 comments

The Self-Deceived Liar

https://secondvoice.substack.com/p/the-self-deceived-liar
1•jger15•11m ago•0 comments

Project Canard: $96 3D-Printed guided MANPADS rocket with MPU6050 and ESP32

https://twitter.com/chiefofautism/status/2033075790368108984
1•MrBuddyCasino•13m ago•0 comments

Agile ain't as bad when done by clankers

https://github.com/sebs/rewelo
1•therebase•16m ago•1 comments

Paul R Ehrlich has died

https://www.nytimes.com/2026/03/15/books/paul-r-ehrlich-dead.html
1•LaserDiscMan•19m ago•0 comments

Construct of the Day

https://constructofthe.day
1•jasoncartwright•21m ago•0 comments

I Simulated 38,612 Countryle Games to Find the Best Strategy

https://stoffregen.io/posts/countryle/
1•st0ffregen•22m ago•0 comments

Show HN: AI agent autonomously used BoTorch to predict CFPB enforcement actions

https://github.com/sign-of-fourier/cfpb-complaint-enforcement
1•mshipman•24m ago•0 comments

Corruption erodes social trust more in democracies than in autocracies

https://www.frontiersin.org/journals/political-science/articles/10.3389/fpos.2026.1779810/full
2•PaulHoule•24m ago•0 comments

I Love FreeBSD

https://it-notes.dragas.net/2026/03/16/why-i-love-freebsd/
2•enz•26m ago•1 comments

West Sussex's Oracle rollout pushed back again as costs balloon 15 times

https://www.theregister.com/2026/03/16/west_sussex_oracle/
2•Brajeshwar•28m ago•0 comments

AI Unicorn ElevenLabs Is Making a $1B Effort to Restore 1M Voices

https://www.forbes.com/sites/zoyahasan/2026/03/13/ai-unicorn-elevenlabs-is-making-a-1-billion-eff...
1•stared•31m ago•0 comments

Operation Hormuz (1989)

https://www.lemon64.com/review/operation-hormuz/888
1•nurettin•32m ago•1 comments

Open source Chrome extension to customize Veesion alert notification sounds

https://github.com/MarcuC/custom-veesion-notifications-sound
1•molly997•32m ago•1 comments

Scientists discover a surprising way to quiet the anxious mind (2025)

https://www.sciencedaily.com/releases/2025/10/251027023816.htm
12•carlos-menezes•33m ago•3 comments

20 Years of Amazon S3

https://aws.amazon.com/blogs/aws/twenty-years-of-amazon-s3-and-building-whats-next/
3•easton•35m ago•0 comments

Meta up 3% in premarket as it plans mass layoff amidst increased AI spending

https://www.cnbc.com/2026/03/16/meta-ai-costs-mass-layoffs-20percent-up-premarket.html
3•rfarley04•36m ago•1 comments

Show HN: Merrilin.ai – Code blocks in your books, finally

https://tech.stonecharioteer.com/posts/2026/merrilin-code-blocks/
1•stonecharioteer•39m ago•0 comments