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?

SingPost launches trial of digital stamps

https://www.channelnewsasia.com/singapore/singpost-digital-stamp-postage-trial-launch-6441321
1•mjballs•5m ago•0 comments

Bidding on competitor names when buyers ask agents

https://www.nibzard.com/brand-bids
1•nkko•6m ago•0 comments

A unique piece of Internet history: A RFC1149 packet on auction at Christie's

https://bsdly.blogspot.com/2026/10/a-unique-piece-of-internet-history.html
1•peter_hansteen•7m ago•0 comments

Show HN: Tide, simple self-hosted video meetings. URL is a demo anon deployment

https://demo.tide.convex.works/
1•robomonk•9m ago•1 comments

64k demo for the Pebble Time 2

https://teadrinker.net/blog/what-time-is-it.html
1•smig0•9m ago•0 comments

Embedding Gemma2 Use Cases

https://github.com/karimtn/embeddingGemma2-jeff
1•karimtn•10m ago•0 comments

Lily-Qwen3.8-Flash-Next

https://github.com/fabiogreter/lily-qwen3.8-flash-next
2•kerenskiy•11m ago•0 comments

AHM Statement on OpenAI's October 6 Release of Mathematical Documents

https://www.ahmath.org/statements
2•kkoncevicius•13m ago•0 comments

Automattic Wants .wordpress. It Doesn't Own WordPress

https://medium.com/@kelliepeterson/automattic-wants-wordpress-it-doesnt-own-wordpress-d9e6be3f3a45
1•docdeek•13m ago•0 comments

Scientists get a new clue to the origin of solar wind 'switchbacks'

https://www.theregister.com/science/2026/10/08/scientists-get-a-new-clue-to-the-origin-of-solar-w...
1•jjgreen•14m ago•0 comments

Show HN: Squidly – Track CEX, DEX and wallet balances in one place

https://www.squidly.finance/
1•r4id4•15m ago•0 comments

Does ClickHouse need its own storage format?

https://pivotlake.io/blog/does-clickhouse-need-its-own-storage-format/
1•dkgs•16m ago•0 comments

Sources: Apple Planning Two Sets of Product Launches in October

https://www.macrumors.com/2026/10/05/apple-two-sets-of-product-launches-october/
1•sp8•17m ago•0 comments

Mumsnet denies using AI for content after prompt appears on message board

https://www.theguardian.com/media/2026/oct/07/mumsnet-denies-using-ai-for-content-message-board-p...
2•sp8•18m ago•0 comments

Mistral's Le Chonk Arrives with a Trillion Parameters–and Something to Prove

https://digitalcxo.com/article/mistrals-le-chonk-arrives-with-a-trillion-parameters-and-something...
1•CrankyBear•19m ago•0 comments

The open-source 3D modeler for architecture and engineering

https://ingetrazo.com/en/
2•xyzal•19m ago•0 comments

Browser-in-browser attacks use fake Meta Muse Ad lure to steal credentials

https://www.theregister.com/research/2026/10/07/browser-in-browser-attacks-use-fake-meta-muse-ad-...
2•beardyw•19m ago•0 comments

The AI Price War Is Heating Up–and OpenAI Is Gaining Ground on Anthropic

https://www.wsj.com/tech/ai/the-ai-price-war-is-heating-upand-openai-is-gaining-ground-on-anthrop...
2•JumpCrisscross•20m ago•0 comments

Show HN: Forward Deployed Engineering Jobs

https://topfdejobs.com/
1•tonysurfly•22m ago•0 comments

Teenage Engineering Is Going to Stop Making Synths

https://www.highsnobiety.com/p/teenage-engineering-interview/
1•guidoschmidt•23m ago•0 comments

A lot of Danish data as Parquet files

https://datagrundlag.dk/
1•mhoegh•24m ago•1 comments

Can we talk about the world economy?

1•irishcoffee•25m ago•1 comments

Show HN: Pocket Commander – a two-pane file manager for Mac ↔ Android over ADB

https://codeberg.org/sailingthroughcode/PocketCommander
1•sailingcode•26m ago•1 comments

Allegedly a student using AI behind South Korean banks cyberattack

https://www.crowdstrike.com/en-us/blog/unknown-threat-actor-uses-artex-to-target-south-korean-fin...
1•Iolaum•27m ago•1 comments

Ask HN: Are we trading model capacity for compute?

1•olirex99•27m ago•0 comments

Show HN: LLMSchema – Dump your database schema as compact Markdown for AI agents

https://github.com/tordrt/LLMSchema
1•tordrt•29m ago•0 comments

Near-Total Liquid Heat Capture Keeps AI Racks Cool

https://spectrum.ieee.org/fanless-liquid-cooled-ai-servers-coolit
1•rbanffy•30m ago•0 comments

Azure Sphere is Retiring in 2031

https://techcommunity.microsoft.com/blog/iotblog/azure-sphere-is-retiring-in-2031---what-you-need...
2•pjmlp•30m ago•0 comments

Allclear Tool

https://github.com/m-peko/allclear
1•PeMaCN•31m ago•0 comments

Absolute Disaster Jeremy Clarkson Reveals Brutal Reality Facing British Farmers [video]

https://www.youtube.com/watch?v=gEBIo9ajVB8
1•flojo•32m ago•1 comments