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?

Encrypt Your .env in a Meme

https://github.com/thoughtlesslabs/memevault
1•thoughtlesslabs•3m ago•1 comments

Communication as a Product

https://ashgaikwad.substack.com/p/communication-as-a-product
3•ashgkwd•3m ago•0 comments

Key US Power Grid [PJM] Cuts Demand Outlook on Overstated AI Boom

https://www.bloomberg.com/news/articles/2026-01-14/biggest-us-power-grid-cuts-demand-outlook-on-o...
2•toomuchtodo•5m ago•0 comments

Social media time does not increase teenagers' mental health problems – study

https://www.theguardian.com/media/2026/jan/14/social-media-time-does-not-increase-teenagers-menta...
1•sien•8m ago•0 comments

The Inelastic Markets Hypothesis [pdf]

https://r.jordan.im/download/investing/gabaix2020.pdf
1•luu•14m ago•0 comments

The Single-Click Microsoft Copilot Attack That Silently Steals Personal Data

https://www.varonis.com/blog/reprompt
2•extesy•18m ago•0 comments

DeepSeek's technical papers show frontier innovation

https://www.scmp.com/tech/tech-trends/article/3339769/deepseek-stays-mum-next-ai-model-release-te...
2•nsoonhui•23m ago•0 comments

"Don't worry. Boys are hard to find." Trump/Epstein and... Criminal Enterprises

https://lisevoldeng.substack.com/p/dont-worry-boys-are-hard-to-find
3•Tadpole9181•24m ago•0 comments

We built a browser with GPT-5.2 in Cursor

https://xcancel.com/mntruell/status/2011562190286045552?s=20
2•aaraujo002•25m ago•0 comments

Show HN: Commosta – marketplace to share computing resources

https://www.commosta.io/
1•gkm25•25m ago•0 comments

JSON Render

https://json-render.dev/
1•handfuloflight•27m ago•0 comments

Show HN: IMSAI/Altair inspired microcomputer with web emulator

https://gzalo.github.io/microcomputer/
1•gzalo•28m ago•0 comments

Skillshare: Sync skills to all your AI CLI tools with one command

https://github.com/runkids/skillshare
1•handfuloflight•35m ago•0 comments

Show HN: Chklst – A Minimalist Checklist

https://www.chklst.xyz/
2•rgbjoy•37m ago•0 comments

Opinion: Why tech leaders can't regulate AI before releasing them?

1•lauraorchid•38m ago•1 comments

Vibe Coding Paradox

https://blog.kaplich.me/vibe-coding-paradox/
1•skaplich•38m ago•0 comments

Show HN: I built a satellite forensic engine to detect fraud in Carbon Markets

1•kccanarch•38m ago•1 comments

Google is shutting down the Tenor API

https://www.reddit.com/r/webdev/s/ZjlFO8kiW4
1•kull•39m ago•2 comments

Bubblewrap: A nimble way to prevent agents from accessing your .env files

https://patrickmccanna.net/a-better-way-to-limit-claude-code-and-other-coding-agents-access-to-se...
2•0o_MrPatrick_o0•40m ago•0 comments

Is passive investment inflating a stockmarket bubble?

https://www.economist.com/finance-and-economics/2026/01/14/is-passive-investment-inflating-a-stoc...
24•andsoitis•42m ago•29 comments

I beat Factorio on 1k Floppy disks [video]

https://www.youtube.com/watch?v=cTPBGZcTRqo
1•simonpure•42m ago•1 comments

ISS astronauts return to Earth early due to illness of crew member

https://www.cbc.ca/news/science/nasa-crew11-early-return-9.7045315?cmp=rss
2•gnabgib•44m ago•0 comments

2025 Berggruen Prize Essay Competition Winners

https://berggruen.org/eu/news/2025-berggruen-prize-essay-competition-winners
2•i7l•44m ago•0 comments

AgentDiscover Scanner – Multi-layer AI agent detection (code, network, K8s eBPF)

https://github.com/Defend-AI-Tech-Inc/agent-discover-scanner
1•DefendAI•44m ago•0 comments

Skrillex Releases Kora

https://skrlx.com/
4•Lucasoato•51m ago•0 comments

Kutt.ai – Free AI Video Generator, Text and Image to Video

https://kutt.ai/
2•zuoning•51m ago•2 comments

Personal Intelligence: Connecting Gemini to Google Apps

https://blog.google/innovation-and-ai/products/gemini-app/personal-intelligence/
1•simonpure•52m ago•1 comments

Mapping Nostr keys to DNS-based internet identifiers

https://github.com/nostr-protocol/nips/blob/master/05.md
1•gjvc•1h ago•0 comments

WAPlus' Guide to WhatsApp CRM

https://waplus.io/blog/whatsapp-crm
2•bocaiconnie•1h ago•1 comments

Verizon Is Down

https://www.macrumors.com/2026/01/14/verizon-is-down-iphone-sos/
7•vapemaster•1h ago•4 comments