News for hackers. Stuff that matters.
Re:Ask HN: Is Ruby/RoR Dead? by sibeliuss on Sunday September 29, 2024 @01:50PM (#41689023)
Its still around, but declining. I sure wish it had types.
Re:Ask HN: Is Ruby/RoR Dead? by Alifatisk on Thursday October 03, 2024 @04:53AM (#41728681)
Sorbet / RBS?
Re:Ask HN: Is Ruby/RoR Dead? by sibeliuss on Thursday October 03, 2024 @06:21PM (#41735714)
Just doesn't cut it... Give me python 3 style typing at the least. Nobody wants external file decorators.
Re:Ask HN: Is Ruby/RoR Dead? by Alifatisk on Friday October 04, 2024 @04:58AM (#41739308)
I'd love to have Python3 style typings in Ruby, but I think they refused the idea because backwards compatibility?

I think the closest gem that achieves this is contracts. https://github.com/egonSchiele/contracts.ruby?tab=readme-ov-...

Re:Ask HN: Is Ruby/RoR Dead? by Lio on Friday October 04, 2024 @06:31AM (#41739946)
Sorbet can be used inline without external file decorators already and RBS is adding support too[2].

I would not be surprised if that typing information starts finding its way into YJIT for performance improvements.

1. https://sorbet.org/docs/type-assertions

2. https://github.com/soutaro/rbs-inline