News for hackers. Stuff that matters.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by lifthrasiir on Friday June 21, 2019 @12:27AM (#20239877)
> Instead it tells you exactly what errors can happen at every point in your code. Once you have your initial prototype/algorithm figured out, you can use that information to handle all the edge cases.

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

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.

[1] https://github.com/Instagram/MonkeyType

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.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by pbiggar on Friday June 21, 2019 @02:02AM (#20240221)
Thank you!