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?

Pocketbyte: Modular ESP32-S3 Pocket Computer for Games, Music, and PDA Stuff

https://pocketbyte.co
1•omrawaley•1m ago•2 comments

Offgrid, solar powered fridge, with no battery bank

https://fridge0.branchable.com/
1•snthd•3m ago•0 comments

Git credential-cache and suspend: an unexpected timeout behavior

https://github.com/unlinkedbyte/unlinkedbyte.github.io/blob/main/_posts/2026-07-25-Git-credential...
1•unlinkedbyte•3m ago•0 comments

The five primitives I run a whole company on

https://methezone.github.io/solo-operator-playbook/five-primitives.html
1•dxs•4m ago•0 comments

Crystallization of Hard Spheres

https://www.youtube.com/watch?v=3QTbQdw0Vac
1•croemer•8m ago•0 comments

Apple fixes 75 security issues with your iPhone and 150 for Mac, update now

https://9to5mac.com/2026/07/27/ios-26-6-fixes-over-75-security-issues-with-your-iphone-update-now/
3•spenvo•9m ago•0 comments

The Burau representation of the braid group is faithful for n = 4

https://arxiv.org/abs/2607.05283
2•wglb•11m ago•1 comments

Measured LLM inference speeds on Apple Silicon, with raw data (CC BY 4.0)

https://macyou.co/benchmarks
1•bagdaerdev•12m ago•0 comments

"Google and Reddit do not own the Internet," web scraper says after court win

https://arstechnica.com/tech-policy/2026/07/google-wont-give-up-odd-war-against-ai-web-scraping-d...
1•leecoursey•12m ago•0 comments

Person Opposing Data Center Arrested for Clapping at City Meeting

https://www.404media.co/person-opposing-data-center-arrested-for-clapping-at-city-meeting/
2•cdrnsf•13m ago•0 comments

Manufactured crisis – Europe's car industry hoards funds, delays climate action

https://www.somo.nl/manufactured-crisis/
1•tchalla•13m ago•0 comments

SoK: 20 Years of Power, Privilege, and Peril in x86 System Management Mode

https://www.usenix.org/conference/woot26/presentation/louka
1•transpute•21m ago•0 comments

Big Tech credit risks rise sharply as AI spending soars

https://www.ft.com/content/ac136522-ecc7-4262-8702-e0d636ea3099
1•petethomas•23m ago•0 comments

Boris Cherny says "delete your Claude.md every 6 months"

https://www.youtube.com/watch?v=qyPCVqFUyDo
4•knighthacker•24m ago•2 comments

Manage Your Agent's Loadout with Dr Skill

https://www.dbreunig.com/2026/07/24/manage-your-agent-s-loadout-with-dr-skill.html
1•dbreunig•25m ago•0 comments

The new SDLC with vibe coding: what Google's paper says

https://okaneland.com/study/new-sdlc-with-vibe-coding/
1•ermantrout•26m ago•0 comments

Show HN: AlgoDeploy – Python algo trading you run yourself (Alpaca and IBKR)

https://algo-deploy.com/
2•Qnt_Algo_Trader•30m ago•0 comments

Dr. Death (James Grigson)

https://en.wikipedia.org/wiki/James_Grigson
2•Cider9986•30m ago•0 comments

Show HN: Trylle – The Next-Gen Git Platform for Modern Teams

https://trylle.com/home
3•Xlab•31m ago•0 comments

Show HN: Dowe – A full-stack language for server, web, desktop, Android, and iOS

https://www.dowe.dev
9•victorriba•31m ago•4 comments

Why communication might be the missing link in engineering education

https://digilent.com/blog/why-communication-might-be-the-missing-link-in-engineering-education/
2•teleforce•32m ago•0 comments

Convergence Is Not Enough

https://www.inkandswitch.com/livelymerge/notebook/lm-02/
3•zdw•34m ago•0 comments

Show HN: Bike ride planning tool with weather

https://theinstant.cc/ride
2•Gshaheen•34m ago•0 comments

We used to be able to buy things in this country

https://dannykatch.substack.com/p/we-used-to-be-able-to-buy-things
4•sudobash1•35m ago•1 comments

Netflix employee fired for sharing personal details in retreat trust exercise

https://www.inc.com/amaya-nichole/netflix-company-retreat-sparked-lawsuit-experts-say-real-damage...
30•softwaredoug•35m ago•6 comments

RTL meaning: What is Register Transfer Level and how to use it?

https://digilent.com/blog/rtl-meaning-what-is-register-transfer-level-and-how-to-use-it/
2•teleforce•36m ago•0 comments

Astronauts describe persistent 'observer' sensation after 6 month missions

https://spacedaily.com/sd-v-astronauts-returning-from-six-month-missions-describe-a-persistent-ob...
4•zdw•37m ago•0 comments

Bonfire for communities: groups and tools to organise together

https://bonfirenetworks.org/posts/bonfire-for-communities/
2•rguiscard•40m ago•0 comments

Functional CQRS with .NET

https://onurgumus.github.io/FCQRS/tutorial/index.html
2•reverseblade2•41m ago•0 comments

DConf 2026 in London

https://dconf.org/2026/index.html
23•teleforce•42m ago•2 comments