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?

Show HN: DocForge – Multi-Agent RAG That Fact-Checks Its Own Answers

https://github.com/ToheedAsghar/DocForge
1•toheed11•2m ago•0 comments

Show HN: 10-min AI threat model (STRIDE and MAESTRO), assumption-driven

https://raxit.ai/assessment
1•agairola•3m ago•0 comments

Maester 2.0

https://maester.dev/blog/maester-2-0/
1•mooreds•5m ago•0 comments

ChatGPT Containers can now run bash, pip/NPM install packages and download files

https://simonwillison.net/2026/Jan/26/chatgpt-container
1•ms7892•5m ago•0 comments

Show HN: ToEnvelope – A local-first, WYSIWYG envelope printer for the browser

https://toenvelope.com/
1•4a4g5htv•6m ago•1 comments

Show HN: Consciousness Gateway – AI routing with consciousness-first alignment

https://github.com/Move37LLC/consciousness-gateway
1•AIconscious•6m ago•0 comments

Typography Hierarchy Boosts UI Usability

https://raw.studio/blog/how-typography-hierarchy-boosts-ui-usability/
2•vinhnx•8m ago•0 comments

Golang OpenClaw-Like Project

https://github.com/ruilisi/lingti-bot
1•zhcalvin•13m ago•1 comments

Show HN: OctoStore = Leader election as a service (single binary, self-hostable)

https://octostore.io/
1•TheIronYuppie•13m ago•0 comments

Insidious in VR

https://true3d.com/insidious
1•danielgh7•16m ago•0 comments

Secrets About 'Tennessee's Ancient Egyptian Temple' Revealed (2018)

https://www.ancientpages.com/2018/08/15/secrets-about-tennessees-ancient-egyptian-temple-revealed/
1•airhangerf15•16m ago•0 comments

Robots Dream of Agentic Soup: A Evolutionary Agent Skill Experiment

https://skillsoup.dev/ideas
1•softwareiseasy•17m ago•0 comments

Pre-training vs. post-training is a false dichotomy

1•ariansyah•21m ago•0 comments

Show HN: Merge Jpg Free Online Tool

https://pngtostl.xyz/merge-jpg
1•niliu123•22m ago•0 comments

Ask HN: Do You Use AI Email Assistants Like Google CC?

https://blog.google/innovation-and-ai/models-and-research/google-labs/cc-ai-agent/
1•arttaboi•23m ago•1 comments

Why is everyone talking about Section 230?

https://www.whatissection230.org/
1•lyu07282•25m ago•0 comments

'So Tired I Want to Cry': China's AI Subsidy War Swamps Shops

https://www.sixthtone.com/news/1018191
2•TMWNN•25m ago•1 comments

Some thoughts about tool design and AI

https://blog.vbuckenham.com/some-thoughts-about-tool-design-and-ai/
1•vinhnx•27m ago•0 comments

Show HN: Carapace – A security-hardened Rust alternative to OpenClaw

https://github.com/puremachinery/carapace
2•puremachinery•28m ago•0 comments

Who Is Parker Miller? (From Mitchell Martin)

https://www.mitchellmartin.com/who-is-parker-miller
1•Baljhin•29m ago•1 comments

Ask HN: Has anyone achieved recursive self-improvement with agentic tools?

3•nycdatasci•31m ago•2 comments

Jony Ive and Ferrari car interior reveal, Apple car?

https://www.wallpaper.com/tag/ferrari
2•Guyadou•36m ago•2 comments

Ex-Meta exec says Instagram exposed teen daughter to 'predators' in bombshell

https://nypost.com/2026/02/11/business/ex-meta-exec-says-instagram-exposed-teen-daughter-to-preda...
2•rawgabbit•38m ago•0 comments

Biases in the Blind Spot: Detecting What LLMs Fail to Mention

https://arxiv.org/abs/2602.10117
1•typeofhuman•40m ago•0 comments

Sony Jumbotron Image Control System (1998) [pdf]

https://pro.sony/s3/cms-static-content/operation-manual/3864848111.pdf
2•xattt•40m ago•1 comments

Show HN: AI-Powered Structured Data Extraction from Any Document (93%+ Accuracy)

1•chaitanyavelaga•41m ago•0 comments

Try AI Beauty – Transform your look with the power of AI

https://www.tryaibeauty.com
1•rocing•43m ago•1 comments

Apple Easter egg has been hiding in plain sight

https://www.creativebloq.com/design/this-apple-easter-egg-has-been-hiding-in-plain-sight
1•vinhnx•44m ago•0 comments

Best Global Brands 2025

https://interbrand.com/best-global-brands/global/
1•vinhnx•44m ago•0 comments

Memsearch,an agent memory with md as source of truth(inspired by OpenClaw)

https://zilliztech.github.io/memsearch/
1•zhangchen•46m ago•0 comments