[#104481] [Ruby master Feature#18020] Introduce `IO::Buffer` for fiber scheduler. — samuel@...

Issue #18020 has been reported by ioquatix (Samuel Williams).

31 messages 2021/07/03

[#104492] [Ruby master Bug#18022] Spec errors for rbconfig/unicode_[emoji_]version_spec: Using Ruby 2.7 even when on Ruby 3.1 — duerst@...

Issue #18022 has been reported by duerst (Martin D=FCrst).

8 messages 2021/07/04

[#104552] [Ruby master Feature#18033] Time.new to parse a string — nobu@...

Issue #18033 has been reported by nobu (Nobuyoshi Nakada).

26 messages 2021/07/09

[#104560] [Ruby master Bug#18035] Introduce general module for immutable by default. — samuel@...

Issue #18035 has been reported by ioquatix (Samuel Williams).

41 messages 2021/07/09

[#104629] [Ruby master Misc#18039] DevelopersMeeting20210819Japan — mame@...

Issue #18039 has been reported by mame (Yusuke Endoh).

11 messages 2021/07/16

[#104643] [Ruby master Bug#18040] Why should `foo(1 if true)` be an error? — bughit.github@...

Issue #18040 has been reported by bughit (bug hit).

10 messages 2021/07/19

[#104665] [Ruby master Feature#18042] YARV code optimization — motoroller95@...

Issue #18042 has been reported by motoroller (Iskandar Gohar).

11 messages 2021/07/23

[#104692] [Ruby master Bug#18048] Thread#join can break with fiber scheduler unblock fails or blocks. — samuel@...

Issue #18048 has been reported by ioquatix (Samuel Williams).

10 messages 2021/07/27

[#104723] [Ruby master Bug#18054] No rule to make target 'thread_fd_close.c', needed by 'thread_fd_close.o' — duerst@...

Issue #18054 has been reported by duerst (Martin D=FCrst).

8 messages 2021/07/29

[ruby-core:104525] [Ruby master Misc#18025] rb_iterate is obsolete since 1.9 but is not marked as deprecated for C compilers

From: shyouhei@...
Date: 2021-07-07 00:52:30 UTC
List: ruby-core #104525
Issue #18025 has been updated by shyouhei (Shyouhei Urabe).


+1.  I want Ko1's opinion.

----------------------------------------
Misc #18025: rb_iterate is obsolete since 1.9 but is not marked as deprecated for C compilers
https://bugs.ruby-lang.org/issues/18025#change-92797

* Author: Eregon (Benoit Daloze)
* Status: Open
* Priority: Normal
* Assignee: Eregon (Benoit Daloze)
----------------------------------------
Marked as obsolete in https://github.com/ruby/ruby/blob/master/doc/extension.rdoc#label-Control+Structure.

I think it would be a good to mark it as deprecated so the few places still using that migrate to e.g. `rb_block_call()`.

These 2 places are still using rb_iterate():
* `ext/openssl/ossl_ssl.c:595:    rb_iterate(rb_each, protocols, ssl_npn_encode_protocol_i, encoded);`
  Should use rb_block_call instead: https://github.com/ruby/openssl/pull/448
* `ext/racc/cparse/cparse.c:302:    rb_iterate(lexer_iter, v->value_v, lexer_i, v->value_v);`
  Unintentional, fix in https://github.com/ruby/racc/pull/165


Right now there is special logic inside `rb_funcall()/vm_call0_body()` to handle the block magically passed by rb_iterate(), and I think it would be good to clean that up once `rb_iterate()` is gone.

FYI, TruffleRuby is recently no longer doing that magic behavior for such an old deprecated method:
https://github.com/oracle/truffleruby/commit/e7ddba79cc64f7beea8a34ef6c14d50d444399f7



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread