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?

Ajax.aspnetcdn.com Expired TLS Cert

1•jvilalta•44s ago•0 comments

UK Orders Ofcom to Explore Encryption Backdoors

https://reclaimthenet.org/uk-orders-ofcom-to-explore-encryption-backdoors
3•worldofmatthew•3m ago•0 comments

Tesla's Germany Sales Down 72% from Their Peak

https://cleantechnica.com/2026/01/08/teslas-germany-sales-down-72-from-their-peak/
1•01-_-•5m ago•0 comments

Giant Anaconda the discovery that is rewriting what we know about the Amazon

https://comuniq.xyz/post?t=693
2•01-_-•8m ago•0 comments

Show HN: Show HN: Ted Mosby – open-source Claude agent for architectural wikis

https://www.npmjs.com/package/ted-mosby
1•jackomelon•9m ago•0 comments

LLM coding workflow going into 2026

https://medium.com/@addyosmani/my-llm-coding-workflow-going-into-2026-52fe1681325e
1•lobo_tuerto•9m ago•0 comments

Writing Evals for AI agents

https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
1•seshagiric•11m ago•0 comments

Russia damages its only launch pad for astronauts to lift off to ISS (2025)

https://www.livescience.com/space/space-exploration/russia-accidentally-destroys-its-only-working...
2•mkl•11m ago•0 comments

Finding OnlyFans creators by face: search similar people from an image

https://onlyfanssearch.vip
1•mysaasidea•12m ago•1 comments

Intelligence Platform for the Modern Hunter

1•Wysspr•15m ago•0 comments

Build a Perceptron from Scratch [Rust]

https://knowledge.dev/courses/perceptron-rust
1•deniskolodin•15m ago•1 comments

AudioNoise

https://github.com/torvalds/AudioNoise
1•throwaway2027•16m ago•0 comments

macOS Tahoe 26.2 ships with an outdated version of Python 3.9.6

3•Gabrielfair•18m ago•0 comments

WebGPU rolling out in Chrome for Linux

https://developer.chrome.com/blog/new-in-webgpu-144
3•coffeeaddict1•18m ago•1 comments

Ask HN: How to design DB schema for multiplayer exp/level system?

1•hnroo99•21m ago•0 comments

Show HN: Marten – Elegant Go web framework (nothing in the way)

https://github.com/gomarten/marten
2•jackprescott•29m ago•0 comments

Show HN: Tag driven changelog generator (MDX) with optional LLM summaries

1•dustfinger•29m ago•0 comments

SchHow Ordinary People Win Funding Without Perfect Grades

https://grantjobsandscholarship.blogspot.com/2026/01/hidden-scholarships-nobody-talks-about.html
1•frankchidera900•31m ago•0 comments

Ask HN: What type of geek are you?

1•youz•32m ago•0 comments

Show HN: Tooliz – An offline-first mobile toolkit built with Flutter (Radial UI)

https://play.google.com/store/apps/details?id=com.quentinrg.tooliz&hl=en
1•quentinrgdev•35m ago•0 comments

The Concentrated Economics of AI: Why Cloud Hyperscalers May Be Undervalued

https://deadneurons.substack.com/p/the-concentrated-economics-of-ai
1•nr378•36m ago•1 comments

Pretty soon, heat pumps will be able to store and distribute heat as needed

https://norwegianscitechnews.com/2026/01/pretty-soon-heat-pumps-will-be-able-to-store-and-distrib...
3•westurner•38m ago•1 comments

Omarchy 3.3 Linux for PRO-users: archlinux and hyprland and opencode and voxtype

https://www.youtube.com/watch?v=v2bWGI1ocYY
1•grigio•38m ago•0 comments

Show HN: VAAK (Voice-Activated Autonomous-Knowledge-System)

https://github.com/ayushmaanbhav/Voice-Activated-Autonomous-Knowledge-System
1•ayushmaanbhav•39m ago•0 comments

Claude Code in RollerCoaster Tycoon [video]

https://www.youtube.com/watch?v=CaFBNIH1gS4
1•Jaysobel•42m ago•2 comments

Ask HN: How common is it to withhold info about dilution?

2•nocaptable•43m ago•3 comments

Show HN: MCP server for SOAP web services

https://github.com/AustinWise/mcp2ws
1•MarkSweep•44m ago•0 comments

Another Round, Another Agent

https://stephen.bochinski.dev/blog/2026/01/10/another-round-another-agent/
1•sbochins•45m ago•0 comments

Operating System Is Smaller Than a Photo

https://www.youtube.com/watch?v=pwXxgfHzcIM
1•bane•49m ago•0 comments

Extracting books from production language models (2026)

https://arxiv.org/abs/2601.02671
1•logicprog•49m ago•0 comments