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?

Synaps a self-hosted personal health monitor as a weighted knowledge grap

https://github.com/scerelli/SYNAPS
1•succo•1m ago•1 comments

Steve Jobs, speech at the Apple campus (1999) [video]

https://www.youtube.com/watch?v=EoM2Y2KO6kU
1•rbinv•2m ago•0 comments

Can It Resolve Doom? Game Engine in 2k DNS Records

https://core-jmp.org/2026/03/can-it-resolve-doom-game-engine-in-2000-dns-records/
1•Einenlum•4m ago•0 comments

Yann LeCun's LeWorldModel: Stable End-to-End JEPA from Pixels

https://le-wm.github.io/
2•matthieu_bl•4m ago•1 comments

America's Chief Financial Officers Say AI Is Coming for Admin Jobs

https://www.wsj.com/tech/ai/ai-admin-job-market-6a1c3436
1•cebert•6m ago•1 comments

The Wrong Abstraction

https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction
2•mihau•9m ago•1 comments

A Mysterious Numbers Station Is Broadcasting Through the Iran War

https://www.wired.com/story/a-mysterious-numbers-station-is-broadcasting-through-the-iran-war/
2•iamben•9m ago•1 comments

OpenBSD.Amsterdam

https://openbsd.amsterdam/
2•sph•10m ago•0 comments

The orderbook dynamics of prediction markets

2•sharp_runner_84•11m ago•0 comments

Donut Lab's solid-state battery could barely hold a charge after getting damaged

https://www.theverge.com/transportation/898881/donut-lab-solid-state-battery-damage-test
1•tromp•14m ago•1 comments

Show HN: Offline-first UK train planner

https://railraptor.com
1•marcusdev•18m ago•0 comments

curl > /dev/sda: How I made a Linux distro that runs wget | dd

https://astrid.tech/2026/03/24/0/curl-to-dev-sda/
2•astralbijection•20m ago•0 comments

More Magic Math from OpenAI?

https://om.co/2026/03/23/more-magic-math-from-openai/
2•MindGods•21m ago•0 comments

Asyncio is neither fast nor slow

https://blog.changs.co.uk/asyncio-is-neither-fast-nor-slow.html
1•tmarice•23m ago•0 comments

Emerging SaaS trends that are accelerating

1•rado-bogdaonv•26m ago•1 comments

Show HN: CertPulse – Certificate monitoring for multi-cloud teams

https://certpulse.dev
1•xdsai•26m ago•1 comments

Show HN: The complete Open Library catalog in clean, analysis-ready Parquet

https://huggingface.co/datasets/open-index/open-library
1•tamnd•26m ago•0 comments

Make better decisions based on criteria that are important to you

https://www.decidit.de/en
1•bjoern_live•30m ago•0 comments

Are Strings Still Our Best Hope for a Theory of Everything?

https://www.quantamagazine.org/are-strings-still-our-best-hope-for-a-theory-of-everything-20260323/
3•isaacfrond•32m ago•1 comments

SIDN chooses European-based infrastructure for .nl DNS anycast (i3D.net)

https://www.i3d.net/sidn-partners-with-i3dnet-dns-infrastructure/
2•sgaduuw•34m ago•1 comments

Important Updates to GitHub Copilot for Students

https://github.com/orgs/community/discussions/189268
3•tamnd•34m ago•0 comments

The ancient reason there are 60 minutes in an hour

https://www.bbc.com/future/article/20260320-the-ancient-reason-there-are-60-minutes-in-an-hour-an...
2•jeffwass•36m ago•0 comments

I built a 30-second dinner decider because weeknight decision fatigue is real

https://orla-app-swart.vercel.app/
2•HoneyBarny•38m ago•0 comments

ISS: Instant Space Switcher for macOS

https://github.com/joshuarli/iss
2•fanf2•44m ago•0 comments

Head-mounted VR hardware will never happen, says Neal Stephenson

https://www.theregister.com/2026/03/24/neal_stephenson_death_of_metaverse/
2•jjgreen•47m ago•0 comments

Arm to host 'Arm Everywhere' event and webcast

https://newsroom.arm.com/news/arm-everywhere-event
3•makerofthings•48m ago•1 comments

Show HN: Using the Web Audio API to simulate various tuning forks

https://github.com/evoluteur/healing-frequencies
1•evoluteur•49m ago•0 comments

Local Bernstein theory, and lower bounds for Lebesgue constants

https://terrytao.wordpress.com/2026/03/23/local-bernstein-theory-and-lower-bounds-for-lebesgue-co...
2•jjgreen•50m ago•0 comments

Microsoft's "Fix" for Windows 11: Flowers After the Beating

https://www.sambent.com/microsofts-plan-to-fix-windows-11-is-gaslighting/
10•h0ek•50m ago•0 comments

Users Quit ChatGPT for Claude in 1,487% Surge

https://www.forbes.com/sites/rachelwells/2026/03/23/users-quit-chatgpt-for-claude-in-1487-surge-h...
5•doener•51m ago•0 comments