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?

Thermite: The First Commercial Firefighting Robot Sold in the U.S.

https://www.howeandhowe.com/civil/thermite
1•Teever•49s ago•0 comments

Amazon Leo introduces gigabit-speed antenna for commercial aviation

https://www.aboutamazon.com/news/amazon-leo/amazon-leo-aviation-antenna-gigabit-wifi
1•bookofjoe•58s ago•0 comments

OpenAI Touts Amazon Partnership in Shift Away from Microsoft

https://www.pymnts.com/artificial-intelligence-2/2026/openai-touts-amazon-partnership-in-shift-aw...
1•saikatsg•1m ago•0 comments

Shape Grammar

https://en.wikipedia.org/wiki/Shape_grammar
1•o4c•2m ago•0 comments

The Simplicity of Humanness

https://alperenkeles.com/posts/on-the-simplicity-of-humanness/
1•alpaylan•2m ago•0 comments

Without RBAC for Skills and MCP, your org has root access to your company

https://www.sleuth.io/post/without-rbac-for-agent-skills-and-mcp-your-entire-organization-basical...
2•detkin•4m ago•0 comments

From Panthor to RK3588: Advancing graphics, video and SoC support in Kernel 7.0

https://www.collabora.com/news-and-blog/news-and-events/from-panthor-to-rk3588-advancing-graphics...
1•losgehts•5m ago•0 comments

Ask HN: Could online services "flood the zone" of compromised password lists?

1•justinluther•6m ago•0 comments

Among the Private Spies

https://www.lrb.co.uk/the-paper/v48/n06/vadim-nikitin/among-the-private-spies
2•jbegley•7m ago•0 comments

The 42-Day Vibe – A technical thriller about an AI-run company and context rot

https://bugramming.dev
1•codekidX•7m ago•0 comments

Miners Risk Their Lives for Himalayan Pink Salt [video]

https://www.youtube.com/watch?v=HjSQ10zDB0k
1•gmays•8m ago•0 comments

The Looming College-Enrollment Death Spiral

https://www.theatlantic.com/ideas/2026/04/college-enrollment-demographic-cliff/686750/
2•JumpCrisscross•8m ago•0 comments

Panther Lake is the real deal

https://world.hey.com/dhh/panther-lake-is-the-real-deal-4bd731f1
1•maluta•10m ago•0 comments

Show HN: Claude Code skills for network engineering and homelabs

https://github.com/arsallls/claude-network-skills
1•arsalsajjad•11m ago•0 comments

I Went to China to See Their Progress on A.I. We Can't Beat Them

https://www.nytimes.com/2026/04/13/opinion/china-ai-america-chipmakers.html
3•amgreg•12m ago•1 comments

SSH Pilot: Scala-based SSH tool for managing and testing remote server clusters

https://github.com/openmole/sshpilot
1•thunderbong•12m ago•0 comments

Show HN: GDL – I built an AI-powered invention engine

https://groundeddiscoverylabs.com/
1•Whyachi•14m ago•0 comments

Show HN: Lint-AI by RooAGI, a Rust CLI for AI Doc Retrieval

https://github.com/RooAGI/Lint-AI
1•rooagi•15m ago•0 comments

Mapcodes – free, open way to make locations on Earth addressable by a short code

https://www.mapcode.com
1•smartmic•17m ago•0 comments

Show HN: Ithihāsas – a character explorer for Hindu epics, built in a few hours

https://www.ithihasas.in
8•cvrajeesh•17m ago•1 comments

The "AI Vulnerability Storm": Building a "Mythos-Ready" Security Program [pdf]

https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/04/mythosready-20260413.pdf
3•larve•19m ago•0 comments

Artemis II Was a Blockbuster. Landing on the Moon Will Be a Lot Harder

https://www.wsj.com/science/space-astronomy/artemis-ii-was-a-blockbuster-landing-on-the-moon-will...
1•JumpCrisscross•21m ago•0 comments

AI Agents Are Control Systems

https://cloudpresser.com/writing/ai-agents-are-control-systems
2•cloudpresser•22m ago•0 comments

'Has the Rust programming language's popularity reached its plateau?'

https://developers.slashdot.org/story/26/04/12/2329229/has-the-rust-programming-languages-popular...
4•MilnerRoute•23m ago•0 comments

Sometimes I Don't Use AI at All

https://www.clintmcmahon.com/Blog/sometimes-i-dont-use-ai
1•speckx•25m ago•0 comments

Transitive 2.0: store, visualize and alert about robotics fleet data

https://transitiverobotics.com/blog/transitive-v2/
1•chfritz•26m ago•1 comments

Probing the Planck scale with quantum computation

https://arxiv.org/abs/2604.06322
2•haxiomic•27m ago•1 comments

AI-boosted hacks with Anthropic's Mythos could have dire consequences for banks

https://www.reuters.com/legal/litigation/ai-boosted-hacks-with-anthropics-mythos-could-have-dire-...
6•devonnull•27m ago•0 comments

Can you learn to read faster? And why would you want to?

https://www.rnz.co.nz/life/lifestyle/can-you-really-learn-to-read-faster-and-why-would-you-want-to
4•billybuckwheat•27m ago•1 comments

U.S. blockade of Iran's ports comes into effect

https://www.nbcnews.com/world/iran/live-blog/live-updates-us-blockade-iran-ports-trump-hormuz-pea...
4•mgh2•29m ago•1 comments