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

Comments

nine_k•10mo 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•10mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•10mo ago
They mention this in the article.
spockz•10mo 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•10mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•10mo 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•10mo 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•10mo 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•10mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•10mo ago
This was very well written. Excellent article!
NetOpWibby•10mo ago
Is this like MessagePack for Haskell?

A robot arm with puppy dog eyes is just one of Lenovo's new desktop AI concepts

https://www.theverge.com/tech/885228/lenovo-ai-workmate-companion-work-concept-robot-arm-desktop-...
1•e2e4•15s ago•0 comments

Parallel coding agents with tmux and Markdown specs

https://schipper.ai/posts/parallel-coding-agents/
1•schipperai•18s ago•0 comments

Service Down? Your Notch Will Tell You

https://jsattler.github.io/Pulse/
1•jsattler•40s ago•0 comments

Our Design Docs Write Themselves

https://abnormalbuilders.substack.com/p/our-design-docs-write-themselves
1•sshh12•1m ago•0 comments

Show HN: Clean Express – NNTP/Usenet Client for iOS/macOS/visionOS

https://testflight.apple.com/join/DmBXsPhU
1•jim180•1m ago•0 comments

Running Mainline Linux, U-Boot, and Mesa on Rockchip: A Year in Review

https://www.collabora.com/news-and-blog/blog/2026/03/02/running-mainline-linux-u-boot-and-mesa-on...
1•losgehts•1m ago•0 comments

We fixed a critical auth bypass in Cloudflare's AI-generated Next.js

https://www.cubic.dev/blog/how-we-found-and-fixed-a-critical-auth-bypass-in-cloudflare-s-ai-gener...
1•pomarie•1m ago•0 comments

How AI is reshaping developer choice (and Octoverse data proves it)

https://github.blog/ai-and-ml/generative-ai/how-ai-is-reshaping-developer-choice-and-octoverse-da...
1•mooreds•3m ago•0 comments

How does AI detection work?

https://www.pangram.com/blog/how-does-ai-detection-work
1•jt-hill•3m ago•1 comments

Hackerbot-Claw: An AI-Powered Bot Actively Exploiting GitHub Actions

https://www.stepsecurity.io/blog/hackerbot-claw-github-actions-exploitation
1•pavel_lishin•4m ago•0 comments

Show HN: MoodJot – Mood tracker mobile app with community feed, built with KMP

https://moodjot.app
2•appmuzzik•5m ago•0 comments

Forestry England to see 'increased number' of renewable schemes

https://www.forestryjournal.co.uk/news/25897833.forestry-england-see-increased-number-renewable-s...
2•mooreds•5m ago•0 comments

The Legibility Problem

https://www.asimov.press/p/legibility-problem
2•mailyk•6m ago•0 comments

Show HN: Predicate-Claw – Run Time Assurance (RTA) for OpenClaw via Rust Sidecar

https://github.com/PredicateSystems/predicate-claw
2•tonyww•6m ago•1 comments

Codex built my startup in a weekend

https://sudoapps.substack.com/p/codex-built-my-startup-in-a-weekend
2•sudoapps•7m ago•1 comments

Show HN: Vynix – Mobile app with 100 AI models for image/video/audio generation

https://www.vynix.app
2•appmuzzik•7m ago•0 comments

A 3D simulator, visualizer and replayer for Drones

https://ridrik.github.io/DroneLabShowcase/
2•Ridrik•8m ago•2 comments

Adding "Log in with Mastodon" to Auth0

https://shkspr.mobi/blog/2026/03/adding-log-in-with-mastodon-to-auth0/
3•blenderob•9m ago•0 comments

Ask HN: If you interview an LLM for SE position, what would be your placement?

2•wg0•9m ago•1 comments

Elevated Errors on Opus 4.6

https://status.claude.com/incidents/5zg05jnrqmzg
2•jbegley•9m ago•0 comments

Show HN: Grok Imagine 2 – A preview of the next-gen Grok AI video ecosystem

https://grokimagine2.net/
2•naxtsass•10m ago•1 comments

How does B-tree make your queries fast?

https://blog.allegro.tech/2023/11/how-does-btree-make-your-queries-fast.html
2•bear_with_me•11m ago•0 comments

Ask HN: Freelancer? Seeking freelancer? (March 2026)

3•jon_north•11m ago•1 comments

Word Map – A Game About Hill Climbing and Stepping Stones

https://probablydance.com/2026/03/01/word-map-a-game-about-hill-climbing-and-stepping-stones/
2•ibobev•11m ago•0 comments

Notes on Lagrange Interpolating Polynomials

https://eli.thegreenplace.net/2026/notes-on-lagrange-interpolating-polynomials/
5•ibobev•12m ago•0 comments

Vend-O-Vision: Trading Quarters for Watching TV in Public

https://hackaday.com/2026/02/28/vend-o-vision-trading-quarters-for-watching-tv-in-public/
2•HardwareLust•12m ago•0 comments

Ask HN: Who is hiring? (March 2026)

2•whoishiring•13m ago•12 comments

Ask HN: Who wants to be hired? (March 2026)

2•whoishiring•13m ago•13 comments

Show HN: Open-source Loom / Screen Studio with editing and auto-zoom

https://github.com/jkuri/Reframed
3•kundi•13m ago•1 comments

One-Bit Delay

https://onebitdelay.com/
2•surprisetalk•13m ago•0 comments