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?

Libcurl Memory Use Some Years Later

https://daniel.haxx.se/blog/2026/01/21/libcurl-memory-use-some-years-later/
2•firesteelrain•1m ago•0 comments

Waymo founder John Krafcik: Tesla's Full Self-Driving has 'bad case of myopia'

https://electrek.co/2026/01/20/waymo-founder-john-krafcik-teslas-full-self-driving-myopia/
1•senti_sentient•5m ago•0 comments

Infinite Jest

https://infinijest.com
2•hn_throway•5m ago•0 comments

Show HN: I built an AI that calls you and practices spoken English with you

https://englishcall.online/
2•rahma_tm•8m ago•0 comments

Why Big Tech Performance Reviews Aren't Meritocratic

https://medium.com/data-science-collective/big-tech-performance-review-01fff2c5924d
2•dikobraz•17m ago•1 comments

Time Until Someone Points Out This Is Not a Real Study

https://journal-preliminary-results.fly.dev/38472951
1•ipnon•20m ago•0 comments

Agree or Disagree

https://a-or-d.lovable.app
2•Conceiver•20m ago•0 comments

Dev Logs Without the Noise (2024)

https://peterlyons.com/problog/2024/08/dev-logs-without-the-noise/
1•mooreds•20m ago•0 comments

Ruby_LLM-agents: A Rails agent framework for RubyLLM

https://github.com/adham90/ruby_llm-agents
1•thunderbong•23m ago•0 comments

The secret fast track for animal drugs (2025)

https://worksinprogress.co/issue/the-secret-fast-track-for-animal-drugs/
1•mooreds•23m ago•0 comments

Rise in Sophisticated Dark Patterns Designed to Trick and Trap Consumers (2022)

https://www.ftc.gov/news-events/news/press-releases/2022/09/ftc-report-shows-rise-sophisticated-d...
4•wslh•26m ago•0 comments

Change Blindness in UX (2018)

https://www.nngroup.com/articles/change-blindness-definition/
1•wslh•29m ago•0 comments

Rust's Standard Library on the GPU

https://www.vectorware.com/blog/rust-std-on-gpu/
1•sbt567•30m ago•0 comments

Community Pulse 2025 End of Year Wrap-Up [audio]

https://www.communitypulse.io/102-2025-wrap-up
1•mooreds•30m ago•0 comments

Every Enemy from Super Mario 64, 3D Printed [video]

https://www.youtube.com/watch?v=U6yxtHJcxAs
1•us-merul•31m ago•0 comments

StatechartX – performant state machine runtime written in Go

https://github.com/comalice/statechartx
1•all2•34m ago•1 comments

Show HN: Open-source multi-agent subtitle translator (self-hosted)

https://github.com/subtitlesdog/Subtitles.Translate.Agent
1•mrqjr•36m ago•0 comments

MIT's new 'recursive' framework lets LLMs process 10M tokens

https://venturebeat.com/orchestration/mits-new-recursive-framework-lets-llms-process-10-million-t...
1•prng2021•37m ago•0 comments

I don't like skiing in the shade, so I built a ski trail shade map

https://skishade.com
1•marcushyett•39m ago•0 comments

Tour website's AI sends visitors to Tasmanian sites that do not exist

https://www.abc.net.au/news/2026-01-22/ai-images-of-tasmania-on-tour-website/106253448
1•beatthatflight•40m ago•1 comments

198-Bit Constraint Framework: New Physics from First Principles

https://zenodo.org/records/18170177
1•More_Fee_Us•40m ago•2 comments

Trump FCC threatens to enforce equal-time rule on late-night talk shows

https://arstechnica.com/tech-policy/2026/01/trump-fcc-tries-to-get-more-republicans-on-late-night...
6•voxadam•46m ago•2 comments

NexDock is building a new Windows phone that you can buy in 2026

https://www.windowscentral.com/microsoft/windows-11/nexdock-is-building-a-new-windows-phone-that-...
5•LorenDB•46m ago•2 comments

Elizabeth Holmes asks President Donald Trump to let her out of prison early

https://www.cnn.com/2026/01/21/tech/elizabeth-holmes-theranos-trump-commute-sentence
9•g-b-r•46m ago•2 comments

Tsfresh

https://tsfresh.readthedocs.io/en/latest/
1•jonbaer•50m ago•0 comments

The Art of Craftsmanship (Monozukuri) in the Age of AI

https://rapha.land/the-art-of-craftsmanship-monozukuri-in-the-age-of-ai/
1•vinhnx•50m ago•0 comments

Myth of the Monolithic ERP: Why They Keep Failing [video]

https://www.youtube.com/watch?v=o6d94HNGV1s
1•rossdavidh•56m ago•0 comments

An A.I. Startup Says It Wants to Empower Workers, Not Replace Them

https://www.nytimes.com/2026/01/20/technology/humans-ai-anthropic-xai.html
4•bookofjoe•59m ago•4 comments

Testosterone went from prostate cancer villain to potential ally

https://theconversation.com/how-testosterone-went-from-prostate-cancer-villain-to-potential-ally-...
2•PaulHoule•1h ago•0 comments

Flashlabs releases the world’s first open-source voice cloning model

https://twitter.com/flashlabsdotai/status/2013993446047158550
3•sangwen•1h ago•2 comments