frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Rusty thoughts on "Parse, don't validate"

https://eli.thegreenplace.net/2026/rusty-thoughts-on-parse-dont-validate/
23•ingve•6h ago

Comments

jph•55m ago
Good article on Rust's strengths with types. If you like this, you may be curious how you might build your own parse capabilities. I like the Rust crates Winnow and Nom, and also the Rust traits From and Into.
tjadfsaj•29m ago
Nonempty type wrappers are a stark reminder that we are missing out on refinement types.
bunderbunder•14m ago
I was thinking about its implementation, too, and ended up deciding that it was probably a performance optimization.

`Vec<T>` stores all data on the heap, so getting anything out of it involves a pointer deref and possibly also an array bounds check. This `NonEmpty<T>` type keeps the first element of the list in a location that supports some low-level optimization that might make a significant difference in situations where accessing the first element is much more common than accessing subsequent elements.

andrepd•13m ago
Rust has a proposal for this, in the form of pattern types. It's on nightly, but quite far from being ready for prime time.
jelder•23m ago
This is great. Alexis King actually stated that, had she known how popular “Parse, Don’t Validate” had been, she would have written it in a language more widely used than Haskell.

In an $80 Motel Room, a Discovery to Shed Light on the Origins of Life

https://www.nytimes.com/2026/09/26/science/motel-science-discovery.html
16•danso•30m ago•7 comments

Replacing the old battery on rechargeable bike lights

https://jvns.ca/blog/2026/09/27/replacing-the-old-battery-on-rechargeable-bike-lights/
25•surprisetalk•1h ago•4 comments

10 Tells of a Slop UI

https://hereticpleb.vercel.app/blog/10-tells-of-slop
16•theanonymousone•20m ago•5 comments

Flip Fluid on Flip Dots

https://mitxela.com/projects/flipflip
239•blutack•1d ago•14 comments

OpenAI Feared "Optics" of what might appear on Hacker News

https://authorsguild.org/news/ag-v-openai-top-execs-knew-mass-book-piracy-was-illegal/
514•papergirl•8h ago•423 comments

Fakecloud: Local AWS cloud emulator for integration tests

https://fakecloud.dev/
25•theanonymousone•1d ago•9 comments

Does Georgism work? Five years later

https://www.astralcodexten.com/p/does-georgism-work-five-years-later
444•silveraxe93•2d ago•331 comments

Go Concurrency Distilled

https://antonz.org/go-concurrency-distilled/
290•chmaynard•1d ago•130 comments

Finally, A True Blue Rose Exists

https://www.sciencenews.org/article/true-blue-rose-pigment-copigment
55•bookofjoe•1d ago•22 comments

"As a Language Model": Chat Template Switches LLM Self-Referential Voice

https://arxiv.org/abs/2609.25021
80•yu3zhou4•4h ago•80 comments

PipePipe: NewPipe hard fork implementing SponsorBlock

https://github.com/InfinityLoop1308/PipePipe
459•Qision•2d ago•248 comments

The internet discovers TLA+. Now what?

https://reasonable.io/blog/tla-tutorial/
73•matt_d•9h ago•34 comments

DeepSeek Elastic Compute (DSec)

https://arxiv.org/abs/2609.22978
293•shenli3514•20h ago•94 comments

Rusty thoughts on "Parse, don't validate"

https://eli.thegreenplace.net/2026/rusty-thoughts-on-parse-dont-validate/
24•ingve•6h ago•6 comments

Show HN: Reladraw – A diagram language where you decide where to place things

https://github.com/reladraw/reladraw
350•jpwalsh234•21h ago•93 comments

ASML says it sold 'absolutely nothing' in Europe in 2026

https://www.tomshardware.com/tech-industry/semiconductors/asml-says-its-sells-absolutely-nothing-...
356•MC995•2d ago•761 comments

Biology might not be quantum, but its math is quantumlike

https://www.quantamagazine.org/biology-might-not-be-quantum-but-its-math-is-quantumlike-20260923/
99•pseudolus•2d ago•37 comments

Show HN: A CC0 museum of retro 3D tricks you can paste into a page

https://3d-retro.com/
10•SouthWestAtlas•3d ago•2 comments

A searchable library of forgotten public-domain film clips from 1915 onward

https://www.movingimagearchive.com/
194•momentmaker•2d ago•26 comments

Fifteen years later, the Apple Cards origin story

https://lexontech.org/fifteen-years-later-the-apple-cards-origin-story
419•ksec•1d ago•109 comments

An agent used DNS to reach an external chatbot

https://alignment.openai.com/misalignment-reports/an-agent-used-dns-to-reach-an-external-chatbot/
131•apsec112•1d ago•130 comments

How I changed teaching after AI managed to do all my homework assignments

https://thelastsoftwareengineer.substack.com/p/how-i-changed-teaching-after-ai-managed
256•azhenley•2d ago•231 comments

Exploding variance of means of exponentials: least-squares to the rescue

https://francisbach.com/spectral_log_density_estimation/
51•matt_d•1d ago•0 comments

Drawgent: Coding agent on a live Excalidraw canvas

https://tangled.org/yanndegat.tngl.sh/drawgent
169•parasitid•23h ago•44 comments

Promising discoveries about the potential for life on one of Saturn’s icy moons

https://www.fu-berlin.de/en/presse/informationen/fup/2026/fup_26_116-enceladus-cassini-mikroben-s...
81•geox•1d ago•48 comments

Accelerated Out of Core Shuffling

https://quasiben.github.io/blog/ooc-shuffling-rapidsmpf/
8•quasiben•1d ago•0 comments

How to keep enjoying programming in a world of LLMs

https://discourse.haskell.org/t/how-to-keep-enjoying-programming-in-a-world-of-llms/14705
289•signa11•1d ago•303 comments

Meta Blocks President Lula's Facebook Page, Campaign Ads 2 Weeks from Election

https://www.reddit.com/r/worldnews/comments/1wr3id3/meta_blocks_president_lulas_facebook_page_and/
332•rbanffy•6h ago•239 comments

What is the size of Yemen? (2024)

https://theborys.substack.com/p/what-is-the-size-of-yemen
220•kspacewalk2•12h ago•72 comments

Reverse-engineering the Intel 8087's tangent algorithm: more than CORDIC

https://www.righto.com/2026/09/8087-tangent-cordic.html
96•pwg•21h ago•11 comments