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

Comments

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

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

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

Companies reap $22B from Trump's immigration crackdown

https://www.ft.com/content/c74170d3-237d-459c-8642-bfd71530897d
1•doener•57s ago•0 comments

JautBook – AI Reddit

https://github.com/lanefiedler731-gif/JautBook
1•Lane1655•6m ago•0 comments

Crypto wallets received a record $158B in illicit funds last year

https://www.bleepingcomputer.com/news/security/crypto-wallets-received-a-record-158-billion-in-il...
1•heresie-dabord•6m ago•0 comments

A Firefox Android extension for YouTube background play

https://github.com/Rigmunssel/FixYTBackground
1•western_man•7m ago•0 comments

Don Lemon Released Without Bond over Minnesota Protest Charge

https://www.nytimes.com/2026/01/30/us/don-lemon-arrest-minnesota-church-protest.html
2•whack•7m ago•0 comments

Show HN: Moltbook Overtaken by Shellraiser

https://www.moltbook.com/post/74b073fd-37db-4a32-a9e1-c7652e5c0d59
1•mooball•8m ago•0 comments

Show HN: Free Text-to-Speech Tool – No Signup, 40 Languages

https://texttospeech.site/
1•digi_wares•10m ago•0 comments

What ICLR 2026 Taught Us About Multi-Agent Failures

https://llmsresearch.substack.com/p/what-iclr-2026-taught-us-about-multi
1•dippatel1994•12m ago•1 comments

Hawaii Deepfake Election Law Is Unconstitutional, Court Says

https://news.bloomberglaw.com/litigation/hawaiis-deepfake-election-law-violates-free-speech-court...
2•nradov•13m ago•0 comments

Humans Welcome to Observe

https://www.ignorance.ai/p/openclaw-moltbook-and-the-ai-agents
1•swolpers•14m ago•0 comments

SQLite WebAssemby

https://sqlite.org/wasm/doc/trunk/index.md
2•whatisabcdefgh•14m ago•0 comments

New York Congestion Pricing's Unexpected Winners: Suburban Drivers

https://www.bloomberg.com/news/articles/2026-01-30/how-manhattan-s-congestion-toll-speeds-up-trip...
1•helsinkiandrew•16m ago•0 comments

January 2026 Links

https://nomagicpill.substack.com/p/january-2026-links
1•nomagicpill•17m ago•0 comments

My Weekend Project Rentmyheader.xyz

https://www.rentmyheader.xyz/
1•abdibrokhim•17m ago•0 comments

Pi: The Minimal Agent Within OpenClaw

https://lucumr.pocoo.org/2026/1/31/pi/
2•admp•19m ago•0 comments

Show HN: Bunnie – Use Bun as the templating engine in Rust applications

https://github.com/aspizu/bunnie
1•aspizu•20m ago•0 comments

Finality does not exist in payments (2022)

https://www.bitsaboutmoney.com/archive/no-payments-are-final/
1•mooreds•23m ago•0 comments

The Math of the AI Bubble (A 2027 Forecast)

https://ksaweryskowron.substack.com/p/ai-without-the-bs-part-4
1•mooreds•25m ago•1 comments

Large-scale, high-quality, and diverse muli-round dialogue data

https://atlas.nomic.ai/data/stingning/ultrachat-1/map
1•onurkanbkrc•25m ago•0 comments

Nvidia's 10-year effort to make the Shield TV the most updated Android device

https://arstechnica.com/gadgets/2026/01/inside-nvidias-10-year-effort-to-make-the-shield-tv-the-m...
5•qmr•27m ago•0 comments

Manual Programming

https://illegalcode.net/rfcs/manual_programming.html
2•todsacerdoti•27m ago•0 comments

How should businesses respond to rising energy rates? (2025)

https://www.arcadia.com/blog/rising-energy-rates-businesses
1•mooreds•28m ago•0 comments

The rise (and future fall) of Discord

https://slugcat.systems/post/24-12-12-the-rise-and-future-fall-of-discord/
2•PaulHoule•28m ago•1 comments

Is Time a Fundamental Part of Reality? Quiet Revolution in Physics Suggests Not

https://singularityhub.com/2026/01/30/is-time-a-fundamental-part-of-reality-a-quiet-revolution-in...
1•Brajeshwar•28m ago•0 comments

Ctlsurf – A notebook that forces AI coding agents to document their shortcuts

https://app.ctlsurf.com/
1•sarkarsh•29m ago•1 comments

Moltbook Source Code

https://github.com/moltbook/moltbook-web-client-application
1•colesantiago•29m ago•1 comments

BotMaker: Simple Openclaw Configurator

https://github.com/jgarzik/botmaker
1•jgarzik•30m ago•1 comments

Astrological CPU Scheduler with eBPF

https://github.com/zampierilucas/scx_horoscope
1•risemlbill•33m ago•1 comments

The Hairy Ball Theorem by 3Blue1Brown

https://www.youtube.com/watch?v=BHdbsHFs2P0
1•-0•34m ago•0 comments

Synthetic datasets where failure emerges from dynamics, not labels

1•dynamics_lab•34m ago•0 comments