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•11mo ago

Comments

nine_k•11mo 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•11mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•11mo ago
They mention this in the article.
spockz•11mo ago
It reminds me more of flat buffers though. Does protobuf also have zero allocation (beyond initial ingestion) and no pointer jumps?
cstrahan•11mo ago
No, one example of why being variable sized integers.

See https://protobuf.dev/programming-guides/encoding/

carterschonwald•11mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•11mo 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•11mo 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•11mo 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•11mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•11mo ago
This was very well written. Excellent article!
NetOpWibby•11mo ago
Is this like MessagePack for Haskell?

Scientists Figured Out How Eels Reproduce (2022)

https://www.intelligentliving.co/scientists-finally-figured-out-how-eels-reproduce/
1•thunderbong•4m ago•0 comments

Open macro placement benchmark and $20k challenge (HRT-sponsored)

https://github.com/partcleda/macro-place-challenge-2026
1•anonymousmoos•4m ago•0 comments

Open source CAD for Windows 2000 (SolveSpace)

https://github.com/solvespace/solvespace/issues/1036
1•ruevs•6m ago•1 comments

Show HN: place-clone – A nostalgic revisiting of r/place

https://github.com/ch4bes/place-clone
1•chabes•7m ago•0 comments

The End of Chatbots: AI Is Moving into the Workflow

https://twitter.com/theOpusLABS/status/2037612856372580531
1•opuslabs•7m ago•0 comments

Ask HN: What's your cool use case for ChatGPT Containers?

1•_doctor_love•7m ago•0 comments

A Memoir of Spreadsheets: From VisiCalc to Google Sheets

https://blog.venturemagazine.net/a-memoir-of-spreadsheets-from-visicalc-to-google-sheets-eada89bb...
1•kamphey•7m ago•0 comments

Droid TW 12.7

https://devdroid.tech/en/catalog/droid-tw
1•vrganj•8m ago•0 comments

"Vibecession" reflects an increasingly difficult economy and society

https://greyenlightenment.com/2025/12/24/vibecession-reflects-increasingly-difficult-economy/
1•paulpauper•9m ago•0 comments

Live: Artemis II Launch

https://www.youtube.com/watch?v=08IOsxF1os8
1•embedding-shape•12m ago•0 comments

The Windows equivalents of the most used Linux commands

http://techkettle.blogspot.com/2026/04/the-windows-equivalents-of-most-used.html
2•elsadek•13m ago•0 comments

Show HN: I/Claude reverse-engineered Figma's binary WebSocket protocol

https://github.com/allan-simon/figma-kiwi-protocol
3•allan_s•13m ago•1 comments

Apple releases iOS 18 security updates for iOS 26 holdouts

https://sixcolors.com/post/2026/04/apple-releases-ios-18-security-updates-for-ios-26-holdouts/
1•latexr•13m ago•0 comments

Claude Wrote a Full FreeBSD Remote Kernel RCE with Root Shell (CVE-2026-4747)

https://blog.calif.io/p/mad-bugs-claude-wrote-a-full-freebsd
1•wglb•13m ago•0 comments

Politics Keeps D.C.'S Autonomous Vehicles Roadblocked

https://www.city-journal.org/article/autonomous-vehicles-waymo-washington-dc
1•rmason•16m ago•0 comments

Age of Invention: Why Scotland Succeeded

https://www.ageofinvention.xyz/p/age-of-invention-why-scotland-succeeded
1•paulpauper•17m ago•0 comments

Environmental Pollutants Modulate Extracellular Vesicles for Cancer Promotion

https://www.mdpi.com/1422-0067/27/5/2100
1•PaulHoule•17m ago•0 comments

Trusted Publishers for All Package Repositories

https://repos.openssf.org/trusted-publishers-for-all-package-repositories.html
1•jruohonen•17m ago•0 comments

If you read cursive, the Newberry has a job for you

https://lithub.com/if-you-read-cursive-the-newberry-has-a-job-for-you/
1•mooreds•20m ago•0 comments

Intent to Experiment: Agentic Federated Login

https://groups.google.com/a/chromium.org/g/blink-dev/c/FLaenhru3zo/m/SM-UiWsBDgAJ
1•mooreds•21m ago•0 comments

A Skill for Easter: Teaching Claude to Speak EventSourcingDB

https://docs.eventsourcingdb.io/blog/2026/04/02/a-skill-for-easter-teaching-claude-to-speak-event...
1•goloroden•23m ago•0 comments

Show HN: Continuously Improve Claude Code Plans

https://plannotator.ai/blog/continuously-improve-claude-code-plans/
2•ramoz•23m ago•0 comments

A pathogenic Tau mutation drives dysfunction limiting Tau degradation

https://www.nature.com/articles/s41467-026-70473-5
2•bookofjoe•24m ago•0 comments

Wikidata: WikiProject Ontology/Ontology Course

https://www.wikidata.org/wiki/Wikidata:WikiProject_Ontology/Ontology_Course
2•taubek•24m ago•0 comments

I, Sysadmin

1•sudosteph•24m ago•0 comments

Do Not Stick Out

https://cdt.org/insights/do-not-stick-out-the-dynamics-of-the-ech-rollout/
1•jruohonen•25m ago•0 comments

FusionAuth Brainfuck SDK Repo

https://github.com/FusionAuth/fusionauth-brainf-sdk
1•bewalt•29m ago•0 comments

Kremlin Enters the Chat with Russia's New Super-App

https://www.wsj.com/world/russia/kremlin-enters-the-chat-with-russias-new-super-app-830c703a
1•impish9208•29m ago•1 comments

AbodeLLM – An offline AI assistant for Android devices, based on open models

https://github.com/brendmung/AbodeLLM
2•shaicoleman•29m ago•0 comments

Computer Repair in Oklahoma City, OK

https://okcitpros.com
1•Veritaco•30m ago•1 comments