News for hackers. Stuff that matters.
Re:Types will be part of Ruby 3 stdlib source by lizmat on Friday April 19, 2019 @11:03AM (#19700168)
Could you elaborate on how you got to the conclusion that adding types in Perl 6 slows things down? They shouldn't, unless you create types that actually run Perl 6 code during type checking. Which is usually not the case.
Re:Types will be part of Ruby 3 stdlib source by olah_1 on Thursday April 25, 2019 @08:12PM (#19753734)
>Could you elaborate on how you got to the conclusion that adding types in Perl 6 slows things down?

I was playing around with adding types to everything in my program. Creating kind of a little Haskell style script. I was sad when it ran slower than it did without the types. Someone informed me that that is the expected outcome because (as you said) type checking is done at run time.

Re:Types will be part of Ruby 3 stdlib source by lizmat on Friday April 26, 2019 @04:29AM (#19755670)
The thing is that even if you do not specify a type, you've implicitly specified the `Any` type. And type checking (which always happens at runtime, whether or not you've explicitly specified any types) will be done against that.

So I'm very curious as to what code exposed a slowdown after explicit types were added.