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?

Good listeners connect more easily with strangers, study finds

https://phys.org/news/2025-12-good-easily-strangers.html
1•PaulHoule•51s ago•0 comments

Flying with Photons: Rendering Novel Views of Propagating Light

https://anaghmalik.com/FlyingWithPhotons/
1•pillars•5m ago•0 comments

The Paper 2

https://zenodo.org/records/18304357
1•KaoruAK•5m ago•0 comments

F-16 Falcon Strike, modern combat flight SIM for Atari XL/XE

https://webchrono.pl/F16FalconStrike/index.html
1•starkparker•6m ago•0 comments

Keeping 20k GPUs Healthy

https://modal.com/blog/gpu-health
1•aburan28•10m ago•0 comments

Show HN: Circe – Deterministic, offline-verifiable receipts for AI agent actions

https://github.com/wv26296-ux/circe-receipts
1•W_rey45•12m ago•1 comments

CoreSpeed: Agent Runtime Infrastructure

https://corespeed.io
1•handfuloflight•12m ago•0 comments

Open Reimplementation of Google Widevine Content Decryption Module for Browsers

https://github.com/tchebb/openwv
1•pabs3•15m ago•0 comments

Idiomatic Rust – A peer-reviewed collection of Rust articles/talks/repos

https://github.com/rust-lang-nursery/rust-cookbook
1•Brysonbw•15m ago•0 comments

Gary Marcus on the Problems Facing AI and LLM Scaling – The Real Eisman Playbook [video]

https://www.youtube.com/watch?v=aI7XknJJC5Q
1•nradov•15m ago•0 comments

Spotless-Keep your code spotless

https://github.com/diffplug/spotless
1•rammy1234•17m ago•0 comments

Show HN: Artificial Ivy in the Browser

https://da.nmcardle.com/grow
2•dnmc•18m ago•0 comments

Show HN: Foom.ist: When silicon surpasses human brainpower

https://foom.ist/
1•steffs•18m ago•0 comments

Hotcrp.com: Unauthorized document access at CCS 2026

https://hotcrp.com/news/2026/security-notice-202601
1•jiegec•19m ago•1 comments

The New York Stock Exchange Develops Tokenized Securities Platform

https://www.businesswire.com/news/home/20260119300589/en/The-New-York-Stock-Exchange-Develops-Tok...
3•serial_dev•24m ago•0 comments

Two thirds of the wheat is developed by CIMMYT

https://grist.org/food-and-agriculture/green-revolution-india-wheat-seeds-climate/
1•trojanalert•26m ago•2 comments

Firehound is a repository of App Store apps exposing data from users

https://9to5mac.com/2026/01/19/firehound-huge-repository-of-app-store-apps-exposing-data-from-mil...
2•mikehotel•30m ago•1 comments

Deliberate AI Use

https://www.joshribakoff.com/blog/deliberate-ai-use/
1•joshribakoff•40m ago•1 comments

Mario Bros. In CSS (No JavaScript)

https://codepen.io/t_afif/pen/JoKYwXO
3•qingcharles•42m ago•0 comments

LLMs Outperform Data Scientists (2025)

https://presentofcoding.substack.com/p/llms-already-outperform-data-scientists
1•pajtai•43m ago•0 comments

Show HN: PublisherLens – advertising platform intelligence and analytics

https://www.publisherlens.com/
1•SongDeYu•46m ago•1 comments

LogSentinel v3.9 – Ultra-Fast Enterprise Log Analyzer with Error Intelligence

https://gum.new/gum/cmkiotta6000t04l75xh0e0i9
1•Dev_Master•47m ago•1 comments

Show HN: Username Search – Free Username Checker and Generator

https://usernamesearch.io
1•SongDeYu•53m ago•0 comments

Built a Real Life Running Man Competition. Partner with Steve Will Do It?

https://runningman.live/
2•todaycompanies•53m ago•1 comments

Basis Universal v2

https://github.com/BinomialLLC/basis_universal
1•FrostKiwi•55m ago•1 comments

Hackers disrupt Iran state TV to support exiled crown prince

https://www.politico.com/news/2026/01/19/hackers-disrupt-iran-state-tv-to-support-exiled-crown-pr...
3•hentrep•56m ago•1 comments

NATS Console – Open-Source Web UI for Managing NATS JetStream

https://github.com/KLogicHQ/nats-console
1•makilan•56m ago•1 comments

Iran Death Toll Estimates

1•starkshift•57m ago•0 comments

Graphical Tricks in Classic Games

https://www.youtube.com/watch?v=w9dH7bfAznc
3•bane•1h ago•0 comments

DIY Paint Color Maker

https://old.reddit.com/r/Miniaturespainting/comments/1qgljpy/diy_paint_color_maker/
3•YeGoblynQueenne•1h ago•0 comments