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?

Adversarial Creation and Detection of AI-Generated Social Bot Content

https://arxiv.org/abs/2606.07219
1•Anon84•1m ago•0 comments

Vantage – open-source CS2 player intelligence from Steam, FACEIT and Leetify

https://github.com/k6w/vantage
1•regele•2m ago•0 comments

VictoriaMetrics: AI Policy

https://docs.victoriametrics.com/victoriametrics/contributing/index.html
1•tosh•6m ago•0 comments

Show HN: FrontStep v0.5.2

https://github.com/GiovanniCst/frontstep
2•J_cst•8m ago•0 comments

Does Alpha School Work for Regular Kids?

https://danmeyer.substack.com/p/does-alpha-school-work-for-regular
1•MrBuddyCasino•8m ago•0 comments

GLM-5.3 – The Official Desktop Auditor for Z.AI's Cyber-Engine

https://github.com/ZAI-GLM-5-3/glm-5.3
1•nioj•9m ago•0 comments

Babel: A skyscraper where every Wikipedia edit becomes a brick

https://babel.reppie.org/
1•meetpateltech•11m ago•0 comments

AI Software Development – What Does the Data Say?

https://codemanship.wordpress.com/2026/08/12/ai-software-development-what-does-the-data-say/
1•jesterpm•12m ago•0 comments

PriEco: Customize Your Results Ranking

https://prieco.net/blog/goggles
1•JojoYou•13m ago•0 comments

Traffic Modeling with Sumo: A Tutorial

https://arxiv.org/abs/2304.05982
1•teleforce•14m ago•0 comments

DeepSeek V4 Flash at 278 tok/s, full precision, no quantization

https://runinfra.ai/inference-api/deepseek-v4-flash
1•OsamaJaber•15m ago•0 comments

Could a computer scientist build a brain?

https://stankerstjens.github.io/could-a-computer-scientist-build-a-brain/
1•ogundipeore•15m ago•0 comments

The best way to sell a concentrated position at SpaceX

https://ofdollarsanddata.com/the-best-way-to-sell-a-concentrated-position/
1•rwmj•16m ago•0 comments

The Gestalt Principles

https://ixdf.org/literature/topics/gestalt-principles
1•breppp•17m ago•0 comments

S.A.T.U.R.D.A.Y: serf-hosted speech to text AI assistant

https://github.com/GRVYDEV/S.A.T.U.R.D.A.Y
1•soupspaces•17m ago•0 comments

Show HN: I built a spatial node canvas to fix LLM context drift

https://treequence.ai
2•jebuehler55•17m ago•0 comments

Show HN: Feature-packed 6MB Rust+Tauri free bookmarking app

2•freakynit•20m ago•0 comments

1Password's new benchmark teaches AI agents how not to get scammed

https://1password.github.io/SCAM/#
3•mrkd•21m ago•0 comments

Great music selection without overthinking

3•cr34t1ve•21m ago•4 comments

My open source project's donations no longer go through my bank account

https://spliit.app/blog/spliit-funding-is-now-on-open-collective
3•scastiel•23m ago•0 comments

Brazilian election filter in X For You timeline

https://github.com/xai-org/x-algorithm/blob/main/home-mixer/filters/brazil_2026_election_filter.rs
12•LorenDB•23m ago•4 comments

AI assistance is not authorship

https://twitter.com/Seltaa_/status/2088353576259314024
2•bilsbie•24m ago•0 comments

Simu5G: Simulator for 5G New Radio Networks

https://simu5g.org/
2•teleforce•25m ago•0 comments

388 years ago, Galileo worked out why human giants can't exist

https://www.scientificamerican.com/article/388-years-ago-galileo-worked-out-why-human-giants-cant...
8•beardyw•26m ago•2 comments

NASA processor is performing 500x faster than rad-hardened chips currently used

https://spacedaily.com/t-nasa-hpsc-processor-500-times-faster-spaceflight-ai/
2•rbanffy•26m ago•0 comments

Do You Really Know Python? Quant Dev Mock Interview [video]

https://www.youtube.com/watch?v=bE0K8mn18-8
2•adletbalzhanov•28m ago•0 comments

CIE 1931 XYZ colour space (2024)

https://observablehq.com/@christophe-yamahata/cie-1931-xy-chromaticity-diagram
2•tingletech•29m ago•0 comments

Farside has been shut down

https://farside.link
2•DavideNL•30m ago•0 comments

Brain turns listening inward during REM sleep, EEG recordings suggest

https://medicalxpress.com/news/2026-07-brain-rem-eeg.html
9•gmays•32m ago•0 comments

GitHub's push-farm spam hit 64% again – 106h live investigation

https://github-pulse.surge.sh/report.html
3•ghspamwatch•33m ago•0 comments