-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby 3.3 support #3681
Comments
I am working on
|
I will take on this one
|
Will work on
|
Working on
|
Will work on
|
Working on
|
Working on
|
Working on
|
Working on
|
I'll take
|
Working on
|
Working on
|
I can do
though it looks to me like it can be done in Ruby |
Working on
|
Working on
|
Working on
|
We are working on Ruby 3.3 support for the next release (24.2).
Any help is appreciated whether it is:
To make it easier to find good getting-started issues, I annotated items with
easy
,medium
andhard
.There is also
pure ruby
for changes which should only affect Ruby code and not require any change to Java sources or any Java knowledge.If there is no
pure ruby
then some Java code is involved, but it should still be fairly straightforward ifeasy
ormedium
.hard
typically requires more knowledge about TruffleRuby implementation details.[import]
means this needs the import of Ruby 3.3 sources to happen first.If you'd like to start on some task please mention it here or edit the description directly for committers (to avoid duplicated work).
Full list of changes for Ruby 3.3.0
NOTE: https://rubyreferences.github.io/rubychanges/3.3.html gives more details for many features and changes.
From https://github.com/ruby/ruby/blob/master/doc/NEWS/NEWS-3.3.0.md:
This document is a list of user-visible feature changes
since the 3.2.0 release, except for bug fixes.
Note that each entry is kept to a minimum, see links for details.
Core classes updates
Note: We're only listing outstanding class updates.
Array
org.truffleruby.core.format.pack.SimplePackParser#parse
. Fixes String#unpack as well.Dir
by the provided directory file descriptor. [Feature #19347]
by the provided directory file descriptor. [Feature #19347]
the provided
Dir
object. [Feature #19347]Encoding
Encoding#replicate
has been removed, it was already deprecated. [Feature #18949]Fiber
MatchData
symbolize_names
keyword. [Feature #19591]
Module
module. [Feature #19521]
ObjectSpace::WeakKeyMap
The class use equality semantic to lookup keys like a regular hash,
but it doesn't hold strong references on the keys. [Feature #18498]
ObjectSpace::WeakMap
entries. [Feature #19561]
Proc
#initialize_dup
and#initialize_clone
hooks respectively. [Feature #19362]
Process
and that now is a good time to optimize the application. This is useful
for long-running applications. The actual optimizations performed are entirely
implementation-specific and may change in the future without notice. [Feature #18885]
Process::Status
Range
Refinement
Refinement#refined_class is deprecated and will be removed in Ruby
3.4. [Feature #19714]
Regexp
for Regexp containing these extensions can now also be performed in linear time to the length
of the input string. However, these cannot contain captures and cannot be nested. [Feature #19725]
String
source string to be copied. [Feature #19314].
Thread::Queue
lib/truffle/thread.rb
file.Thread::SizedQueue
lib/truffle/thread.rb
file.Time
TracePoint
rescue
event. When the raised exception was rescued,the TracePoint will fire the hook.
rescue
event only supports Ruby-levelrescue
. [Feature #19572]Stdlib updates
RubyGems and Bundler warn if users do
require
the following gems without adding them to Gemfile or gemspec.This is because they will become the bundled gems in the future version of Ruby. This warning is suppressed
if you use bootsnap gem. We recommend to run your application with
DISABLE_BOOTSNAP=1
environmental variableat least once. This is limitation of this version.
[Feature #19351] [Feature #19776] [Feature #19843]
(@andrykonchin) Socket#recv and Socket#recv_nonblock returns
nil
instead of an empty string on closedconnections. Socket#recvmsg and Socket#recvmsg_nonblock returns
nil
instead of an empty packet on closedconnections. [Bug #19012]
Name resolution such as Socket.getaddrinfo, Socket.getnameinfo, Addrinfo.getaddrinfo, etc.
can now be interrupted. [Feature #19965]
Random::Formatter#alphanumeric is extended to accept optional
chars
keyword argument. [Feature #18183]
The following default gem is added.
The following default gems are updated.
The following bundled gem is promoted from default gems.
The following bundled gems are updated.
See GitHub releases like Logger or
changelog for details of the default gems or bundled gems.
Prism
Compatibility issues
Subprocess creation/forking via the following file open methods is deprecated. [Feature #19630]
[easy, Java] When given a non-lambda, non-literal block, Kernel#lambda with now raises
ArgumentError instead of returning it unmodified. These usages have been
issuing warnings under the
Warning[:deprecated]
category since Ruby 3.0.0.[Feature #19777]
(@andrykonchin) [medium, Java]
it
calls without arguments in a block with no ordinary parameters aredeprecated.
it
will be a reference to the first block parameter in Ruby 3.4.[Feature #18980]
(@rwstauner ) [easy,
JavaRuby] Error message for NoMethodError have changed to not use the target object's#inspect
for efficiency, and says "instance of ClassName" instead. [Feature #18285]
[medium, Java] Now anonymous parameters forwarding is disallowed inside a block
that uses anonymous parameters. [Feature #19370]
Stdlib compatibility issues
racc
is promoted to bundled gems.racc
to yourGemfile
if you useracc
under bundler environment.ext/readline
is retiredreline
that is pure Ruby implementation compatible withext/readline
API.We rely on
reline
in the future. If you need to useext/readline
, you can installext/readline
via rubygems.org withgem install readline-ext
.libreadline
orlibedit
.C API updates
rb_postponed_job
updatesrb_postponed_job_preregister()
rb_postponed_job_trigger()
rb_postponed_job_register()
(and semantic change. see below)rb_postponed_job_register_one()
To solve the issue, we introduced new two APIs and deprecated current APIs.
The semantics of these functions have also changed slightly;
rb_postponed_job_register
now behaves like the
once
variant in that multiple calls with the samefunc
might be coalesced into a single execution of thefunc
[Feature #20057]
Some updates for internal thread event hook APIs
rb_internal_thread_event_data_t
with a target Ruby thread (VALUE)and callback functions (
rb_internal_thread_event_callback
) receive it.GVL Instrumentation: pass thread->self as part of event data ruby/ruby#8885
The following functions are introduced to manipulate Ruby thread local data
from internal thread event hook APIs (they are introduced since Ruby 3.2).
Thread specific storages APIs ruby/ruby#8936
rb_internal_thread_specific_key_create()
rb_internal_thread_specific_get()
rb_internal_thread_specific_set()
rb_profile_thread_frames()
is introduced to get a frames froma specific thread.
[Feature #10602]
(@andrykonchin)
rb_data_define()
is introduced to defineData
. [Feature #19757]rb_ext_resolve_symbol()
is introduced to search a function fromextension libraries. [Feature #20005]
IO related updates:
rb_io_t
will be hidden and deprecated attributesare added for each members. [Feature #19057]
rb_io_path(VALUE io)
is introduced to get a path ofio
.rb_io_closed_p(VALUE io)
to get opening or closing ofio
.rb_io_mode(VALUE io)
to get the mode ofio
.rb_io_open_descriptor()
is introduced to make an IO object from a filedescriptor.
The text was updated successfully, but these errors were encountered: