by curling_grad on 7/3/23, 12:31 PM with 45 comments
by llogiq on 7/4/23, 4:15 PM
Not (only) because that's faster to run, but because it's faster to change while still remaining somewhat working correctly. And the current crop of compilers not only can produce stunningly fast code, but also awe-inspiringly great error messages that put the 90's and oughties' cryptic error messages to shame. Try that with a dynamic language!
by kentonv on 7/4/23, 5:22 PM
It turns out the reason static typing seemed like a pain at the time is because we didn't have good tools. You'd write code for a while, then you'd run the compiler, and UGH there's all these errors to go back through and fix.
Now that my IDE highlights the errors as I go, not to mention has good auto-complete and jump-to-definition, I am much more productive in a statically-typed language than a dynamic one.
Interestingly there are still areas where most people seem to prefer dynamic typing: service APIs. JSON everywhere. Is it because JSON is actually better, or is it because we don't yet have good enough tools for schema-driven APIs (e.g. Protobuf, Cap'n Proto, etc.)? If we had those tools, would schema-driven APIs be widely seen as being more productive? (I suspect so but I am perhaps biased.)
by raphlinus on 7/4/23, 5:41 PM
by bluefishinit on 7/4/23, 4:14 PM
by dehrmann on 7/4/23, 7:18 PM
by chucke on 7/4/23, 7:31 PM
by agnosticmantis on 7/4/23, 6:28 PM
by snailtrail on 7/5/23, 4:19 AM