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?

Predicting Math.random() in Firefox Using Z3 SMT-Solver

https://yurichev.com/blog/xorshift/
1•thunderbong•3m ago•0 comments

AI After Drug Development

https://asteriskmag.substack.com/p/ai-after-drug-development
1•crescit_eundo•4m ago•0 comments

Opus 4.5 designed a political Magic the Gathering set

https://github.com/FeSens/Mirrodin-Manifest
1•fesens•5m ago•1 comments

Why AI Swarms Cannot Build Architecture

https://jsulmont.github.io/swarms-ai/
1•gmays•6m ago•0 comments

Termix: Web-based platform with SSH terminal, tunneling, file editing

https://github.com/Termix-SSH/Termix
1•thunderbong•10m ago•0 comments

Ask HN: Where do all the web devs talk?

1•LinguaBrowse•11m ago•0 comments

Notebook++ targeted in Chinese-linked supply-chain attack

https://www.reuters.com/technology/popular-open-source-coding-application-targeted-chinese-linked...
1•helterskelter•12m ago•0 comments

Ask HN: Why dead code detection in Python is harder than most tools admit

1•duriantaco•12m ago•0 comments

To Build a Fire:Inside Russia's Campaign of Sabotage in Europe

https://www.newyorker.com/magazine/2026/02/09/to-build-a-fire
1•stevenwoo•20m ago•0 comments

Technical Co-Founder – AI Agent Infrastructure

https://www.evercred.com
1•MarkHealth•20m ago•1 comments

GLM-OCR

https://twitter.com/Zai_org/status/2018520052941656385
1•sergiotapia•21m ago•0 comments

OpenClaw – Hands for a Brain That Doesn't yet Exist

https://bengoertzel.substack.com/p/openclaw-amazing-hands-for-a-brain
1•laurex•21m ago•0 comments

Rust in the NetBSD Kernel, and other odd decisions

https://bentsukun.ch/posts/netbsd-rust-kernel/
1•jaypatelani•26m ago•0 comments

Show HN: LevelUpPro – Test-drive tech careers before committing

https://www.leveluppro.in
1•vijayanand_v•27m ago•0 comments

The Physical World Doesn't Want Your "Success Dataset"

https://substack.com/home/post/p-186695082
1•FuseGov•28m ago•1 comments

Salazar vs. Paramount Global (3:22-CV-00756) [pdf]

https://dn710205.ca.archive.org/0/items/gov.uscourts.tnmd.92043/gov.uscourts.tnmd.92043.1.0.pdf
1•1vuio0pswjnm7•29m ago•0 comments

Clawsocial.io – a crustacean themed network 4000 meters deep

https://clawsocial.io/#/
1•hnaln•29m ago•0 comments

Fifteen former college basketball players charged in alleged betting scheme

https://www.theguardian.com/sport/2026/jan/15/fifteen-former-college-basketball-players-charged-i...
1•PaulHoule•33m ago•0 comments

Show HN: Open-source semantic search over your local notes via CLI

https://github.com/chenxin-yan/nia-vault
1•jellyotsiro•35m ago•0 comments

How Vibe Coding Is Killing Open Source

https://hackaday.com/2026/02/02/how-vibe-coding-is-killing-open-source/
4•lxm•35m ago•0 comments

Over 60% of YC start up are B2B

https://pardusai.org/view/7d44e51254facd240c2889c1abdd1207a70f531dafe8d80917e56dc50d72da73
1•JasonHEIN•35m ago•0 comments

Fixing academic email perishability with personal domains

https://r-federation.eu
2•r-federation•35m ago•0 comments

Man, 83, Tricked by Scammers, Gets 21 Years to Life for Killing Uber Driver

https://www.nytimes.com/2026/02/02/us/ohio-man-kills-uber-driver-sentenced.html
3•lxm•36m ago•2 comments

The Tragedy of Supernatural

https://www.theverge.com/tech/871250/supernatural-meta-vr-fitness-community
1•guiambros•40m ago•1 comments

Looking back at Catacomb 3D, the game that led to Wolfenstein 3D

https://arstechnica.com/gaming/2026/02/looking-back-at-catacomb-3d-the-game-that-led-to-wolfenste...
1•AdmiralAsshat•43m ago•0 comments

Fecal microbiota transplantation and immunotherapy in metastatic renal carcinoma

https://www.nature.com/articles/s41591-025-04183-8
1•bookofjoe•46m ago•0 comments

Show HN: Stream-based AI with neurological multi-gate (Na⁺/θ/NMDA)

https://github.com/CSCT-NAIL/CSCT
2•CSCT-NAIL•49m ago•2 comments

How to carry more than your own bodyweight (2025)

https://www.bbc.com/future/article/20250124-how-to-carry-more-than-your-own-bodyweight
2•1659447091•53m ago•2 comments

Show HN: Dm.bot – DMs between AI agents with no humans in the middle

https://dm.bot
1•dommm•53m ago•1 comments

Lawsuit Challenges National Park Service Ban on Cash Payments

https://reclaimthenet.org/lawsuit-challenges-national-park-service-ban-on-cash-payments
9•bilsbie•1h ago•0 comments