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?

Don't Call It a Moat

https://99d.substack.com/p/dont-call-it-a-moat
1•herbertl•1m ago•0 comments

A satellite-smashing chain reaction could spiral out of control

https://www.theguardian.com/science/ng-interactive/2026/mar/31/this-feels-fragile-how-a-satellite...
1•andrewshadura•1m ago•0 comments

LinkedIn uses 65GB of RAM with 7 tabs opened

3•daniele_dll•4m ago•0 comments

Introducing Simple Mode

https://docs.eventsourcingdb.io/blog/2026/04/01/introducing-simple-mode/
2•goloroden•5m ago•0 comments

TerraLenses – Explore Countries – cultures, landscapes, facts, and comparisons

https://terralenses.com/
1•Badassbob•7m ago•1 comments

Make your own GitHub health indicator and LED lamp

https://github.com/davenicoll/usermod-github-health
1•binarysneaker•8m ago•0 comments

Wastrelly Wabbits

https://wingolog.org/archives/2026/03/31/wastrelly-wabbits
1•davexunit•8m ago•0 comments

How we chose Positron's Python type checker

https://positron.posit.co/blog/posts/2026-03-31-python-type-checkers/
2•nomial•9m ago•0 comments

Logan Bartlett's Reflections on the State of the Software and AI Market

https://twitter.com/loganbartlett/status/2037638091671035994
1•nadis•10m ago•0 comments

Show HN: I'm making it much easier to sell your side project / small business

https://weensy.xyz
1•mjhcodes•10m ago•0 comments

Forgotten Italian CPU – The Genesys B52 MMX (2021)

https://www.cpushack.com/2021/08/12/forgotten-italian-cpu-the-genesys-b52-mmx/
1•WaluigiBSOD•10m ago•0 comments

Show HN: Virtui – TUI session automation and recording for agents

https://github.com/honeybadge-labs/virtui
3•rotemtam•12m ago•0 comments

Weeks After Denouncing Censorship, Zuckerberg Texted Musk to Remove DOGE Content

https://www.techdirt.com/2026/03/31/weeks-after-denouncing-government-censorship-on-rogan-zuckerb...
3•tastyface•12m ago•0 comments

Show HN: Bulk posting with CSV for your interns

https://info.bundle.social/api-reference/bulk-posts-csv
2•marcelbundle•12m ago•0 comments

In-process circuit breaker that kills runaway AI agents before they go rogue

https://github.com/aeneassoft/aeneassoft
2•aeneassoft•14m ago•0 comments

Package Upgrades Feel Like Russian Roulette

https://ziva.sh/blogs/npm-supply-chain-roulette
1•OsrsNeedsf2P•14m ago•0 comments

Meta-Harness: End-to-End Optimization of Model Harnesses

https://yoonholee.com/meta-harness/
1•forthwall•14m ago•0 comments

Show HN: King Louie a local multi-machine AI assistant

https://github.com/the-banana-tool/king-louie
1•sethito•17m ago•1 comments

Ordinary Lab Gloves May Have Skewed Microplastic Data

https://nautil.us/ordinary-lab-gloves-may-have-skewed-microplastic-data-1279386
2•WaitWaitWha•18m ago•0 comments

NASA Teams Readying Artemis II Moon Rocket for Launch

https://www.nasa.gov/blogs/missions/2026/03/31/nasa-teams-readying-artemis-ii-moon-rocket-for-lau...
3•benlarweh•18m ago•0 comments

Pretext: Dynamic Layout

https://chenglou.me/pretext/dynamic-layout/
1•niraj-agarwal•19m ago•0 comments

1-Bit Bonsai: The First Commercially Viable 1-Bit LLMs

https://prismml.com/news/bonsai-8b
1•wmf•19m ago•0 comments

Nah – Free tools. No catch

https://nah.tools/
3•vrennat•19m ago•0 comments

Node Banana – Open, Local Alternative to Weavy/Flora

https://github.com/shrimbly/node-banana
1•falloon•20m ago•0 comments

Samsung's new app claims to alleviate motion sickness using sound

https://www.theverge.com/tech/904579/samsung-hearapy-mobile-app-galaxy-buds-motion-sickness-symptoms
1•jerlam•22m ago•1 comments

Xenv.sh – the first secrets manager built for AI agents

https://xenv.sh/
1•brettgo1•25m ago•0 comments

A dot a day keeps the clutter away

https://scottlawsonbc.com/post/dot-system
2•scottlawson•25m ago•0 comments

Oracle reportedly cuts jobs to fund its AI infrastructure push

https://the-decoder.com/oracle-reportedly-lays-off-thousands-of-employees-to-bankroll-its-massive...
1•alwillis•26m ago•0 comments

Breaking into a Govee Smart Display: From UART Shell to Device Impersonation

https://blog.kulkan.com/breaking-into-a-govee-smart-display-from-uart-shell-to-device-impersonati...
1•rmast•28m ago•0 comments

Hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
1•sedatk•30m ago•0 comments