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?

Surpassing Transformer Efficiency via Singular Geometric Strikes

https://github.com/MrPan2048/GeometricTransformer/blob/main/README.md
1•MrPan•58s ago•0 comments

Drivers divided on 'American Autobahn' plan to pull speed limits of highways

https://www.the-sun.com/motors/15771542/rapid-act-no-speed-limit-arizona-american-autobahn/
1•rmason•5m ago•0 comments

Using an expensive model made our agent 75% cheaper

https://twitter.com/bwarrn/status/2013761508942192788
1•remolacha•5m ago•0 comments

Notes and Hacks on Germany's Exit Tax

https://eidel.io/notes-and-hacks-on-germanys-exit-tax/
2•danielfoster•6m ago•0 comments

Pentagon moves to cut U.S. participation in some NATO groups

https://www.washingtonpost.com/national-security/2026/01/20/trump-nato-advisory-groups/
1•geox•6m ago•0 comments

Amazon EC2 G7e Instances Accelerated by RTX Pro 6000 Blackwell GPUs

https://aws.amazon.com/blogs/aws/announcing-amazon-ec2-g7e-instances-accelerated-by-nvidia-rtx-pr...
1•my123•8m ago•0 comments

Cow Uses Broom as a Tool

https://www.discovermagazine.com/this-cow-s-multi-purpose-tool-use-challenges-assumptions-about-a...
1•doctor_radium•8m ago•0 comments

Netflix earned $1.5B from ads in 2025

https://www.theverge.com/news/864451/netflix-advertising-revenue-doubled-q4-2025-earnings
2•cdrnsf•9m ago•0 comments

Ordered from Newest to Oldest

1•rupalichikte•10m ago•0 comments

Hackers

1•rupalichikte•11m ago•0 comments

Ask HN: Why are so many rolling out their own AI/LLM agent sandboxing solution?

4•ATechGuy•11m ago•0 comments

Show HN: I figured out how to get consistent UI from Claude Code

https://interface-design.dev/
1•Dammyjay93•19m ago•0 comments

One Killed in train derailment near Barcelona days after deadly rail collision

https://bnonews.com/index.php/2026/01/1-killed-in-train-derailment-near-barcelona-days-after-dead...
1•bob1029•24m ago•0 comments

Show HN: Date Clue – I built a modern version of magazine dating quizzes

https://dateclue.com/
1•renbuilds•24m ago•0 comments

Plastic Waste to Pharmaceuticas: Upcycling Through Ruthenium Semi-Hydrogenation

https://onlinelibrary.wiley.com/doi/10.1002/anie.202521838
1•PaulHoule•24m ago•0 comments

Ask HN: What have you built/shipped with Claude-code

1•blhack•25m ago•0 comments

Digital Omnibus Report V2: Analysis of Select GDPR and EPrivacy Proposals by EC

https://noyb.eu/en/digital-omnibus-report-v2-analysis-select-gdpr-and-eprivacy-proposals-commission
1•buzer•26m ago•0 comments

Penn Calls Government's Demand for Lists of Jewish Staff 'Disconcerting'

https://www.nytimes.com/2026/01/20/us/university-of-pennsylvania-trump-jewish-staff.html
3•duxup•26m ago•1 comments

macOS Stats: Local Privilege Escalation via Exposed XPC Method

https://github.com/exelban/stats/security/advisories/GHSA-qwhf-px96-7f6v
2•inatreecrown2•27m ago•0 comments

Zero to One: Learning Agents and Agentic Patterns

https://pradyumnachippigiri.dev/blogs/understanding-ai-agents
1•PraddyChippzz•27m ago•1 comments

In a warming world, freshwater production is moving deep beneath the sea

https://apnews.com/article/climate-solutions-desalination-oceans-drinking-water-faba2579f83df4c06...
1•embedding-shape•28m ago•0 comments

Skyreader: A RSS Reader on the AT Protocol

https://www.disnetdev.com/blog/2026-01-20-skyreader-a-rss-reader-on-the-at-protocol/
2•erlend_sh•29m ago•1 comments

Being creative requires taking risks

https://www.henrikkarlsson.xyz/p/being-creative-requires-taking-risks
2•Curiositry•32m ago•1 comments

Hacker Lists Vibecoded Apps: 198 Scanned, 196 Found Vulnerable

https://firehound.covertlabs.io
4•birdculture•35m ago•0 comments

Spotlight Rules

https://spotlight-rules.com/
1•mooreds•37m ago•0 comments

Claude Chill: Fix Claude Code's Flickering in Terminal

https://github.com/davidbeesley/claude-chill
3•behnamoh•38m ago•0 comments

The Surprising Way AI Models Are Helping Humans Communicate Better

https://www.bbc.com/future/article/20251218-how-ai-can-teach-us-to-really-listen
1•xthe•39m ago•1 comments

How to generate 50K token documents using an agentic scaffold

https://www.dataframer.ai/posts/long-text-generation-dataframer-vs-baseline/
2•alex_aimon•39m ago•0 comments

FastMCP 3.0: From Tool Servers to Context Applications

https://mcpstatus.io/blog/202601-fastmcp-3
2•qave•41m ago•0 comments

Show HN: Free interactive security awareness library

https://ransomleak.com/learning/
1•dkozyatinskiy•43m ago•0 comments