| ▲ | koito17 an hour ago | |
I hope this provides motivation for people to try using dependently-typed languages for more than just proof assistance. Probably the most common argument I hear against dependent types is "they are neat and all, but it's impractical to use for [mundane CRUD app]." That or someone mentions Rice's Theorem in passing and tries insinuating it's a waste of resources to maximize use of static analysis (especially strong, static typing) in determining program correctness. Lean is a bit of a lucky case because Mathlib has a decent history of development and has good coverage of undergrad-level algebra, combinatotics, number theory, etc. I know some people whose PhD theses involved Lean and mathlib, well before people tried using LLMs for coding. | ||
| ▲ | charcircuit a few seconds ago | parent | next [-] | |
Running tests can offer the same correctness substrate to allow codebases to remain coherent over a long horizon. I don't believe it motivates languages with dependent types. I think there are too many headwinds for such a language to take off at a mass scale. If we do need forms of formal verification I predict we will just formally verify the JavaScript or C++ code that exists than have the actual code be in another language. Languages with dependent types are toys and not suitable for the real world compared to languages that have been getting real world usage for decades. | ||
| ▲ | ngruhn 28 minutes ago | parent | prev [-] | |
I was incredibly bullish on Lean before it was cool. But nowadays I'm yoloing giant pull requests and there are essentially no bugs on the micro-scale (off-by-one errors, null pointer exceptions, etc). All the bugs are between systems (wrong k8s config, inefficient SQL query that only bites in prod, etc). Lean/dependent types are useful for the former problem. The latter I'm not sure. Not saying there is no issue with LLM code left. There is still tons of problems with architecture and complexity. But correctness-wise they're pretty good. At least on the dumb CRUD apps I work on. | ||