frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Packed Data Support in Haskell

https://arthi-chaud.github.io/posts/packed/
77•matt_d•1y ago

Comments

nine_k•1y 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•1y ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•1y ago
They mention this in the article.
spockz•1y ago
It reminds me more of flat buffers though. Does protobuf also have zero allocation (beyond initial ingestion) and no pointer jumps?
cstrahan•1y ago
No, one example of why being variable sized integers.

See https://protobuf.dev/programming-guides/encoding/

carterschonwald•1y ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•1y 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•1y 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•1y 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•1y ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•1y ago
This was very well written. Excellent article!
NetOpWibby•1y ago
Is this like MessagePack for Haskell?

Rust Declarative Macros: Organization, Scoping, and Common Use-Cases

https://sigseis.dev/articles/2026/11/10
1•sigseis•42s ago•0 comments

Fable 5.2 and Jagged AGI

https://www.oneusefulthing.org/p/fable-52-and-jagged-agi
2•dyzone•2m ago•0 comments

Gemini 4 Carbon Model Card [pdf]

https://storage.googleapis.com/deepmind-media/Model-Cards/Gemini-4-Carbon-Model-Card.pdf
1•matthieu_bl•2m ago•0 comments

Type inference and narrowing with reverse arrows

https://elixir-lang.org/blog/2026/11/10/inference-narrowing-reverse-arrows/
1•josevalim•2m ago•0 comments

Looks Like the Intelligence Explosion Will Happen in 2027 After All

https://blog.aifutures.org/p/q35-timelines-update-looks-like-
1•DGAP•2m ago•0 comments

Trying to Cure My Cystic Fibrosis

https://press.asimov.com/articles/cystic-fibrosis
1•mooreds•2m ago•0 comments

For security, self-host your production internal software

https://www.windmill.dev/blog/self-host-production-internal-software
6•rubenfiszel•5m ago•0 comments

JSON.stringify is not safe inside a script tag: JSON-LD XSS and its one-line fix

https://tobiasuhlig.medium.com/json-stringify-is-not-safe-inside-a-script-tag-the-json-ld-xss-and...
1•tobiu•6m ago•0 comments

Suspicious Traffic Claiming Referral from Aocr.org

https://vale.rocks/micros/20261110-1531
1•edent•6m ago•0 comments

Build a Chess.com AI Companion for Your Latest Game

https://quickchat.ai/post/chesscom-latest-game-ai-companion
1•piotrgrudzien•7m ago•0 comments

Trump picks Palantir cybersecurity executive to lead CISA

https://www.cybersecuritydive.com/news/trump-cisa-director-nominee-michael-losapio/874256/
1•mooreds•8m ago•0 comments

Outlook.com bounces legit emails as authentication crackdown goes sideways

https://www.theregister.com/applications/2026/11/09/outlookcom-bounces-legit-emails-as-microsofts...
1•graemep•8m ago•0 comments

Show HN: Glitch/Distorion page transitions with HTML-in-Canvas

https://amagi.dev/vfx-js-transitions/
1•amagitakayosi•9m ago•0 comments

Tesla Explains Why It Dropped Sunroofs from Its Vehicles

https://www.notateslaapp.com/news/4980/tesla-explains-why-it-dropped-sunroofs-from-its-vehicles
1•jerlam•9m ago•0 comments

The Great Divide in How Teams Manage IaC

https://newsletter.masterpoint.io/p/the-great-divide-in-how-teams-manage-iac
1•mooreds•10m ago•0 comments

Ask HN: How do you report an AI breach you don't know happened?

https://srnnews.com/australia-tightens-ai-oversight-rules-after-openai-agent-breached-government-...
1•abalgir•10m ago•1 comments

A Mathematician's Square Wheel Bike

https://www.macalester.edu/mscs/multimedia/squarewheeledbike/squarewheelbike/
3•DanielKehoe•11m ago•0 comments

Show HN: Ramble – Message your agent directly from your Apple Watch

https://ramble.watch
1•Jpoliachik•11m ago•0 comments

Show HN: Vesputio – A Put.io Client for iOS and Android

https://vesputio.app/android/beta
1•ipavlidakis•12m ago•0 comments

NASA's twin ESCAPADE Mars probes slingshot around Earth in double gravity assist

https://www.space.com/astronomy/mars/nasas-escapade-twin-mars-probes-execute-a-1st-of-its-kind-gr...
1•locofocos•12m ago•0 comments

Internally Deployed Users Are the Only Way to Ship Great Software Now

https://www.plushcap.com/blog/internally-deployed-users-ship-great-software
2•makaimc•13m ago•0 comments

Postgres 19 Repack: Faster, Built-In Table Bloat Cleanup

https://www.snowflake.com/en/blog/engineering/postgres-19-repack-table-bloat/
4•craigkerstiens•14m ago•0 comments

Sakana AI may go public in 2027

https://www.japantimes.co.jp/business/2026/11/10/companies/sakana-ai-ipo/
2•mikhael•14m ago•0 comments

Chinese authorities blocked Canada's Tiananmen Square tribute

https://www.cbc.ca/news/politics/tiananmen-square-candle-beijing-embassy-9.7415257
2•emptybits•15m ago•0 comments

Show HN: Locatic – Discover developers and projects in your city

https://locatic.dev/
1•saketharama•17m ago•0 comments

Blender 5.3 released with Gaussian Splat support

https://www.blender.org/download/releases/5-3/
25•amlib•18m ago•3 comments

BasalFit – Recipes/meal plans and food log, usable from Claude-ChatGPT via MCP

https://basalfit.com/
1•veeragoni•19m ago•0 comments

Instagram Can Predict How Lonely You Are

https://today.ucsd.edu/story/your-instagram-can-predict-how-lonely-you-are
2•giuliomagnifico•20m ago•2 comments

Aussie newsagent worker linked to company at centre of Nvidia spy scandal

https://www.abc.net.au/news/2026-11-10/nvidia-affair-scandal-megaspeed-linked-to-regional-victori...
3•evolve2k•20m ago•1 comments

The Rubber Stamp Problem: When a Human in the Loop Is Not Overseeing Anything

https://medium.com/@MirArshadTalpur/the-rubber-stamp-problem-when-a-human-in-the-loop-is-not-over...
1•Arshad-Talpur•20m ago•0 comments