General

Profile

jez (Jake Zimmerman)

  • Login: jez
  • Registered on: 11/14/2020
  • Last sign in: 05/08/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

05/08/2025

05:31 PM Ruby Feature #20405: Inline comments
There seems to be some revival of this in the context of type checkers, and Hiroya Fujinami graciously asked for my opinion on the Sorbet Slack. I'll chime into say this:
One of the best parts of Ruby is how much freedom it gives you at...
jez (Jake Zimmerman)

04/09/2025

08:57 PM Ruby Feature #21254: Inlining Class#new
@tenderlovemaking Question about an extension to the current implementation.
We have a fair amount of code that looks like this:
```ruby
class HoldsEvenNumbers
def initialize(even)
@even = even
end
private_class_me...
jez (Jake Zimmerman)

03/28/2024

03:54 PM Ruby Revision 97b2cc34 (git): Allow FormatError to take either String or Gem for source
Most of the calls to `FormatError.new` pass `@gem` for the second argument, which has a `path` method.
But in one case—on package.rb:691 in `verify_gz`, the `source` argument is a `String`.
So if there's ever a GZip decode error when a...
jez (Jake Zimmerman)

02/01/2022

05:38 AM Ruby Feature #18462: Proposal to merge WASI based WebAssembly support
mame (Yusuke Endoh) wrote in #note-4:
> Feel free to ask me if you have a question.
Wow, thanks for putting this together! I did in fact have a question, but I figure we can move the conversation somewhere else to keep this Ruby tick...
jez (Jake Zimmerman)

01/31/2022

06:54 PM Ruby Feature #18462: Proposal to merge WASI based WebAssembly support
katei (Yuta Saito) wrote:
> For example, CRuby already supports WebAssembly target by Emscripten, but Emscripten heavily depends on JavaScript to emulate some missing features in WebAssembly itself.
@katei do you have a link showing ...
jez (Jake Zimmerman)

09/26/2021

02:47 PM Ruby Revision 3f7b08d2 (git): [ruby/reline] Implement vi_kill_line_prev
This operation is mentioned and bound to `^U` in both `vi_command.rb`
and `vi_insert.rb`, but there is no definition of it.
Both Vi and Emacs use the same keystroke to do the same behavior, so
I've chosen to use `alias_method` to make t...
jez (Jake Zimmerman)

11/18/2020

12:06 AM Ruby Feature #17326: Add Kernel#must! to the standard library
A colleague pointed out that `or_else` has the nice property that it could replace the `||=` for default initializing instance variables:
```ruby
@foo ||= compute_initial_value_slow_returns_true_or_false(...)
# ^ this logic will r...
jez (Jake Zimmerman)

11/17/2020

11:24 PM Ruby Feature #17326: Add Kernel#must! to the standard library
jeremyevans0 (Jeremy Evans) wrote in #note-14:
> But the fact that there should be a high bar is something I would hope we all understand.
I hope that something I wrote didn't make you think I disagree there! I was just genuinely curiou...
jez (Jake Zimmerman)
09:12 PM Ruby Feature #17326: Add Kernel#must! to the standard library
jeremyevans0 (Jeremy Evans) wrote in #note-12:
> the benefit of adding it is smaller than the cost of adding another method to Kernel
Can you speak more on the const of adding a method to Kernel? While I understand the costs of somethi...
jez (Jake Zimmerman)
07:46 PM Ruby Feature #17326: Add Kernel#must! to the standard library
I really don't want to add new syntax for something that can already be expressed in normal Ruby code.
I wanted to bump this suggestion from Ufuk:
ufuk (Ufuk Kayserilioglu) wrote in #note-5:
> As for the matching `must` method, I thin...
jez (Jake Zimmerman)

Also available in: Atom