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?

Building an Elite AI Engineering Culture in 2026

https://www.cjroth.com/blog/2026-02-18-building-an-elite-engineering-culture
1•cmsefton•1m ago•0 comments

Show HN: A Self-Paced Exercise to Build a CLI Coding Agent from Scratch

https://github.com/primaprashant/alduin
1•primaprashant•1m ago•0 comments

Show HN: AgentBouncr – Governance layer for AI agents

https://github.com/agentbouncr/agentbouncr
1•Soenke_Cramme•1m ago•1 comments

Fixing macOS window chaos: display-aware layout restore with Hammerspoon

https://ai.rundatarun.io/Practical+Applications/fixing-macos-window-chaos-hammerspoon-karabiner
1•RyeCatcher•2m ago•0 comments

Themes and plugins for Claude Code's status bar

https://github.com/npow/oh-my-claude
1•elwebmaster•3m ago•0 comments

Ask HN: Who is hiring? (February 2026)

1•ssunboyy•5m ago•0 comments

CryptPad Funding Status January 2026

https://blog.cryptpad.org/2026/02/18/CryptPad-Funding-Status-2026/
1•Timshel•5m ago•0 comments

Amazon's cloud was hit by two outages involving AI tools in December, FT says

https://www.marketscreener.com/news/amazon-s-cloud-was-hit-by-two-outages-involving-ai-tools-in-d...
1•_____k•7m ago•0 comments

Reassessing European Contact: Insights from Spanish America [pdf]

https://isonomiaquarterly.com/wp-content/uploads/2026/02/iq-4.1-spring-2026-bassi-conquest-and-th...
1•brandonlc•8m ago•0 comments

Epoll and Kqueue: How Operating Systems Learned to Wait Efficiently

https://thecodinggopher.substack.com/p/epoll-and-kqueue-how-operating-systems
1•syntacticbs•10m ago•1 comments

The U.S. and China Are Pursuing Different AI Futures

https://spectrum.ieee.org/us-china-ai
2•oldnetguy•11m ago•0 comments

Nvidia DGX Spark: Is DGX Spark Blackwell?

https://www.backend.ai/blog/2026-02-is-dgx-spark-actually-a-blackwell
1•ResearchAtPlay•12m ago•1 comments

Pg-here: Run a local PostgreSQL instance in your project folder with one command

https://github.com/mayfer/pg-here
1•birdculture•12m ago•0 comments

Private Equity Debt Left a Leading VPN Open to Chinese Hackers

https://www.bloomberg.com/news/features/2026-02-19/vpn-used-by-us-government-failed-to-stop-china...
1•pvachon•18m ago•0 comments

Exercise has 'similar effect' to therapy, study on depression shows

https://medicalxpress.com/news/2026-01-similar-effect-therapy-depression.html
4•PaulHoule•20m ago•0 comments

Show HN: Lobster Sauce – the most recent OpenClaw news in one central place

https://www.lobstersauce.news/
1•Tjerkienator•21m ago•0 comments

NASA recalls dysfunction, emotions during Boeing's botched Starliner flight

https://www.reuters.com/business/aerospace-defense/nasa-chief-slams-boeing-agency-failures-botche...
1•JumpCrisscross•23m ago•0 comments

IEEE 802.19.3:Coexistence Recommendations for sub 1-GHz IEEE 802.11 and 802.15.4

https://ieeexplore.ieee.org/document/10148905
1•teleforce•25m ago•0 comments

Fault tolerant message passing C# with NATS.io: Use Distributed Object Store

https://nats-io.github.io/nats.net/documentation/object-store/intro.html
1•northlondoner•26m ago•1 comments

Show HN: Google Drive CLI for LLMs / Coding Agents

https://github.com/NmadeleiDev/google-drive-cli
1•Gregoryy•28m ago•0 comments

Ente Locker

https://ente.io/blog/locker/
1•sylens•28m ago•0 comments

The Software Factory: When No Human Writes or Reviews the Code

https://www.thepragmaticcto.com/p/the-software-factory-when-no-human
1•allanmacgregor•30m ago•0 comments

Coding Agents Are at Stage 5, Everything Else Is Stuck at Stage 1

https://kanyilmaz.me/2026/02/19/five-stages-of-ai-agents.html
1•thellimist•30m ago•0 comments

Show HN: LinkedRecords – A Server-Sovereign Alternative to Firebase

https://linkedrecords.com/
1•WolfOliver•33m ago•0 comments

Django ORM Standalone⁽¹⁾: Querying an existing database

https://www.paulox.net/2026/02/20/django-orm-standalone-database-inspectdb-query/
1•pauloxnet•35m ago•0 comments

Gentoo Linux moves away from GitHub due to AI

https://www.pcgamer.com/software/linux/after-microsoft-couldnt-keep-its-ai-hands-to-itself-a-noto...
2•majkinetor•36m ago•0 comments

Is there a way to sort/filter by score on Hacker News?

1•7gorillaz•36m ago•1 comments

Nvidia and OpenAI abandon unfinished $100B deal in favour of $30B investment

https://www.ft.com/content/dea24046-0a73-40b2-8246-5ac7b7a54323
21•zerosizedweasle•39m ago•0 comments

Show HN: Geo-lint – open-source linter for GEO (AI search visibility)

https://github.com/IJONIS/geo-lint
1•ijonis•40m ago•1 comments

The battle over Scott Adams' AI afterlife

https://www.businessinsider.com/scott-adams-death-ai-avatar-resurrection-ethics-debate-family-bac...
2•pseudolus•40m ago•1 comments