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?

'Convincing' AI scams drove UK fraud cases to record 444,000 last year

https://www.theguardian.com/money/2026/mar/12/ai-scams-uk-fraud-artificial-intelligence-mobile-ba...
1•Brajeshwar•23s ago•0 comments

NVIDIA Nemotron 3 Super

https://research.nvidia.com/labs/nemotron/Nemotron-3-Super/
1•tosh•2m ago•0 comments

TrueNAS Deprecates Public Build Repository and Raises Transparency Concerns

https://linuxiac.com/truenas-moves-build-system-internal/
1•speckx•3m ago•0 comments

Facebook Buys Moltbook [video]

https://www.youtube.com/watch?v=Lfvmlr2vhLY
1•EPendragon•3m ago•0 comments

Lost in the Middle at Birth: An Exact Theory of Transformer Context Bias

https://arxiv.org/abs/2603.10123
1•borundev•4m ago•1 comments

CUDA 13.2 Introduces Enhanced CUDA Tile Support and New Python Features

https://developer.nvidia.com/blog/cuda-13-2-introduces-enhanced-cuda-tile-support-and-new-python-...
1•pjmlp•8m ago•0 comments

Show HN: Encrypted queue architecture for zero-trust home screen widgets

1•bitbybit_ch•8m ago•0 comments

President Trump's Head-Spinning Pivot on an Emergency Oil Release

https://www.wsj.com/business/energy-oil/president-trumps-head-spinning-pivot-on-an-emergency-oil-...
3•alecco•8m ago•2 comments

A Guide to Multi-Agent Coordination

https://chatbotkit.com/guides/multi-agent-coordination-guide
1•_pdp_•9m ago•0 comments

Always Be Shipping

https://www.ivan.codes/blog/always-be-shipping
2•andout_•9m ago•0 comments

Study: Social media influencers increase the toxicity, power of misinformation

https://www.cardiff.ac.uk/news/view/3031495-social-media-influencers-increase-the-toxicity-and-po...
2•giuliomagnifico•10m ago•0 comments

Show HN: We got tired of managing Claude.md files, so we built something better

https://blog.codeyam.com/p/introducing-the-codeyam-cli-with
1•bastadanii•10m ago•0 comments

How much torment can my little homelab take?

https://www.enriquez.dev/blog/tormenting-my-homelab-part-one
1•ernesto905•10m ago•0 comments

Qt Creator 19 Released

https://www.qt.io/blog/qt-creator-19-released
2•mariuz•10m ago•0 comments

PEGI expands age rating criteria with interactive risk categories

https://pegi.info/news/pegi-expands-age-rating-criteria-interactive-risk-categories
1•TazeTSchnitzel•10m ago•0 comments

InvisiBILL puts a price on the little things you do for everyone else

https://getinvisibill.com/
1•fcpguru•11m ago•0 comments

Show HN: AgentBridge – Let AI agents control Classic Mac OS thru a shared folder

https://github.com/SeanFDZ/agentbridge
1•hammer32•12m ago•1 comments

Discord starts banning accounts on using message export tools

https://github.com/Tyrrrz/DiscordChatExporter/issues/1497
1•mystraline•13m ago•0 comments

Poland says foiled cyberattack on nuclear center may have come from Iran

https://www.reuters.com/world/poland-says-foiled-cyberattack-nuclear-centre-may-have-come-iran-20...
2•alephnerd•14m ago•0 comments

Morgan Stanley Private Credit Fund Hit with Redemption Requests

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-03-12-2026/card/morgan-stan...
1•JumpCrisscross•15m ago•0 comments

Holy Smokes: MacBook Neo Is Crazy Fast [video]

https://www.youtube.com/watch?v=n0gUpOTHl0o
1•hochmartinez•16m ago•0 comments

We linted 5,046 repos on GitHub and here's what we found

https://clusteryield.app/blog/1/blog-post-1.html
1•cy_analytics•17m ago•0 comments

Better Launch

https://www.betterlaunch.co/
1•useqrkit•21m ago•0 comments

Ask HN: How are teams productionizing AI agents today?

1•yanitcorel•23m ago•0 comments

ChatGPT Confused this Morning oaicite index

https://copaseticflow.blogspot.com/2026/03/chatgpt-5-4-thinking-visible-citation-glitch-wrap-mode...
1•antigrav_kids•24m ago•0 comments

The web should remain anonymous by default

https://blog.mozilla.org/en/privacy-security/web-anonymity/
3•TangerineDream•24m ago•1 comments

Social media firms asked to toughen up age checks for under-13s

https://www.bbc.com/news/articles/cn48n18pg1eo
2•Brajeshwar•24m ago•0 comments

How far can you go with IX Route Servers only?

https://blog.benjojo.co.uk/post/how-far-can-you-get-with-ix-route-servers
2•ingve•25m ago•0 comments

Show HN: Upflag – Plain-English error alerts for apps built with AI coding tools

https://upflag.io
1•upflag•25m ago•1 comments

Ask HN: People outside the US how are your countries talking about AI?

1•le-mark•25m ago•0 comments