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

Comments

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

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

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

Show HN: Image MetaHub – Search Local AI Images by Prompt, Model, LoRA, Seed

https://github.com/LuqP2/Image-MetaHub
1•LucasPi•2m ago•1 comments

The Sazabi Manifesto

https://www.sazabi.com/manifesto
1•shcallaway•3m ago•1 comments

Show HN: Tabstack Research – An API for verified web research (by Mozilla)

4•MrTravisB•5m ago•0 comments

Pick Your Agent: Use Claude and Codex on Agent HQ

https://github.blog/news-insights/company-news/pick-your-agent-use-claude-and-codex-on-agent-hq/
1•abraham•6m ago•0 comments

DHS Hunts Down 67-Year-Old U.S. Citizen Who Criticized Them in Email

https://newrepublic.com/post/206088/homeland-security-67-year-old-us-citizen-criticized-email
3•randycupertino•7m ago•1 comments

Claude Code's /Insights

https://www.natemeyvis.com/claude-codes-insights/
2•ingve•8m ago•0 comments

Release Pandoc 3.9

https://github.com/jgm/pandoc/releases/tag/3.9
4•Tomte•11m ago•1 comments

YC S26 Application: "Attach a coding agent session you're particularly proud of"

1•simplydt•11m ago•0 comments

Why does this site require security questions?

https://txt.texas.gov/getting-started/security-questions-capture
1•newsoftheday•11m ago•1 comments

VS Code for Linux may be hoarding trashed files

https://www.theregister.com/2026/02/04/vs_code_for_linux_trash_fail/
1•u1hcw9nx•12m ago•0 comments

I made an open-source juypter alternative

https://github.com/DannyMang/more-compute
1•danielung22•12m ago•0 comments

Map Shows 21 States Where Deaths Now Outnumber Births (2025)

https://www.newsweek.com/map-shows-21-states-where-deaths-now-outnumber-births-2092400
2•toomuchtodo•12m ago•1 comments

The Great Unwind

https://occupywallst.com/yen
2•jart•13m ago•0 comments

Cracking the Clit (2017)

https://logicmag.io/sex/cracking-the-clit/
1•joebig•13m ago•0 comments

MariaDB Cloud BYOA: run managed MariaDB inside your Azure subscription

https://mariadb.com/resources/blog/announcing-mariadb-cloud-byoa-fully-managed-mariadb-in-your-az...
1•alejandro-du•16m ago•0 comments

cad0: A Text-to-CAD Model

https://campedersen.com/cad0
7•ecto•17m ago•1 comments

A2RL – Autonomous Drone Racing Championship [video]

https://www.youtube.com/watch?v=P25BwtepmUk
1•aanet•18m ago•1 comments

Min Blogger-Mania-Profil

1•agnes-nordic•18m ago•0 comments

Show HN: A free focus app that locks work if you skip breaks

https://www.kensho.zone/
1•bestonearth•19m ago•0 comments

Show HN: tmpo – Local-first CLI time tracker with automatic project detection

https://github.com/DylanDevelops/tmpo
1•dylandevelops•19m ago•0 comments

Ask HN: When will LLMs generate professional-level CAD models?

4•dsrtslnd23•19m ago•1 comments

Who Bit My Border? (2012)

https://archive.nytimes.com/opinionator.blogs.nytimes.com/2012/03/13/who-bit-my-border/
1•thunderbong•20m ago•0 comments

Mazeru: Clojure full-stack server-state using Deno and Datastar

https://codeberg.org/gregorybleiker/mazeru
1•simonpure•20m ago•0 comments

Server CPUs join memory in the supply shortage, pushing up prices

https://www.theregister.com/2026/02/04/server_cpus_memory_shortage/
1•jjgreen•20m ago•0 comments

Feedsmith: Emacs RSS reader with Feedbin sync, pluggable back ends

https://github.com/curtismchale/feedsmith
2•ingve•20m ago•0 comments

Show HN: Workout app for when you're short on time

https://apps.apple.com/il/app/quickworkout-tap-train/id6757982958
2•Benboren•21m ago•1 comments

NASA's Perseverance Rover Completes First AI-Planned Drive on Mars

https://www.jpl.nasa.gov/news/nasas-perseverance-rover-completes-first-ai-planned-drive-on-mars/
2•kgrimes2•22m ago•0 comments

Intel will start making GPUs

https://techcrunch.com/2026/02/03/intel-will-start-making-gpus-a-market-dominated-by-nvidia/
12•SunshineTheCat•22m ago•11 comments

Roblox's 4D creation feature is now available in open beta

https://techcrunch.com/2026/02/04/robloxs-4d-creation-feature-is-now-available-in-open-beta/
1•rbanffy•22m ago•0 comments

Implementation of the Apollo Guidance Computer in an FPGA

https://github.com/mikeakohn/apollo11_fpga
1•PaulHoule•22m ago•0 comments