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?

Commercially Available Bike Generators Are Not Sustainable

https://solar.lowtechmagazine.com/2011/05/bike-powered-electricity-generators-are-not-sustainable/
1•baud147258•1m ago•0 comments

Passkeys in Node.js Without Locking Users Out – Whoooop Ltd

https://whoooop.co.uk/blog/passkeys-nodejs
2•cashy•1m ago•0 comments

Nebula Sans

https://www.nebulasans.com
2•GavinAnderegg•1m ago•0 comments

Round Rects Are Everywhere

https://folklore.org/Round_Rects_Are_Everywhere.html
2•romanhn•2m ago•0 comments

Show HN: PairBook – correlation and holdings overlap for +4,700 US stocks/ETFs

https://www.pairbook.io/
2•vincentjouanne•2m ago•0 comments

How we made scalable long-horizon RL environments for Browser Use

https://twitter.com/Alezander9/status/2092613031381656019
2•Alexander9•3m ago•0 comments

WebMCP: Teaching Your Website to Talk to AI Agents

https://sreenathmenon.com/blog/2026-08-04-webmcp-teaching-websites-to-talk-to-ai-agents/
1•sreenathmenon•3m ago•0 comments

Show HN: BumbleTap – Bind a key to any element, or automate the whole sequence

https://bumbletap.com
1•umershahzeb•4m ago•0 comments

Email Verification API

https://github.com/WICG/email-verification
1•carlos-menezes•4m ago•0 comments

AurionMail: E2EE suite (CryptPad/Stalwart) with single-password UX

https://github.com/AurionMail/docs
1•polo46•4m ago•0 comments

Notes on Private Trackers

https://www.jenn.site/notes-on-private-trackers/
2•surprisetalk•5m ago•0 comments

Chinese Hackers Broke into Justice Department, NASA, Federal Reserve, Senate

https://www.reuters.com/world/china/china-sponsored-hacking-platforms-seized-by-us-justice-depart...
2•thisisauserid•6m ago•0 comments

Boost Your WordPress Site with the Fastest APCu Object Cache Available

https://medium.com/@chris.ahrweiler/boost-your-wordpress-site-with-the-fastest-apcu-object-cache-...
1•docjojo•6m ago•0 comments

I had some free time, so I tried to pwn V8

https://blog.himanshuanand.com/2026/08/i-had-some-free-time-so-i-tried-to-pwn-v8/
1•unknownhad•6m ago•0 comments

GLM-5.3-Flash Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/glm-5-3-flash
1•theanonymousone•6m ago•0 comments

Show HN: Splitright – split group expenses without anyone making an account

https://apps.apple.com/us/app/splitright-split-expenses/id6608980374
1•sleipner42•9m ago•0 comments

Beetles AI

https://beetles-ai.streamlit.app/
1•MaryamRashid•9m ago•0 comments

Show HN: Bury.lol – a $2 pixel-art graveyard for things that died

https://bury.lol/
1•alertcubes•10m ago•0 comments

Is it safe to call print in a Python signal handler?

https://iafisher.com/2026/08/sigprint
1•hellerve•12m ago•0 comments

MicroLighter – A zero-dep syntax highlighter

https://davatron5000.github.io/microlighter/
1•ibobev•12m ago•0 comments

Hover Proximity Using Modern CSS

https://blog.master.dev/hover-proximity-using-modern-css/
1•ibobev•13m ago•0 comments

Show HN: Neoswarm – Neovim for controlling AI agents

https://neoswarm.dev/
1•meszmate•14m ago•1 comments

Debugging Ubiquiti's 5G Backup on AT&T

https://www.jeffgeerling.com/blog/2026/unifi-u5g-backup-debugging/
1•Brajeshwar•14m ago•0 comments

An API proxy that trims redundant LLM tokens using AST pruning

https://driftwatchproxy.com/
1•HueBosh•14m ago•0 comments

Commodore Unveils Cyberpunk 2077 Themed Special Edition Commodore 77

https://www.eteknix.com/commodore-unveils-cyberpunk-2077-themed-special-edition-commodore-77/
2•theanonymousone•15m ago•0 comments

VMs won't contain cyber-capable agents

https://blog.trailofbits.com/2026/08/26/vms-wont-contain-cyber-capable-agents/
4•polyrand•16m ago•0 comments

Requests for Startups: Energy

1•NarcisMirandes•16m ago•0 comments

Lody: A Local-First Workspace for Teams and Coding Agents

https://lody.ai/blog/lody-is-now-open-source/
1•czx111331•17m ago•0 comments

Show HN: Tabu, NSFW image and video API for explicit content moderation

https://tabushield.com/
1•jofo_s•20m ago•0 comments

C++26: Std:Inplace_vector

https://www.sandordargo.com/blog/2026/08/26/cpp26-inplace-vector
1•ibobev•22m ago•0 comments