frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Good growth strategist, bad growth strategist

https://read.earlystagegrowth.com/p/good-growth-strategist-bad-growth
1•joshlachkovic•5m ago•0 comments

Show HN: Free VIN Decoder with AI Summaries on Cloudflare Workers and NHTSA Data

https://checkmyvin.net/
1•Roselol•8m ago•0 comments

The new HTTP QUERY method explained

https://kreya.app/blog/new-http-query-method-explained/
1•CommonGuy•11m ago•0 comments

Colombia's president accuses Israel of compromising election software

https://twitter.com/petrogustavo/status/2068831260982571151
2•rendall•12m ago•1 comments

OceanBase Uses Multi-Paxos for High Availability

https://en.oceanbase.com/blog/zero-data-loss-fast-failover-oceanbase-multi-paxos
1•mountainview•12m ago•0 comments

Design an international money transfer system

https://medium.com/techtrends-digest/designing-an-international-money-transfer-system-4f816d6f98dc
1•sampathanurag3•12m ago•0 comments

Show HN: Demand Intelligence and AI Design

https://dxmax.cc/
1•akhyansh0507•17m ago•0 comments

Words, Words, Words

https://aeon.co/essays/literature-fans-should-welcome-ai-as-a-fellow-wordsmith
1•benbreen•18m ago•0 comments

OpenAI pitches ChatGPT ads to Cannes marketers ahead of IPO

https://www.ft.com/content/9717a042-fd09-4d08-972d-29b68f7985a4
1•thm•20m ago•0 comments

Design Crit: We taught AI to judge design like a designer

https://twitter.com/contralabs_ai/status/2067642363909144932
1•nopinsight•22m ago•0 comments

Tapered Language Models

https://arxiv.org/abs/2606.23670
1•E-Reverance•27m ago•0 comments

Will AI Kill Taylor Swifts: The Rise of Ultra-Personalized Music

https://ryanspahn.substack.com/p/how-listening-to-only-ai-music-changes
1•paul7986•31m ago•0 comments

DepsGuard – Hardens Package Manager

https://depsguard.com/
1•javatuts•34m ago•0 comments

Show HN: Code Stitcher – The anti-agentic workflow

https://github.com/ue-patcher/code_stitcher/releases
1•aihatterer•35m ago•0 comments

C++ Lifetime-End Pointer-Zap and OOTA Progress

https://people.kernel.org/paulmck/c-pointer-zap-and-oota-progress
2•matt_d•37m ago•0 comments

Ask HN: NIST Randomness Beacon Interruption?

2•hash0•38m ago•0 comments

AI is accelerating the exposure of the gap between people

https://jaketao.com/ai-divide-people
2•taojing10•41m ago•0 comments

URL and HTML to Markdown API Optimized for LLMs

https://markdownify-monorepo.vercel.app/
1•yellow-cucumber•41m ago•0 comments

Ask HN: Do you use web apps on your smartphone?

2•julienreszka•41m ago•3 comments

Desktop Commander MCP

https://github.com/wonderwhy-er/DesktopCommanderMCP
1•javatuts•42m ago•0 comments

Show HN: AI Command Center

https://www.invook.ai
1•abhishekucs•43m ago•0 comments

15 sorting algorithms in 6 minutes (2013) [video]

https://www.youtube.com/watch?v=kPRA0W1kECg
2•akkartik•47m ago•0 comments

Stop your agent from saying it's done when it isn't

https://deepwiki.com/grainulation/bean
4•woptober•48m ago•0 comments

CodeTimeline – Visual AI-narrated history for any GitHub repo

https://github.com/Rohan5commit/codetimeline
1•rohan33332e•49m ago•1 comments

Vortex Layer Theory

https://zenodo.org/records/20806350
2•aleksy_rybicki•50m ago•0 comments

AI Code Stitcher - Agentic AI Avoidance.

2•aihatterer•50m ago•0 comments

Codex Fast mode isn't 50% faster, but still takes 2.5x usage

https://old.reddit.com/r/codex/comments/1t9p4t5/fast_mode_isnt_actually_50_faster_but_still_takes/
2•behnamoh•52m ago•2 comments

Guidance injection: reliable instructions for local LLMs

https://samihonkonen.com/posts/guidance-injection/
3•shonkone•53m ago•0 comments

Corelayer0 – Turn any OpenAPI spec into a hosted MCP server

https://corelayer0.com
2•shackdown•53m ago•0 comments

Picot: Codex style GUI for the Pi coding agent

https://github.com/shixin-guo/picot
2•gzpoffline•58m ago•0 comments
Open in hackernews

Packed Data Support in Haskell

https://arthi-chaud.github.io/posts/packed/
77•matt_d•1y ago

Comments

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

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

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