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

Comments

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

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

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

EU and Mercosur countries sign landmark free trade deal

https://www.dw.com/en/eu-and-mercosur-countries-sign-landmark-free-trade-deal/a-75545794
1•perihelions•2m ago•0 comments

QWED AI – Open-source deterministic verification layer for LLMs

https://docs.qwedai.com/
1•rahuldass•2m ago•2 comments

A look inside prediction markets

https://text.npr.org/nx-s1-5672615
1•BostonFern•3m ago•0 comments

Emoji Design Convergence Review: 2018 – 2026

https://blog.emojipedia.org/emoji-design-convergence-review-2018-2026/
1•birdculture•3m ago•0 comments

ICE To be abolished under new proposed bill

https://vechron.com/2026/01/ice-to-be-abolished-under-new-proposed-bill-dhs-responds/
3•GeorgeWoff25•7m ago•0 comments

The Art of Thinking on Paper by Joanna Wiebe

https://www.youtube.com/watch?v=w1Ydm-vpzjE
1•rasengan0•11m ago•1 comments

Show HN: Kirkify – Fast and cheap face swap for memes

https://www.kirkify.meme
1•TurnItOffAndOn0•11m ago•1 comments

Applications of the Geometric Mean (1999)

https://www.math.toronto.edu/mathnet/questionCorner/geomean.html
1•vismit2000•15m ago•1 comments

IOU Wallet – keep track of what you owe and are owed through P2P underwriting

https://iou-wallet.com/
1•xklondon•18m ago•1 comments

Redshift Files: The Hunt for Big Data (2024)

https://motherduck.com/blog/redshift-files-hunt-for-big-data/
1•tosh•18m ago•1 comments

'Ideal Customer Profile' Is a Hallucination

https://pathak.ventures/essays/the-segment-of-one
1•ninadpathak•21m ago•0 comments

Optimizing for Agents: The End of the Ten Blue Links

https://pathak.ventures/essays/the-post-seo-reality
3•ninadpathak•21m ago•0 comments

Storytelling Is a Lossless Compression Algorithm for Sales

https://pathak.ventures/essays/engineering-narrative
1•ninadpathak•21m ago•0 comments

Event Destinations Initiative: A model for event interoperability

https://eventdestinations.org/
1•sea-gold•30m ago•0 comments

Scalability But at what COST? (2015) [pdf]

https://www.usenix.org/system/files/conference/hotos15/hotos15-paper-mcsherry.pdf
3•tosh•30m ago•1 comments

Sed-bin: a sed to C translator written in sed

https://github.com/lhoursquentin/sed-bin
2•fanf2•33m ago•1 comments

Technical Practices That Drive Business Results

https://www.caimito.net/en/blog/2025/12/31/technical-practices-that-drive-business-results.html
2•fud101•34m ago•0 comments

ClickHouse vs. StarRocks vs. Presto vs. Trino vs. Apache Spark

https://www.onehouse.ai/blog/apache-spark-vs-clickhouse-vs-presto-vs-starrocks-vs-trino-comparing...
2•tosh•35m ago•1 comments

A free and open-source rootkit for Linux

https://lwn.net/SubscriberLink/1053099/19c2e8180aeb0438/
2•jwilk•39m ago•0 comments

Consent-O-Matic

https://github.com/cavi-au/Consent-O-Matic
2•throawayonthe•40m ago•0 comments

Skill gives you power. Taste decides how you use it

https://www.alexscamp.com/p/skill-gives-you-power-taste-decides
2•dovhyi•42m ago•1 comments

Robin Hood hashing for modern audiences

https://github.com/rip-create-your-account/hashmap
1•g0xA52A2A•45m ago•1 comments

Daniel's first 20k curl commits

https://daniel.haxx.se/blog/2026/01/17/my-first-20000-curl-commits/
5•todsacerdoti•45m ago•0 comments

Not-Such-Better-Living Through Chemistry (2023)

https://www.science.org/content/blog-post/not-such-better-living-through-chemistry
1•Tomte•47m ago•1 comments

Show HN: iTerm2 MCP Server – Let Claude see and control your terminal panes

https://github.com/sumchattering/iterm2-mcp-server
1•sumeruchat•47m ago•0 comments

File over App: 20 Years of Knowledge Management (Swiss Digital Days 2025) [video]

https://www.youtube.com/watch?v=BOJFHMtyqNs
1•articsputnik•48m ago•1 comments

The Theory Underlying Concept Maps and How to Construct and Use Them (2008)

https://cmap.ihmc.us/docs/theory-of-concept-maps.php
1•Tomte•49m ago•0 comments

A vector-based cognitive protocol (OSF archive)

https://osf.io/ub5f4
1•DELTA-X•49m ago•0 comments

Pentagon readies 1,500 troops to possibly deploy to Minnesota, US media say

https://www.reuters.com/world/us/pentagon-readies-1500-soldiers-possibly-deploy-minnesota-washing...
1•pera•51m ago•0 comments

Show HN: RLM-Toolkit – Secure LangChain

1•Chgdz•54m ago•0 comments