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?

Optimizing PHP to process 50k lines per second instead of 30

https://stitcher.io/blog/processing-11-million-rows
1•brentroose•4m ago•0 comments

Kiss Launcher – fast launcher for Android

https://kisslauncher.com/
1•ifh-hn•6m ago•1 comments

U.S. 30-year Treasury yield jumps 9 basis points higher as trade war reignites

https://www.cnbc.com/2026/01/20/us-10-year-treasury-trump-tariff-trade.html
1•zerosizedweasle•8m ago•0 comments

MacBooks, Apple Neural Engine, and Overheating

https://www.gethopp.app/blog/macbook-m4-overheating
1•eproxus•9m ago•0 comments

If people could ask for only one real-life wish, what would they choose?

1•jmvet•9m ago•1 comments

The Ozlabs team has now left IBM

https://ozlabs.org/about.html
1•walty8•11m ago•0 comments

Show HN: Remember Me – O(1) Client-Side Memory (40x cheaper than Vector DBs)

https://github.com/merchantmoh-debug/Remember-Me-AI
1•MohskiBroskiAI•15m ago•1 comments

Claude Code Won't Fix Your Life

https://www.joanwestenberg.com/claude-code-wont-fix-your-life/
2•latexr•19m ago•0 comments

Testing: Apple N1 Wi-Fi chip improves on older Broadcom chips in every way(2025)

https://arstechnica.com/gadgets/2025/11/testing-shows-apple-n1-wi-fi-chip-improves-on-older-broad...
1•mpweiher•20m ago•0 comments

Show HN: Rerankers – Models, benchmarks, and papers for RAG

https://github.com/agentset-ai/awesome-rerankers
1•midamurat•22m ago•0 comments

All In – a small tool to check real buyin after decisions

https://www.cognu.app/all-in
1•anticlickwise•22m ago•2 comments

AI Is still making code worse: A new CMU study confirms (2025)

https://blog.robbowley.net/2025/12/04/ai-is-still-making-code-worse-a-new-cmu-study-confirms/
2•mpweiher•24m ago•0 comments

Why Bitchat Is a Bad Idea: (My Audit Found Critical Zero-Days)

https://saadkhalidhere.medium.com/why-bitchat-is-a-bad-idea-my-audit-found-critical-zero-days-1b1...
1•KellyCriterion•25m ago•0 comments

UK ministers launch consultation on whether to ban social media for under-16s

https://www.theguardian.com/uk-news/2026/jan/19/uk-ministers-launch-consultation-into-whether-to-...
2•chrisjj•26m ago•0 comments

Optimizing GPU Programs from Java Using Babylon and Hat

https://openjdk.org/projects/babylon/articles/hat-matmul/hat-matmul
2•pjmlp•26m ago•0 comments

Weather Spark – The Weather Year Round Anywhere on Earth

https://weatherspark.com/
1•mihau•27m ago•0 comments

Tiled Words

https://tiledwords.com/
1•napolux•28m ago•0 comments

Workspaces and Monorepos in Package Managers

https://nesbitt.io/2026/01/18/workspaces-and-monorepos-in-package-managers.html
1•Couto•34m ago•0 comments

Automate Your AI Workflows with Claude Code Hooks

https://blog.gitbutler.com/automate-your-ai-workflows-with-claude-code-hooks
1•zdgeier•35m ago•0 comments

Will all our drugs come from China? (2024)

https://atelfo.github.io/2024/12/20/will-all-our-drugs-come-from-china.html
2•robocat•36m ago•0 comments

Ask HN: Is there a search engine that blocks SEO / AI content?

3•cauliflower99•39m ago•2 comments

Austrian cow shows first case of flexible, multi-purpose tool use in cattle

https://phys.org/news/2026-01-austrian-cow-case-flexible-multi.html
2•coolcoder613•41m ago•0 comments

IntelliJ Idea: The Documentary – Trailer [video]

https://www.youtube.com/watch?v=TwMXi6tDzLE
1•poisonborz•41m ago•0 comments

Show HN: Focusmo – A focus app I built for my ADHD time-blindness

https://www.focusmo.app/
1•elesinn•44m ago•0 comments

Why Trump's split with Europe over Greenland is a double-edged sword for Russia

https://www.cnn.com/2026/01/20/europe/analysis-putin-view-greenland-trump-latam-intl
2•breve•47m ago•0 comments

Show HN: Local and Private TradingView Alternative

https://www.vaultcharts.com/
3•AlexBThomsen•54m ago•1 comments

Antarctic penguins have shifted their breeding season

https://www.theguardian.com/world/2026/jan/20/antarctic-penguins-shift-breeding-season-climate-ch...
3•mykowebhn•55m ago•0 comments

Winaskpass: WSL SSH-add helper using WinCred

https://scarpino.dev/posts/winaskpass-wsl-ssh-add-helper-using-wincred.html
1•ilpianista•58m ago•0 comments

Extracting verified C++ from the Rocq theorem prover at Bloomberg

https://bloomberg.github.io/crane/
2•clarus•59m ago•1 comments

Show HN: Explic – An AI tutor that prompts you with questions, not answers

https://www.explic.app/
1•IndieDev-Will•1h ago•1 comments