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?

Go vs. Python for AI Infrastructure: Benchmarks 2026

https://dasroot.net/posts/2026/02/go-vs-python-ai-infrastructure-throughput-benchmarks-2026/
1•nkko•59s ago•0 comments

Tired of opening 5 apps to see my own money.I spent my weekends building one app

https://icorpus.vercel.app/
1•mathan_karthik•8m ago•2 comments

Show HN: Ask your AI what your devs shipped this week

2•inferno22•9m ago•1 comments

An EV Prediction That Came 100 Years Too Soon

https://spectrum.ieee.org/charles-proteus-steinmetz
2•pseudolus•11m ago•0 comments

Detecting LLM-Generated Web Novels Using "Classical" Machine Learning (AIGC Tex

https://blog.lyc8503.net/en/post/llm-classifier/
2•todsacerdoti•12m ago•0 comments

The term 'Blood Moon' wasn't invented until 2013 (2014)

https://www.kelleycom.com/blood-moon/
2•OgsyedIE•14m ago•0 comments

What's new in Linux kernel for PostgreSQL

https://erthalion.info/2026/02/03/new-linux-for-postgresql/
2•erthalion•17m ago•0 comments

We built an AI SRE agent in 2 days

https://cto.new/blog/we-built-an-ai-sre-agent-in-two-days
1•sdspurrier•17m ago•0 comments

Show HN: SeeVideo A web-first workspace to benchmark Seedance 2.0 vs. Kling 3.0

https://seevideo.dance/
1•naxtsass•17m ago•0 comments

Show HN: Cloudstic – Open-source CLI for encrypted, cloud-native backups

https://github.com/Cloudstic/cli
1•loichrn•17m ago•0 comments

The 'European' Jolla Phone Is an Anti-Big-Tech Smartphone

https://www.wired.com/story/jolla-phone-2026/
2•doener•18m ago•1 comments

Show HN: VibeWhisper – macOS voice-to-text with push-to-talk,cloud or 100% local

https://vibewhisper.dev/
2•AleksDoesCode•18m ago•1 comments

Show HN: TubeNitro – intuitive press-hold + drag to dial YouTube speed (0.5-10×)

https://chromewebstore.google.com/detail/tubenitro/dijolhechakpkdmkooadbimhmmljkbmf
1•Rand_cat•19m ago•0 comments

Show HN: AgentThreads – Stack Overflow for AI Agents

https://agentthreads.dev
2•rodrigocava•21m ago•0 comments

My perfect Music app doesn't exist

https://hicks.design/journal/my-perfect-music-app-doesnt-exist
1•prawn•22m ago•0 comments

OpenAI makes changes to 'opportunistic and sloppy' Pentagon deal

https://www.ft.com/content/653fabd7-03da-467a-b2bf-03f226fe2a29
1•cwwc•23m ago•0 comments

The Retention Imperative: Why AI-Powered SaaS Companies Are Winning in 2026

2•jackcofounder•26m ago•0 comments

How did MS-DOS decide on two seconds to keep the floppy disk cache valid?

https://devblogs.microsoft.com/oldnewthing/20190924-00/?p=102915
2•paulmooreparks•26m ago•0 comments

Updating Codex Contribution Guidelines

https://github.com/openai/codex/discussions/9956
2•kator•27m ago•1 comments

Show HN: A virtual machine in the Rust type system

https://github.com/Aurel300/type-system-vm
2•Aurel300•27m ago•0 comments

AWS has a 15x margin on memory, and that's why your cloud bill isn't rising

https://thomas.skowron.eu/blog/why-the-cloud-isnt-getting-more-expensive/
4•thomas-skowron•28m ago•0 comments

Continuum – CI drift guard for LLM workflows

https://github.com/Mofa1245/Continuum
1•Mofa1245•29m ago•2 comments

Show HN: The Content Repurposing Fallacy: AI Clips Underperform

1•jackcofounder•30m ago•0 comments

Show HN: ReportBurster – Self-hosted all-in-one tool for analytics and reporting

https://github.com/flowkraft/reportburster
1•distributev•30m ago•0 comments

Gemini-heal – rate limiting and MALFORMED_FUNCTION_CALL recovery for Gemini API

https://github.com/emotix/gemini-heal
3•emotixco•32m ago•1 comments

RuView – WiFi DensePose: See Through Walls with WiFi

https://github.com/ruvnet/RuView
3•_____k•34m ago•1 comments

Smog and Co – a full offline-first Belgian Sign Language platform

https://zias.be/work/smog
1•ziasvannes•35m ago•1 comments

Claude's Cycles: Claude Opus 4.6 solves a problem posed by Don Knuth [pdf]

https://www-cs-faculty.stanford.edu/~knuth/papers/claude-cycles.pdf
2•fs123•35m ago•0 comments

The Xkcd thing, now interactive

https://editor.p5js.org/isohedral/full/vJa5RiZWs
4•memalign•36m ago•0 comments

Logic gates as persistent stateful tasks – a BCD decoder built on a VM

1•tracyspacy•36m ago•0 comments