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?

IronCurtain: A Personal AI Assistant Built Secure from the Ground Up

https://www.provos.org/p/ironcurtain-secure-personal-assistant/
1•jmort•29s ago•0 comments

Instant DB clones for AI agents

https://contextbits.com/
1•classx•2m ago•1 comments

Should everyone be taking statins?

https://www.worksinprogress.news/p/should-everyone-be-taking-statins
1•salonium_•2m ago•0 comments

Even with Coding Agents, You Still Can't Recreate StackOverflow in a Weekend

https://orischwartz.com/posts/even-with-fleet-of-coding-agents.html
1•fleaflicker•2m ago•0 comments

DOS Memory Management

http://www.os2museum.com/wp/dos-memory-management/
1•supermatou•3m ago•0 comments

Show HN: AO – Deploy Python agents without managing production infrastructure

https://aodeploy.com
1•mrtng•5m ago•0 comments

Show HN: DumpCleaner – Native macOS/iPadOS app to filter SQL dumps

https://dumpcleaner.app
1•marcelglaeser•6m ago•1 comments

Why every AI coding breakthrough feels normal within 90 days

https://www.augmentcode.com/blog/why-every-ai-coding-breakthrough-feels-normal-within-90-days
2•knes•6m ago•0 comments

Altadena asked Edison to bury lines. That could cost some fire victims $40k

https://www.latimes.com/business/story/2026-02-17/edison-altadena-residents-balk-at-costs-bury-po...
1•PaulHoule•7m ago•0 comments

Instant LLM Updates with Doc-to-LoRA and Text-to-LoRA

https://pub.sakana.ai/doc-to-lora/
1•yogthos•7m ago•0 comments

Launching the Agent Protocols Tech Tree

https://lil.law.harvard.edu/blog/2026/02/23/agent-protocols-tech-tree/
1•mixedmath•8m ago•0 comments

Living with Hyperphantasia

https://www.theguardian.com/science/2026/feb/28/living-with-hyperphantasia
1•hackernj•8m ago•0 comments

Making Iceberg Work for Operational Data

https://materialize.com/blog/making-iceberg-work-for-operational-data/
1•pranshum•9m ago•0 comments

I hacked ChatGPT and Google's AI – and it only took 20 minutes

https://www.bbc.com/future/article/20260218-i-hacked-chatgpt-and-googles-ai-and-it-only-took-20-m...
1•ohjeez•9m ago•0 comments

Why every scientist needs a librarian

https://www.nature.com/articles/d41586-026-00568-y
2•gnabgib•11m ago•0 comments

Against Land Value Capture

https://pedestrianobservations.com/2026/02/25/against-land-value-capture/
1•amadeuspagel•13m ago•0 comments

Show HN: OpenAI to Buy Babuger.com for $1B? (Just Kidding, I Built It)

1•lyuata•13m ago•0 comments

Coherence at 300K

https://www.symmetrybroken.com/coherence-at-300-kelvin/
1•riemannzeta•14m ago•0 comments

The Robotic Dexterity Deadlock

https://www.origami-robotics.com/blog/dexterity-deadlocks.html
10•shmublu•16m ago•1 comments

Hyprland 0.54 Released as a "Massive" Update to This Wayland Compositor

https://www.phoronix.com/news/Hyprland-0.54-Released
1•mikece•18m ago•0 comments

Will magnesium supplements help you relax?

https://www.economist.com/science-and-technology/2026/02/27/will-magnesium-supplements-help-you-r...
2•vinni2•19m ago•3 comments

Show HN: Dashboard – a runtime plugin-based desktop widget system for Linux

https://duh-dashboard.github.io
1•gzson79•22m ago•1 comments

I never estimate on the call. Best engineering rule I made for myself

https://read.perspectiveship.com/p/automatic-rules
1•birdculture•22m ago•0 comments

FBI was hacked and 100tb from the Epstein file deleted [pdf]

https://www.justice.gov/age-verify
4•Aeroi•22m ago•2 comments

Show HN: Night Watch, zero-dependency DevOps agent

https://github.com/samirkhoja/night-watch
1•sudoapps•23m ago•0 comments

Show HN: Vector database vibe-coded in WASM, 5x faster than JavaScript

https://chuanqisun.github.io/eigen-db/
1•stackdiver•24m ago•0 comments

NASA announces major overhaul of Artemis moon program: "We've got to get back to

https://spaceflightnow.com/2026/02/27/nasa-announces-major-overhaul-of-artemis-moon-program/
1•bookmtn•25m ago•0 comments

Perhaps People Are Cynical About Success in the Creative Arts for a Reason

https://freddiedeboer.substack.com/p/perhaps-people-are-cynical-about
2•pseudolus•26m ago•0 comments

A public startup survival tracker (30 days inactive = dead)

https://pivotordie.club
1•fojia•27m ago•0 comments

Natural Speech Analysis Reveals Differences in Executive Function in Adults

https://pubs.asha.org/doi/10.1044/2025_JSLHR-24-00268
1•bookofjoe•27m ago•0 comments