News for hackers. Stuff that matters.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by usrusr on Friday June 21, 2019 @04:04AM (#20240767)
The eclipse java compiler can be instructed to substitute (most) compile errors with runtime exceptions for those intermediate builds. You still get all the compile time error messages, but the code is ready to run, right up to the point where the compiler complained.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by jonnytran on Friday June 21, 2019 @03:58PM (#20245836)
That's a cool feature. I'd like to see this in other languages and become the norm.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by hamilyon2 on Friday June 21, 2019 @09:55AM (#20242491)
Yes, eclipse java compiler definitely stretches the definition of possible.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by teyc on Friday June 21, 2019 @06:15AM (#20241248)
that's clever, but how does it work?
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by usrusr on Friday June 21, 2019 @11:52AM (#20243589)
It doesn't when the error is in something clever you did with the type system (e.g. wildly interdependent generics pretending to be scala).

But for many simpler cases (e.g. the majority of idiomatic java), it can be as simple as substituting an offending imperative line with a throw RuntimeException statement that parrots the compiler error message. I'm sue that they are doing a lot more than that.