<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/io/console, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/io-console] Fix removing unexpected control chars</title>
<updated>2025-07-01T08:36:19+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-07-01T08:24:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d3d249b9048b338535ae033acb3606abf174b2da'/>
<id>d3d249b9048b338535ae033acb3606abf174b2da</id>
<content type='text'>
`cc` is created as `"\C-x"`, it is a String since ruby 1.9.

https://github.com/ruby/io-console/commit/65c9266feb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`cc` is created as `"\C-x"`, it is a String since ruby 1.9.

https://github.com/ruby/io-console/commit/65c9266feb
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/io-console] Use `host_os` in RbConfig instead of `RUBY_PLATFORM` for JRuby</title>
<updated>2025-07-01T08:32:29+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-07-01T08:23:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=06f9fc20ec1d41bce7cbac14c5f8b977dfc479d3'/>
<id>06f9fc20ec1d41bce7cbac14c5f8b977dfc479d3</id>
<content type='text'>
https://github.com/ruby/io-console/commit/f8b33f38ae
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/io-console/commit/f8b33f38ae
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/io-console] Fix a name error</title>
<updated>2025-06-27T07:25:37+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-06-27T07:25:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=64a52c25fef8e156630fea559ced7286fe5c3beb'/>
<id>64a52c25fef8e156630fea559ced7286fe5c3beb</id>
<content type='text'>
https://github.com/ruby/io-console/commit/e0398acad4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/io-console/commit/e0398acad4
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/io-console] Ignore printed control char</title>
<updated>2025-06-27T07:23:09+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-06-27T07:22:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=528b75cc14f76ef703f0b22ccdd6db4b398982cc'/>
<id>528b75cc14f76ef703f0b22ccdd6db4b398982cc</id>
<content type='text'>
It's something we don't expect and might be coming from somewhere
else.

https://github.com/ruby/io-console/commit/c5e47a900c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's something we don't expect and might be coming from somewhere
else.

https://github.com/ruby/io-console/commit/c5e47a900c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/io-console] Revert "Ignore `^C` at interrupt"</title>
<updated>2025-06-27T07:23:09+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-06-27T07:20:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=495613ffd3f1c1008e1d16515a52817b188e091d'/>
<id>495613ffd3f1c1008e1d16515a52817b188e091d</id>
<content type='text'>
This reverts commit https://github.com/ruby/io-console/commit/f0646b2b6ae3.

https://github.com/ruby/io-console/commit/2e0e01263a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit https://github.com/ruby/io-console/commit/f0646b2b6ae3.

https://github.com/ruby/io-console/commit/2e0e01263a
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge blocks for the same condition</title>
<updated>2025-06-23T02:08:22+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-06-20T09:26:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ce38cba528b4da8fe306377dc9bb6eaf7a639c53'/>
<id>ce38cba528b4da8fe306377dc9bb6eaf7a639c53</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/io-console] Ignore `^C` at interrupt</title>
<updated>2025-06-20T09:39:29+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-06-20T09:28:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d9efc56c16267fabcfc764fd27cf4e464a231a76'/>
<id>d9efc56c16267fabcfc764fd27cf4e464a231a76</id>
<content type='text'>
It's something we don't expect and might be coming from somewhere
else.

https://github.com/ruby/io-console/commit/f0646b2b6a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's something we don't expect and might be coming from somewhere
else.

https://github.com/ruby/io-console/commit/f0646b2b6a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/io-console] Alias value or join to take in old Ruby</title>
<updated>2025-06-03T07:02:18+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-06-03T06:59:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c6c51569cb29a70aa086523d7508f88e645c72ff'/>
<id>c6c51569cb29a70aa086523d7508f88e645c72ff</id>
<content type='text'>
https://github.com/ruby/io-console/commit/7106d05219
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/io-console/commit/7106d05219
</pre>
</div>
</content>
</entry>
<entry>
<title>`Ractor::Port`</title>
<updated>2025-05-30T19:01:33+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2025-05-26T18:58:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ef2bb61018cd9ccb5b61a3d91911e04a773da4a7'/>
<id>ef2bb61018cd9ccb5b61a3d91911e04a773da4a7</id>
<content type='text'>
* Added `Ractor::Port`
  * `Ractor::Port#receive` (support multi-threads)
  * `Rcator::Port#close`
  * `Ractor::Port#closed?`
* Added some methods
  * `Ractor#join`
  * `Ractor#value`
  * `Ractor#monitor`
  * `Ractor#unmonitor`
* Removed some methods
  * `Ractor#take`
  * `Ractor.yield`
* Change the spec
  * `Racotr.select`

You can wait for multiple sequences of messages with `Ractor::Port`.

```ruby
ports = 3.times.map{ Ractor::Port.new }
ports.map.with_index do |port, ri|
  Ractor.new port,ri do |port, ri|
    3.times{|i| port &lt;&lt; "r#{ri}-#{i}"}
  end
end

p ports.each{|port| pp 3.times.map{port.receive}}

```

In this example, we use 3 ports, and 3 Ractors send messages to them respectively.
We can receive a series of messages from each port.

You can use `Ractor#value` to get the last value of a Ractor's block:

```ruby
result = Ractor.new do
  heavy_task()
end.value
```

You can wait for the termination of a Ractor with `Ractor#join` like this:

```ruby
Ractor.new do
  some_task()
end.join
```

`#value` and `#join` are similar to `Thread#value` and `Thread#join`.

To implement `#join`, `Ractor#monitor` (and `Ractor#unmonitor`) is introduced.

This commit changes `Ractor.select()` method.
It now only accepts ports or Ractors, and returns when a port receives a message or a Ractor terminates.

We removes `Ractor.yield` and `Ractor#take` because:
* `Ractor::Port` supports most of similar use cases in a simpler manner.
* Removing them significantly simplifies the code.

We also change the internal thread scheduler code (thread_pthread.c):
* During barrier synchronization, we keep the `ractor_sched` lock to avoid deadlocks.
  This lock is released by `rb_ractor_sched_barrier_end()`
  which is called at the end of operations that require the barrier.
* fix potential deadlock issues by checking interrupts just before setting UBF.

https://bugs.ruby-lang.org/issues/21262
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Added `Ractor::Port`
  * `Ractor::Port#receive` (support multi-threads)
  * `Rcator::Port#close`
  * `Ractor::Port#closed?`
* Added some methods
  * `Ractor#join`
  * `Ractor#value`
  * `Ractor#monitor`
  * `Ractor#unmonitor`
* Removed some methods
  * `Ractor#take`
  * `Ractor.yield`
* Change the spec
  * `Racotr.select`

You can wait for multiple sequences of messages with `Ractor::Port`.

```ruby
ports = 3.times.map{ Ractor::Port.new }
ports.map.with_index do |port, ri|
  Ractor.new port,ri do |port, ri|
    3.times{|i| port &lt;&lt; "r#{ri}-#{i}"}
  end
end

p ports.each{|port| pp 3.times.map{port.receive}}

```

In this example, we use 3 ports, and 3 Ractors send messages to them respectively.
We can receive a series of messages from each port.

You can use `Ractor#value` to get the last value of a Ractor's block:

```ruby
result = Ractor.new do
  heavy_task()
end.value
```

You can wait for the termination of a Ractor with `Ractor#join` like this:

```ruby
Ractor.new do
  some_task()
end.join
```

`#value` and `#join` are similar to `Thread#value` and `Thread#join`.

To implement `#join`, `Ractor#monitor` (and `Ractor#unmonitor`) is introduced.

This commit changes `Ractor.select()` method.
It now only accepts ports or Ractors, and returns when a port receives a message or a Ractor terminates.

We removes `Ractor.yield` and `Ractor#take` because:
* `Ractor::Port` supports most of similar use cases in a simpler manner.
* Removing them significantly simplifies the code.

We also change the internal thread scheduler code (thread_pthread.c):
* During barrier synchronization, we keep the `ractor_sched` lock to avoid deadlocks.
  This lock is released by `rb_ractor_sched_barrier_end()`
  which is called at the end of operations that require the barrier.
* fix potential deadlock issues by checking interrupts just before setting UBF.

https://bugs.ruby-lang.org/issues/21262
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed Solaris conditions from test files</title>
<updated>2025-04-02T07:24:47+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-04-02T04:38:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6bd5a51ab5a2b1d33fa586cb2969b25d8d68c121'/>
<id>6bd5a51ab5a2b1d33fa586cb2969b25d8d68c121</id>
<content type='text'>
We no longer execute those files with Solaris platforms.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We no longer execute those files with Solaris platforms.
</pre>
</div>
</content>
</entry>
</feed>
