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?

It looks like the status/need-triage label was removed

https://github.com/google-gemini/gemini-cli/issues/16728
1•nickswalker•2m ago•0 comments

Interfaces and Traits in C

https://antonz.org/interfaces-in-c/
1•ibobev•2m ago•0 comments

Quantum effect observed for biggest objects yet

https://www.nature.com/articles/d41586-025-04097-y
1•bookofjoe•3m ago•0 comments

GPT Style Models Tokenize Text for Training (With Code)

https://manthanguptaa.in/posts/agentic_systems_pattern/
1•manthangupta109•3m ago•0 comments

Apple's New AI Strategy Firms Up Under Craig Federighi

https://www.macrumors.com/2026/01/22/new-apple-ai-strategy-firms-up/
1•stalfosknight•4m ago•0 comments

Bags.fm: Weaponizing the 'Build in Public' Community

https://www.builtbyvibes.com/#blog/bags-scam
1•watkajtys•4m ago•0 comments

Data Oriented Programming, Beyond Records

https://mail.openjdk.org/pipermail/amber-spec-experts/2026-January/004307.html
2•lichtenberger•5m ago•0 comments

Announcing winapp, the Windows App Development CLI

https://blogs.windows.com/windowsdeveloper/2026/01/22/announcing-winapp-the-windows-app-developme...
2•el_duderino•5m ago•0 comments

Dyalog and AI [video]

https://www.youtube.com/watch?v=H_wdKeJ8gt4
1•tosh•5m ago•0 comments

A socratic dialogue over why drugs work at all

https://www.owlposting.com/p/why-do-drugs-work-at-all
3•abhishaike•7m ago•0 comments

Everyone else is ahead of me, so I decided to build in public

https://www.instagram.com/accounts/login/?next=https%3A%2F%2Fwww.instagram.com%2Farjun.works%3Fig...
1•sillygoose_189•7m ago•1 comments

Job Applicants Sue to Open 'Black Box' of A.I. Hiring Decisions

https://www.nytimes.com/2026/01/21/business/ai-hiring-tools-lawsuit-eightfold-fcra.html
1•metadat•8m ago•0 comments

Show HN: VibeFarm – A non-generative IDE for composing AI prompts

https://vibefarm.ai/
1•vibefarm•10m ago•0 comments

Show HN: Open-source-ish chart pattern detection using Gemini Vision API

https://trinith-ai.vercel.app
1•rvnx_exe•11m ago•0 comments

Show HN: Bible translated using LLMs from source Greek and Hebrew

https://biblexica.com
2•epsteingpt•12m ago•0 comments

Huatuo: A cloud-native operating system observability project based on eBPF

https://github.com/ccfos/huatuo
1•tanelpoder•13m ago•0 comments

Jan – Open-Source ChatGPT Replacement

https://www.jan.ai/
1•janandonly•13m ago•0 comments

Lifestyle Anarchism

https://theanarchistlibrary.org/library/murray-bookchin-social-anarchism-or-lifestyle-anarchism-a...
1•aabhay•13m ago•0 comments

Generalized EARS: The AI-Ready Spec Syntax

https://sublang.xyz/ref/gears-ai-ready-spec-syntax/
2•sublang•14m ago•0 comments

SFPark: Interactive map of SF parking regulations

https://hugues.betakappaphi.com/2026/01/21/sfpark/
1•__hugues•14m ago•0 comments

Townie's Back in Town

https://blog.val.town/townie-v5
1•tionis•14m ago•0 comments

Society for Creative Anachronism

https://www.sca.org/
1•sebg•15m ago•0 comments

GitFolio – Turn Your GitHub into a Portfolio

https://mygitfolio.com/
1•indigodaddy•16m ago•1 comments

The Craftsman's Case for AI

https://iurysouza.dev/craftsmanship-ai-coding/
1•sorcercode•16m ago•0 comments

First observation of flexible use of a tool by cow [video]

https://www.youtube.com/watch?v=3rX1dx8HpL0
1•cmrdporcupine•16m ago•1 comments

Vertical Large Model for the General Agricultural Domain

https://github.com/njauzzx/Sinong/blob/main/README_EN.md
1•rzerowan•16m ago•0 comments

AI Is Not Just a Writing Tool, but Your University's AI Plan Is Probably a PDF

https://syntheticminds.substack.com/p/what-universities-should-do-about
1•chriskanan•16m ago•0 comments

Why streaming compression breaks binaural beats

https://phantas.io/research/002
1•AphantaZach•17m ago•0 comments

Show HN: I built an iOS app with all 5 major AI models for $13/mo

https://www.chatxos.com
3•jsontsx•19m ago•1 comments

JOL (Java Object Layout) is the tiny toolbox to analyze object layout in JVMs

https://github.com/openjdk/jol
2•tanelpoder•20m ago•0 comments