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?

How to Start a Newsletter for Free in 2026 (The Simple Way) Tim • Pu

1•mariusme•1m ago•0 comments

How to Start a Newsletter for Free in 2026 (The Simple Way) Tim • Pu

https://toolwise.co/start-newsletter-free
1•mariusme•1m ago•0 comments

Elmer McCurdy

https://en.wikipedia.org/wiki/Elmer_McCurdy
1•doener•5m ago•0 comments

Show HN: Portfolio Terminal – AI import for broker exports

https://portfolio-terminal.com/onboarding
1•julien_devv•5m ago•0 comments

The Security Gap in MCP: The Hidden Risks No One Is Talking About

https://memgraph.com/blog/security-gap-in-mcp-graphrag-context
1•taubek•5m ago•0 comments

Bring receipts from your Claude Code sessions

https://github.com/chrishutchinson/claude-receipts
1•noone_youknow•7m ago•0 comments

AI Watermarker: Add authentic AI generator watermarks to real photos and videos

https://watermark.pics/
1•CGMthrowaway•8m ago•0 comments

Ask HN: Differences between the Xcode 26.3 agent and Claude Code / Codex?

1•Austin_Conlon•8m ago•0 comments

Show HN: A Human-as-a-Service for OpenClaw to send greeting card to their humans

https://clawcard.ai
1•bennhuang•9m ago•0 comments

Auth0 Down

https://manage.auth0.com/
2•shmolf•12m ago•0 comments

Show HN: 0.1.0 release of Rust game engine SDK

https://crates.io/crates/libmarathon
1•mxplusb•13m ago•0 comments

HDR Lens Flare

https://labs.clockmaker.jp/works/260206_threejs_particles
1•memalign•14m ago•0 comments

Humanoid robot Unitree G1 trudges through ice and snow at -47.4 °C

https://www.heise.de/en/news/Humanoid-robot-Unitree-G1-trudges-through-ice-and-snow-at-47-4-C-111...
2•lukeinator42•14m ago•0 comments

Asymmetry is all you need (2025)

https://theterminalist.substack.com/p/asymmetry-is-all-you-need
1•imakwana•15m ago•0 comments

Permutation City by Greg Egan

https://www.gregegan.net/PERMUTATION/Permutation.html
2•Squarex•15m ago•1 comments

Why pay subscriptions, when you can Pay-per-Byte?

https://xbyte.sh/
1•Arvmor•18m ago•0 comments

Open source offline AI notes – Fission

https://github.com/venkada321-collab/voice-notes
1•venkada321•20m ago•0 comments

Context Engineering for Coding Agents

https://martinfowler.com/articles/exploring-gen-ai/context-engineering-coding-agents.html
1•ColinEberhardt•22m ago•1 comments

Show HN: I made a minimal Pomodoro timer for macOS (1.5MB, open source)

https://github.com/happylaodu/PomodoroTimer
1•happylaodu•22m ago•0 comments

Amsterdam takes control of digital systems, data of Amsterdam residents (Dutch)

https://www.amsterdam.nl/nieuws/nieuwsoverzicht/stappenplan-digitale-autonomie/
4•Muromec•22m ago•2 comments

Show HN: Free Unlimited Claude Code Usage with Nvidia Nim Models

https://github.com/Alishahryar1/claude-code-free
1•AliShahryar•23m ago•0 comments

Show HN: Lexadec – A daily boggle-style word game

https://lexadec.com
1•liambre•24m ago•0 comments

Why Copilot's Auto Mode for AI Models Ignores Your Actual Task

https://visualstudiomagazine.com/articles/2026/02/06/why-copilots-auto-mode-for-ai-models-ignores...
1•daram•26m ago•1 comments

Show HN: First DIY open source LLM robot for $70

https://robot.mvpgen.com/
1•Extender777•27m ago•0 comments

Ask HN: What Makes You Productive

1•aavci•27m ago•0 comments

Ai.com Sold for $70M

https://www.dnjournal.com/archive/lowdown/2026/posts/0206-2.htm
1•aditya1rathore•28m ago•0 comments

Who entered Epstein's jail tier the night of his death?

https://www.cbsnews.com/news/epstein-files-jail-cell-death-video-logs/
6•belter•28m ago•0 comments

The Russian economy is finally stagnating. What does it mean for the war?

https://www.theguardian.com/world/ng-interactive/2026/feb/06/the-russian-economy-is-finally-stagn...
2•amelius•30m ago•0 comments

Cerebras Systems Raises $1B Series H

https://www.cerebras.ai/press-release/cerebras-systems-raises-usd1-billion-series-h
2•rbanffy•31m ago•0 comments

HelloRL: A modular framework, like Lego for Reinforcement Learning

https://github.com/i10e-lab/HelloRL
1•AndrewHart•31m ago•1 comments