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?

Video: A Brief Overview of the Atari 800XL

https://www.goto10retro.com/p/video-a-brief-overview-of-the-atari
1•rbanffy•1m ago•0 comments

Show HN: Yet another music player but written in Rust

https://github.com/temidaradev/rusic
2•temidaradev•5m ago•0 comments

Apple's Latest Attempt to Launch the New Siri Runs into Snags

https://www.bloomberg.com/news/articles/2026-02-11/apple-s-ios-26-4-siri-update-runs-into-snags-i...
2•petethomas•5m ago•0 comments

GLM 5 – The Next-Gen Frontier

https://glm5.app/
1•Jenny249•6m ago•0 comments

Iran's Digital Surveillance Machine Is Almost Complete

https://www.wired.com/story/irans-digital-surveillance-machine-is-almost-complete/
1•oavioklein•6m ago•0 comments

Deleted doesn't mean gone: How police recovered Nancy Guthrie's doorbell footage

https://www.theverge.com/tech/877235/nancy-guthrie-google-nest-cam-video-storage
1•wewewedxfgdf•7m ago•0 comments

A few design decisions for a new chat platform

https://sporks.space/2026/02/10/a-few-design-decisions-for-a-new-chat-platform/
2•zdw•8m ago•0 comments

Apple withholds 18.7.5 security update from iPhones and iPads supporting iOS 26

https://support.apple.com/en-us/126347
3•shantara•11m ago•2 comments

Building Modern Databases with the FDAP Stack

https://gotopia.tech/articles/412/building-modern-databases-with-the-fdap-stack
1•PaulHoule•13m ago•0 comments

TypeScript 6.0 Beta

https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/
2•enz•13m ago•0 comments

Three Conversations Worth Having with Your CTO

https://docs.eventsourcingdb.io/blog/2026/02/12/three-conversations-worth-having-with-your-cto/
1•goloroden•13m ago•0 comments

Microwave Oven Failure: Spontaneously turned on by its LED display (2024)

https://blog.stuffedcow.net/2024/06/microwave-failure-spontaneously-turns-on/
1•arm•14m ago•0 comments

Show HN: Codingagents.md – The open directory for AI coding agents

https://codingagents.md/
2•meame2010•14m ago•3 comments

You Don't Need It

https://moq.dev/blog/you-dont-need-it/
1•surprisetalk•14m ago•0 comments

Singing the Gospel of Collective Efficacy

https://interconnected.org/home/2026/01/30/efficacy
1•surprisetalk•14m ago•0 comments

So I Got an EEG

https://chillphysicsenjoyer.substack.com/p/so-i-got-an-eeg
1•surprisetalk•14m ago•0 comments

Show HN: DetectZeStack – REST API to detect any website's technology stack

https://detectzestack.fly.dev/
1•mlugo-apx•14m ago•0 comments

I Vibe Coded a Game to the Front Page of Hacker News

https://katecatlin.substack.com/p/i-vibe-coded-a-game-to-the-front
2•mooreds•15m ago•0 comments

FDA refuses to review Moderna's application for mRNA flu vaccine, company says

https://www.cnn.com/2026/02/10/health/fda-moderna-mrna-flu-vaccine
1•MilnerRoute•16m ago•0 comments

Show HN: Unpack – a lightweight way to steer Codex/Claude with phased docs

https://github.com/apresmoi/unpack
4•apresmoi•17m ago•0 comments

How Talking to a Rubber Duck Made Me a Better Developer

https://talkflow.substack.com/p/how-talking-to-a-rubber-duck-made
1•moss98•18m ago•0 comments

Sam 3: a unified foundation model for promptable segmentation in images/videos

https://github.com/facebookresearch/sam3
1•mooreds•20m ago•0 comments

Fyrox Rust Game Engine 1.0 Release Candidate 2

https://fyrox.rs/blog/post/fyrox-game-engine-1-0-0-rc-2/
1•adamnemecek•20m ago•0 comments

What is wrong with ChatGPT and this Harry Potter Question

1•anoncow•20m ago•0 comments

From Muscle to Matrix

https://www.aviraj.dev/blog/from-muscle-to-matrix
1•avirajkhare•20m ago•0 comments

Are AI replicas of the dead an innovative medical tool or an ethical nightmare?

https://www.rnz.co.nz/news/world/586024/digital-ghosts-are-ai-replicas-of-the-dead-an-innovative-...
3•billybuckwheat•21m ago•0 comments

Intel cancelling Tower Semi co-manufacturing deal

https://towersemi.com/2026/02/11/02112026/
2•osnium123•22m ago•1 comments

Fontemon

https://www.coderelay.io/fontemon.html
1•Tomte•22m ago•0 comments

Paragon accidentally uploaded a photo of its spyware control panel

https://twitter.com/DrWhax/status/2021608609595945442
7•CGMthrowaway•22m ago•0 comments

The Death of Traditional Testing: Agentic Development Broke a 50-Year-Old Field

https://engineering.fb.com/2026/02/11/developer-tools/the-death-of-traditional-testing-agentic-de...
2•melqdusy•23m ago•0 comments