General

Profile

getajobmike (Mike Perham)

  • Login: getajobmike
  • Registered on: 04/15/2024
  • Last sign in: 08/19/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 4 6

Activity

08/19/2026

06:31 PM Ruby Feature #22252: improve "defined with an un-shareable Proc in a different Ractor" error
Thanks for the tip. I think that points out a pretty big flaw in Ractors today -- they are incompatible with idiomatic Ruby where we pass blocks around freely. Annotating every block like this is a big scar on Ruby's elegant syntax. I wo... getajobmike (Mike Perham)
05:47 PM Ruby Feature #22252: improve "defined with an un-shareable Proc in a different Ractor" error
Attached is a script with the issue I ran into. `define_method` captures the surrounding context whereas `class_eval` does not. getajobmike (Mike Perham)
04:31 PM Ruby Feature #22252 (Open): improve "defined with an un-shareable Proc in a different Ractor" error
Hi, I'm trying to make my Ruby more compatible with Ractors. I'm seeing this error message but in an API with many abstractions, it can be difficult to determine the Proc in question. Would it be possible to include the source_location o... getajobmike (Mike Perham)

11/17/2025

06:53 PM Ruby Bug #21692: Basic gems like `date` require a compiler
mame (Yusuke Endoh) wrote in #note-1:
> I think what you want is `bundle install --prefer-local`. (I wonder why this option is not the default.)
Unfortunately this does not seem to work for me.
```
$ gem list | grep date
date (default:...
getajobmike (Mike Perham)
05:12 PM Ruby Bug #21692 (Open): Basic gems like `date` require a compiler
I'm trying to use Ruby in a high security environment which does not allow a compiler to be installed. This was easy years ago when all of standard library was included with Ruby itself and I could use `apt install ruby`. But as the stan... getajobmike (Mike Perham)

05/12/2025

03:13 PM Ruby Feature #21258: Retire CGI library from Ruby 3.5
CGI may be an "old" protocol but that maturity brings stability. It means I don't need to run an app server process (like puma) at all. I don't need to worry about open ports, memory leaks, resource leaks, connection pooling, etc. It's e... getajobmike (Mike Perham)

03/11/2025

10:42 PM Ruby Bug #21183 (Closed): Ractor error with Prism::VERSION
```
/Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/error_highlight/base.rb:88:in 'ErrorHighlight.prism_find': can not access non-shareable objects in constant Prism::VERSION by non-main Ractor. (Ractor::IsolationError)
#<Thread:0x000...
getajobmike (Mike Perham)

03/10/2025

07:47 PM Ruby Bug #21178 (Closed): Socket fails in Ractor
I think these structures need to be frozen.
```
/Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:1043:in 'Socket::HostnameResolutionStore#get_addrinfo': can not access non-shareable objects in constant Socket::HostnameResol...
getajobmike (Mike Perham)

12/18/2024

11:20 PM Ruby Bug #20966: Unary plus String warns about freezing
My code:
```
header = +"\x1f\x8b".force_encoding("BINARY")
```
Rubocop says "Use unary plus to get an unfrozen string literal."
But Ruby 3.4rc1 says:
```
profiling_test.rb:49: warning: literal string will be frozen in ...
getajobmike (Mike Perham)
11:17 PM Ruby Bug #20966 (Rejected): Unary plus String warns about freezing
```
/Users/mperham/src/sidekiq/test/profiling_test.rb:49: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)
```
getajobmike (Mike Perham)

Also available in: Atom