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•8mo 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?

The DBLP computer science bibliography needs financial support

https://blog.dblp.org/2025/12/18/dblp-is-humbly-asking-you-for-your-kind-support/
1•leoc•1m ago•0 comments

Edward Tryon

https://en.wikipedia.org/wiki/Edward_Tryon
1•doener•1m ago•1 comments

'The robot never gets tired': Hyundai explains its Boston Dynamics Atlas robot

https://www.techradar.com/vehicle-tech/hybrid-electric-vehicles/the-robot-never-gets-tired-hyunda...
1•mikhael•2m ago•0 comments

Inworld TTS-1.5: Upgrading the #1 Ranked TTS Model

https://inworld.ai/blog/introducing-inworld-tts-1-5
1•wahnfrieden•5m ago•0 comments

Clawdbot Showed Me What the Future of Personal AI Assistants Looks Like

https://www.macstories.net/stories/clawdbot-showed-me-what-the-future-of-personal-ai-assistants-l...
1•walterbell•6m ago•0 comments

Share your memories and explore the world together

https://photo.playglenn.com/
1•wavh•9m ago•0 comments

Professor Built a Chatbot to Conduct Oral Exams for His Class

https://betteconnects.substack.com/p/yes-this-professor-built-a-chatbot
1•gozzoo•11m ago•0 comments

Show HN: AI architectures tested against their own structural limits

https://github.com/moketchups/Demerzel
1•MoKetchups•14m ago•0 comments

A new graph viewer for Ghidra

https://twitter.com/0x464d/status/2015037860781453466
1•tosh•15m ago•0 comments

How the Lawyers Killed Practical Adult Education

https://markatwood.substack.com/p/how-the-lawyers-killed-practical
2•mhb•15m ago•0 comments

Informationism and the Fluid Self: Consciousness, Identity, Reality

https://www.yumiwillems.com/post/self-consciousness-identity-and-the-architecture-of-reality
2•yumiatlead•16m ago•0 comments

Peugeot's "Hypersquare" Steering Wheel Prioritizes Novelty over UX

https://www.core77.com/posts/140283
1•fortran77•18m ago•0 comments

Europe wants to end its dangerous reliance on US internet technology

https://theconversation.com/europe-wants-to-end-its-dangerous-reliance-on-us-internet-technology-...
12•DyslexicAtheist•18m ago•3 comments

Looking for engineers who want to prototype patented new-tech no-fuel engines

1•Root-Zero-Tech•20m ago•0 comments

Wake: Terminal History for Claude Code

https://crowprose.com/blog/wake/
3•baobabmeeko•21m ago•1 comments

Direct-to-Cell Satellite Internet

https://www.direct2cell.org
1•SJk7TAy•25m ago•0 comments

How One Steam Developer Made a Million Dollars Selling a Remote Access Trojan

https://outsidetheasylum.blog/screeps/
1•IsaacKing•26m ago•0 comments

400M-pixel superconducting delay-line camera with 30-ps readout circuit

https://pubs.aip.org/aip/adv/article/15/11/115134/3373303/400-million-pixel-superconducting-delay...
1•PaulHoule•26m ago•0 comments

149M Logins and Passwords in Cleartext Discovered

https://www.expressvpn.com/blog/149m-infostealer-data-exposed/
1•cma5•28m ago•0 comments

Elon Musk at Davos 2026: why technology could shape a more 'abundant future'

https://www.weforum.org/stories/2026/01/elon-musk-technology-abundant-future-davos-2026/
1•journey2s•32m ago•1 comments

Show HN: Unicode Explorer – Explore, Search, and Export Unicode Characters

https://unicode-detector-nine.vercel.app/
3•SpyCoder77•32m ago•0 comments

Ask HN: Why can't I apply custom fonts to HN?

2•-__-•33m ago•1 comments

Frequently Ignored Feedback

https://ampcode.com/fif
1•g947o•33m ago•1 comments

Google shutting down Gmailify after nearly 10 years

https://9to5google.com/2026/01/23/gmail-gmailify-pop-shutting-down/
1•jayknight•35m ago•0 comments

Components I created – for database users

1•jonathanscion•39m ago•0 comments

Nurses in New York City Say They Deserve $200k a Year. Here's Why.

https://www.nytimes.com/2026/01/22/nyregion/nyc-nurses-strike-pay-raises.html
3•bookofjoe•39m ago•1 comments

Amazon braces for another major round of layoffs, 14,000 jobs at risk

https://mynorthwest.com/local/amazon-layoffs-14000-jobs-at-risk/4192118
55•niuzeta•40m ago•56 comments

Half-Life 2 RTX on Vega 8 APU from 2019 [video]

https://www.youtube.com/watch?v=MzDryEUBrA0
1•bigyabai•40m ago•0 comments

Gold tops $4,900/oz; silver and platinum extend record‑setting rally

https://www.reuters.com/world/india/gold-falls-easing-geopolitical-tensions-dampen-safe-haven-dem...
4•TMWNN•47m ago•0 comments

Surge Protectors: Marketing vs. Reality

https://chameth.com/surge-protectors-marketing-vs-reality/
2•Ariarule•48m ago•0 comments