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

Comments

nine_k•8mo 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•8mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•8mo ago
They mention this in the article.
spockz•8mo 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•8mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•8mo 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•8mo 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•8mo 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•8mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•8mo ago
This was very well written. Excellent article!
NetOpWibby•8mo ago
Is this like MessagePack for Haskell?

TI-99/4A: Leaning More on the Firmware

https://bumbershootsoft.wordpress.com/2026/01/17/ti-99-4a-leaning-more-heavily-on-the-firmware/
1•ibobev•54s ago•0 comments

From Language to Cognition: How LLMs Outgrow the Human Language Network

https://aclanthology.org/2025.emnlp-main.1237/
1•naves•1m ago•0 comments

From Patch Cables to MIDI CC: Modular Thinking in Music Software

https://aftertone.co/articles/modular-thinking.html
1•100pctremote•3m ago•0 comments

How Can I Make Useful Knowledge? On trying to be useful with words

https://chillphysicsenjoyer.substack.com/p/how-can-i-make-useful-knowledge
1•crescit_eundo•8m ago•0 comments

How to design a new language that can be spoken, written, and read in 30 minutes

https://www.krajzewicz.de/blog/language-generation.php
2•dkrajzew•9m ago•0 comments

Cracking DXP and SXD

http://www.os2museum.com/wp/cracking-dxp-and-sxd/
1•userbinator•11m ago•0 comments

AI Contributions to Erdős Problems

https://github.com/teorth/erdosproblems/wiki/AI-contributions-to-Erd%C5%91s-problems
1•fdeage•12m ago•0 comments

Remembrance of Things Past (1759)

https://www.laphamsquarterly.org/states-mind/remembrance-things-past
1•treetalker•13m ago•0 comments

Going Founder Mode on Cancer

https://centuryofbio.com/p/sid
1•Metacelsus•15m ago•0 comments

China builds a record-breaking hypergravity machine to compress space and time

https://www.scmp.com/news/china/science/article/3338193/china-builds-record-breaking-hypergravity...
2•naves•16m ago•1 comments

Bags and the Creator Economy

https://steve-yegge.medium.com/bags-and-the-creator-economy-249b924a621a
1•squirrel•17m ago•0 comments

Why Preserve Books? The New Physical Archive of the Internet Archive (2011)

https://blog.archive.org/2011/06/06/why-preserve-books-the-new-physical-archive-of-the-internet-a...
1•toomuchtodo•23m ago•0 comments

Qualcomm Windows 11 on Arm SBC for <$80

https://sbcwiki.com/news/articles/radxa-dragon-q6a-full-review/
1•HeyMeco•23m ago•1 comments

Nearly 5M Accounts Removed Under Australia's New Social Media Ban

https://www.nytimes.com/2026/01/15/world/australia/social-media-ban-australia.html
2•smurda•26m ago•1 comments

U.S. News & World Report v. OpenAI, Inc. (1:25-cv-09912)

https://ia804500.us.archive.org/15/items/gov.uscourts.nysd.653848/gov.uscourts.nysd.653848.1.0.pdf
2•1vuio0pswjnm7•27m ago•1 comments

Automating Screenshots with Claude Code

https://quobix.com/articles/screenshots-with-claude-code/
3•pb33f•28m ago•0 comments

Show HN: Whisper – AI code reviewer that catches security issues and bugs

https://www.usewhisper.dev/
1•alameenpd•31m ago•0 comments

The Human in the Loop

https://adventures.nodeland.dev/archive/the-human-in-the-loop/
1•artur-gawlik•32m ago•0 comments

Ella Minnow Pea: A Progressive Lipo-Grammatic Epistolary Fable

https://archive.org/details/mark-dunn-ella-minnow-pea
1•andsoitis•36m ago•0 comments

The Enshittification of Enshittification

https://leebriggs.co.uk/blog/2026/01/18/enshittification
3•jaxxstorm•36m ago•0 comments

Show HN: DownloadStuffs – Fast UI for Browsing and Downloading Internet Archive

2•dawitworku•39m ago•0 comments

The quick brown fox jumps over the lazy dog

https://en.wikipedia.org/wiki/The_quick_brown_fox_jumps_over_the_lazy_dog
2•andsoitis•40m ago•0 comments

Ultrathink is deprecated & How to enable 2x thinking tokens in Claude Code

https://decodeclaude.com/ultrathink-deprecated/
2•moona3k•45m ago•0 comments

Vibe Working with Code Agent

https://rebyte.ai
2•sonicgg•45m ago•0 comments

Sam Altman's blind spot on AI model power

https://vibesbench.substack.com/p/sam-altmans-blind-spot-on-ai-model
2•firasd•51m ago•1 comments

AI systems that don't just make decisions, but remember and use the "why"

https://medium.com/neo4j/hands-on-with-context-graphs-and-neo4j-8b4b8fdc16dd
2•upcoming-sesame•51m ago•0 comments

I want my MTV Rewind

https://wantmymtv.vercel.app/
1•homarp•53m ago•1 comments

Practical scripts for automating doc-generation regardless of tools

https://docsalot.dev/blog/documentation-rots-heres-how-to-stop-it
1•fazkan•57m ago•0 comments

The Coming Industrialisation of Exploit Generation with LLMs

https://sean.heelan.io/2026/01/18/on-the-coming-industrialisation-of-exploit-generation-with-llms/
3•todsacerdoti•59m ago•0 comments

Show HN: Meepr – A Quiet Social Network

https://meepr.co/
1•neom•1h ago•0 comments