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?

iOS VPN Protocols Compared: Which of 3 Works Best?

https://cloudexplorer.ai/ios-vpn-protocols-compared-which-works-best/
1•BlackPlot•19s ago•0 comments

Best Screenplay Examples of All Time

https://ensemblewriter.com/docs/best-screenplay-examples
1•dovebarra•26s ago•0 comments

Show HN: SoulGuard, OS-level identity protection for AI agents

https://github.com/mirascope/soulguard
1•teamdandelion•1m ago•0 comments

Congress can restore the independence of US science

https://www.nature.com/articles/d41586-026-00703-9
1•Anon84•1m ago•0 comments

Little Snitch, a macOS personal firewall

https://www.obdev.at/products/littlesnitch/index.html
1•nopurpose•2m ago•0 comments

Kodiak – decentralized exchange built for Berachain

https://www.kodiak.finance/
1•Berarodman•2m ago•1 comments

Kalanick is preparing a new self-driving car company

https://twitter.com/Jessicalessin/status/2032507033472397768
1•JumpCrisscross•4m ago•0 comments

My Self-Driving Car Crash – The Tesla was driving perfectly–until it wasn't

https://www.theatlantic.com/magazine/2026/04/self-driving-car-technology-tesla-crash/686054/
2•ForHackernews•6m ago•1 comments

Show HN: Autofoundry – Run autoresearch across any cloud GPU with one command

https://github.com/shea256/autofoundry
1•shea256•6m ago•0 comments

Django Studio: generator for modern Django projects

https://github.com/danjac/django-studio
1•danjac•7m ago•0 comments

Scheduling seems simple until you try to build it

https://www.slotflow.dev/blog/scheduling-complexity-ai-agents
1•nestorkoylyak•7m ago•1 comments

"Illusion of competence": Almost 80% of university students in Australia use AI

https://theconversation.com/almost-80-of-australian-uni-students-now-use-ai-this-is-creating-an-i...
2•heresie-dabord•8m ago•0 comments

Solving Cryptic Crosswords with Egraphs

https://buttondown.com/jaffray/archive/solving-cryptic-crosswords-with-egraphs/
1•ibobev•8m ago•0 comments

OWASP PTK 9.7.0 is out for Chromium and Firefox

1•DenisPodgurskii•8m ago•0 comments

GhostLink

https://holy-ruzz.web1337.net/
1•chad_broskii•11m ago•0 comments

Show HN: An Article About How I Starting Programming

https://artificesoftware.com/articles/how_i_started_programming.html
1•ArtificeAccount•11m ago•0 comments

Show HN: A club for anyone with a symmetric DNS name

https://zq.suns.bz//:sdʇʇɥ
1•mrled•14m ago•0 comments

The Math That Explains Why Bell Curves Are Everywhere

https://www.quantamagazine.org/the-math-that-explains-why-bell-curves-are-everywhere-20260316/
2•Brajeshwar•14m ago•0 comments

UK Invests £180M in National Timing Centre to Back Up GNSS

https://insidegnss.com/uk-invests-180-million-in-national-timing-centre-to-back-up-gnss/
1•throw0101c•14m ago•0 comments

AI firm Anthropic seeks weapons expert to stop users from 'misuse'

https://www.bbc.com/news/articles/c74721xyd1wo
1•BiraIgnacio•15m ago•0 comments

Show HN: I compiled every direct quote of Jesus into a single-page reading tool

https://jesuswords.me/
1•philll•19m ago•0 comments

How to Build an Enterprise-Scale GenAI Gateway

https://aws.amazon.com/blogs/industries/how-to-build-an-enterprise-scale-genai-gateway/
1•mariuz•21m ago•0 comments

Zoox and Uber Announce Strategic Partnership

https://investor.uber.com/news-events/news/press-release-details/2026/Zoox-and-Uber-Announce-Stra...
1•JumpCrisscross•22m ago•0 comments

Initial Microstructure and Diode Laser Surface Hardening of Medium-Carbon Steels

https://www.mdpi.com/1996-1944/19/5/981
1•PaulHoule•22m ago•0 comments

Border0 Is Joining Tailscale

https://tailscale.com/blog/border0-joins-tailscale
2•usrme•23m ago•0 comments

Icewarp CVE-2025-14000 Technical Analysis

https://mileniumsec.com/blog/icewarp-cve-2025-14500-root-cause-reverse-engineering
2•azqzazq•23m ago•0 comments

You Could Be Next

https://www.theverge.com/cs/features/877388/white-collar-workers-training-ai-mercor
2•Michelangelo11•24m ago•0 comments

Tmux enables AIs to operate servers safely

https://blog.est.im/2026/stdout-11
2•est•24m ago•0 comments

31,828 silver contracts were somehow traded in COMEX while trading was halted

https://no01.substack.com/p/technical-issues
3•OgsyedIE•24m ago•0 comments

We Use Our AI Testing Tool to Test Our AI Testing Tool

https://aiqaramba.com/blog/ai-testing-ai-recursive-qa-loop/
2•arogiers•26m ago•0 comments