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?

Shadcn/UI now defaults to Base UI instead of Radix

https://ui.shadcn.com/docs/changelog
165•dabinat•7h ago•62 comments

If you're a button, you have one job

https://unsung.aresluna.org/if-youre-a-button-you-have-one-job/
282•nozzlegear•10h ago•147 comments

Fast Software, the Best Software

https://craigmod.com/essays/fast_software/
43•ustad•4h ago•18 comments

GPT-5.5 Codex reasoning-token clustering may be leading to degraded performance

https://github.com/openai/codex/issues/30364
306•maille•14h ago•117 comments

Pandoc Lua Filters

https://pandoc.org/lua-filters.html
81•ankitg12•2d ago•5 comments

Claude Design System Prompt

https://github.com/Trystan-SA/claude-design-system-prompt
29•handfuloflight•3h ago•3 comments

Functional Programming in hica

https://www.hica.dev/docs/functional-programming/
6•cladamski79•3d ago•1 comments

Europe's new climate in seven charts

https://www.bbc.com/news/articles/c8e2j0j87reo
99•saikatsg•2h ago•85 comments

Jellyfish can heal wounds in minutes. Scientists want their secrets

https://www.mbl.edu/news/jellyfish-can-heal-wounds-minutes-scientists-want-their-secrets
143•hhs•13h ago•31 comments

Scientist who cleaned space toilet on work now leading Mars exploration

https://www.bbc.com/news/articles/cz758x04g83o
11•saikatsg•2h ago•2 comments

Megawatts by Microwave

https://computer.rip/2026-07-04-microwave-and-power.html
31•eternauta3k•6h ago•4 comments

Programmers need to start meditating

https://jacob.gold/posts/programmers-need-to-start-meditating-now/
94•enz•4h ago•96 comments

Command and Conquer Generals natively ported to macOS, iPhone, iPad using Fable

https://github.com/ammaarreshi/Generals-Mac-iOS-iPad/tree/main
592•asronline•16h ago•253 comments

Knowledge Should Not Be Gated

https://www.formaly.io/blog/knowledge-should-not-be-gated
12•nezhar•4h ago•0 comments

Artful Cats: Feline-Inspired Art and Artifacts

https://www.si.edu/spotlight/art-cats
50•jruohonen•3d ago•4 comments

Moby Dick Workout (2022)

https://www.hogbaysoftware.com/posts/moby-dick-workout/
52•helloplanets•7h ago•17 comments

Apocketlypse

https://0dd.company/galleries/triumph/1.html
26•scaglio•3h ago•5 comments

Better Models: Worse Tools

https://lucumr.pocoo.org/2026/7/4/better-models-worse-tools/
190•leemoore•16h ago•65 comments

Atomic Force Microscope high-speed video, stainless etching, bacteria, and more

https://www.youtube.com/watch?v=DyIQkqBXhS0
84•mhb•2d ago•8 comments

Meta's Un-Stable Signature

https://hackerfactor.com/blog/index.php?/archives/1098-Metas-Un-Stable-Signature.html
98•ementally•3d ago•15 comments

The Log Is the Agent

https://arxiv.org/abs/2605.21997
53•iacguy•9h ago•16 comments

“Beyond the limit”: Satellites and mirrors in space pose threat to the night sky

https://www.eso.org/public/news/eso2607/
154•Breadmaker•19h ago•257 comments

About the Digital Art

https://www.tricivenola.com/about-the-digital-art/
14•NaOH•3d ago•2 comments

What ORMs have taught me: just learn SQL (2014)

https://wozniak.ca/blog/2014/08/03/1/index.html
217•ciconia•4d ago•247 comments

Return of the Nigerian Prince Redux: Beware Book Club and Book Review Scams (2025)

https://writerbeware.blog/2025/09/19/return-of-the-nigerian-prince-redux-beware-book-club-and-boo...
57•Anon84•11h ago•18 comments

Dark Mode with Web Standards

https://olliewilliams.xyz/blog/dark-mode/
10•thm•5h ago•0 comments

My ASN Journey series (2024)

https://www.animmouse.com/p/my-asn-journey/
24•antonalekseev•7h ago•9 comments

Reducing Assumptions, Exploding Your Code

https://ryelang.org/blog/posts/reducing_assumptions_but_exploding/
13•mpweiher•5h ago•1 comments

Pi square is nearly 10

https://mihai.page/pi-square-is-10/
15•freediver•1h ago•5 comments

Drone Autonomy (2021)

https://www.cggonzalez.com/blog/index.html
63•cgg1•13h ago•6 comments