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?

Micron: A pure C++ (re)implementation of Libc

https://github.com/rfgplk/micron.cpp
1•rfgplk•53s ago•1 comments

LG accused of 'egregious invasion of privacy' over TV data collection

https://www.theregister.com/security/2026/09/08/lg-accused-of-egregious-invasion-of-privacy-over-...
1•Bender•2m ago•0 comments

Real photos of young girls were in nudify-app ads on Facebook, Instagram

https://arstechnica.com/tech-policy/2026/09/real-photos-of-young-girls-were-in-nudify-app-ads-on-...
1•Bender•2m ago•0 comments

Show HN: Cmdxray now flags the scary parts of a shell command (curl – sudo bash)

https://aurelio-nakamura.github.io/cmdxray/?cmd=curl%20-fsSL%20https%3A//get.example.com/install....
1•aurelionakamura•2m ago•0 comments

Design the Next iPhone

https://neal.fun/design-the-next-iphone/
1•duck•2m ago•0 comments

MCP: A Guide in Plain English

https://www.polytomic.com/blog-posts/mcp-a-guide-in-plain-english
1•gms•2m ago•0 comments

CVE-Bench evaluates the capability of AI agents to exploit web vulnerabilities

https://cvebench.com/
1•syumei•3m ago•0 comments

Show HN: Agent Board – a public observatory for autonomous agent activity

https://agent-board.juleskreuer.eu
1•not_a_feature•3m ago•0 comments

T.me/Hamidehbarati

1•sasanafsarineja•5m ago•0 comments

Flint: Efficiently Leveraging High Bandwidth Flash

https://arxiv.org/abs/2608.25062
1•rbanffy•6m ago•0 comments

OpenAI's German Wiki Hack Is Less About "Rogue AI" Than Failed Agent Containment

https://securityboulevard.com/2026/09/openais-german-wiki-hack-is-less-about-rogue-ai-than-failed...
2•CrankyBear•7m ago•0 comments

Windows Disk Defragmentation Game

https://www.keithcirkel.co.uk/defrag/
1•SeenNotHeard•9m ago•0 comments

The Late Software Developer

https://mg-crea.com/blog/the-late-software-developer/
2•olouv•10m ago•1 comments

Show HN: Linubot – like Grok bot and Hermes had a kid

https://github.com/agent-sh/linubot
2•anotherCodder•11m ago•0 comments

A comprehensive guide to production-ready RAG

https://neo4j.com/essential-graphrag/
1•Anon84•12m ago•0 comments

WebLLM: Run a language model in the browser on WebGPU, Lesson 1

https://buttercup.sh/lessons/2026-09-08-lesson-1-webllm.html
1•stephenblum•12m ago•1 comments

When Mothers Get Arrested for Mothering

https://www.theatlantic.com/ideas/2026/09/karyann-parkinson-children-indpendence/688541/
4•Jtsummers•13m ago•0 comments

Guifi.net: free, open and neutral, mostly wireless community network

https://en.wikipedia.org/wiki/Guifi.net
1•gregsadetsky•13m ago•0 comments

Vega-Altair: Declarative Visualization in Python

https://altair-viz.github.io/
1•jllyhill•13m ago•1 comments

DeepSeek Flash reduced price by 100%

https://www.reddit.com/r/DeepSeek/s/6MuPlB34VG
2•wg0•14m ago•0 comments

We're Sharing a Solution to the Navier-Stokes Millennium Prize Problem

https://twitter.com/OpenAI/status/2097374640582668336
3•sajid•15m ago•1 comments

Practical Agentic RAG patterns implemented with LangGraph

https://github.com/ChandulaSenevirathna/Agentic_RAG
1•Delta000•16m ago•1 comments

I'm Not Reading Your AI-Generated Design Doc

https://substack.wasteman.codes/p/im-not-reading-your-ai-generated
3•KothuRoti•18m ago•0 comments

AWS Graviton c8g.large: Tiny 0.04% CPU variation across 3 fresh VMs

https://webbynode.com/articles/aws-c8g-large-paris-three-fresh-deployments
1•gsgreen•18m ago•0 comments

ChatGPT Images 2.5

https://openai.com/index/introducing-chatgpt-images-2-5/
42•vertigoruntime•19m ago•7 comments

OpenAI Says It Has Solved a Millennium Prize Problem–A Holy Grail of Math

https://www.wsj.com/tech/ai/openai-millennium-prize-navier-stokes-math-2bf240f8
3•fortran77•19m ago•2 comments

What AI Can't Fake: How junior engineers can stand out in the age of AI

https://ratioshift.com/2026/07/what-ai-cant-fake-how-junior-engineers-can-stand-out-in-the-age-of...
2•ratioshift•19m ago•1 comments

Open-Sourcing Eraser Diagrams

https://www.eraser.io/blog/open-sourcing-eraser-diagrams
2•shinkim0914•20m ago•0 comments

Show HN: Pen – A writing tool where conversation is the editor

https://pen.xyz
1•harleyverse•20m ago•0 comments

Interstellar Scenes Recreated in Three.js

https://interstellar3.scottsun.io
1•memalign•21m ago•0 comments