[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>
Hi ruby-core,
10 messages
2015/03/10
[#68480] Re: Looking for MRI projects for Ruby Google Summer of Code 2015
— SASADA Koichi <ko1@...>
2015/03/10
I have.
[#68549] Re: Looking for MRI projects for Ruby Google Summer of Code 2015
— SASADA Koichi <ko1@...>
2015/03/17
I sent several ideas on previous, mail, but they are seems rejected?
[#68493] [Ruby trunk - Feature #10532] [PATCH] accept_nonblock supports "exception: false" — nobu@...
Issue #10532 has been updated by Nobuyoshi Nakada.
5 messages
2015/03/11
[#68503] Re: [Ruby trunk - Feature #10532] [PATCH] accept_nonblock supports "exception: false"
— Eric Wong <normalperson@...>
2015/03/12
Committed as r49948.
[#68504] Re: [Ruby trunk - Feature #10532] [PATCH] accept_nonblock supports "exception: false"
— Nobuyoshi Nakada <nobu@...>
2015/03/12
On 2015/03/12 12:08, Eric Wong wrote:
[#68506] Seven stacks (and two questions) — Jakub Trzebiatowski <jaktrze1@...>
The Ruby Hacking Guide says that Ruby has=E2=80=A6 seven stacks. Is it =
5 messages
2015/03/12
[#68520] Possible regression in 2.1 and 2.2 in binding when combined with delegate? — Joe Swatosh <joe.swatosh@...>
# The following code
3 messages
2015/03/14
[#68604] GSOC project Cross-thread Fiber support — surya pratap singh raghuvanshi <oshosurya@...>
- *hi i am a third year computer science student interested in working
6 messages
2015/03/22
[#68606] Re: GSOC project Cross-thread Fiber support
— Tony Arcieri <bascule@...>
2015/03/22
Hi Surya,
[#68619] Re: GSOC project Cross-thread Fiber support
— surya pratap singh raghuvanshi <oshosurya@...>
2015/03/23
hi tony,
[ruby-core:68511] Re: [Ruby trunk - Feature #10532] [PATCH] accept_nonblock supports "exception: false"
From:
Eric Wong <normalperson@...>
Date:
2015-03-12 19:37:12 UTC
List:
ruby-core #68511
Nobuyoshi Nakada <nobu@ruby-lang.org> wrote: > On 2015/03/12 17:38, Nobuyoshi Nakada wrote: > > On 2015/03/12 12:08, Eric Wong wrote: > >> I think the st_delete call in rb_get_kwargs interacts badly with with > >> keyword optimizations ko1 did in 2.2. My work-in-progress patch > >> gets stuck on the OpenSSL read_nonblock (from > >> ext/openssl/lib/openssl/buffering.rb) in test/openssl/test_ssl.rb > > > > It is an intentional behavior. > > > > Add this after `rb_get_kwargs()` call. > > > > if (except != Qundef) > > rb_hash_aset(opts, ID2SYM(id_exception), except); That seems tricky. We should to document it, at least: diff --git a/README.EXT b/README.EXT index f24029c..f87ad85 100644 --- a/README.EXT +++ b/README.EXT @@ -1308,7 +1308,8 @@ rb_scan_args(int argc, VALUE *argv, const char *fmt, ...) :: int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, VALUE *values) Retrieves argument VALUEs bound to keywords, which directed by +table+ - into +values+. First +required+ number of IDs referred by +table+ are + into +values+, deleting retrieved entries from +keyword_hash+ along + the way. First +required+ number of IDs referred by +table+ are mandatory, and succeeding +optional+ (- +optional+ - 1 if +optional+ is negative) number of IDs are optional. If a mandatory key is not contained in +keyword_hash+, raises "missing @@ -1316,7 +1317,8 @@ int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optiona +keyword_hash+, the corresponding element in +values+ is not changed. If +optional+ is negative, rest of +keyword_hash+ are stored in the next to optional +values+ as a new Hash, otherwise raises "unknown - keyword" +ArgumentError+. + keyword" +ArgumentError+. If +values+ is NULL, +keyword_hash+ is + not modified and only error checking is performed. VALUE rb_extract_keywords(VALUE *original_hash) I'll commit the above unless somebody else has better ideas. > Or you can just `rb_hash_lookup2(opts, ID2SYM(id_exception), Qundef)`, > if you want to pass the whole options without checking. Alright, I'll do that (not much different from current rb_hash_aref).