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?

Europa members and EPI accelerate the rollout of sovereign pan-European payments

https://epicompany.eu/media-insights/bancomat-bizum-epi-sibs-and-vipps-mobilepay-sign-mou-to-acce...
2•hocuspocus•1m ago•0 comments

Advertising Reloaded: How AI Is Transforming Advertising

https://www.8awake.com/advertising-reloaded-how-ai-is-transforming-advertising/
4•8awake•2m ago•0 comments

Creatine Use and Thromboembolism Risk in Athletes

https://www.cureus.com/articles/430661-creatine-use-and-thromboembolism-risk-in-athletes-a-case-r...
1•wjb3•5m ago•1 comments

Building a billing system is still hard, even with AI

https://arnon.dk/building-a-billing-system-is-still-hard-even-with-ai/
1•arnon•5m ago•0 comments

Show HN: CI That's a Cinch

https://cinch.sh
1•behrlich•6m ago•0 comments

Show HN: Nova Stack – Verifiable TEE Apps on AWS Nitro with ZKP Attestation

https://github.com/sparsity-xyz/nova-stack
1•justinzhangmit•7m ago•1 comments

Today Is Groundhog Day

https://groundhog-day.com/predictions/2026
1•ChrisArchitect•7m ago•1 comments

Show HN: Vibe Hardware Engineering as a Complete Novice

https://www.proompt.engineer/vibe-hardware-engineering
2•wantpinow•8m ago•0 comments

Analysis of Congressional Stock Trading Patterns

https://probors.com/articles/c9fb0bb7-0674-4b69-2dee-08de627bc15d
1•pfefr•8m ago•0 comments

Free 50+ AEO signals AI visibility audit with Bilarna

https://bilarna.com
1•erhankocabas•8m ago•1 comments

Why So Much of Silicon Valley Is Mum About Minneapolis

https://www.nytimes.com/2026/02/02/opinion/silicon-valley-trump-minneapolis.html
1•donohoe•9m ago•0 comments

YOE and this is my vibe coding exp as well

https://twitter.com/i/status/2018048038506279022
1•gnarbarian•10m ago•0 comments

Msgvault: Private Gmail archive and search system

https://www.msgvault.io/
1•bigwheels•11m ago•1 comments

Great Kantō Earthquake

https://en.wikipedia.org/wiki/Great_Kant%C5%8D_Earthquake
1•georgecmu•13m ago•0 comments

MoltMatch the First AI Agent Dating Platform

https://moltmatch.xyz/
2•napolux•13m ago•0 comments

I built a low-cost CAN-bus sensor for air quality/light monitoring using ESP32

http://albert-david.blogspot.com/2026/01/building-can-based-multi-sensor-node.html
2•albert007_d•15m ago•0 comments

Elon Musk's SpaceX to Combine with XAI Ahead of Mega IPO

https://www.bloomberg.com/news/articles/2026-02-02/elon-musk-s-spacex-said-to-combine-with-xai-ah...
4•toomuchtodo•16m ago•1 comments

George A. Philbrick

https://en.wikipedia.org/wiki/George_A._Philbrick
1•jacquesm•17m ago•1 comments

The surprising attention on sprites, exe.dev, and shellbox

https://lalitm.com/trying-sprites-exedev-shellbox/
1•gmays•17m ago•0 comments

Ask HN: How do you give AI agents access without over-permissioning?

5•NBenkovich•19m ago•2 comments

Show HN: A Fast CLI for global fuzzy-search on Claude Code sessions

https://github.com/chronologos/cc-sessions
1•Chronologos•19m ago•0 comments

News publishers limit Internet Archive access due to AI scraping concerns

https://www.niemanlab.org/2026/01/news-publishers-limit-internet-archive-access-due-to-ai-scrapin...
2•danso•21m ago•0 comments

Annote: Writing Java using only annotations

https://github.com/kusoroadeolu/annote
2•PaulHoule•21m ago•0 comments

Measuring the quantum extent of a single molecule confined to a nanodroplet

https://phys.org/news/2026-01-quantum-extent-molecule-confined-nanodroplet.html
1•bookofjoe•22m ago•0 comments

Windows chief shared MS emails with Epstein regarding the Surface RT disaster

https://www.windowscentral.com/microsoft/former-windows-boss-shared-confidential-microsoft-emails...
3•conradfr•23m ago•1 comments

An Ode to Independence (2010)

https://www.federalreserve.gov/newsevents/speech/warsh20100326a.htm
1•mooreds•24m ago•0 comments

Let the Barbarians In: How AI Can Accelerate Systems Performance Research

https://www.sigops.org/2026/let-the-barbarians-in-how-ai-can-accelerate-systems-performance-resea...
1•matt_d•25m ago•0 comments

Show HN: PoopyFeed – Self-hosted baby tracking for feedings, diapers, and naps

https://github.com/DavidMiserak/poopyfeed
2•DavidMiserak•27m ago•0 comments

Semantic Operators: Run LLM Queries Directly in SQL

https://tacnode.io/post/semantic-operators-llm-sql
1•alexkimball•28m ago•0 comments

What did the groundhog see? Punxsutawney Phil's winter prediction is in

https://www.cnn.com/2026/02/02/weather/groundhog-day-shadow-winter-spring-climate
1•Tomte•28m ago•0 comments