Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby
by pbiggar on Friday June 21, 2019 @12:51AM
(#20239959)
Guilty for sure! Working on it.
Instagram had something similar [1] where they extracted mypy types from actual run-time instrumentation. I could see something like that working for typescript and sorbet too.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby
by lifthrasiir on Friday June 21, 2019 @01:08AM
(#20240014)
Yeah, that kind of things! I think it should be a more frequent operation though, available from an editor with one or two keystrokes. I see Dark is heading to that direction; I wish you good luck.
While I can't say much about Dark (the available blog posts [1] are shallow), I do think that the automation may be one key aspect of future programming languages. For example, when I'm thinking about gradual typing I don't only want to mix the hodge-podge unitype and actual types but also convert the former to the latter, and a large portion of the process can be automated in various ways (for example, one can track the typical runtime types that unityped variables have; the programmer can solidify compile-time types using that fact).
[1] https://medium.com/darklang