Better HN
topnewbestaskshowjobs
Log inSign up

darkdimius

266 karma · joined Oct 23, 2015 (11y ago) · 24 submissions

[ my public key: https://keybase.io/darkdimius; my proof: https://keybase.io/darkdimius/sigs/Jzt_Wl-Cx4ifVIpySdoxGloto1lF9RL6l1nw8qXOFYA ]
Submissions

1.

Tools to find vulnerable hosts to Log4j attack and see if mitigations worked(github.com ↗)

1 points · by darkdimius · 4y ago · discuss

comment 6y ago · link · parent

Dmitry here, from Stripe. One of founding members of Sorbet(though I no longer work on it anymore).

Story that Ufuk shares is common.

We saw this process repeat in many companies, Stripe, Shopify and many others - folks are initially bothered with verbosity of `sig` syntax, but as the company starts using it in practice stop being bothered pretty quikcly. It happens even faster now that IDE integration allows to auto-complete entire signature and can in most cases correctly guess the types of arguments & result type. You rarely type `sig`s yourself.

The common internal asks at Stripe are about even better IDE support, new features & etc and that's where most of investments are. Well, and and obviously performance. Sorbet was already very fast and we intend to keep it fast as our huge codebase grows.

comment 6y ago · link · parent

(One of core devs on Sorbet)

Agreed. But don't read too much in RBS details yet. RBI is currently very early and will need to change substantially learning from experience of actually typechecking real codebases. Stripe and Shopify are helping with this.

RBS has better syntax, but has features that don't have clear semantics or feasible implementation. And doesn't support inline annotations that are necessary in practice.

RBI is limited by ruby syntax and thus isn't as nice, but has good semantics and support inline annotations. And has been tried on hundreds of real codebases including those with dozens of millions lines of code.

We'll need to gather benefits of both on our way forward.

comment 7y ago · link · parent

This is true, we're part of a single working group that's working on types for Ruby3. https://twitter.com/darkdimius/status/1119130004313350144 has some detail

comment 7y ago · link · parent

We only use it at build time, as for a user, it should be invisible for you

comment 7y ago · link · parent

Companies that use Rails have also started working on https://github.com/chanzuckerberg/sorbet-rails, worth checking out!

comment 7y ago · link · parent

Yes, join the slack! While Stripe doesn't run rails all other companies in private beta did!

8.

Sorbet, a typechecker for Ruby is now open-source(twitter.com ↗)

11 points · by darkdimius · 7y ago · discuss

9.

State of Sorbet(Typechecker for Ruby) May 2019(sorbet.org ↗)

6 points · by darkdimius · 7y ago · discuss

comment 7y ago · link · parent

A lot of great insight in this comment.

The only difference is that Stipe has foresaw the problems and has been working on productivity for quite a while, with a dedicated group of people who help our engineers by building tools and abstractions. For example https://youtu.be/lKMOETQAdzs is done by the same org couple of years ago.

comment 7y ago · link · parent

See https://news.ycombinator.com/item?id=19697581

comment 7y ago · link · parent

We're collaborating with @yukihiro_matz, @mametter, @soutaro and Jeff Forster to make sure that types are not disruptive to Ruby. Thus, types are optional. The intention is to deliver value for unmodified Ruby programs. Hear more from Matz at https://youtu.be/cmOt9HhszCI?t=2148

comment 7y ago · link · parent

We're currently looking for beta users! Reach out to us at sorbet@stripe.com. If you describe your team&codebase in the email, it will help us figure out what cohort to include you in.

comment 7y ago · link · parent

Indeed Sorbet does have literal types for strings and Ruby symbols. We're still figuring out the details and converging on a common type system for Ruby3, but we've found them super useful, as you rightly point out!

And +1 on the Ruby renaissance! Super excited about all the exciting things that are currently being built!

15.

Types will be part of Ruby 3 stdlib source(twitter.com ↗)

387 points · by darkdimius · 7y ago · 210 comments

comment 8y ago · link · parent

> A question I didn't get to ask while there is -- will there be some sort of type sharing system introduced?

Yes. This was one of goals of our talks. We wanted implementors of type systems for ruby to start collaborating, in particular on a repository of typed shims.

The details of how this would work out might be different. Typescript and Flow change syntax and thus they cannot be included inline in arbitrary JavaScript libraries. We're intentionally compatible with Ruby syntax. Thus we would like this "repository of types for libraries" to only contain types intermittently, until types have been accepted to upstream of respective library.

17.

Dotty 0.2.0-RC1(scala-lang.org ↗)

97 points · by darkdimius · 9y ago · 19 comments

18.

Dotty, a language that is slated to become Scala 3.0, releases 0.1.2-RC1(twitter.com ↗)

6 points · by darkdimius · 9y ago · discuss

comment 10y ago · link · parent

Hi. I'm one of main developers of Dotty. I've gave answers to similar concerns here: https://www.reddit.com/r/programming/comments/44um2l/fear_un...

comment 11y ago · link · parent

http://www.infoq.com/news/2015/10/dotty-scala-bootstraps has some more details.