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•1y ago

Comments

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

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

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

MAGA allies tell Trump to vet AI before release

https://www.axios.com/2026/05/18/trump-ai-steve-bannon-humans-first-letter
1•thm•49s ago•0 comments

What Lucid Dreaming Reveals About Waking Life

https://medium.com/@genady_awarelife/what-lucid-dreaming-reveals-about-waking-life-48e08c337f21
1•genadym•1m ago•0 comments

Isms.sh – Free and Open Source Information Security Management System

https://github.com/unidoc/isms
1•unidoc•2m ago•0 comments

Learn Harness Engineering

https://walkinglabs.github.io/learn-harness-engineering/en/
1•redbell•3m ago•0 comments

Pope Leo's encyclical on preserving the human person in the AI era drops May 25

https://www.vaticannews.va/en/pope/news/2026-05/pope-leo-xiv-first-encyclical-magnifica-humanitas...
1•dmschulman•3m ago•0 comments

The End of Cheap AI: What Consumption Pricing Means for Organizations

https://articles.zimetic.com/the-end-of-cheap-ai-what-consumption-pricing-means-for-engineering-o...
1•bzimbelman•6m ago•0 comments

The age of the generalist is finally here

https://ben.cates.fm/the-age-of-the-generalist-is-finally-here/
1•benja123•6m ago•0 comments

No Silver Bullet: Essence and Accidents of Software Engineering (1986) [pdf]

https://worrydream.com/refs/Brooks_1986_-_No_Silver_Bullet.pdf
1•rzk•8m ago•0 comments

Don't Sign In with Google

https://twitter.com/the_smart_ape/status/2055941633179283523
3•delichon•11m ago•0 comments

When Kierkegaard Got Cancelled

https://www.plough.com/en/topics/faith/discipleship/when-kierkegaard-got-cancelled
1•bookofjoe•16m ago•0 comments

The HTML Sanitizer API

https://alfy.blog/2026/05/07/html-sanitizer-api.html
1•subset•18m ago•0 comments

Pip install once, Docker errors auto-translated forever

https://github.com/Mikemiol17/bugtalk
2•mikael01ultra•22m ago•0 comments

Lemmy Tray – Rust menu bar app that shows Lemmy posts without browser or account

https://lemmy.ml/c/lemmy_tray
1•tracyspacy•23m ago•0 comments

Siri App to Have Auto-Deleting Chats

https://www.bloomberg.com/news/newsletters/2026-05-17/ios-27-siri-app-to-have-auto-deleting-chats...
1•jonbaer•27m ago•0 comments

Lisp in Web-Based Applications (2001)

https://sep.turbifycdn.com/ty/cdn/paulgraham/bbnexcerpts.txt
1•bschne•28m ago•0 comments

NYC Commute POV

https://castrio.me/nyc/
1•jonbaer•28m ago•0 comments

Data Center Discontent, Understanding the Opposition, Fixing the Problem

https://stratechery.com/2026/data-center-discontent-understanding-the-opposition-fixing-the-problem/
1•swolpers•28m ago•0 comments

Voice AI Systems Are Vulnerable to Hidden Audio Attacks

https://spectrum.ieee.org/voice-ai-audio-attacks
1•SVI•28m ago•0 comments

Les Horribles Cernettes

https://en.wikipedia.org/wiki/Les_Horribles_Cernettes
1•riffraff•29m ago•0 comments

PyPI packages are increasing rapidly

https://rushter.com/blog/pypi-packages/
1•lumpa•33m ago•1 comments

Baylibre Partners with SpacemiT to Bring Android 16 to RISC-V

https://baylibre.com/blog/baylibre-partners-with-spacemit-to-bring-android-16-to-risc-v/
1•fork-bomber•34m ago•0 comments

Learning-focused CTFs are Facing a Restructure

https://exploiting.systems/posts/2026-05-17-learning-focused-ctfs-are-facing-a-restructure
1•ropbear•35m ago•0 comments

HearHam Live Repeater listing app

https://hearham.com/repeaters
1•fodmap•36m ago•0 comments

The new class of AI jobs

https://www.businessinsider.com/new-ai-jobs-2026-5
4•giuliomagnifico•38m ago•0 comments

Qubes OS: A reasonably secure operating system

https://www.qubes-os.org/
1•throwoutway•41m ago•0 comments

Utah lawmakers form united front in push to ban prediction markets

https://www.theguardian.com/us-news/2026/may/18/you-can-bet-on-it-utah-lawmakers-form-united-fron...
2•thm•41m ago•0 comments

Busting performance issues, AI edition

https://p403n1x87.github.io/busting-performance-issues-ai-edition.html
1•p403n1x87•43m ago•0 comments

What A.I. Did to My College Class

https://www.nytimes.com/2026/05/17/opinion/chatgpt-ai-college-school-graduation.html
2•thm•44m ago•0 comments

How to Write Something Wise (Maria Popova Interview) [video]

https://www.youtube.com/watch?v=yb9Tz-RQFN4
1•freediver•45m ago•0 comments

I automated opt-outs for 500 data broker sites (open source)

https://github.com/stephenlthorn/auto-identity-remove
40•stephenlthorn•47m ago•11 comments