frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Compiler Reminders

https://jfmengels.net/compiler-reminders/
38•jfmengels1•1y ago

Comments

JonChesterfield•1y ago
Exhaustive compile time checking of dispatch statements is a wonderful thing, sorely missing from the languages that decided "sum types" are a bit weird and niche.
fredrikholm•1y ago
They make it near impossible to extend from the outside.

I can pass a Reader interface to your function, but I cannot (easily) add a

> | UnusualProtocol(Socket)

as a third party consumer.

Other than that, sum types are the better abstraction. With exhaustive first class pattern matching (eg. with proper matching on destructuring), nothing comes close in terms of ergonomics.

hermanradtke•1y ago
That is a feature. Compose instead of extending.
Yoric•1y ago
OCaml has extensible sum types. They work very nicely for some ranges of problems.
swiftcoder•1y ago
Elm <-> Rust

Best buds on this front

gitroom•1y ago
Tbh, missing those checks in other languages bugs me so much - it's like why leave me hanging?

Apple WWDC 2026 Livestream

https://www.apple.com/apple-events/event-stream/
60•nextstep•28m ago•38 comments

Show HN: Performative-UI – a react component library of design tropes

https://vorpus.github.io/performativeUI/
393•lizhang•3h ago•88 comments

MiMo-v2.5-Pro-UltraSpeed: 1T model with 1000 tokens per second

https://mimo.xiaomi.com/blog/mimo-tilert-1000tps
240•gainsurier•2h ago•170 comments

Stop the Apple Music app from launching

https://lowtechguys.com/musicdecoy/
45•bobbiechen•40m ago•2 comments

Launch HN: Intuned (YC S22) – Build and run reliable browser automations as code

https://intunedhq.com
82•fkilaiwi•4h ago•32 comments

OCaml Onboarding: Introduction to the Dune build system

https://ocamlpro.com/blog/2025_07_29_ocaml_onboarding_introduction_to_dune/
51•andrewstetsenko•3d ago•1 comments

Anti-social: It's fads, not friends, which now dominate social media feeds

https://www.bbc.com/worklife/article/20260520-how-social-media-ceased-to-be-social
332•1vuio0pswjnm7•5h ago•284 comments

A Farmer Donated Land to Turn into a Park. The City Is Building a Data Center

https://www.404media.co/a-farmer-donated-land-to-turn-into-a-park-the-city-is-building-a-massive-...
233•greedo•2h ago•123 comments

xAI is looking more like a datacentre REIT than a frontier lab

https://martinalderson.com/posts/xais-new-rental-business/
20•martinald•2h ago•3 comments

Zig by Example

https://github.com/boringcollege/zig-by-example
179•dariubs•4h ago•88 comments

The Cypherpunk Library

https://www.cypherpunkbooks.com
262•yu3zhou4•9h ago•80 comments

How much of Thermo Fisher's antibody data has been manipulated?

https://reeserichardson.blog/2026/05/28/how-much-of-thermo-fishers-antibody-data-has-been-manipul...
314•mhrmsn•10h ago•67 comments

Mutation Testing in Haskell

https://cs-syd.eu/posts/2026-06-03-mutation-testing-in-haskell
14•Norfair•5d ago•0 comments

New Referendum Would Flip Brexit Result 10 Years On, Poll Finds

https://www.bloomberg.com/news/articles/2026-06-08/new-referendum-would-flip-brexit-result-10-yea...
26•MilnerRoute•35m ago•14 comments

NEC PC Engine LT Recap and LCD Bias Fix (Necromancy)

https://hitmanmcc.com/entry/pc-engine-lt-necromancy
4•zdw•20h ago•0 comments

Zig Structs of Arrays (2024)

https://andreashohmann.com/zig-struct-of-arrays/
101•Tomte•4d ago•33 comments

I replaced Spotify with a homemade FM radio station

https://old.reddit.com/r/digitalminimalism/comments/1tes8yu/i_replaced_spotify_with_a_homemade_fm...
82•dredmorbius•2h ago•33 comments

Why are so many young people getting cancer?

https://www.nature.com/articles/d41586-026-01780-6
73•Brajeshwar•1h ago•52 comments

Building from zero after addiction, prison, and a felony

https://gavinray97.github.io/blog/building-from-zero-after-addiction-prison-felony
843•gavinray•23h ago•378 comments

Dopamine Fracking

https://igerman.cc/blog/dopamine-fracking/
675•igmn•15h ago•342 comments

1k Data Breaches Later, the Disclosure Lag Is Worse

https://www.troyhunt.com/1000-data-breaches-later-the-disclosure-lag-is-worse-than-ever/
274•882542F3884314B•14h ago•115 comments

Spherical Voronoi Diagram

https://www.jasondavies.com/maps/voronoi/
113•marysminefnuf•5d ago•24 comments

Italy's Bending Spoons, Owner of AOL and Vimeo, Files for Nasdaq IPO

https://www.reuters.com/legal/transactional/italys-bending-spoons-files-us-ipo-2026-06-08/
72•mmarian•2h ago•62 comments

Config Files That Run Code: Supply Chain Security Blindspot

https://safedep.io/config-files-that-run-code/
60•signa11•8h ago•19 comments

The Smallest Brain You Can Build: A Perceptron in Python

https://ranpara.net/posts/perceptron-explained-from-scratch/
283•DevarshRanpara•17h ago•64 comments

APC–2 – A professional record cutter for producing original playback discs

https://teenage.engineering/products/apc-2
256•vthommeret•16h ago•165 comments

Massachusetts bans sale of precise location data in new privacy rights bill

https://techcrunch.com/2026/06/08/massachusetts-votes-to-pass-new-privacy-rights-bill-that-bans-s...
7•01-_-•34m ago•0 comments

A Family Project (2022)

https://bittersoutherner.com/feature/2022/a-family-project
71•surprisetalk•3d ago•7 comments

Playing with Vision Embeddings

https://prestonbjensen.com/posts/playing-with-vision-embeddings
139•prestoj•3d ago•11 comments

Richard Scolyer Has Died

https://www.bbc.com/news/articles/c14yz5jg476o
119•nicwilson•13h ago•33 comments