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?

AI agents now help attackers, including North Korea, manage their drudge work

https://www.theregister.com/2026/03/08/deploy_and_manage_attack_infrastructure/
1•donutshop•1m ago•0 comments

Baochip-1x: A Mostly-Open, 22nm SoC for High Assurance Applications

https://www.bunniestudios.com/blog/2026/baochip-1x-a-mostly-open-22nm-soc-for-high-assurance-appl...
1•sohkamyung•8m ago•0 comments

Show HN: LocalRAG – Ask AI about your own documents (iOS/Android)

https://localrag.app
1•snakaya•22m ago•0 comments

LangWatch: OpenTelemetry-Native LLM Observability Without the Vendor Lock-In

https://starlog.is/articles/data-knowledge/langwatch-langwatch/
1•theoradical•22m ago•0 comments

Bloom's Taxonomy

https://en.wikipedia.org/wiki/Bloom%27s_taxonomy
1•downboots•23m ago•0 comments

Claude Code, Claude Cowork and Codex #5

https://thezvi.wordpress.com/2026/03/09/claude-code-claude-cowork-and-codex-5/
1•swolpers•25m ago•0 comments

Why is GPT-5.4 obsessed with Goblins?

3•pants2•27m ago•1 comments

US FAA issues ground stop for all JetBlue planes

https://www.reuters.com/world/us/us-faa-issues-ground-stop-all-jetblue-planes-2026-03-10/
6•jaboutboul•28m ago•0 comments

Amazon holds engineering meeting following AI-related outages

https://www.ft.com/content/7cab4ec7-4712-4137-b602-119a44f771de
6•petethomas•30m ago•0 comments

Government panel to compile groundwater report, includes users' nationalities

https://www.japantimes.co.jp/news/2026/03/10/japan/politics/goundwater-land-ministry/
3•mikhael•31m ago•0 comments

Show HN: I Was Here – Draw on street view, others can find your drawings

https://washere.live
1•mrktsm__•33m ago•0 comments

Prevent duplicate webhook executions in n8n (template)

https://github.com/aari-ai/n8n-webhook-idempotency
1•neshkito•38m ago•1 comments

United States Leads Dismantlement of One of the Largest Hacker Forums

https://www.justice.gov/opa/pr/united-states-leads-dismantlement-one-worlds-largest-hacker-forums
2•mikhael•39m ago•0 comments

Show HN: LLM Sycophancy Benchmark: Opposite-Narrator Contradictions

https://github.com/lechmazur/sycophancy
3•zone411•46m ago•0 comments

Windows: Microsoft broke the only thing that mattered

https://www.yankodesign.com/2026/03/08/microsoft-broke-the-only-thing-that-actually-mattered/
20•kjellsbells•49m ago•5 comments

Language Birth

https://asteriskmag.com/issues/13/language-birth
2•mitchbob•49m ago•1 comments

Show HN: Consul – AI Executive Assistant

https://consul.so
1•goldkey•49m ago•0 comments

Show HN: Mach9 Poker Beta

https://mach9poker.com/beta/
1•ChicagoDave•54m ago•0 comments

Battery Test [video]

https://www.youtube.com/watch?v=RGGHyY2mN7o
1•fenced_load•54m ago•0 comments

Times New Roman drawn from memory (1 hour timelapse)

https://old.reddit.com/r/typography/comments/1rodacl/times_new_roman_drawn_from_memory_1_hour_tim...
1•johnnyApplePRNG•55m ago•0 comments

Build your OpenClaw superstack under a minute

https://better-openclaw.dev
1•diopisemou•1h ago•1 comments

Why the US Could Blame AI for Blowing Up the Iranian School

https://www.jonathanbennion.info/p/why-the-us-may-blame-ai-for-blowing
1•rooftopzen•1h ago•1 comments

Do developers have agency? A study of 66k GitHub projects (7.3TB)

https://link.springer.com/article/10.1007/s44427-025-00019-y
1•ekrisza•1h ago•1 comments

Appsflyer SDK Hijacked

https://websdk.appsflyer.com/
5•jackyzhao•1h ago•2 comments

Annotating for Agents

https://benji.org/annotating
1•parksb•1h ago•0 comments

How curl Started [video]

https://www.youtube.com/watch?v=ohzzGy5K9Dk
1•serialport•1h ago•1 comments

Show HN: Claude Code Token Elo

https://www.clauderank.com
2•ymaws•1h ago•1 comments

Pwning NetBSD-Aarch64 (ARM)

https://www.feyrer.de/NetBSD/bx/blosxom.cgi/nb_20260308_1932.html
1•jaypatelani•1h ago•0 comments

Moment of Zen compilation from daily show

https://www.youtube.com/watch?v=-4OTAXzliUA
1•marysminefnuf•1h ago•0 comments

Htmx skill that includes everything

https://skills.sh/damusix/skills/htmx
2•daniloa•1h ago•1 comments