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•12mo ago

Comments

nine_k•12mo 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•12mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•12mo ago
They mention this in the article.
spockz•12mo ago
It reminds me more of flat buffers though. Does protobuf also have zero allocation (beyond initial ingestion) and no pointer jumps?
cstrahan•12mo ago
No, one example of why being variable sized integers.

See https://protobuf.dev/programming-guides/encoding/

carterschonwald•12mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•12mo 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•12mo 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•12mo 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•12mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•12mo ago
This was very well written. Excellent article!
NetOpWibby•12mo ago
Is this like MessagePack for Haskell?

Bedrock Linux: A Meta-Distribution for Combining Parts of Other Distros

https://bedrocklinux.org/
1•ffin•2m ago•0 comments

GNAT: The GNU Ada Compiler (2004) [pdf]

https://www.adacore.com/uploads/books/gnat-book.pdf
1•csb6•3m ago•0 comments

Munich Tram Cars (1876 – 2026)

https://www.mvg.de/news/150-jahre-tram/tramtypen.html
1•nyell•3m ago•0 comments

I guess it's probably the best time of year for a protest

https://codyellingham.substack.com/p/a-revolution-in-4k
1•cody_ellingham•5m ago•1 comments

Show HN: Intent Bus – SQLite job bus for coordinating scripts across devices

https://github.com/dsecurity49/Intent-Bus
1•dsecurity49•6m ago•0 comments

John Rawls and the Death of Western Marxism

https://josephheath.substack.com/p/john-rawls-and-the-death-of-western
1•juleiie•7m ago•0 comments

The Linux Kernel Tree About to Hit 40M Lines

https://www.phoronix.com/news/Linux-Kernel-Nearly-40M
1•speckx•7m ago•0 comments

The Prompt API

https://developer.chrome.com/docs/ai/prompt-api
1•gslin•8m ago•0 comments

Agentic Workforce Framework, an operating model for autonomous agent teams

https://github.com/rayyagari2-create/agentic-workforce-framework
2•rayyagari•17m ago•0 comments

Notepad++ for Mac

https://notepad-plus-plus-mac.org/
2•jonbaer•20m ago•1 comments

Show HN: Friendly prediction markets to turn trips into a running tournament

https://bets.bernikins.com/
2•k0rm•21m ago•0 comments

Kenya's Sabastian Sawe is first person to run sub-2-hour marathon

https://www.npr.org/2026/04/26/nx-s1-5800057/kenya-sabastian-sawe-first-person-2-hour-marathon-lo...
2•ejp•21m ago•0 comments

EvanFlow – A TDD driven feedback loop for Claude Code

https://github.com/evanklem/evanflow
3•evanklem2004•30m ago•0 comments

TurboQuant: A First-Principles Walkthrough

https://arkaung.github.io/interactive-turboquant/
1•kweezar•32m ago•0 comments

Language Anchoring: A Systematic Method for LLM Multilingual Adaptation

https://github.com/fkyah3/opencode-fkyah3
1•fkyah3•37m ago•0 comments

Smolwebifying My Site

https://akselmo.dev/posts/smolwebifying-my-site/
2•vinipolicena•41m ago•0 comments

Internet Graveyard

https://internetgraveyard.vercel.app/
3•thebigship•43m ago•0 comments

A better Kubernetes, from the ground up (2020)

https://blog.dave.tf/post/new-kubernetes/
3•Wingy•45m ago•0 comments

Blog Is a Radio Station

https://blog.jimgrey.net/2026/04/23/your-blog-is-a-radio-station/
2•foxfired•52m ago•0 comments

Show HN: The Unix Magic poster, annotated (updated)

https://github.com/drio/unixmagic
6•drio•54m ago•0 comments

SpaceX warns probes into abusive AI imagery could cause headaches for IPO

https://nypost.com/2026/04/24/business/elon-musks-spacex-warns-probes-into-sexually-abusive-ai-im...
4•1vuio0pswjnm7•58m ago•0 comments

From super powder to super power

https://www.scmp.com/news/china/science/article/3350906/super-powder-super-power-can-china-plasma...
2•xnhbx•1h ago•0 comments

Protein-templated synthesis of dinucleotide repeat DNA by antiphage RT

https://www.science.org/doi/10.1126/science.aed1656
2•xnhbx•1h ago•0 comments

Sama: Feels like a good time to seriously rethink OS

https://twitter.com/sama/status/2048428561481265539
3•tmzt•1h ago•0 comments

The Fourth Beta of Android 17

https://android-developers.googleblog.com/2026/04/the-fourth-beta-of-android-17.html
1•flykespice•1h ago•0 comments

Aether – A GCP-Native Framework to Terminate LLM Agent Drift

https://github.com/poinsettiaclg-gif/AETHER-core
1•Painsettia•1h ago•1 comments

What I Did In The Hedonium Shockwave, by Emma, aged 6 and a half

https://ozybrennan.substack.com/p/what-i-did-in-the-hedonium-shockwave
2•barry-cotter•1h ago•0 comments

Parental Controls

https://www.tumblr.com/luminousalicorn/814990078758830080/parental-controls
1•dado3212•1h ago•0 comments

The biggest insect ever was a "dragonfly"

https://eartharchives.org/index.html
2•anjel•1h ago•0 comments

Coding agents ignore their own budgets

https://twitter.com/RampLabs/status/2046624992956146158
2•gmays•1h ago•0 comments