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?

We are all going to regret Kalshi and Polymarket

https://davekarpf.substack.com/p/we-are-all-going-to-regret-kalshi
1•thenaturalist•52s ago•0 comments

Immediate 10 day TFR issued in El Paso due to "special security reasons"

https://old.reddit.com/r/ADSB/comments/1r1pqnp/10_day_tfr_issued_in_el_paso_due_to_special/
1•c420•1m ago•0 comments

The Problem with LLMs

https://www.deobald.ca/essays/2026-02-10-the-problem-with-llms/
1•deobald•5m ago•0 comments

FortiGate Symlink Persistence Method

https://pgj11.com/posts/FortiGate-Symlink-Attack/
1•Yippee-Ki-Yay•8m ago•0 comments

The Calorie Counter (2022)

https://www.science.org/content/article/scientist-busts-myths-about-how-humans-burn-calories-and-why
1•XzetaU8•10m ago•0 comments

4B unique (and sometimes memorable) sentences

https://unsung.aresluna.org/4-billion-unique-and-sometimes-very-memorable-sentences/
1•Fudgel•11m ago•0 comments

What Does the Sonatype 2026 State of the Software Supply Chain Report Reveal?

https://www.i-programmer.info/news/80-java/18650-what-does-the-sonatype-2026-state-of-the-softwar...
1•aquastorm•11m ago•0 comments

Communities Are Not Fungible

https://www.joanwestenberg.com/communities-are-not-fungible/
2•tardibear•13m ago•0 comments

Co-founders of Elon Musk's xAI join exodus from startup's tech team

https://www.ft.com/content/3d4a9683-b70a-4953-b21b-b3ea07d693a3
3•znq•15m ago•0 comments

Building a 'Hum to Search' Directory in just an hour

https://humtosearch.net/
1•JohnYuan97•18m ago•1 comments

Agent-Tail

https://agent-tail.vercel.app/
1•handfuloflight•21m ago•0 comments

Claude add-on turns Google Calendar into malware courier

https://www.theregister.com/2026/02/11/claude_desktop_extensions_prompt_injection/
2•beardyw•23m ago•0 comments

Show HN: Actionbook – Resilient browser automation engine for AI agents (Rust)

https://github.com/actionbook/actionbook
2•asen_not_taken•23m ago•0 comments

Show HN: Building My Own Google Analytics for $0

https://www.adwait.me/writings/building-my-own-google-analytics
2•adwait12345•27m ago•0 comments

Robinson–Patman Act

https://en.wikipedia.org/wiki/Robinson%E2%80%93Patman_Act
1•ndesaulniers•27m ago•0 comments

Inside OpenAI's Decision to Kill the AI Model That People Loved Too Much

https://www.wsj.com/tech/ai/chatgpt-4o-openai-315138b8
1•qsi•29m ago•0 comments

Cocoon – decentralized network for confidential AI inference

https://cocoon.org/
1•defuz•30m ago•0 comments

Show HN: Community Run Evidence for Peptides

https://app.signalprogress.com/
1•parthsuthar•36m ago•0 comments

A Technical Series on Building Stateful AI Agents with LangGraph

https://aipractitioner.substack.com/
1•linafaik08•36m ago•1 comments

APIs over UIs: Agents Are the Future Interface to Everything

https://dylanhuang.com/blog/agents-over-ui/
1•dphuang2•40m ago•0 comments

Chances of re-interview post rejection

1•ultimatem•41m ago•0 comments

Show HN: Migrate away from Vue SFC's to native TSX

https://www.npmjs.com/package/vue-to-tsx
1•NikhilVerma•41m ago•0 comments

What happens when you give Claude Code $1,500 to Run Meta Ads Autonomously

https://medium.com/@giorgioliapakis/experiment-result-heres-what-happens-when-you-give-claude-cod...
1•schappim•43m ago•0 comments

Validating Markdown Structure in a Single Declarative Expression

https://alganet.github.io/blog/2026-02-11-02-Validating-Markdown-Structure-in-a-Single-Declarativ...
1•gaigalas•43m ago•0 comments

Watching OpenClaw making an actual claw in fusion360

https://twitter.com/ChrisInNoosa/status/2021480882511777862
1•cndg•46m ago•0 comments

Show HN: Visual Agentic Dev – Click React components to edit source capabilities

https://github.com/brucetoo/visual-agentic-dev
1•brucetooo•47m ago•0 comments

THE Replacement to RL for AI Agents. RL is legacy now.

https://cadenza-landing-qtu7gbjwb-akshparekh123-3457s-projects.vercel.app/
1•aparekh02•49m ago•1 comments

The Hard Limit on Human Lifespan

https://www.unaging.com/aging/the-hard-limit-on-human-lifespan/
1•drinian•53m ago•0 comments

When will we see Factorio with AI agents?

1•simonebrunozzi•56m ago•0 comments

TuneDocs – Documentation turned into podcast-style audio overviews

https://tunedocs.com/
1•danmartuszewski•56m ago•1 comments