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?

The Future of Self-Evolving Software

https://ateliti99.substack.com/p/the-future-of-self-evolving-software
1•olirex99•1m ago•1 comments

AI Financial Advisor – FiscalAI· Streamlit

https://thefiscalai.streamlit.app
1•theadidev•2m ago•0 comments

Open-source pixel-art editor

https://github.com/Josiah-Turnquist/myrling-sprite-editorIn-BrowserDemo:https://josiah-turnquist....
1•josiahturnq•3m ago•2 comments

Record baby boom brings heaviest parrot back from the brink

https://www.nbcnews.com/world/asia/kakapo-parrot-baby-boom-worlds-heaviest-bird-rise-new-zealand-...
2•Teever•3m ago•0 comments

Keycheats.com – Offical Reseller for All Cheats Products|Cheap Pricing

https://keycheats.com/
1•bursgames•4m ago•1 comments

Show HN: We built client-side AST SEO audits for a Next.js CMS to avoid LLM lag

https://github.com/nextblock-cms/nextblock
2•nextblock•6m ago•0 comments

Show HN: Aidcrew a team of coding agents, each on its own model, in one terminal

https://github.com/antoniociccia/aidcrew
1•arkhan89•8m ago•0 comments

AI Norms and Values, Part 2 of 3: AI for Honeycomb Engineering

https://www.honeycomb.io/blog/ai-norms-values-part-2-ai-honeycomb-engineering
1•mooreds•10m ago•0 comments

ICE Gave New Hires Access to Restricted Info on Palantir App

https://theintercept.com/2026/09/03/ice-palantir-privacy-personal-info-access/
3•cdrnsf•10m ago•0 comments

Omarchy Hyprland – external monitor multi-GPU configuration

https://publish.obsidian.md/gslf/%F0%9F%8C%90+WEBSITE/%F0%9F%93%9D+Journal/%F0%9F%92%BB+DEV/Omarc...
2•gioeleslfierro•11m ago•0 comments

Who Eats Memory Costs

https://streetsignal.substack.com/p/who-eats-memory-costs-2a1
1•gmays•11m ago•0 comments

GPT-6 Astra Achieves SOTA on ARC-AGI

https://twitter.com/arcprize/status/2095597602545025138
2•porridgeraisin•13m ago•0 comments

Hi Reddit I'm Wile E. Coyote. I'm taking on ACME. AMA

https://www.reddit.com/r/movies/comments/1w58qjb/hi_reddit_im_wile_e_coyote_im_taking_on_acme_ama/
1•bthallplz•17m ago•0 comments

Transformation Tracker

https://digitaleconomy.stanford.edu/project/indicators/transformation-tracker/
1•gmays•17m ago•0 comments

One Year Suspension for Steve Balmer

https://www.espn.com/nba/story/_/id/49806356/nba-announces-punishments-clippers-kawhi-probe
3•Betelbuddy•17m ago•0 comments

Using GPT-6 Astra – OpenAI Docs

https://developers.openai.com/api/docs/guides/latest-model
1•tekacs•18m ago•0 comments

France had its hottest summer since records began over a century ago

https://www.euronews.com/my-europe/2026/09/03/france-had-its-hottest-summer-since-records-began-o...
4•geox•18m ago•0 comments

Three-LLM: Three.js-based WebGPU LLM inference engine

https://three-llm.ben3d.ca
2•bhouston•19m ago•0 comments

Word42 – A Wordprocessor

https://github.com/office-42/word42
2•roschdal•19m ago•0 comments

OpenAI's GPT-6 Astra on ARC-AGI-3

https://arcprize.org/blog/astra
10•vignesh_warar•21m ago•3 comments

SF's Tech Right Debates the Ideal Dictator

https://bayareacurrent.com/sfs-tech-caesar/
2•tastyface•21m ago•0 comments

Claude Fable 5.1 decoded a centuries-old royalist message hidden in since 1653

https://the-decoder.com/claude-fable-5-1-decoded-a-centuries-old-royalist-message-hidden-in-plain...
3•Vaslo•22m ago•0 comments

GPT 6 Astra Vibe Check

https://every.to/vibe-check/gpt-6-astra-vibe-check
1•ScotterC•22m ago•0 comments

Are others seeing Google's ReCAPCHA rejecting Firefox users?

2•Animats•27m ago•2 comments

AMD Versal HBM Series (FPGA's with up to 32GB HBM2e)

https://www.amd.com/en/products/adaptive-socs-and-fpgas/versal/hbm-series.html
2•peter_d_sherman•28m ago•0 comments

Google Lyria 3.5 music generation (public preview)

https://blog.google/innovation-and-ai/models-and-research/google-labs/lyria-3-5/
2•thisisauserid•29m ago•0 comments

Show HN: I processed 100k+ LinkedIn posts into open-source Claude Code skills

https://github.com/sergebulaev/linkedin-skills
1•sbulaev•30m ago•0 comments

Language skills stay strong in elderly while other cognitive abilities decline

https://news.mit.edu/2026/language-skills-stay-strong-older-adults-even-while-other-cognitive-abi...
1•gmays•32m ago•0 comments

Rust stabilizes Never type on nightly

https://github.com/rust-lang/goals/issues/653
2•dabinat•32m ago•0 comments

The death of San Francisco's Market Street

https://www.noahpinion.blog/p/the-death-of-market-street
4•A_D_E_P_T•32m ago•0 comments