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

Comments

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

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

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

Show HN: Umitech – Web development, SEO, graphic design and marketing services

https://umitech.com.au/
1•pinin•5m ago•0 comments

Unlikely Wins and Comped Spins: Inside Stake's Empire

https://www.bloomberg.com/features/2026-stake-drake-crypto-casino-adin-ross-gambling/
1•thm•8m ago•0 comments

Show HN: Teletext-Style Portfolio Website

https://pakastin.fi
1•pkstn•9m ago•1 comments

Don't rely on GitHub Actions cron: jobs may be delayed or just dropped

https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows
1•7777777phil•10m ago•0 comments

Mt. Gox CEO Suggests Bitcoin Hard Fork to Recover $5B in Customer Funds

https://gizmodo.com/disgraced-mt-gox-ceo-suggests-bitcoin-hard-fork-to-recover-5-billion-in-custo...
1•giuliomagnifico•11m ago•0 comments

Show HN: Steward – a background agent that closes 80% low-risk noise

https://github.com/study8677/Steward
1•867762462f•11m ago•0 comments

I built a demo of what AI chat will look like when it's "free" and ad-supported

https://99helpers.com/tools/ad-supported-chat
1•nickk81•12m ago•1 comments

U.S. Strikes in Middle East Use Anthropic, Hours After Trump Ban

https://www.wsj.com/livecoverage/iran-strikes-2026/card/u-s-strikes-in-middle-east-use-anthropic-...
4•slinky3671•15m ago•0 comments

Show HN: Vote-MCP" – a bit like Google Forms, but for AIs

https://vote-demo.dapp32.com/about
2•_codah_•18m ago•0 comments

A New Threat to Power Grids: Data Centers Unplugging at Once

https://www.wsj.com/business/energy-oil/a-new-threat-to-power-grids-data-centers-unplugging-at-on...
3•impish9208•21m ago•1 comments

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
1•hasheddan•21m ago•0 comments

A.I. Isn't People

https://www.todayintabs.com/p/a-i-isn-t-people
2•latexr•27m ago•0 comments

Show HN: Lazylogs -TUI structured log viewer (less meets jq for your terminal)

https://github.com/yasomaru/lazylogs
1•yasomaru•28m ago•0 comments

Disrupting the Gridtide Global Cyber Espionage Campaign

https://cloud.google.com/blog/topics/threat-intelligence/disrupting-gridtide-global-espionage-cam...
1•yusufaytas•31m ago•0 comments

Show HN: OpenLinq – invite-only link sharing for humans tired of AI slop

https://www.openlinq.xyz/
1•Othrya•31m ago•0 comments

Rebel startups challenge conglomerates in Korea's 'AI Squid Game'

https://businessmirror.com.ph/2026/02/25/rebel-startups-challenge-conglomerates-in-koreas-ai-squi...
2•journey2s•31m ago•0 comments

MDBaseQuery – Query MD/Frontmatter Bases (Obsidian-Compatible) with Headless CLI

https://github.com/intellectronica/mdbasequery
2•intellectronica•31m ago•1 comments

GPT detectors are biased against non-native English writers (2023)

https://arxiv.org/abs/2304.02819
1•maxloh•34m ago•0 comments

China Wins The Pentagon-Anthropic Brawl

https://www.wsj.com/opinion/anthropic-donald-trump-pentagon-ai-china-u-s-military-467dd6de
1•doener•37m ago•0 comments

I pitched my anime idea to a Japanese producer

https://sutanisurabu.substack.com/p/how-i-sold-my-anime-idea-to-a-japanese
1•sutanisurabu•41m ago•1 comments

Block and Tackle: Job Cuts and the AI Narrative

https://om.co/2026/02/28/block-tackle-job-cuts-the-ai-narrative/
1•herbertl•41m ago•0 comments

A Record Player Gave Me the Idea to Revive the Home Computer

https://text.tchncs.de/r3nun0mxs9
1•doener•45m ago•0 comments

Nets used to catch fish. Now they're catching Russian drones

https://www.cnn.com/2026/02/01/europe/ukraine-fishing-farming-nets-drones-intl
2•pera•47m ago•0 comments

Show HN: A CLI client for Tuta(nota) email

https://github.com/digitalWestie/tutanota-cli
1•digitalWestie•48m ago•0 comments

Show HN: Vertex.js – A 1kloc SPA Framework

https://lukeb42.github.io/vertex-manual.html
1•LukeB42•55m ago•0 comments

Show HN: I rewrote SMTP-server for Bun without touching node:net

https://github.com/puiusabin/bun-smtp
1•puiusabin•57m ago•0 comments

Show HN: Rust compiler in PHP emitting x86-64 executables

https://github.com/mrconter1/rustc-php
2•mrconter11•58m ago•1 comments

Redis Patterns for Coding Agents

https://redis.antirez.com/
1•ingve•59m ago•0 comments

Show HN: CANomaly-LSTM – Detecting CAN bus anomalies with deep learning

https://github.com/Yigtwxx/CANomaly-LSTM
2•Yigtwx•59m ago•1 comments

The JWKS Setup for Robust JWT Validation in Asp.net 10

https://www.aaronpina.com/the-ultimate-jwks-setup-for-robust-jwt-validation-in-asp-net-10/
1•aaronpina•59m ago•0 comments