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•7mo ago

Comments

nine_k•7mo 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•7mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•7mo ago
They mention this in the article.
spockz•7mo ago
It reminds me more of flat buffers though. Does protobuf also have zero allocation (beyond initial ingestion) and no pointer jumps?
cstrahan•7mo ago
No, one example of why being variable sized integers.

See https://protobuf.dev/programming-guides/encoding/

carterschonwald•7mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•7mo 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•7mo 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•7mo 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•7mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•7mo ago
This was very well written. Excellent article!
NetOpWibby•7mo ago
Is this like MessagePack for Haskell?

Tricking a Security AI agent into pwning itself

https://www.hacktivesecurity.com/blog/2025/12/10/cve-2025-67511-tricking-a-security-ai-agent-into...
1•edoardottt•3m ago•0 comments

Ask your LLM for receipts: What I learned teaching Claude C++ crash triage

http://addxorrol.blogspot.com/2025/12/ask-your-llm-for-receipts-what-i.html
1•tdullien•4m ago•0 comments

Adopt Unicode Characters

https://aac.unicode.org/adopt
1•selvan•5m ago•0 comments

US threatens new ICC sanctions unless court pledges not to prosecute Trump

https://www.reuters.com/world/us/us-threatens-new-icc-sanctions-unless-court-pledges-not-prosecut...
2•jeroenhd•6m ago•0 comments

The most performant, secure, scalable, reliable, freest data platform

https://averagedatabase.com
1•tamnd•7m ago•0 comments

Simplify GPU Programming with Nvidia CUDA Tile in Python – Nvidia Technical Blog

https://developer.nvidia.com/blog/simplify-gpu-programming-with-nvidia-cuda-tile-in-python/
2•rbanffy•9m ago•0 comments

Hogwarts Legacy is free on the Epic Games Store for a limited time

https://www.windowscentral.com/gaming/hogwarts-legacy-epic-games-store-freebie-the-game-awards-20...
1•cyrc•10m ago•0 comments

Explaining Christmas to developers as a system architecture story

1•frafdez•17m ago•0 comments

Show HN: Workmux – Parallel development in tmux with Git worktrees

https://github.com/raine/workmux
2•rane•18m ago•0 comments

Native Ads Coming Soon to Stack Overflow and Stack Exchange

https://meta.stackexchange.com/questions/415259/native-ads-coming-soon-to-stack-overflow-and-stac...
3•exploraz•19m ago•0 comments

Germany's $500B Mistake (The Green Energy Trap) [video]

https://www.youtube.com/watch?v=qLZZGjjuml8
2•mpweiher•24m ago•0 comments

How does a "you interview for US company, we do the work" scam work?

4•marttilaine•27m ago•1 comments

Show HN: AI Advent Calendar – 25 practical AI tips for small business owners

https://advent.abasis.ai
2•akimov_pro•30m ago•0 comments

We're launching Bindu, a simple way to connect AI agents

https://github.com/GetBindu/Bindu
1•ai_biden•30m ago•5 comments

After 27 years within budget Austria open 6thlongest railway tunnel in the world

https://infrastruktur.oebb.at/en/projects-for-austria/railway-lines/southern-line-vienna-villach/...
2•fzeindl•32m ago•0 comments

State of Developer Ecosystem Report 2025 (JetBrains)

https://devecosystem-2025.jetbrains.com
1•pjmlp•32m ago•0 comments

Reddit launches high court challenge to Australia's under-16s social media ban

https://www.theguardian.com/australia-news/2025/dec/12/reddit-high-court-challenge-social-media-b...
2•trocado•36m ago•0 comments

Debug Mode for LLMs in vLLora

https://vllora.dev/blog/debug-mode/
4•mrun1729•37m ago•0 comments

AI Safety for Fleshy Humans: a whirlwind tour

https://aisafety.dance/
1•surprisetalk•38m ago•0 comments

Mcpgen is a code generator for MCP servers in Go

https://github.com/getprobo/mcpgen
1•gearnode•40m ago•0 comments

Zoom Federated AI at 48.1% on HLE

https://www.zoom.com/en/blog/humanitys-last-exam-zoom-ai-breakthrough/?cms_guid=false
1•snowypine•40m ago•0 comments

US marine leadership principles [pdf]

https://www.usmcu.edu/Portals/218/Fidelity-%20Leadership%20Principles.pdf
1•jeremiecoullon•41m ago•0 comments

Training LLMs for Honesty via Confessions

https://arxiv.org/abs/2512.08093
2•arabello•44m ago•1 comments

Owloops CLI Tools

https://www.owloops.com/
1•handfuloflight•46m ago•0 comments

What to Do When They Forget Something They "Knew"

https://kidswholovemath.substack.com/p/what-to-do-when-they-forget-something
2•sebg•47m ago•0 comments

Tracking down an upside-down text bug in the ChatGPT macOS app

https://oskargroth.com/blog/debugging-strange-calayers-chatgpt
2•cindori•57m ago•0 comments

Wicketkeeper – privacy-friendly, self-hostable PoW CAPTCHA

https://github.com/a-ve/wicketkeeper
1•cachius•57m ago•1 comments

Nvidia NVLink Fusion Tapped for Future AWS Trainium4 Deployments

https://www.servethehome.com/nvidia-nvlink-fusion-tapped-for-future-aws-trainium4-deployments/
3•PaulHoule•58m ago•0 comments

Show HN: A minimum viable Markov gibberish generator in 32 lines of Python

https://github.com/susam/mvs
2•susam•58m ago•0 comments

Building small Docker images faster

https://sgt.hootr.club/blog/docker-protips/
2•steinuil•59m ago•0 comments