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?

Every agent framework has the same bug – prompt decay. Here's a fix

https://gist.github.com/sigalovskinick/c6c88f235dc85be9ae40c4737538e8c6
1•nikolasi•1m ago•1 comments

Turn pull requests into guided walkthroughs

https://github.com/oddur/gnosis
1•gitnik•1m ago•0 comments

Ferguson's Law: Debt Service, Military Spending, & Fiscal Limits of Power (2025)

https://www.hoover.org/research/fergusons-law-debt-service-military-spending-and-fiscal-limits-power
1•SanjayMehta•5m ago•0 comments

Hubble spotted a 'dark galaxy' that's at least 99.9% dark matter

https://www.science.org/content/article/hubble-spotted-dark-galaxy-s-least-99-9-dark-matter
1•rbanffy•5m ago•0 comments

Why Mars Astronauts Need More Than Just Space Greenhouses

https://www.universetoday.com/articles/why-mars-astronauts-need-more-than-just-space-greenhouses
1•rbanffy•6m ago•0 comments

Show HN: HushWork – A focus environment with ambient sounds and timer in one tab

https://hushwork.app
1•pgebski•7m ago•1 comments

Clonezilla Live (3.3.1-35)

https://sourceforge.net/p/clonezilla/news/2026/02/stable-clonezilla-live-331-35-released/
1•doener•8m ago•0 comments

Mazda Onboard Carbon Capture

https://newsroom.mazda.com/en/publicity/release/2025/202511/251117b.html
2•wolfi1•8m ago•1 comments

Why NVLink Is Nvidia's Secret Sauce Driving a 10x Performance Boost in MoEs

https://www.hpcwire.com/2026/02/23/why-nvlink-is-nvidias-secret-sauce-driving-a-10x-performance-b...
1•rbanffy•9m ago•0 comments

Pilot Human Factors Visualization

https://www.phase-aero.app/en/timeline
1•jcchrrr•10m ago•0 comments

Show HN: PyMOL-RS – Rust reimplementation of PyMOL with modern rendering

https://github.com/zmactep/pymol-rs/releases/tag/v0.1.0
1•zmactep•12m ago•0 comments

A random color on every reload

https://randomcolour.com/
1•liquid99•17m ago•0 comments

Show HN: I built an AI that turns emailed PDFs into ledger entries in 60s

https://baguno.app
1•lakma•18m ago•1 comments

Why etcd breaks at scale in Kubernetes

https://learnkube.com/etcd-breaks-at-scale
1•mweibel•19m ago•0 comments

Rejecting Reality in the Age of AI

https://little-flying-robots.ghost.io/rejecting-reality-in-the-age-of-ai-2/
1•speckx•21m ago•0 comments

Local-first desktop utility to migrate chats from ChatGPT to Gemini

1•transferllm•21m ago•0 comments

Show HN: Autobs – Translate "fix: null ptr" into "Enhanced platform stability"

https://autobs.coolapso.sh
1•coolapso•24m ago•0 comments

Rerun 0.30: Plot Any Scalar and Custom GPU Visualizers

https://github.com/rerun-io/rerun/releases/tag/0.30.0
4•Tycho87•24m ago•1 comments

Bun v1.3.10

https://bun.com/blog/bun-v1.3.10
1•tosh•25m ago•0 comments

Cheaper and greener way to make high-quality graphene from waste peanut shells

https://www.unsw.edu.au/newsroom/news/2026/02/Peanut-waste-high-quality-graphene
1•jbotz•26m ago•0 comments

The Bet on Juniors Just Got Better

https://tidyfirst.substack.com/p/the-bet-on-juniors-just-got-better
1•futurecat•26m ago•0 comments

Show HN: Neo – Turn any web app into an API by capturing browser traffic

https://github.com/4ier/neo
2•4ier•29m ago•0 comments

Show HN: Grubl – AI and structured recipe generation

https://grubl.app
1•RossMorgan•29m ago•0 comments

Show HN: Better Hub – A better GitHub experience

https://www.better-hub.com/
3•bekacru•29m ago•0 comments

Norwegian state newspaper investigate AI psychosis

https://www.nrk.no/direkte/xl/ki-psykose_-vi-undersokte-hvordan-chatbotter-svarer-1.17770908
1•hallvard•32m ago•0 comments

Little about software engineering has changed over past last three months

https://twitter.com/Grady_Booch/status/2026736492488568955
1•tosh•33m ago•0 comments

Axelera: Cutting-edge hardware and software platform for accelerating inference

https://axelera.ai
1•amelius•36m ago•0 comments

WTF Happened in 2025?

https://wtfhappened2025.com/
2•myk-e•37m ago•1 comments

OpenClaw broadcasts its screen while I'm at the gym [video]

https://www.instagram.com/reel/DVN2zfSEXJj/
1•nomilk•39m ago•1 comments

Asura: Looped Language Models done better

https://neel04.github.io/my-website/projects/asura/
1•n7g•39m ago•1 comments