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?

Examplefile – Sample Document File Formats

https://www.examplefile.com/document
1•petethomas•53s ago•0 comments

Show HN: DefendFlow Domain Security Board – live scans of popular sites

1•riyao_lin•3m ago•0 comments

Show HN: Headroom (OSS): Cuts LLM costs by 85%

https://github.com/chopratejas/headroom
1•chopratejas•5m ago•1 comments

Breaking the Linearity Barrier: Recursive Swarms for Long-Horizon AI Engineering

https://www.blankline.org/research/horizon-mode
1•satvikpendem•7m ago•0 comments

Data Activation Thoughts

https://galsapir.github.io/sparse-thoughts/2026/01/17/data_activation/
1•galsapir•10m ago•0 comments

Show HN: My way – 18-agent autonomous workflow for ClaudeCode – issues to deploy

https://github.com/avifenesh/awesome-slash
2•anotherCodder•15m ago•0 comments

The life of a playboy publisher who shaped 20th-century literature

https://www.washingtonpost.com/books/2026/01/09/bennett-cerf-biography-nothing-random-feldman-boo...
1•benbreen•18m ago•0 comments

Revisiting Brat Summer: Artists, politicians, and the summer of 2024

https://thelastwave.substack.com/p/revisiting-brat-summer
2•johanam•18m ago•0 comments

Build Your Own AI Coding Agent (Full Guide) [video]

https://www.youtube.com/watch?v=3GjE_YAs03s
2•kburman•23m ago•0 comments

Umarell – men of retirement age who spend their time watching construction sites

https://en.wikipedia.org/wiki/Umarell
3•gurjeet•23m ago•0 comments

The SaaS Selloff: AI and Interest Rates

https://davefriedman.substack.com/p/the-saas-selloff-ai-and-interest
4•stosssik•26m ago•0 comments

BioNeMo Platform Accelerate AI-Driven Drug Discovery

https://nvidianews.nvidia.com/news/nvidia-bionemo-platform-adopted-by-life-sciences-leaders-to-ac...
1•gmays•27m ago•0 comments

AI Sandbox for Claude Code CLI with Node and Python SDKs

https://sandbox.stateset.app
2•domsteil•37m ago•0 comments

You Need More AWS Accounts Than You Think

https://cloudposse.com/blog/you-need-more-aws-accounts-than-you-think
3•mooreds•38m ago•3 comments

Show HN: Gollem – Go framework for agentic AI app with MCP and built-in tools

https://github.com/m-mizutani/gollem
1•masa00•44m ago•0 comments

A new way to call C from Java: how fast is it?

https://lemire.me/blog/2026/01/17/a-new-way-to-call-c-from-java-how-fast-is-it/
1•mfiguiere•46m ago•0 comments

How to Read a Room in 5 Minutes

https://oedmethod.substack.com/p/how-to-read-a-room-in-5-minutes
1•truenfel•48m ago•0 comments

AI and Corporate Capture of Knowledge

https://www.schneier.com/blog/archives/2026/01/ai-and-the-corporate-capture-of-knowledge.html
5•fosco•48m ago•0 comments

Algebra will return to S.F. middle schools after more than a decade

https://www.sfchronicle.com/bayarea/article/algebra-return-sf-middle-schools-21299694.php
1•mikhael•50m ago•0 comments

MIT's Computer Systems Security (2024)

https://css.csail.mit.edu/6.858/2024/
2•barishnamazov•50m ago•0 comments

More HTTP/3 focus, one back end less

https://daniel.haxx.se/blog/2026/01/17/more-http-3-focus-one-backend-less/
2•todsacerdoti•50m ago•0 comments

The Born-XML Shakespeare Edition: The View from the New Oxford Shakespeare

http://www.gabrielegan.com/publications/Egan2019e.htm
1•mmooss•50m ago•0 comments

IRISC: An ARMv7 assembly interpreter and computer architecture simulator

https://polysoftit.co.uk/irisc-web/
3•rtybanana•55m ago•1 comments

Show HN: Agam Space – Self-hosted, zero-knowledge, E2EE file storage

https://github.com/agam-space/agam-space
2•rameshl•55m ago•0 comments

Astronomers spot one of the largest spinning structures found in the Universe

https://www.ast.cam.ac.uk/news/astronomers-spot-one-largest-spinning-structures-ever-found-universe
1•hhs•57m ago•0 comments

Non-developers are writing apps instead of buying them

https://techcrunch.com/2026/01/16/the-rise-of-micro-apps-non-developers-are-writing-apps-instead-...
2•barishnamazov•57m ago•1 comments

The Biggest Poverty Issues: 2025

https://povertytrap.substack.com/p/us-poverty-in-2025
2•jdemartin•58m ago•0 comments

Smalloc: A Simple Memory Allocator

https://github.com/zooko/smalloc
1•birdculture•58m ago•1 comments

AI Visibility Scanner – Check if your WAF is blocking GPTBot

https://viametric.app/tools/ai-visibility-checker
2•dsagostini•1h ago•1 comments

Man accused of aiming laser at Trump helicopter acquitted in 35 minutes

https://www.theguardian.com/us-news/2026/jan/17/laser-beam-trump-jeanine-pirro
6•tzs•1h ago•0 comments