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•10mo 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?

Show HN: Neural DNA – 258 params that grow network topology

https://github.com/tejassudsfp/ndna
1•tejassuds•6m ago•0 comments

Searching for Fast Astronomical Transients in Archival Photographic Plates

https://arxiv.org/abs/2603.20407
1•solarist•6m ago•0 comments

Microsoft's Rust Training

https://github.com/microsoft/RustTraining
1•tayadeamit•9m ago•0 comments

2k Words Becomes One Word – a short story co-created with Claude Opus

https://medium.com/@cmitre/how-2-000-words-becomes-one-word-5365cf8df07b
2•ceemite•13m ago•0 comments

Talent Atrium – evaluation-first hiring (rank candidates before CV review)

https://www.talentatrium.com/
1•mjbstrategic•14m ago•1 comments

Show HN: Hooky – A lightweight HTTP webhook server written in Go

https://github.com/virtuallytd/hooky
1•virtuallytd•15m ago•0 comments

What Is Entropy, Really?

https://mathoverflow.net/questions/146463/what-is-entropy-really
1•sebg•17m ago•0 comments

Vim-classic: Long-term maintenance of Vim 8.x

https://sr.ht/~sircmpwn/vim-classic/
1•birdculture•19m ago•0 comments

RXB- SHA-256 PoW blockchain use onion-only network built-in CPU mining

https://github.com/Heiwabitnull/rxb-core
1•hewiabitnull•20m ago•1 comments

RuntimeGuard v2 – enforcement and easy security posture config for AI agents

https://runtime-guard.ai/
3•JimmyRacheta•22m ago•1 comments

Ever Wondered What Life Looks Like in Reverse?

https://textideo.com/video-tools/reverse-video
1•Ethanalker•22m ago•0 comments

From error-handling to structured concurrency

https://blog.nelhage.com/post/concurrent-error-handling/
1•r4um•22m ago•0 comments

The CPU Was Left for Dead by AI. Now AI Is Bringing It Back

https://www.wsj.com/tech/ai/cpu-agentic-ai-ca2c5582
2•JumpCrisscross•24m ago•0 comments

Autism-Therapy Firm That Was Paid $340k per Patient Is Barred from Medicaid

https://www.wsj.com/health/healthcare/autism-therapy-firm-paid-average-of-340-000-per-patient-bar...
2•JumpCrisscross•26m ago•0 comments

NeurIPS Statement on Sanctions

https://twitter.com/NeurIPSConf/status/2037066494983426374
1•limoce•27m ago•0 comments

Developing Creative Identity

https://michaelnotebook.com/dci/index.html
1•sebg•31m ago•0 comments

Chonkify – compression for RAG and Agents that outperforms LLMLingua by ~4 times

https://github.com/thom-heinrich/chonkify
1•thomheinrich•31m ago•0 comments

Do Back-to-Back Courtroom Losses Herald Meta's 'Big Tobacco' Moment?

https://www.wsj.com/tech/do-back-to-back-courtroom-losses-herald-metas-big-tobacco-moment-57e6f227
2•JumpCrisscross•35m ago•1 comments

DoltLite: Free, open source drop-in replacement for SQLite with version control

https://www.dolthub.com/blog/2026-03-25-doltlite/
1•ingve•37m ago•0 comments

The Harmony of Theory and Practice in the Design of Tall Buildings(2015) [video]

https://www.youtube.com/watch?v=_XrvfBlcWcs
1•o4c•40m ago•0 comments

You probably don't want to buy a retro console

https://medium.com/@razorbeamz/you-probably-dont-want-to-buy-a-retro-console-a-guide-for-people-w...
8•razorbeamz•43m ago•1 comments

Python 3.3: The Version That Rewired Everything

https://techlife.blog/posts/python-3-3-modernization/
2•clarkmaxwell•47m ago•1 comments

A prolonged Middle East conflict could reshape how we fly

https://www.bbc.co.uk/news/articles/cn08x9lw0pzo
2•edward•49m ago•0 comments

Modly: Drop a photo, get a 3D mesh, open source and runs on your GPU

https://firethering.com/modly-local-ai-image-to-3d-model-generator/
2•steveharing1•50m ago•1 comments

Skeleton of Three Musketeers hero d'Artagnan may have been found

https://www.theguardian.com/world/2026/mar/25/skeleton-three-musketeers-dartagnan-alexandre-dumas
1•victortalkstech•50m ago•0 comments

Roots of Copernican Revolutions [video]

https://www.youtube.com/watch?v=iRCUz7LG0vw
1•teleforce•50m ago•0 comments

Inside the far-right network targeting Europe's digital rules

https://corporateeurope.org/en/2026/03/inside-far-right-network-targeting-europes-digital-rules
2•vrganj•52m ago•0 comments

Agent Identity System

https://github.com/yshuolu/agent-identity-protocol
1•yshuolu•52m ago•1 comments

Basecamp Goes Agent-First

https://basecamp.com/agents
1•diogenico•55m ago•1 comments

The U.S. Said It Helped Bomb a Drug Camp. It Was a Dairy Farm

https://www.nytimes.com/2026/03/24/world/americas/us-ecuador-drug-camp-bombing-dairy-farm.html
2•vrganj•57m ago•0 comments