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

Comments

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

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

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

YouTube AI: Deepfake detector tool is alarming creators, experts

https://www.cnbc.com/2025/12/02/youtube-ai-biometric-data-creator-deepfake.html
1•thunderbong•42s ago•0 comments

Books, Bombs, and Battlefield Needs: Rethinking Development in Myanmar

https://insightmyanmar.org/insight-myanmar-blog/2025/5/5/books-bombs-and-battlefield-needs-rethin...
1•arunc•56s ago•0 comments

Government of Canada AI Register (Minimum Viable Product)

https://open.canada.ca/data/en/dataset/fcbc0200-79ba-4fa4-94a6-00e32facea6b
2•palidanx•5m ago•0 comments

Why We Love Functional Programming But Don't Use Effect-TS

https://runharbor.com/blog/2025-11-24-why-we-dont-use-effect-ts
1•18nleung•5m ago•0 comments

AWS announces new capabilities for its AI agent builder

https://techcrunch.com/2025/12/02/aws-announces-new-capabilities-for-its-ai-agent-builder/
1•janpio•6m ago•0 comments

ABC's from Space

https://www.visibleearth.nasa.gov/collection/1619/abcs-from-space
2•merusame•7m ago•0 comments

Tree-planting robot saves burned land from deforestation

https://www.designboom.com/technology/tree-planting-robot-saves-burned-land-deforestation-seedlin...
1•thunderbong•9m ago•0 comments

Show HN: Sigma Runtime ERI – 800-line open cognitive runtime for LLM continuity

https://github.com/sigmastratum/documentation/blob/main/runtime/reference/README.md
1•teugent•10m ago•0 comments

Small numbers of Notepad++ users reporting security woes

https://doublepulsar.com/small-numbers-of-notepad-users-reporting-security-woes-371d7a3fd2d9
2•speckx•13m ago•0 comments

Ask HN: What has been your experience with Agentic Coding?

3•grandimam•13m ago•0 comments

Who Is Beej?

https://gist.github.com/ontouchstart/0e2cefda95e78d1b7330660f1a414804
1•ontouchstart•16m ago•1 comments

Amazon Trainium3 UltraServers

https://www.aboutamazon.com/news/aws/trainium-3-ultraserver-faster-ai-training-lower-cost
1•ChrisArchitect•17m ago•0 comments

Amazon to use Nvidia tech in AI chips, roll out new servers

https://www.reuters.com/business/retail-consumer/amazon-use-nvidia-tech-ai-chips-roll-out-new-ser...
1•ohong•19m ago•0 comments

Building Ghostable and Finding Ideas by Listening Well

https://ghostable.dev/blog/building-ghostable-finding-ideas-by-listening-well
1•joerucci•20m ago•0 comments

Language Translation: An Useful AI

https://newslttrs.com/language-translation-an-actually-useful-ai/
1•spzb•20m ago•0 comments

LowType: Intuitive Ruby runtime type checking

https://github.com/low-rb/low_type
2•taikon•20m ago•0 comments

Claude 4.5 Opus' Soul Document

https://simonwillison.net/2025/Dec/2/claude-soul-document/
33•the-needful•22m ago•9 comments

Amazon launches Trainium3

https://techcrunch.com/2025/12/02/amazon-releases-an-impressive-new-ai-chip-and-teases-a-nvidia-f...
22•thnaks•23m ago•3 comments

Smart Pitmaster – A reverse-scheduling calculator for smoking meat

https://smartpitmaster.com/
1•NateShenner•24m ago•1 comments

RAG Isn't One-Size-Fits-All - Here's how to Tune It

https://lancedb.com/blog/rag-isnt-one-size-fits-all/
4•scosman•26m ago•0 comments

Lazy Linearity for a Core Functional Language (POPL 2026)

https://alt-romes.github.io/posts/2025-11-26-lazy-linearity-popl26.html
3•romes•27m ago•0 comments

Show HN: A 2mm micro-bearing ring that spins like a real fidget spinner

2•xtafnuihc•27m ago•0 comments

Ask HN: How do you use AI as part of your executive function?

2•ys-oh•28m ago•0 comments

Fwupd 2.0.18 Enables Linux Firmware Updating for More Hardware

https://www.phoronix.com/news/Fwupd-2.0.18-Released
3•Bender•28m ago•0 comments

Show HN: SMART report viewer – Simple tool to analyze smartctl outputs

https://smartreportviewer.com/
2•laCour•29m ago•0 comments

Import ChatGPT Conversation in Obsidian

https://blog.missioncontroltoolbox.xyz/blog/how-to-import-chatgpt-conversations-in-obsidian
1•awesomepotato•29m ago•0 comments

Nice to Meet You: Synthesizing Practical MLIR Abstract Transformers [pdf]

https://users.cs.utah.edu/~regehr/papers/popl26.pdf
1•matt_d•30m ago•0 comments

EA's Next Act and It's Vision for Sports and Sports Fandom

https://www.matthewball.co/all/ea2025
2•mfiguiere•30m ago•0 comments

Supermodel: Sega Model 3 arcade emulator

https://github.com/trzy/Supermodel
2•tosh•32m ago•0 comments

Show HN: WeeMap – Map Extractor – With KNNs and Tensorflow.js

https://buildmage.com/blog/weemaps-part2
1•flashgordon•33m ago•0 comments