frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Verified Dynamic Programming with Σ-types in Lean

https://tannerduve.github.io/blog/memoization-sigma/
32•rck•3d ago

Comments

gugagore•1h ago
FYI the use of "subtype" here does not, as far as I know, have much connection to the concept in class-based object oriented programming languages.

https://lean-lang.org/doc/reference/latest/Basic-Types/Subty...

A crucial difference between type theory (as its known in Lean) and set theory is that an inhabitant/element is of exactly one type.

jeremyscanvic•59m ago
Really interesting trick!
almostgotcaught•48m ago
This is proof by exhaustion: the "proof" just computes the entire memo table for any n and compares the values in the table with the corresponding return from recursive definition. You could write this same proof in absolutely any language that supports recursion (or not, if you transform to the bottom-up formulation).
Quekid5•45m ago
Not if that language doesn't actually check the totality of your proof and ensures that the base case holds.
almostgotcaught•33m ago
i don't know what you're saying - here is the proof that is described in the article:

1. build a table tab[n]

2. check that for every i, tab[i] == maxDollars_spec[i]

if you take the latter approach i proposed (bottom up) there is nothing to check the totality of.

xnacly•21m ago
sigma types, hmmm

It's True: The Jaws Shark Is Public Domain

https://ironicsans.ghost.io/how-the-jaws-shark-became-public-domain/
87•MBCook•2h ago•8 comments

Phoenix.new – Remote AI Runtime for Phoenix

https://fly.io/blog/phoenix-new-the-remote-ai-runtime/
325•wut42•7h ago•146 comments

Show HN: Inspect and extract files from MSI installers directly in your browser

https://pymsi.readthedocs.io/en/latest/msi_viewer.html
42•rmast•2h ago•5 comments

Wiki Radio: The thrilling sound of random Wikipedia

https://www.monkeon.co.uk/wikiradio/
17•if-curious•59m ago•2 comments

Visualizing environmental costs of war in Hayao Miyazaki's Nausicaä

https://jgeekstudies.org/2025/06/20/wilted-lands-and-wounded-worlds-visualizing-environmental-costs-of-war-in-hayao-miyazakis-nausicaa-of-the-valley-of-the-wind/
146•zdw•6h ago•47 comments

Show HN: Nxtscape – an open-source agentic browser

https://github.com/nxtscape/nxtscape
156•felarof•5h ago•115 comments

Verified Dynamic Programming with Σ-types in Lean

https://tannerduve.github.io/blog/memoization-sigma/
32•rck•3d ago•6 comments

Dancing Naked on the Head of a Pin: The Early History of Microphotography

https://publicdomainreview.org/essay/dancing-naked-on-the-head-of-a-pin
29•crescit_eundo•2d ago•0 comments

Cracovians: The Twisted Twins of Matrices

https://marcinciura.wordpress.com/2025/06/20/cracovians-the-twisted-twins-of-matrices/
41•mci•5h ago•23 comments

Tuxracer.js play Tux Racer in the browser

https://github.com/ebbejan/tux-racer-js
60•retro_guy•5h ago•26 comments

Jürgen Schmidhuber:the Father of Generative AI Without Turing Award

http://www.jazzyear.com/article_info.html?id=1352
48•kleiba•3h ago•15 comments

Smartphones: Parts of Our Minds? Or Parasites?

https://www.tandfonline.com/doi/full/10.1080/00048402.2025.2504070
15•cratermoon•2h ago•1 comments

Oklo, the Earth's Two-billion-year-old only Known Natural Nuclear Reactor (2018)

https://www.iaea.org/newscenter/news/meet-oklo-the-earths-two-billion-year-old-only-known-natural-nuclear-reactor
150•keepamovin•12h ago•62 comments

A Python-first data lakehouse

https://www.bauplanlabs.com/blog/everything-as-python
87•akshayka•2d ago•21 comments

Alpha Centauri

https://www.filfre.net/2025/06/alpha-centauri/
40•doppp•5h ago•8 comments

Libraries are under-used. LLMs make this problem worse

https://makefizz.buzz/posts/libraries-llms
18•kmdupree•56m ago•10 comments

Finding Peter Putnam

https://nautil.us/finding-peter-putnam-1218035/
7•gcheong•3d ago•1 comments

Harper – an open-source alternative to Grammarly

https://writewithharper.com
15•ReadCarlBarks•2h ago•8 comments

Ancient termite poo reveals 120M-year-old secrets of Australia's forests

https://phys.org/news/2025-06-ancient-termite-poo-reveals-million.html
9•janandonly•2d ago•0 comments

An analysis of recent multithreading improvements for a smoother game

https://dev.arma3.com/post/oprep-performance-optimizations-in-220
35•diggan•3d ago•2 comments

Show HN: SnapQL – Desktop app to query Postgres with AI

https://github.com/NickTikhonov/snap-ql
78•nicktikhonov•11h ago•45 comments

Klong: A Simple Array Language

https://t3x.org/klong/
97•tosh•9h ago•52 comments

A Brief, Incomplete, and Mostly Wrong History of Robotics

https://generalrobots.substack.com/p/a-brief-incomplete-and-mostly-wrong
91•Bogdanp•4d ago•43 comments

How to Design Programs 2nd Ed (2024)

https://htdp.org
83•AbuAssar•6h ago•20 comments

Minimal auto-differentiation engine in Rust

https://github.com/e3ntity/nanograd
48•lschneider•8h ago•5 comments

Career advice, or something like it

https://brooker.co.za/blog/2025/06/20/career.html
55•SchwKatze•3h ago•24 comments

New dating for White Sands footprints confirms controversial theory

https://arstechnica.com/science/2025/06/study-confirms-white-sands-footprints-are-23000-years-old/
50•_tk_•3h ago•8 comments

ELIZA Reanimated: Restoring the Mother of All Chatbots

https://www.computer.org/csdl/magazine/an/2025/02/11030922/27sQDLuL7Uc
94•abrax3141•3d ago•24 comments

College baseball, venture capital, and the long maybe

https://bcantrill.dtrace.org/2025/06/15/college-baseball-venture-capital-and-the-long-maybe/
111•bcantrill•4d ago•69 comments

Show HN: I Built a Site That Curates Weird YouTube Rabbit Holes Daily

https://yourabbit.com
15•bas_sen•7h ago•5 comments