Alexander Momchilov

Results 100 issues of Alexander Momchilov
trafficstars

There's a bunch of overloads of `#slice`/`#[]`, many of which are technically nilable, but don't return `nil` in practice. We can't fix that in the general case, but of a...

enhancement
help-wanted

Found this while auditing uses of `object_id` in `ruby/ruby`. Pulled out from ruby/ruby#9276. This PR replaces look-ups into an Array by `object_id`s, with an identity Set (see [`Set#compare_by_identity`](https://ruby-doc.org/3.2.2/stdlibs/set/Set.html#method-i-compare_by_identity)). This has...

Adds a new Hash method for getting an old value, and setting a new value, in a single hash lookup. For more info, see: https://bugs.ruby-lang.org/issues/20300 The new test can be...

https://bugs.ruby-lang.org/issues/20301 Builds on top of #10092. Only the last commit contains the "real" changes. `Set#add?(o)` does two hash look-ups when inserting a new object: demo.rb ```rb #!/usr/bin/ruby class CountedHashable attr_reader...

I opened this issue kishikawakatsumi/swift-power-assert#436 about some failing unit tests, and it turns out to be platform dependant. From that thread: > iOS 17, Sonoma and Linux > > ```json...

Closes #429 This PR extracts a new `PowerDiagram` library as a product of the `swift-power-assert` library, alongside the main `PowerAssert` library product. From there, it should be pretty easy to...

Hey @kishikawakatsumi! I love what you've built here. The message rendering code is particularly impressive, and works so well! I've been working on a package to help improve the DX...

Hmmm, I'm not sure if something is wrong with my local setup, but I'm seeing 3 tests fail on `main` (at [`6fc37b`](https://github.com/kishikawakatsumi/swift-power-assert/commit/6fc37b0e1edef8ae0a8804fb419ca39ec1f3ff45)): 1. `testTryExpression1` diff ```diff diff --git a/testTryExpression1_expected.txt b/testTryExpression1_actual.txt...

After #433, `AssertTests.swift` takes a bulk of the compilation time. You can really feel it too, it makes iterating on the tests rather sluggish. Can we split this file up...

#### Input [→ View on sorbet.run](https://sorbet.run/#%23%20typed%3A%20true%0Aextend%20T%3A%3ASig%0A%0Asig%20%7B%20void%20%7D%0Adef%20this_returns_void%0A%20%20123%0Aend%0A%0Athis_returns_void.foo) ```ruby # typed: true extend T::Sig sig { void } def this_returns_void 123 end this_returns_void.foo ``` #### Observed output The static type-checker error message...