frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Is Another Editor Needed?

1•gethly•1m ago•0 comments

Chern Number

http://albi3ro.github.io/M4/QAHE.html
1•marysminefnuf•5m ago•0 comments

Megadev: A Development Kit for the Sega Mega Drive and Mega CD Hardware

https://github.com/drojaazu/megadev
1•XzetaU8•7m ago•0 comments

PowerSchool: Entry vs. Execution

1•Olsberg•12m ago•0 comments

'You are all worse than each other': anti-regime Iranians turn on Trump

https://www.theguardian.com/world/2026/mar/14/anti-regime-iranians-turn-on-trump-us
3•prmph•12m ago•0 comments

Fooorma: Open-Source Procedural Art Studio

https://github.com/elenatorro/fooorma
1•elenathor•15m ago•1 comments

China 15th 5 Year Plan (Official English Translation)

https://www.news.cn/politics/20260313/085af5de5a4b4268aa7d87d90817df2f/c.html
1•hunglee2•18m ago•0 comments

Age Verification Lobbying: Dark Money, Model Legislation, Institutional Capture

https://tboteproject.com
2•mefengl•19m ago•0 comments

Ask HN: How do you guys deal with enshittification mentally?

1•dvrp•20m ago•1 comments

James Nachtwey: War Photographer (2001) [video]

https://www.youtube.com/watch?v=FUiohIC1dYU
1•doener•23m ago•1 comments

Chinadocs: Public Database of Official Gov Documents of PRC

https://www.chinadocs.org/?v=2966bda86bca80f39001000c49fb5fee
1•hunglee2•23m ago•0 comments

Show HN: TriGame – Guess the area of a triangle made by cities

https://6kotnk.github.io/TriGame/
1•6Kotnk•24m ago•0 comments

Underwater data center powered by tidal energy proposed off the coast of Maine

https://www.quoddytides.com/proposed-tidal-project-would-power-underwater-ai-data-center/
1•giuliomagnifico•25m ago•0 comments

Show HN: Connections Game in 195 Languages

https://apps.apple.com/us/app/lingopop-language-learning/id6759921592
1•pnhoang•25m ago•0 comments

Psi-Commit – Cryptographic Commitments Anchored to Bitcoin via OpenTimestamps

https://psicommit.com
1•RayanROghabian•25m ago•1 comments

Room 641A

https://en.wikipedia.org/wiki/Room_641A
1•mxmilkiib•25m ago•0 comments

Show HN: HN Buddy – a Hacker News Chrome extension

https://github.com/karnagebitcoin/HN-Buddy
1•a1n•26m ago•0 comments

LearnCro Mobile and web application for learning the Croatian language– level B1

https://b1.ffzg.hr/
1•taubek•26m ago•0 comments

Send a Beautiful Digital Bouquet

https://digibouquet.net/
1•td2375671•27m ago•1 comments

Show HN: Markitdown in Go

https://github.com/conductor-oss/markitdown
1•opiniateddev•28m ago•0 comments

Show HN: ProjectFalcon – First Native Java at Protocol Implementation

https://github.com/JohannaWeb/ProjectFalcon
1•JohannaWeb•28m ago•0 comments

Give Agents Maximum Freedom. The less you assume, the more it works

https://browser-use.com/posts/agent-freedom
1•gregpr07•28m ago•0 comments

Star Wars Bounty Hunter Names – Mercenary Name Guide and Generator for Fans

https://starwarsnamegenerator.com/blog/bounty-hunter-names-ideas
1•Jaxon_Varr•29m ago•1 comments

Show HN: Vector databases are the wrong primitive for AI agents

https://github.com/brainfish-ai/ReasonDB
1•ajainvivek•29m ago•0 comments

Introducing, the British Cræft Prize

https://nationofartisans.substack.com/p/introducing-the-british-crft-prize
1•jdefelice•29m ago•0 comments

Autoresearch Hub

http://autoresearchhub.com/
1•EvgeniyZh•36m ago•0 comments

Ask HN: What newsletters do you read every day or week?

3•chistev•36m ago•0 comments

State Department slashes fee to renounce US citizenship by 80%

https://apnews.com/article/us-citizenship-state-department-ab78db7aced64919edff3de26eebb681
1•Propelloni•38m ago•1 comments

A self-hosted intelligence terminal that watches the world for signals

https://github.com/calesthio/Crucix
3•calesthio•40m ago•1 comments

Show HN: One MCP server that gives your AI agent access to 25,000 tools

https://nerq.ai/gateway
1•Agentindex•40m ago•1 comments
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?