General

Profile

jrochkind (jonathan rochkind)

  • Login: jrochkind
  • Email: jonathan@dnil.net
  • Registered on: 07/26/2011
  • Last sign in: 04/24/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 7 7

Activity

04/24/2024

07:05 PM Ruby Misc #20432: Proposal for workflow changes related to teeny releases
Thank you for looking into this!
I saw the minutes of the discussion at https://github.com/ruby/dev-meeting-log/blob/master/2024/DevMeeting-2024-04-17.md#misc-20422-bugfix-release-processhsbt--misc-20432-proposal-for-workflow-changes-re...
jrochkind (jonathan rochkind)

04/27/2022

05:30 PM Ruby Feature #18757: Introduce %R percent literal for anchored regular expression patterns
I do find \A and \z cumbersome and confusing for a common use case. (You didn't mention the need to avoid getting confused with \Z and \z too!).
Instead of new syntax, how about just a new stdlib method, Regexp.anchored(`/whatever/`)...
jrochkind (jonathan rochkind)

11/03/2021

02:03 PM Ruby Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
I would love to see this resurrected.
If you want the MatchData in a gsub block, at first it looks like you can just use `Regexp.last_match`.
But I think this, along with variables like `$1`, may not be thread-safe? See for insta...
jrochkind (jonathan rochkind)

07/07/2020

03:07 PM Ruby Feature #16986: Anonymous Struct literal
Why is more special syntax needed, when it can just be a method?
```
def Kernel.AStruct(**key_values)
Struct.new(key_values.keys).new(key_values.values)
end
AStruct(a: 1, b: 2)
```
If that implementation isn't efficient en...
jrochkind (jonathan rochkind)

01/13/2020

05:33 PM Ruby Bug #16497: StringIO#internal_encoding is broken (more severely in 2.7)
StringIO has been documented for a while to *ignore* it's own internal encoding, but respect it's own external encoding.
I am not sure this ever made any sense. It might have made more sense to respect an internal encoding, but ignor...
jrochkind (jonathan rochkind)

01/11/2020

03:16 AM Ruby Bug #16497: StringIO#internal_encoding is broken (more severely in 2.7)
Note the StringIO is _not_ transcoding. it is simply changing the encoding "tagging" of the String without changing any bytes.
If the string was ASCII-8BIT (ie BINARY), there is really *no way* to transcode. But here's an example whe...
jrochkind (jonathan rochkind)

05/31/2018

01:01 PM Ruby Feature #14594: Rethink yield_self's name
I'm concerned that `then` is used in Promises, and is already in use in many promise-implementing libraries, including [concurrent-ruby](http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Promise.html).
The Promise librarie...
jrochkind (jonathan rochkind)

02/06/2018

10:29 PM Ruby Bug #14403: Crash and coredump (Stack consistency error) on ruby 2.5.0
Hello, can you explain why this issue closed?
I hope it is seen as a bug? While small changes make it not reproduce, I believe a core dump crash is a bug regardless? Especially when did not that cause that on earlier versions of ruby?
jrochkind (jonathan rochkind)

01/25/2018

06:07 PM Ruby Bug #14402: Crash and coredump (Stack consistency error) on ruby 2.5.0
Sorry accidentally double-reported, the issue tracker gave me an error on first submit and I thought it hadn't been submitted. Close in favor of https://bugs.ruby-lang.org/issues/14403 jrochkind (jonathan rochkind)
04:40 PM Ruby Bug #14403: Crash and coredump (Stack consistency error) on ruby 2.5.0
Oops, sorry, somehow missed reproduction script in the original report, here it is:
https://gist.github.com/jrochkind/a8344b1805badec8109b6f95c89a745b
```
require 'rexml/parsers/pullparser'
def look_at_record(parser)
# While...
jrochkind (jonathan rochkind)

Also available in: Atom