Project

General

Profile

Activity

From 09/26/2013 to 10/02/2013

10/02/2013

11:36 PM Feature #8976: file-scope freeze_string directive
I think having a pragma at the top of the file will be much more error prone than the f-syntax. As a file grows, the ability to notice you are in a frozen string file goes down. It would have been great if Ruby had started immutable str... enebo (Thomas Enebo)
09:18 PM Feature #8976: file-scope freeze_string directive
Maybe I'm too late but why not use the same object when calling String#freeze?
I mean, currently this:
> "something".freeze.object_id
=> 70273877530260
> "something".freeze.object_id
=> 70273877536840
And change the c...
sobrinho (Gabriel Sobrinho)
03:18 PM Feature #8976: file-scope freeze_string directive
> I forgot to mention Akira Matsuda's presentation at RubyShift 2013:
> ...
To be fair, you wouldn't really use f-suffix strings in all the places they were used in the presentation. They're only really useful in tight loops, or in code...
Anonymous
03:08 PM Feature #8976: file-scope freeze_string directive
akr (Akira Tanaka) wrote:
> There are several problems for f-suffix:
> ...
I forgot to mention Akira Matsuda's presentation at RubyShift 2013:
http://sssslide.com/speakerdeck.com/a_matsuda/rails-engines-from-the-bottom-up
(The pres...
akr (Akira Tanaka)
01:23 PM Feature #8976: file-scope freeze_string directive
(2013/10/02 13:18), sam.saffron (Sam Saffron) wrote:
> Can we also have a global switch to enable this everywhere (for debugging), it can make it simple to isolate the spots where it would fall over.

+1. It should be another tic...
ko1 (Koichi Sasada)
01:18 PM Feature #8976: file-scope freeze_string directive
Can we also have a global switch to enable this everywhere (for debugging), it can make it simple to isolate the spots where it would fall over. sam.saffron (Sam Saffron)
12:41 PM Feature #8976: file-scope freeze_string directive
coupled with this I strongly feel we need a more usable way of using the deduping elsewhere.
Currently string#freeze will only affect the current string. If we had a string#frozen we could have it return a deduped frozen copy. From mem...
sam.saffron (Sam Saffron)
11:03 AM Feature #8976: file-scope freeze_string directive
https://github.com/nobu/ruby/tree/frozen_string_pragma nobu (Nobuyoshi Nakada)
10:49 AM Feature #8976 (Closed): file-scope freeze_string directive
Yesterday, we had a face-to-face developer meeting.
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20131001Japan
Several committers attended.
matz didn't attended, though. (This means this issue is not concluded.)
...
akr (Akira Tanaka)
10:15 PM Feature #8961: Synchronizable module to easily wrap methods in a mutex
I suppose if this is being added to MonitorMixin it should probably be in Mutex_m as well? tobiassvn (Tobias Svensson)
02:13 AM Feature #8961: Synchronizable module to easily wrap methods in a mutex
nobu (Nobuyoshi Nakada) wrote:
> headius (Charles Nutter) wrote:
> ...
Yeah, that's not a bad option from a pure-Ruby perspective. We could add "synchronized" to classes that include MonitorMixin, perhaps?
* added to monitor.rb:
...
headius (Charles Nutter)
10:12 PM Feature #8977: String#frozen that takes advantage of the deduping
ko1 and I discussed this in IRC and decided that #frozen would be too easily confused with #freeze. An idea that came up was to use #dedup or #pooled instead. What do you think Sam? Anonymous
02:30 PM Feature #8977: String#frozen that takes advantage of the deduping
@nobu
"html.erb" is very unlikely to be shared cause it is a result of a parse. "base64" and "IANA" are coming from the super dodgy mime types gem here: https://github.com/halostatue/mime-types/blob/master/lib/mime/types/application i...
sam.saffron (Sam Saffron)
02:22 PM Feature #8977: String#frozen that takes advantage of the deduping
Won't those strings be shared with frozen string literal? nobu (Nobuyoshi Nakada)
02:00 PM Feature #8977: String#frozen that takes advantage of the deduping
I would love to see this feature in 2.1.
These are the top duplicated strings in an app I work on:
~~~ruby
irb(main):023:0> GC.start; h = ObjectSpace.each_object(String).to_a.group_by { |s| s }.map{ |s, objs| [s, objs.size] }; h.s...
Anonymous
01:12 PM Feature #8977 (Closed): String#frozen that takes advantage of the deduping
During memory profiling I noticed that a large amount of string duplication is generated from non pre-determined strings.
Take this report for example https://gist.github.com/SamSaffron/6789005 (generated using the memory_profiler gem...
sam.saffron (Sam Saffron)
10:05 PM Bug #8978 (Closed): Fiddle possibly misuses mprotect
Hello Aaron,
Coverity Scan found a possible bug in "initialize" function of ext/fiddle/closure.c:
> result = ffi_prep_closure(pcl, cif, callback, (void *)self);
> ...
I don't understand the code completely, but the size of the poi...
mame (Yusuke Endoh)
09:19 PM Bug #8975 (Assigned): Confusing code sample for assert_send
zzak (zzak _)
09:18 PM Bug #8975: Confusing code sample for assert_send
Thanks for the report Andrew!
I'm really glad we got a doc bug reported for TestUnit, this confirms my suspicion that people are still using TU for legacy apps and still need accurate documentation.
I will have to reconsider how we...
zzak (zzak _)
07:48 AM Bug #8975 (Closed): Confusing code sample for assert_send
Test::Unit::Assertsions#assert_send has the code sample
assert_send([[1, 2], :member?, 1]) # -> pass
assert_send([[1, 2], :member?, 4]) # -> fail
Having an array within an array is somewhat confusing. When I first read it,...
agrimm (Andrew Grimm)
06:37 PM Revision b4f7bf86 (git): rbinstall.rb: reorder
* tool/rbinstall.rb: install default targets (:local, :ext) first,
very time consuming tasks later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:20 PM Revision 13e60f2b (git): * ext/thread/thread.c (ALIAS_GLOBAL_CONST): fix typo, GLOBCAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:20 PM Revision cb2b5980 (git): * ext/thread/thread.c (Init_thread): move outer module condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:13 PM Feature #6647: Exceptions raised in threads should be logged
Sorry, it is not same, but we can consier that.
BTW, I think it true as default is good idea.
IMO, inter-thread communication via exception with Thread#join should be bad idea.
ko1 (Koichi Sasada)
05:05 PM Feature #6647: Exceptions raised in threads should be logged
FYT:
On pthread, there is pthread_detach() which declares nobody join on this thread.
In other words, pthread_detach() is same as Thread#report_on_exception=true.
ko1 (Koichi Sasada)
02:30 PM Feature #6647: Exceptions raised in threads should be logged
akr (Akira Tanaka) wrote:
> In the yesterday's meeting,
> ...
...
> If thread exiting with exception outputs a message,
> ...
GC is a pretty fuzzy time boundary, but it's not terrible. Handling it will mean some finalization requirem...
headius (Charles Nutter)
11:05 AM Feature #6647: Exceptions raised in threads should be logged
In the yesterday's meeting,
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20131001Japan
we discussed this issue.
We found that message at thread exiting with exception have a problem.
The thread can be joined after...
akr (Akira Tanaka)
03:25 PM Revision 6bb3105d (git): * 2013-10-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:25 PM Revision 42b72a08 (git): * misc/ruby-additional.el: Properly quote the body. An unquoted
body given to eval-after-load is evaluated immediately!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
02:37 PM Feature #8096: introduce Time.current_timestamp
headius (Charles Nutter) wrote:
> It would not be hard, given the guarantee that CLOCK_REALTIME works across platforms, to provide a #timestamp that is always CLOCK_REALTIME.
> ...
We can but whether is is official or not is matz's dec...
naruse (Yui NARUSE)
02:33 PM Feature #8096: introduce Time.current_timestamp
It would not be hard, given the guarantee that CLOCK_REALTIME works across platforms, to provide a #timestamp that is always CLOCK_REALTIME.
Can we do that, so we have an official API?
headius (Charles Nutter)
01:39 PM Feature #8096: introduce Time.current_timestamp
headius (Charles Nutter) wrote:
> This is now provided by #8658 in 2.1, but according to matz in the developer meeting notes linked there, Process::clock_gettime is not considered "spec".
> ...
Process.clock_gettime is low level API; i...
naruse (Yui NARUSE)
07:31 AM Feature #8096: introduce Time.current_timestamp
I can not decide Ruby's specification. akr (Akira Tanaka)
05:03 AM Feature #8096: introduce Time.current_timestamp
This is now provided by #8658 in 2.1, but according to matz in the developer meeting notes linked there, Process::clock_gettime is not considered "spec".
So I'm not sure if this can be closed or not...we need to decide.
Optimistica...
headius (Charles Nutter)
02:35 PM Feature #8909: Expand "f" frozen suffix to literal arrays and hashes
headius (Charles Nutter) wrote:
> Also, FWIW, ko1 told me to mark the bugs I was interested in as 2.1, which is why I set this bug for 2.1.
Therefore we discussed about this on RubyDeveloperMeeting20131001.
> ...
Through the meeti...
naruse (Yui NARUSE)
03:12 AM Feature #8909: Expand "f" frozen suffix to literal arrays and hashes
Also, FWIW, ko1 told me to mark the bugs I was interested in as 2.1, which is why I set this bug for 2.1. headius (Charles Nutter)
03:11 AM Feature #8909: Expand "f" frozen suffix to literal arrays and hashes
Has this already been excluded from 2.1.0? May I ask why? We have not finished discussing it and most folks on this issue believe it would be a good feature to have.
After hearing Tony's case about the value of []f and {}f being more ...
headius (Charles Nutter)
02:32 PM Feature #8568: Introduce RbConfig value for native word size, to avoid Fixnum#size use
nobu (Nobuyoshi Nakada) wrote:
> =begin
> ...
I interpret this to mean that the names of the types should be ANSI/ISO C standard names. If that's the case, I'm satisfied.
My concern is if the type names vary across platforms; they w...
headius (Charles Nutter)
09:52 AM Feature #8568: Introduce RbConfig value for native word size, to avoid Fixnum#size use
=begin
They are extracted from ((%configure.in%)) script automatically.
And ANSI/ISO C standard requires stringize operator to turn the argument into a string literal ((*before*)) expanding it.
=end
nobu (Nobuyoshi Nakada)
03:16 AM Feature #8568: Introduce RbConfig value for native word size, to avoid Fixnum#size use
nobu (Nobuyoshi Nakada) wrote:
> r42685
Thanks! I do have one question, though.. are the names of the types (acquired via #type in sizes.c) guaranteed to be consistent across platforms/compilers?
headius (Charles Nutter)
01:29 PM Feature #8658: Process.clock_gettime
akr (Akira Tanaka) wrote:
> 2013/10/2 headius (Charles Nutter) <headius@headius.com>:
> ...
It is r42557 and other commits
naruse (Yui NARUSE)
07:29 AM Feature #8658: Process.clock_gettime
2013/10/2 headius (Charles Nutter) <headius@headius.com>:

> I HAVE A QUESTION, however... what about Windows? There's no mention at all in the rdoc about Windows support. I need to investigate what currentTimeMillis and nanoTime do...
akr (Akira Tanaka)
05:13 AM Feature #8658: Process.clock_gettime
Implementation in JRuby: https://github.com/jruby/jruby/commit/8c066241bd847b68d8d7255893edbad2d6c311d2 headius (Charles Nutter)
04:02 AM Feature #8658: Process.clock_gettime
JRuby issue for this feature: https://github.com/jruby/jruby/issues/1056
Windows information for JVM:
System.currentTimeMillis is always implemented using win32 GetSystemTimeAsFileTime function.
http://msdn.microsoft.com/en-us/l...
headius (Charles Nutter)
03:48 AM Feature #8658: Process.clock_gettime
I missed the discussion on this, but here's the summary of JRuby/JVM case:
If monotonic clock is available at OS level, System.nanoTime is equivalent to clock_gettime(CLOCK_MONOTONIC). I suppose there may be some embedded systems or o...
headius (Charles Nutter)
12:41 PM Revision a6ae6a8b (git): * ext/socket/ifaddr.c (rsock_getifaddrs): fix possible memory leak.
When a system had no interface, this function used xmalloc for root
but did not return any reference to it. This patch fixes it by
immediately returning an empty array if no interface is found.
Coverity Scan found this bug.
git-s...
mame (Yusuke Endoh)
12:41 PM Revision e7f484d4 (git): * random.c (make_seed_value): a local array declaration was accessed
out of scope. Coverity Scan found this bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
11:46 AM Feature #8840: Yielder#state
marcandre (Marc-Andre Lafortune) wrote:
>
> ...
Would you explain the incompleteness concretely?
I couldn't understand.
akr (Akira Tanaka)
10:31 AM Feature #8840: Yielder#state
I'm sorry for my late reply, I'm way back on many things I want to do.
The proposition of `with_state` is interesting, but I personally find it leads to complex/convoluted solutions and is cumbersome to use. Note that the given implem...
marcandre (Marc-Andre Lafortune)
10:15 AM Feature #7854: New method Symbol[string]
This was set to "next minor" a LONG time ago, but I don't see it in 2.1. ??? This would aid security in a couple of ways.
Student (Nathan Zook)
09:56 AM Revision 8c0033a7 (git): * gc.c: relax GC condition due to malloc_limit.
* gc.c (GC_MALLOC_LIMIT_MAX): change default value
(256MB -> 512MB) and permit zero to ignore max value.
* gc.c (vm_malloc_increase, vm_xrealloc): do not cause GC on realloc.
* gc.c (gc_before_sweep): change debug messages.
git-svn-...
ko1 (Koichi Sasada)
07:48 AM Revision a2d21de1 (git): test_io.rb: add test
* test/ruby/test_io.rb (tesst_pid_after_close_read): test for r43117.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Feature #8956: Allow hash members delimited by \n inside of {}
I also thought that maybe you can go one step further and allow any sequence of white characters as delimiters when the parentheses/braces/brackets/pipes are not omitted:
~~~ruby
foo(:foo :bar :baz)
{foo: "bar baz: "qux"}
[:foo :ba...
sawa (Tsuyoshi Sawada)
07:31 AM Feature #8956: Allow hash members delimited by \n inside of {}
Another case where similar syntax might be relevant is `| |` inside a block. Whether you want to do this:
~~~ruby
{|
foo
bar
baz
| ....}
~~~
should go together with whether arguments in method definition can be written ...
sawa (Tsuyoshi Sawada)
05:08 AM Feature #8956: Allow hash members delimited by \n inside of {}
I should also mention that this patch does not apply to method definitions, so these still require commas (at least, for now):
~~~ruby
def some_method(foo,
bar,
baz)
# do stuff
end
~~~
adamdunson (Addie Drake)
04:47 AM Feature #8956: Allow hash members delimited by \n inside of {}
Sorry, the previous patch was incorrect (add-method-arg-support.patch). Please use the attached version instead. adamdunson (Addie Drake)
04:05 AM Feature #8956: Allow hash members delimited by \n inside of {}
Adding a patch for method argument support. For example, this allows the following syntaxes:
~~~ruby
Hash[
:foo, 'bar'
:baz, 'qux'
]
~~~
which becomes `{ :foo => "bar", :baz => "qux" }`, as well as
~~~ruby
puts("this i...
adamdunson (Addie Drake)
07:26 AM Revision bda5eac1 (git): io.c: wait child process after close_read
* io.c (rb_io_close_read): duplex IO should wait its child process
even after close_read.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:50 AM Revision d748f5b6 (git): * vm_core.h: use __has_attribute() instead of __clang__major__ because
clang says "Note that marketing version numbers should not be used
to check for language features, as different vendors use different
numbering schemes. Instead, use the Feature Checking Macros."
http://clang.llvm.org/docs/Language...
naruse (Yui NARUSE)
06:14 AM Feature #8259: Atomic attributes accessors
Trying to wake this one up in hopes of getting it into 2.1. Is there any chance?
Forgive me if I'm breaking process somehow, but ko1 told me to mark the issues I want in 2.1 with Target version=2.1, so I've been doing that.
headius (Charles Nutter)
06:07 AM Revision c1c45c1c (git): Add NEWS about RbConfig::SIZEOF
https://bugs.ruby-lang.org/issues/8568
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:20 AM Revision f0d8be4e (git): io.c: get rid of race condition
* io.c (rb_io_close_write): detach tied IO for writing before closing
to get rid of race condition. [ruby-list:49598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:19 AM Revision 145ecb68 (git): * 2013-10-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:19 AM Revision a9eca1b2 (git): io.c: keep fptr read-closed
* io.c (rb_io_close_read): keep fptr in write_io to be discarded, to
fix freed pointer access when it is in use by other threads, and get
rid of potential memory/fd leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43112 b2dd0...
nobu (Nobuyoshi Nakada)
03:12 AM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
naruse (Yui NARUSE) wrote:
> ko1 will write objection.
I look forward to reading that objection :-)
headius (Charles Nutter)

10/01/2013

11:08 PM Bug #8972: TestMkmf::TestConfig#test_dir_config fails on x86_64
It works now. Thank you! vo.x (Vit Ondruch)
08:36 PM Bug #8972 (Closed): TestMkmf::TestConfig#test_dir_config fails on x86_64
This issue was solved with changeset r43106.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
test_config.rb: fix library path
* test/mkmf/test_config.rb (test...
nobu (Nobuyoshi Nakada)
05:34 PM Bug #8972 (Closed): TestMkmf::TestConfig#test_dir_config fails on x86_64
=begin
It might be due to my configuration options, but I observe following test failure:
TestMkmf::TestConfig#test_dir_config [/builddir/build/BUILD/ruby-2.1.0-preview1/test/mkmf/test_config.rb:13]:
[Bug #8074].
<["/test/foo/in...
vo.x (Vit Ondruch)
10:12 PM Bug #8971: 'make check' broken
This is my configuration command:
$ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sy...
vo.x (Vit Ondruch)
09:56 PM Bug #8971 (Feedback): 'make check' broken
How did you run `configure`? nobu (Nobuyoshi Nakada)
04:32 PM Bug #8971 (Closed): 'make check' broken
=begin
$ make check 'TESTS=-v '
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generi...
vo.x (Vit Ondruch)
10:04 PM Bug #8768 (Closed): [PATCH] tempfile: undefine finalizer on unlink
This issue was solved with changeset r43110.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
tempfile.rb: undefine finalizer on unlink
* lib/tempfile.rb (Tem...
nobu (Nobuyoshi Nakada)
09:41 PM Bug #8973 (Open): Allow to configure archlibdir for multiarch
In Ruby 2.0, when using "--with-multiarch" together with "--with-rubyarchprefix", it used ${libdir} for libruby.so library placement (i.e. /usr/lib64/). Now it is hardcoded to ${libdir}/${arch} (i.e. /usr/lib64/x86_64-linux). Hence there... vo.x (Vit Ondruch)
09:03 PM Bug #8973 (Feedback): Allow to configure archlibdir for multiarch
Was it possible ever? nobu (Nobuyoshi Nakada)
07:15 PM Bug #8973 (Feedback): Allow to configure archlibdir for multiarch
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I... vo.x (Vit Ondruch)
09:28 PM Bug #8358: TestSprintf#test_float test failure
I observe the same issue on Fedora Rawhide i386.
$ ruby -v
ruby 2.1.0dev (2013-09-22 trunk 43011) [i686-linux]
vo.x (Vit Ondruch)
08:54 PM Feature #8050 (Closed): struct stat to VALUE should be accessable from the C-API
This issue was solved with changeset r43107.
Hans, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
file.c: export rb_stat_new
* file.c (stat_new_0): constify.
* fi...
nobu (Nobuyoshi Nakada)
05:49 PM Feature #8050: struct stat to VALUE should be accessable from the C-API
this is nobu's issue because this is C API. naruse (Yui NARUSE)
08:22 PM Feature #8331 (Closed): Update config.guess and config.sub for AArch64 (ARM64)
Actually, it seems to be resolved by r41293. vo.x (Vit Ondruch)
08:11 PM Feature #8331: Update config.guess and config.sub for AArch64 (ARM64)
Could this be merged for 2.1 please? It would allow Fedora to carry one less patch. Thanks. vo.x (Vit Ondruch)
07:59 PM Bug #8623: Make stable Gem::Specification.files in default .gemspecs
Not sure why I did not attached patch, so here it is. vo.x (Vit Ondruch)
07:32 PM Bug #8974: TestTracepointObj#test_tracks_objspace_events
Thank you for your report.
I'm seeking a reason of this issue, too.
And I can't find out it now.
Helps are very welcome.
ko1 (Koichi Sasada)
07:21 PM Bug #8974 (Closed): TestTracepointObj#test_tracks_objspace_events
=begin
I did a few test build of Ruby package for Fedora 21 and suddenly TestTracepointObj#test_tracks_objspace_events failed:
4) Failure:
TestTracepointObj#test_tracks_objspace_events [/builddir/build/BUILD/ruby-2.1.0-preview1/te...
vo.x (Vit Ondruch)
06:04 PM Feature #8953: `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
Could you check it? ko1 (Koichi Sasada)
05:56 PM Feature #8840: Yielder#state
Need marcandre's reply naruse (Yui NARUSE)
05:56 PM Feature #8919: Queue as embedded class
Matz, how about it?
(no compatibility issue, we have an implementation)
ko1 (Koichi Sasada)
05:18 PM Feature #8882 (Rejected): rb_obj_is_mutex() into include/ruby/intern.h
Maybe you want to use it for CV to make it fast.
However, we are not recommend CV because it is difficult primitive.
So we shouldn't touch it.
ko1 (Koichi Sasada)
05:12 PM Feature #8849 (Rejected): Thread#throw
ユースケースとして弱い・本来剣呑である非同期割り込みを増やしたくない、という理由で reject とさせて下さい。
ko1 (Koichi Sasada)
05:10 PM Feature #8788 (Feedback): use eventfd on newer Linux instead of pipe for timer thread
I'm negative because it causes code complex unless it has performance improvement. naruse (Yui NARUSE)
05:08 PM Feature #8781: Use require_relative() instead of require() if possible
No conclusion. ko1 (Koichi Sasada)
05:05 PM Feature #8573 (Feedback): Add String#format method(not an alias of String#%)
Show concrete use case. naruse (Yui NARUSE)
05:05 PM Feature #8573: Add String#format method(not an alias of String#%)
Do you mean this?
```ruby
def format(*args)
sprintf(self, *args)
end
```
or
```ruby
def format(*args)
 self % args
end
```
nobu (Nobuyoshi Nakada)
05:00 PM Bug #6514 (Rejected): Abort trap: 6 running rspec on rdf.rb
Closing this due to no feedbacks. sorah (Sorah Fukumori)
05:00 PM Feature #8536 (Assigned): Implement is_numeric? family of methods
naruse (Yui NARUSE)
04:58 PM Feature #8158 (Assigned): lightweight structure for loaded features index
nobu (Nobuyoshi Nakada)
04:55 PM Feature #8556 (Assigned): MutexedDelegator as a trivial way to make an object thread-safe
ko1 will write objection. naruse (Yui NARUSE)
08:02 AM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
I implemented this and a simple test in https://github.com/ruby/ruby/pull/405
If approved, I can merge that or commit to trunk directly.
The performance impact of Monitor is a separate issue; Monitor should probably be implemented ...
headius (Charles Nutter)
07:23 AM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
On Mon, Sep 30, 2013 at 5:13 PM, headius (Charles Nutter) <
headius@headius.com> wrote:

> and the code should use Monitor instead of Mutex so it can be reentrant.


I'm trying to think of a case in which this would matter. ...
avdi (Avdi Grimm)
06:13 AM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
SynchronizedDelegator is a better name, and the code should use Monitor instead of Mutex so it can be reentrant. I'll do that now. headius (Charles Nutter)
04:54 PM Feature #8257: Exception#cause to carry originating exception along with new one
I'm positive about this feature.
Matz, what do you think about?
ko1 (Koichi Sasada)
02:45 PM Revision d60c6c86 (git): * vm_core.h: use __attribute__((unused)) in UNINTIALIZED_VAR on clang
4.0+ instead of just on 4.2. Clang has supported the unused attribute
since before version 4, so this should be safe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
02:03 PM Feature #8970: Array.zip and Array.product
akr, The difference between `Array#transpose` and `Array.zip` is just the same as with `Array#transpose` and `Array#zip`. That is, when any non-first array is shorter than the first, it is complemented with `nil`. sawa (Tsuyoshi Sawada)
09:53 AM Feature #8970: Array.zip and Array.product
2013/10/1 sawa (Tsuyoshi Sawada) <sawadatsuyoshi@gmail.com>:
> Feature #8970: Array.zip and Array.product
> https://bugs.ruby-lang.org/issues/8970

> Most of the time when I use `Array#zip` or `Array#product`, I feel cumbursome ...
akr (Akira Tanaka)
03:57 AM Feature #8970 (Open): Array.zip and Array.product
=begin
Most of the time when I use `Array#zip` or `Array#product`, I feel cumbursome that I have to take out the first array and pass it as a receiver. For example, if I have
a = [[:a, :b, :c], [:d, :e, :f], [:g, :h, :i]]
I ha...
sawa (Tsuyoshi Sawada)
01:51 PM Feature #6308: Eliminate delegation from WeakRef
nobu (Nobuyoshi Nakada) wrote:
> My opinion is still unchanged.
> ...
In case my opinion wasn't clear, or has been fogged over the last few months, I'll make it clear again.
WeakRef is broken when used as a delegate, because any met...
headius (Charles Nutter)
11:49 AM Feature #6308: Eliminate delegation from WeakRef
My opinion is still unchanged.
"It should be another new class".
nobu (Nobuyoshi Nakada)
09:57 AM Feature #6308: Eliminate delegation from WeakRef
Put my patch into an updated pull request: https://github.com/ruby/ruby/pull/406 headius (Charles Nutter)
01:03 PM Revision ec2db8de (git): tempfile.rb: undefine finalizer on unlink
* lib/tempfile.rb (Tempfile#unlink): finalizer is no longer needed
after unlinking. patched by by normalperson (Eric Wong) at
[ruby-core:56521] [Bug #8768]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43110 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
12:00 PM Revision 57c7de44 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:57 AM Revision 85ab5379 (git): file/stat.c: fix commit miss
* ext/-test-/file/stat.c: extension library to test [Feature #8050].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:54 AM Revision c07c33b2 (git): file.c: export rb_stat_new
* file.c (stat_new_0): constify.
* file.c (rb_stat_new): constify and export. based on a patch by
Hanmac (Hans Mackowiak) at [ruby-core:53225]. [Feature #8050]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43107 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
11:36 AM Revision f09b772d (git): test_config.rb: fix library path
* test/mkmf/test_config.rb (test_dir_config): fix expected library
path. [ruby-core:57535] [Bug #8972]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:23 AM Feature #6309: Add a reference queue for weak references
Put my patch plus a test in a PR: https://github.com/ruby/ruby/pull/408
Unfortunately the test doesn't pass, and I think it should. I'm confused as to why it fails.
headius (Charles Nutter)
09:59 AM Feature #8568 (Closed): Introduce RbConfig value for native word size, to avoid Fixnum#size use
r42685 nobu (Nobuyoshi Nakada)
09:37 AM Feature #8839: Class and module should return the class or module that was opened
avdi (Avdi Grimm) wrote:
> That said, if you really wanted to preserve the ability to return something
> ...
That wouldn't be backward-compatible with anyone expecting last expression, but it's an excellent idea to address Shugo's con...
headius (Charles Nutter)
09:00 AM Bug #7445: strptime('%s %z') doesn't work
tadf (tadayoshi funaba) wrote:
> I will give written in Japanese English because I heard not hold water .
I've used Google translate which does a poor job, but you have left me no choice.
> ...
Totally unparsable.
> quoted from...
felipec (Felipe Contreras)
07:27 AM Revision 1dc02091 (git): test_regexp.rb, test_string.rb: suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:27 AM Revision d4ef0b47 (git): test_regexp.rb, test_string.rb: use assert_separately
* test/ruby/test_regexp.rb (test_eq_tilde_can_be_overridden): use assert_separately
to suppress a warning.
* test/ruby/test_string.rb (test_eq_tilde_can_be_overridden): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43104 b2...
nobu (Nobuyoshi Nakada)
07:03 AM Revision fa4c2133 (git): ruby.h: export ruby_safe_level_4_warning
* include/ruby/ruby.h (ruby_safe_level_4_warning): needed by extension
libraries which check safe level 4. [ruby-dev:47517] [Bug #8652]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:53 AM Feature #8956: Allow hash members delimited by \n inside of {}
I've attached a patch for array support (only between square brackets). I've also renamed the `assoc_seperator` rule to be `nl_or_comma` to make it a little more generic.
This allows for syntax similar to hashes (here's a rather compl...
adamdunson (Addie Drake)
05:49 AM Revision c4be7faa (git): * 2013-10-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:48 AM Revision 23742417 (git): test_regexp.rb, test_string.rb: suppress warnings
* test/ruby/test_regexp.rb (test_eq_tilde_can_be_overridden): suppress
a warning.
* test/ruby/test_string.rb (test_eq_tilde_can_be_overridden): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43101 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)

09/30/2013

11:53 PM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
On Fri, Sep 27, 2013 at 6:59 AM, headius (Charles Nutter) <
headius@headius.com> wrote:

> I propose adding MutexedDelegator as a simple way to wrap any object with
> a thread-safe wrapper, via existing delegation logic in deleg...
avdi (Avdi Grimm)
11:53 PM Feature #8839: Class and module should return the class or module that was opened
On Sat, Sep 28, 2013 at 2:39 AM, shugo (Shugo Maeda)
<redmine@ruby-lang.org>wrote:

> For example, bootstraptest/test_block.rb uses the last value of a class
> definition as follows:


The only time I've ever used the retu...
avdi (Avdi Grimm)
10:20 PM Feature #8839: Class and module should return the class or module that was opened
shugo (Shugo Maeda) wrote:
> I did a quick hack to try this proposal and found that some test failed with it:
> ...
The case given is rather contrived; I have never seen code in the wild use last expression return from a class.
> If...
headius (Charles Nutter)
11:37 PM Feature #6647: Exceptions raised in threads should be logged
Testing seems to indicate this is a pretty safe change, and it just makes the debug-logged exception output be logged any time abort_on_exception is not true. headius (Charles Nutter)
11:05 PM Feature #6647: Exceptions raised in threads should be logged
We do not currently log it, but the patch to do so is trivial.
https://gist.github.com/6764310
I'm running tests now to confirm it doesn't break anything.
headius (Charles Nutter)
12:23 PM Feature #6647: Exceptions raised in threads should be logged
(2013/09/27 20:18), headius (Charles Nutter) wrote:
> So, can we do this for 2.1? I have heard from many other users that really would like exceptions bubbling out of threads to be reported in some way. We have had numerous bug report...
ko1 (Koichi Sasada)
07:53 AM Feature #6647: Exceptions raised in threads should be logged
This would indeed eliminate a huge amount of confusion for people getting
started with threads. Or for people years of experience with threads, for
that matter...

--
Avdi Grimm
http://avdi.org

I only check email twice...
avdi (Avdi Grimm)
10:16 PM Feature #8960: Add Exception#backtrace_locations
JRuby has implementation but no tests. The test should look pretty much like Thread#backtrace_locations tests, though.
I can work on some tests if you work on impl for MRI.
headius (Charles Nutter)
11:51 AM Feature #8960: Add Exception#backtrace_locations
I'll try before preview-2.
JRuby already has a implementation and tests?
ko1 (Koichi Sasada)
08:25 PM Feature #8572 (Feedback): Fiber should be a Enumerable
Can I close it? ko1 (Koichi Sasada)
08:24 PM Feature #8639 (Feedback): Add Queue#each
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/56421
any comments?
ko1 (Koichi Sasada)
08:17 PM Feature #3944 (Feedback): Add Fiber#root? method
ko1 (Koichi Sasada)
08:16 PM Feature #3187 (Feedback): Allow dynamic Fiber stack size
Ruby 2.0 already has
RUBY_VM_FIBER_VM_STACK_SIZE
RUBY_FIBER_MACHINE_STACK_SIZE
is it enough?
ko1 (Koichi Sasada)
08:13 PM Feature #8823: Run trap handler in an independent thread called "Signal thread"
Now, Queue is trap-safe. ko1 (Koichi Sasada)
08:12 PM Feature #8761 (Closed): Binding#local_variable_get, set, defined?
Introduced r42464 and there are no objection.
Close this ticket as accepted feature.
ko1 (Koichi Sasada)
08:11 PM Feature #8725 (Feedback): Possibility to get a signal handler without changing it
ko1 (Koichi Sasada)
08:08 PM Bug #8968 (Rejected): Baseruby is required after patching configure.in
It sometimes happens, that during packaging Ruby, it is necessary to patch configure.in (we are doing so in Fedora, there are patches in Debian, RVM does so occasionally as well). Unfortunately, since rev 42685, if the configure.in is pa... vo.x (Vit Ondruch)
05:25 PM Feature #8948: Frozen regex
ko1 (Koichi Sasada) wrote:
> 2.2 matter?
2.1 would make sense to me, so it goes along with other frozen literals.
> ...
I highly doubt it.
Eregon (Benoit Daloze)
12:11 PM Feature #8948: Frozen regex
I like to freeze normal regexp literal that Eregon said.
2.2 matter?
Anyone set instance variable for each regexp? :)
ko1 (Koichi Sasada)
03:28 PM Revision 210efb5c (git): merge revision(s) 42459: [Backport #8963]
* tool/make-snapshot: Fix order of priority for option parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:18 PM Feature #8967 (Open): add uninclude and unextend method
Can be add uninclude and unextend method to ruby core ?
That enable Klass include or prepend different module,
make DECORATOR design pattern is easier.
windwiny (wind winy)
02:15 PM Revision e1bb0710 (git): * ext/objspace/objspace.c: [DOC] Cleaned up many rdoc formatting
issues and several duplicate grammar bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:04 PM Revision bbf366ba (git): ChangeLog typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
02:02 PM Revision 8073bd79 (git): * ext/objspace/object_tracing.c: [DOC] Adjust rdoc formatting and fix
small grammar typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
08:29 AM Revision 1d4e3d48 (git): * ext/objspace/object_tracing.c: [DOC] add some nots for
ObjectSpace::trace_object_allocations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:17 AM Revision 1450e0b5 (git): * ext/objspace/object_tracing.c: add new 3 methods to control tracing.
* ObjectSpace::trace_object_allocations_start
* ObjectSpace::trace_object_allocations_stop
* ObjectSpace::trace_object_allocations_clear
And some refactoring.
* test/objspace/test_objspace.rb: add a test for new methods.
* NEWS: add a ...
ko1 (Koichi Sasada)
08:06 AM Revision 6a1a08c9 (git): gc.c: suppress warnings
* gc.c (gc_before_sweep): use PRIuSIZE instead of "%zu" directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:07 AM Revision 3eef1b54 (git): configure.in: RUNRUBY_COMMAND
* configure.in, Makefile.in (RUNRUBY_COMMAND): separate from RUNRUBY,
to use options for runruby.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:20 AM Revision 1d90d0ce (git): * gc.c (rb_gc_disable): do rest_sweep() before disable GC.
This fix may solve a failure of
TestTracepointObj#test_tracks_objspace_events
[test/-ext-/tracepoint/test_tracepoint.rb:43].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:18 AM Revision 7f25c651 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:49 AM Revision 59f5fa10 (git): * vm_method.c (rb_undef): raise a NameError if the original method
of a refined method is not defined.
* vm_insnhelper.c (rb_method_entry_eq): added NULL check to avoid SEGV.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43090 b2dd03c8-39d4-4d8f-98ff-...
shugo (Shugo Maeda)

09/29/2013

10:07 PM Bug #8965 (Closed): SEGV when a refined method is undefined by undef
I reported this issue to ruby-dev by accident, so refiled as #8966. shugo (Shugo Maeda)
09:57 PM Bug #8965 (Closed): SEGV when a refined method is undefined by undef
The following code causes SEGV:
module Foo
refine Object do
def foo
puts "foo"
end
end
end

using Foo

class Object
undef foo
end

foo
I guess undef is not aware of re...
shugo (Shugo Maeda)
08:04 PM Feature #6721: Object#yield_self

May I give a name suggestion?
Does "tap!" make sense in english?
~~~Ruby
2.tap {|x| x*2 } # => 2
2.tap! {|x| x*2 } # => 4
~~~
The exclamation mark alerts that the return value is being changed.
abinoam (Abinoam P. Marques Jr.)
06:52 PM Bug #8964: [BUG](%p is T_NONE) occurs while marking VM stack
=begin
レビューありがとうございます。
とりあえず[ruby-dev:47730]のパッチでコミットしておきました。
=end
ktsj (Kazuki Tsujimoto)
06:50 PM Bug #8964 (Closed): [BUG](%p is T_NONE) occurs while marking VM stack
This issue was solved with changeset r43081.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_insnhelper.c (vm_callee_setup_arg_complex, vm_yield_setup_...
ktsj (Kazuki Tsujimoto)
11:53 AM Bug #8964: [BUG](%p is T_NONE) occurs while marking VM stack
(2013/09/29 9:08), nobu (Nobuyoshi Nakada) wrote:
> これでいいんじゃないでしょうか。

と思います。

> vm_callee_setup_arg_complex()とvm_yield_setup_block_args()は共通化できるところも多そうですが。

共通箇所の括りだしはいるかもしれないですね。

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
09:08 AM Bug #8964: [BUG](%p is T_NONE) occurs while marking VM stack
これでいいんじゃないでしょうか。
vm_callee_setup_arg_complex()とvm_yield_setup_block_args()は共通化できるところも多そうですが。
nobu (Nobuyoshi Nakada)
08:28 AM Bug #8964: [BUG](%p is T_NONE) occurs while marking VM stack
=begin
不要な分岐を避けるために初期化処理はsetup_argでやったほうがよいのでないかと思い直したので、パッチを修正しました。
=end
ktsj (Kazuki Tsujimoto)
06:35 PM Feature #8948: Frozen regex
jwille,
My understanding with the case of string in your example is that the two strings would count as different strings, but for respective method calls would not create new strings. It would mean one of the string can be `"ab"` and...
sawa (Tsuyoshi Sawada)
03:58 PM Revision 7eca2a43 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:56 PM Revision 98729749 (git): * 2013-09-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:56 PM Revision f694995c (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:51 PM Revision 92b0e5b2 (git): array.c: minor performance improvement
* array.c (sort_2): minor performance improvement by replacing
rb_funcall() with rb_funcallv.
* array.c (rb_ary_bsearch, recursive_cmp, rb_ary_cycle_size): ditto.
* array.c (descending_factorial, binomial_coefficient): ditto.
* arra...
nobu (Nobuyoshi Nakada)
02:45 PM Revision 6496dc89 (git): parse.y: allow junk attrset
* parse.y (rb_id_attrset, intern_str): allow junk attrset ID for
Struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:57 PM Revision 5a48805b (git): ChangeLog: remove duplicated entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:56 PM Revision 771c8ed3 (git): parse.y: fix inconsistency with literals
* parse.y (rb_id_attrset): fix inconsistency with literals, allow
ID_ATTRSET and return it itself, but ID_JUNK cannot make ID_ATTRSET.
and raise a NameError instead of rb_bug() for invalid argument.
git-svn-id: svn+ssh://ci.ruby-lan...
nobu (Nobuyoshi Nakada)
09:50 AM Revision 3dab183c (git): * 2013-09-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:50 AM Revision 94f57871 (git): * vm_insnhelper.c (vm_callee_setup_arg_complex, vm_yield_setup_block_args):
clear keyword arguments to prevent GC bug which occurs
while marking VM stack.
[ruby-dev:47729] [Bug #8964]
* test/ruby/test_keyword.rb: tests for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43081 b2dd03c8-39d4-4d8...
ktsj (Kazuki Tsujimoto)

09/28/2013

10:39 PM Bug #8964 (Closed): [BUG](%p is T_NONE) occurs while marking VM stack
=begin
以下のコードで (({rb_gc_mark(): 0x00555555a1ff68 is T_NONE})) のような[BUG]となります。
def m(a: [])
end

GC.stress=true
tap { m }
GC.start
tap { m }
フレームを積む際にキーワード引数用のVMスタック領域をCレベルで初期化していないため、
積んだ直後には死んだオブジェクトへの参照がスタックに残ってしまっ...
ktsj (Kazuki Tsujimoto)
05:06 PM Misc #8962 (Closed): [DOC] add step to enable Generational GC merits in README.EXT*
=begin
Is there any chance to reap the benefit of new Generational GC merits for
C-extension library authors?
== Background
First of all: RGenGC is great. Ko1 showed that it could make significant
performance improvement at R...
tad (Tadashi Saito)
03:39 PM Feature #8839: Class and module should return the class or module that was opened
I did a quick hack to try this proposal and found that some test failed with it:
https://gist.github.com/shugo/6739085
For example, bootstraptest/test_block.rb uses the last value of a class definition as follows:
~~~ruby
ass...
shugo (Shugo Maeda)
08:41 AM Feature #8839: Class and module should return the class or module that was opened
headius (Charles Nutter) wrote:
> mame (Yusuke Endoh) wrote:
> ...
Use:
~~~ruby
meta = self.singleton_class
~~~
> > It is very arguable if the new idiom should be encouraged.
> ...
Your way is too easy to overlook "`.init`" be...
mame (Yusuke Endoh)
04:20 AM Feature #8839: Class and module should return the class or module that was opened
I agree that returning the class or module makes sense (to me).
I'd also like to see "`def foo`" return a (`Unbound`)`Method` instead of a `Symbol`.
it seems like that'd also make more sense (not to derail this conversation). A (`Unbou...
robertgleeson (Robert Gleeson)
03:39 AM Feature #8839: Class and module should return the class or module that was opened
mame (Yusuke Endoh) wrote:
> headius (Charles Nutter) wrote:
> ...
How about this:
~~~ruby
meta = class << self; end
~~~
> It is very arguable if the new idiom should be encouraged.
> ...
I respect your opinion, but I fail to ...
headius (Charles Nutter)
02:25 PM Revision 202cc8e6 (git): math.c: fix for Bignum argument
* math.c (math_log, math_log2, math_log10): fix for Bignum argument.
numbits should be add only when right shifted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:04 PM Revision e5bcf05d (git): merge revision(s) 42542: [Backport #8910]
* random.c (rb_random_ulong_limited): coerce before check negative.
[Fixes GH-379]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:10 AM Feature #8887: min(n), max(n), min_by(n), max_by(n)
slide updated akr (Akira Tanaka)
10:54 AM Feature #8887: min(n), max(n), min_by(n), max_by(n)
slide added akr (Akira Tanaka)
09:23 AM Feature #8961: Synchronizable module to easily wrap methods in a mutex
headius (Charles Nutter) wrote:
> Maybe. I don't like the idea of exposing this mutex/monitor, since it could be modified or locked and never released. I would be more in favor of a "tap" form that synchronizes against the same internal...
nobu (Nobuyoshi Nakada)
03:45 AM Feature #8961: Synchronizable module to easily wrap methods in a mutex
tobiassvn (Tobias Svensson) wrote:
> Having this as a method on Module directly would of course be ideal. However, I believe the mutex/monitor used should still be exposed as a private method so it can be used without the 'synchronized'...
headius (Charles Nutter)
07:30 AM Bug #8797: Intermittent Segfault on 2.0.0-p247 when running 'bundle install'
Confirming I have the same error. Running `bundle install` a few times eventually succeeds. Can I provide anything to help debug? avit (Andrew Vit)
05:47 AM Revision f450dede (git): Added ticket number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:43 AM Revision 1a0eb89c (git): * test/dl/test_base.rb: {libc, libm} detection now handle GNU/Hurd
correctly. Patch by Gabriele Giacone (1o5g4r8o@gmail.com).
* test/fiddle/helper.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
03:42 AM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
Formatting issue... the "synchronized" proposal is in https://bugs.ruby-lang.org/issues/8961 headius (Charles Nutter)
01:15 AM Revision 9bfee9e9 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:26 AM Bug #8659 (Closed): Curses::Window#bkgdset does not handle color correctly
This issue was solved with changeset r43074.
Alex, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/curses/extconf.rb: check the size of chtype.
* ext/curses/...
shugo (Shugo Maeda)
12:12 AM Feature #8956: Allow hash members delimited by \n inside of {}
Thanks for the patch, nobu. That was easier than I thought it would be; I was looking in the wrong place entirely.
sawa (Tsuyoshi Sawada) wrote:
> [...] I think it should not be just for hashes, but also for arrays, and for arguments...
adamdunson (Addie Drake)

09/27/2013

11:33 PM Feature #8839: Class and module should return the class or module that was opened
headius (Charles Nutter) wrote:
> One use:
> ...
I fail to see why it needs to be a local variable.
Why don't you use `Foo` instead of `my_class`?
> Another:
> ...
It is very arguable if the new idiom should be encouraged.
Pers...
mame (Yusuke Endoh)
09:11 PM Feature #8839: Class and module should return the class or module that was opened
I see now. I really tried a few times to get something like your second example to work:
~~~ruby
class MyProcessor
...
end.new(params).process
~~~
I'd usually use such pattern in small scripts since methods are not hoisting li...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:29 PM Feature #8839: Class and module should return the class or module that was opened
mame (Yusuke Endoh) wrote:
> How useful is this proposal?
> ...
One use:
~~~ruby
my_class = class Foo
...
end
~~~
We can get the reference to a class being created immediately without adding "`self`" at the end. It also bri...
headius (Charles Nutter)
04:22 AM Feature #8839: Class and module should return the class or module that was opened
Actually, I don't understand even why returning a symbol from method definition is useful... rosenfeld (Rodrigo Rosenfeld Rosas)
04:22 AM Feature #8839: Class and module should return the class or module that was opened
I've been wondering the same thing since I saw this ticket being created... rosenfeld (Rodrigo Rosenfeld Rosas)
10:50 PM Feature #8931: Update URL in REPORTBUG_MSG
I agree with zzak.
Linking to www.ruby-lang.org/whatever which redirects to bugs.ruby-lang.org/something_else sounds so wrong and will easily break (it **had** been broken for months). Links might change.
But information on bug rep...
stomar (Marcus Stollsteimer)
01:23 PM Feature #8931: Update URL in REPORTBUG_MSG
I don't think redirect is acceptable, we should correct the problem at the source. Please reconsider..

> On Sep 26, 2013, at 7:35 PM, "naruse (Yui NARUSE)" <naruse@airemix.jp> wrote:
>
>
> Issue #8931 has been updated by naruse ...
zzak (zzak _)
10:35 AM Feature #8931 (Rejected): Update URL in REPORTBUG_MSG
If it is http://www.ruby-lang.org/bugreport.html, we can change redirect target if we want to change the target.
If it is http://bugs.ruby-lang.org/, we can't changet the target for example to http://bugs.ruby-lang.org/projects/ruby/wik...
naruse (Yui NARUSE)
09:45 PM Feature #8961: Synchronizable module to easily wrap methods in a mutex
Having this as a method on Module directly would of course be ideal. However, I believe the mutex/monitor used should still be exposed as a private method so it can be used without the 'synchronized' method. tobiassvn (Tobias Svensson)
08:40 PM Feature #8961: Synchronizable module to easily wrap methods in a mutex
I would like to see this in 2.1, as a standard Module method. The fact that "def" returns the method name now makes this really easy.
I think this would need to be implemented natively to work, however. The prototype above has a key f...
headius (Charles Nutter)
08:23 PM Feature #8961 (Open): Synchronizable module to easily wrap methods in a mutex
=begin
I propose a Synchronizable mixin to easily wrap methods in a mutex which works together with Ruby 2.1's method name symbols returned from '(({def}))'.
The Mixin adds a new '(({synchronized}))' class method which would alias th...
tobiassvn (Tobias Svensson)
08:35 PM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
Similar in nature to the "synchronized" module method proposed in https://bugs.ruby-lang.org/issues/8961. I like that proposal as well, but it does not help the case where you have a concurrency-unsafe object in hand that you would like ... headius (Charles Nutter)
08:13 PM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
That would be a useful feature.
+1
simonx1 (Szymon Kurcab)
07:59 PM Feature #8556: MutexedDelegator as a trivial way to make an object thread-safe
Any comments here? This would be pretty easy to add to delegate.rb for 2.1. headius (Charles Nutter)
08:19 PM Feature #6309: Add a reference queue for weak references
I again request approval from matz to add this feature :-) Can we do it for 2.1, please? headius (Charles Nutter)
08:18 PM Feature #6647: Exceptions raised in threads should be logged
So, can we do this for 2.1? I have heard from many other users that really would like exceptions bubbling out of threads to be reported in some way. We have had numerous bug reports relating to code where threads disappear without a trace. headius (Charles Nutter)
08:17 PM Feature #6308: Eliminate delegation from WeakRef
I believe this is just waiting on approval by matz. Can we make this change in 2.1, please? headius (Charles Nutter)
08:15 PM Bug #8208 (Rejected): Raise cached exceptions for nonblocking IO to avoid allocation/stack-copying costs
https://bugs.ruby-lang.org/issues/5138 has been accepted in a slightly altered form, so I think perhaps this can be rejected. Since it is now possible to use read_nonblock with no exception raise, my proposal is unnecessary. headius (Charles Nutter)
08:15 PM Feature #8948: Frozen regex
> but it would be difficult to tell which regexes are intended to be the same
i'm not sure i understand. how is
~~~ruby
def r1; /ab/f; end
def r2; /ab/f; end
~~~
different from
~~~ruby
def s1; 'ab'f; end
def s2; 'ab'f; e...
jwille (Jens Wille)
08:14 PM Feature #5138: Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
Hah... I was just stopping by to suggest the keyword argument as a compromise form...and it turns out that's exactly what we went with. Excellent! headius (Charles Nutter)
08:12 PM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
I have filed https://bugs.ruby-lang.org/issues/8960 to get this feature added to MRI. It is already available in JRuby. headius (Charles Nutter)
08:11 PM Feature #8960 (Assigned): Add Exception#backtrace_locations
All parties agreed this would be useful to add in https://bugs.ruby-lang.org/issues/7895 and ko1 suggested I file a feature against ruby-trunk. So here it is.
I might be able to come up with a patch, but I'm not sure when. Help wanted...
headius (Charles Nutter)
08:04 PM Feature #8257: Exception#cause to carry originating exception along with new one
Any further comments here? I might be able to do part of the implementation, but I don't know how to automatically stick $! into cause. I'd like to see this in 2.1. headius (Charles Nutter)
08:02 PM Bug #8488 (Rejected): Refactor rbinstall.rb for maintenance, clarity, reuse
RubyGems 2.1 incorporated my new logic for default gems while still supporting the MRI 2.0 layout for default specs.
Given that I have not maintained my cleaned-up rbinstall and no longer need the logic, I'm rejecting this. I hope at ...
headius (Charles Nutter)
07:58 PM Feature #8570: Better mechanisms to safely load classes concurrently
normalperson (Eric Wong) wrote:
> So the insertion of a new class will need a namespace lock (just like
> ...
The sequence of events here sounds sorta like how autoload was made "thread safe".
Possible states for a class/module in ...
headius (Charles Nutter)
07:45 PM Feature #8568: Introduce RbConfig value for native word size, to avoid Fixnum#size use
In for 2.1? headius (Charles Nutter)
07:44 PM Feature #8088: Method#parameters (and friends) should provide useful information about core methods
Any possibility of getting this in for 2.1? headius (Charles Nutter)
07:41 PM Bug #8875: Select is not usable with SSLSocket
akr (Akira Tanaka) wrote:
> 2013/9/8 headius (Charles Nutter) <headius@headius.com>:
> ...
Doing a select followed by a blocking read of more data than is actually available would block on any socket. The amount of data available in th...
headius (Charles Nutter)
03:26 PM Revision c77d56ff (git): * 2013-09-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:26 PM Revision 2328b4b2 (git): * ext/curses/extconf.rb: check the size of chtype.
* ext/curses/curses.c (NUM2CH, CH2NUM): use proper macros for
the size of chtype.
[ruby-core:56090] [Bug #8659]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
03:16 PM Feature #8956: Allow hash members delimited by \n inside of {}
If this proposal is going to be considered, then I think it should not be just for hashes, but also for arrays, and for arguments passed to a method.
~~~ruby
[
:foo
:bar
]
foo(
"arg1"
"arg2"
)
~~~
Also note that,...
sawa (Tsuyoshi Sawada)
01:41 PM Feature #8956: Allow hash members delimited by \n inside of {}
Same about arrays, i guess? :) alexeymuranov (Alexey Muranov)
12:47 PM Feature #8956: Allow hash members delimited by \n inside of {}
Additional patch for labeled `assocs`.
~~~diff
diff --git a/parse.y b/parse.y
index b0a7cc4..63b4334 100644
--- a/parse.y
+++ b/parse.y
@@ -5013,4 +5013,7 @@ trailer : /* none */

assoc_seperator : '\n'
+ {
+ comman...
nobu (Nobuyoshi Nakada)
02:11 AM Feature #8956: Allow hash members delimited by \n inside of {}
I feel the need to mention that at this time, my changes do not include Ruby 1.9 style symbol hashes. These still require commas, e.g.,
~~~ruby
some_hash = {
foo: 'bar',
bar: 'foo',
baz: {
qux: 'quux',
corge: 'grau...
adamdunson (Addie Drake)
03:06 PM Bug #8957 (Rejected): Ruby tk control variables for radiobutton menu radiobutton and menu checkbutton not working correctly.
It depends on bugs on the reporter's code.
--- test_control_variables.rb 2013-09-27 14:48:40.000000000 +0900
+++ test_control_variables_mod.rb 2013-09-27 14:51:26.000000000 +0900
@@ -49,12 +49,12 @@

def b_button
puts("set...
nagai (Hidetoshi Nagai)
10:52 AM Bug #8957 (Assigned): Ruby tk control variables for radiobutton menu radiobutton and menu checkbutton not working correctly.
nagachika (Tomoyuki Chikanaga)
03:50 AM Bug #8957 (Rejected): Ruby tk control variables for radiobutton menu radiobutton and menu checkbutton not working correctly.
The control variables for radiobutton menu radiobutton and menu checkbutton are not working correctly. In a starter project I am coding, they do not set the variable at all, and if set, it does not affect the button that is checked. I've... rob (rob gow)
02:31 PM Revision 0e2f5210 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:36 AM Revision 2c0d74b7 (git): * gc.c: add two GC tuning environment variables.
RUBY_GC_MALLOC_LIMIT_MAX and RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR.
See r43067 for details.
* gc.c (rb_gc_set_params): refactoring. And change verbose notation.
Mostly duplicated functions get_envparam_int/double is not cool.
Please r...
ko1 (Koichi Sasada)
08:45 AM Revision a31ff891 (git): * gc.c (GC_MALLOC_LIMIT): 8,000,000 -> 8 * 1,024 * 1,024.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:20 AM Revision 78a49728 (git): * gc.c (gc_before_sweep): cast to size_t to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:14 AM Revision 3c5529f6 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:12 AM Revision 752cc234 (git): * gc.c: add some fine-grained profiling codes to tuning marking phase.
If you enable RGENGC_PRINT_TICK to 1, then profiling results by RDTSC
(on x86/amd64 environment) are printed at last.
Thanks Yoshii-san.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:01 AM Revision f365cd2c (git): * gc.c: simplify threshold of GC caused by malloc_increase.
Now, malloc_limit is increased/decreased by mysterious logic.
This fix simplify malloc_limit increase/decrease logic such as:
if (malloc_increase > malloc_limit) /* so many malloc */
malloc_limit += malloc_limit * (GC_MALLOC_LIMIT_...
ko1 (Koichi Sasada)
06:24 AM Feature #8959 (Assigned): Allow top level prepend
Since `include` works on top level, it's reasonable to enable top level
`prepend` as well.
I've already added a patch (it was partially merged by nobu): https://github.com/ruby/ruby/pull/395
kyrylo (Kyrylo Silin)
02:18 AM Revision 1ccdddb7 (git): .gdbinit: insert a colon
* .gdbinit (rp): insert a colon between type "SYMBOL" and ID value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:53 AM Feature #8953: `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
2013/9/27 ko1 (Koichi Sasada) <redmine@ruby-lang.org>:
> Issue #8953 has been updated by ko1 (Koichi Sasada).

> And all of versions ignore the redefinition.
> I implemented 1.9 VM as this behaviour because I think it is spec.
...
akr (Akira Tanaka)
01:23 AM Feature #8953: `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
(2013/09/27 1:13), ko1 (Koichi Sasada) wrote:
> And all of versions ignore the redefinition.
> I implemented 1.9 VM as this behaviour because I think it is spec.
>
> Could you ask matz?

I have no objection about that.
Ho...
ko1 (Koichi Sasada)
01:13 AM Feature #8953: `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
I checked previous behavior.
versions/install-tags_v1_6_5_/bin/ruby
versions/install-tags_v1_6_6_/bin/ruby
versions/install-tags_v1_6_7_/bin/ruby
versions/install-tags_v1_6_8_/bin/ruby
versions/install-tags_v1_8_5_/bin/ruby
versi...
ko1 (Koichi Sasada)
12:59 AM Feature #8953 (Assigned): `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
nagachika (Tomoyuki Chikanaga)
01:07 AM Bug #8205 (Closed): Regexp.union behavior and Regexp.try_convert
This issue was solved with changeset r43061.
Alexander, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* re.c: [DOC] arguments of Regexp::union receive #to_regexp ...
zzak (zzak _)
01:02 AM Feature #7429: Provide options for core collections to customize behavior
Maybe combine it with https://bugs.ruby-lang.org/issues/8909
options = {klass:Hamster}
{ bug_number: 7429, status: maybe}.f(options)
node_option = {f:deep , size: 2}
[:add, [:left, :right]].f( f:node_option)
dsisnero (Dominic Sisneros)
01:01 AM Bug #8913: Unclear licensing terms on lib/gserver.rb
r42994 is backported to ruby_2_0_0 at r43060. nagachika (Tomoyuki Chikanaga)
12:56 AM Feature #8637: I18n documentation
Sutou-san has began implementation for this on rdoc tracker: https://github.com/rdoc/rdoc/pull/254 zzak (zzak _)
12:41 AM Bug #8936 (Closed): Improve explanation about passing more number of params to instance of Struct
This issue was solved with changeset r43058.
Prathamesh, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* struct.c: [DOC] grammar of ArgumentError in Struct.new [B...
zzak (zzak _)
12:39 AM Misc #8905: Add documentation to semantics of method default arguments
It's defined as left-to-right order, always. nobu (Nobuyoshi Nakada)
12:35 AM Bug #8952 (Feedback): [DOC] required keyword arguments
@nobu did you see #8905? zzak (zzak _)
12:25 AM Bug #8889 (Feedback): Nodoc large parts of RSS
I like RSS, I think we should provide api-level documentation for things like Feed and Channel and Entry. The entity types might not be as important though.
Would you agree? With no objection, I would like to reject this ticket and as...
zzak (zzak _)
12:19 AM Bug #8812: RSS: document more constants
This patch is good, thank you! zzak (zzak _)
12:19 AM Bug #8821: Add documentation for Time#w3cdtf
I would just say "this method", instead of "the <name> method".
Otherwise, its good. Thank you!
zzak (zzak _)

09/26/2013

11:54 PM Feature #8956 (Rejected): Allow hash members delimited by \n inside of {}
Currently, hashes require members to be delimited by commas (`,`), even inside curly braces. E.g.,
~~~ruby
some_hash = {
:foo => 'bar',
:bar => 'foo',
:baz => {
:qux => 'quux',
:corge => 'grault'
}
}
~~~
In...
adamdunson (Addie Drake)
11:49 PM Bug #8954 (Third Party's Issue): Execution crashed when querying twitter using the Twitter Gem
ruby_debug.gem issue. nobu (Nobuyoshi Nakada)
09:02 PM Bug #8954 (Third Party's Issue): Execution crashed when querying twitter using the Twitter Gem
Ruby 2.0 crashed when I was executing a script which hits the twitter search api for tweets containing certain keywords. I am on Mac OS X 10.8.5
Attaching the crash report and source code.
Just run the tweet_parser.rb file and you ...
akshaykhole (Akshay Khole)
11:33 PM Revision 59d48e55 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:33 PM Bug #8955 (Closed): LocalJumpError - no block given (yield) after implementation of class hierarchy method cache invalidation
Hi.
I use Ruby 2.1 on a Texas instruments C6678 DSP in a Linux environment based on uclinux and uClibc with NPTL/Pthread support. The DSP does not have an MMU.
After commit r42822/git commit 2f522b9cc6f3e184404040b12af4486520a73b26 the...
mfla (Morten Fla)
08:21 PM Feature #8839 (Assigned): Class and module should return the class or module that was opened
How useful is this proposal?
I think we should not change anything without consideration of use case.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:03 PM Feature #8839: Class and module should return the class or module that was opened
nobu: I don't understand what you mean by "evaluated in different timings". Could you please explain?
I think this proposal is a good idea. For example, this makes no sense:
~~~ruby
class A
def foo
end
end # => :foo
~~~
...
Anonymous
11:57 AM Feature #8839: Class and module should return the class or module that was opened
No, class and def are evaluated in different timings.
This proposal makes no sense.
nobu (Nobuyoshi Nakada)
06:43 AM Feature #8839: Class and module should return the class or module that was opened
+1 enebo (Thomas Enebo)
06:41 AM Feature #8839: Class and module should return the class or module that was opened
So...if there's no objections, can we get this into 2.1? I think with the new def return value change it really needs to happen. headius (Charles Nutter)
04:59 PM Feature #8953: `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
Please backport r43050, 43052 sorah (Sorah Fukumori)
04:58 PM Feature #8953 (Closed): `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
This issue was solved with changeset r43052.
Goro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* insns.def (opt_regexpmatch2): Check String#=~ hasn't overridden...
sorah (Sorah Fukumori)
04:52 PM Feature #8953 (Assigned): `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
Testing my patch on my machine for regexpmatch2 sorah (Sorah Fukumori)
04:48 PM Feature #8953: `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
Ah you are right. Thanks for pointing that out sorah. Anonymous
04:46 PM Feature #8953: `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
>The problem still exists for opt_regexpmatch1, right?
s/opt_regexpmatch1/opt_regexpmatch2/
sorah (Sorah Fukumori)
04:46 PM Feature #8953 (Open): `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
The problem still exists for opt_regexpmatch1, right? sorah (Sorah Fukumori)
04:39 PM Feature #8953 (Closed): `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
This issue was solved with changeset r43050.
Goro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* insns.def (opt_regexpmatch1): check Regexp#=~ is not defined be...
Anonymous
04:20 PM Feature #8953: `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
hm...
ruby -e'class Regexp; def =~(o); true; end; end; p /a/ =~ "b"' #=> nil
sorah (Sorah Fukumori)
04:05 PM Feature #8953 (Closed): `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal
The expression `a =~ b` does not call the =~ method in some cases.
I think it is a bug that results from optimizations.
See the following code for details:
Code that does not work as expected (shows nothing):
$ ruby -e 's = "fo...
gfx (Goro FUJI)
04:46 PM Revision 87791df3 (git): * lib/rubygems: Update to Rubygems 2.0.10. [ruby-core:57360]
[Backport #8950]
the patch is provided by drbrain (Eric Hodel).
this update contains a security fix for CVE-2013-4363.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:22 PM Revision dafc1f75 (git): merge revision(s) 42980,42981: [Backport #8927]
* parse.y (lambda): adjust position to the beginning of the block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:08 PM Revision b5ad2a59 (git): merge revision(s) 42930: [Backport #8898]
* lib/uri/generic.rb (URI::Generic.find_proxy): return nil if
http_proxy environment variable is empty string.
[ruby-core:57140] [Bug #8898]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43062 b2dd...
nagachika (Tomoyuki Chikanaga)
04:07 PM Revision dc308ee3 (git): * re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:00 PM Revision fe17a46e (git): merge revision(s) 42994: [Backport #8913]
* lib/gserver.rb: [DOC] correct gserver.rb license [Bug #8913]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:41 PM Revision b96a432e (git): * 2013-09-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:41 PM Revision ddb04eba (git): * struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936]
Patch by Prathamesh Sonpatki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:47 PM Feature #8948: Frozen regex
jwille, I agree with the use case, but it would be difficult to tell which regexes are intended to be the same, so I would not request that feature.
Probably, it makes sense to have all static regexes frozen, and have the `f` flag fre...
sawa (Tsuyoshi Sawada)
02:46 PM Bug #8680 (Closed): ruby crashes when built with AddressSanitizer
This issue was solved with changeset r43047.
Ruby, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
gc.c: disable AddressSanitizer
* gc.c (mark_locations_array): di...
nobu (Nobuyoshi Nakada)
02:12 PM Feature #8909: Expand "f" frozen suffix to literal arrays and hashes
I think there's a big opportunity here for immutable collection types... at least the sort that you know at the time you declared it is immutable.
I would hate to see a syntax like this that doesn't guarantee a deeply frozen data struct...
bascule (Tony Arcieri)
06:49 AM Feature #8909: Expand "f" frozen suffix to literal arrays and hashes
Any other thoughts on this? Any other reasons why it shouldn't be done?
There are other advantages to having literal frozen array and hash:
* Alternative representation of small hashes knowing they won't need to change. Good for sm...
headius (Charles Nutter)
01:13 PM Revision 8603fdcc (git): * ext/bigdecimal/bigdecimal.c: [DOC] several fixes by @chastell
This includes fixing the capitalization of Infinity, return value of
example "BigDecimal.new('NaN') == 0.0", and code style in example.
[Fixes GH-398] https://github.com/ruby/ruby/pull/398
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
zzak (zzak _)
01:09 PM Revision 327cd077 (git): * lib/observer.rb: [DOC] syntax improvement in example by @chastell
[Fixes GH-400] https://github.com/ruby/ruby/pull/400
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
01:04 PM Revision 017a975e (git): * ext/digest/digest.c: [DOC] typo in overview by @chastell
[Fixes GH-399] https://github.com/ruby/ruby/pull/399
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
01:01 PM Revision 12fdf4bc (git): * ext/openssl/ossl.c: [DOC] typo in example by @zoranzaric
[Fixes GH-401] https://github.com/ruby/ruby/pull/401
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
12:16 PM Revision e59f453e (git): * misc/ruby-electric.el (ruby-electric-delete-backward-char): Add
support for smartparen-mode.
* misc/ruby-electric.el (ruby-electric-cua-replace-region-maybe)
(ruby-electric-cua-delete-region-maybe): New functions that
combine `ruby-electric-cua-*-region` with
`ruby-electric-cua-*-region-p`, us...
Akinori MUSHA
10:41 AM Bug #8952 (Closed): [DOC] required keyword arguments
Shouldn't "required keyword arguments" be described in the doc, probably in syntax/methods.rdoc?
There is only "optional keyword arguments" now.
nobu (Nobuyoshi Nakada)
10:38 AM Feature #8796 (Closed): Use GMP to accelerate Bignum operations
Introduced on r42743. naruse (Yui NARUSE)
09:07 AM Feature #8951: Please add a hash-to-hash alternative of the map method to Hash
In my private library, I have 3 map-like methods defined on hash:
Hash#with_keys
Hash#with_values
Hash#modify
They work like this:
h = { a: 1, b: 2 }
h.with_keys do |k| k.to_s end #=> { "a"=>1, "b"=>2 }
h.with_values do |v| v.to_s end...
Anonymous
07:58 AM Revision c4b4e77c (git): * insns.def (opt_regexpmatch2): Check String#=~ hasn't overridden
before calling rb_reg_match().
* test/ruby/test_string.rb: Test for above.
* vm.c (vm_init_redefined_flag): Add BOP flag for String#=~
[ruby-core:57385] [Bug #8953]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43052 b2dd03c8-39d...
sorah (Sorah Fukumori)
07:50 AM Revision 26f7f7da (git): * misc/ruby-electric.el: Avoid use of the interactive function
`self-insert-command` which fires `post-self-insert-hook` and
`post-command-hook`, to make the ruby-electric commands work
nicely with those minor modes that make use of them to do
similar input assistance, such as electric-pair-mo...
Akinori MUSHA
07:39 AM Revision b18151cf (git): * insns.def (opt_regexpmatch1): check Regexp#=~ is not defined before
calling rb_reg_match()
* test/ruby/test_regexp.rb: add test
* vm.c (ruby_vm_redefined_flag): change type to short[]
* vm.c (vm_redefinition_check_flag): return REGEXP_REDEFINED_OP_FLAG if
klass == rb_cRegexp
* vm.c (vm_init_redefin...
Charlie Somerville
07:22 AM Revision 4190cddd (git): * gc.c (vm_xrealloc): use TRY_WITH_GC().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:06 AM Revision 165ebcb4 (git): Fix compilation on gcc 4.6
if __has_feature is not defined, it can't compile
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:46 AM Revision 2bf5be1d (git): gc.c: disable AddressSanitizer
* gc.c (mark_locations_array): disable AddressSanitizer. based on a
patch by halfie (Ruby Guy) at [ruby-core:57372].
[ruby-core:56155] [Bug #8680]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43047 b2dd03c8-39d4-4d8f-98ff-823f...
nobu (Nobuyoshi Nakada)
02:31 AM Revision f1e99541 (git): * 2013-09-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:31 AM Revision 89919f4e (git): gc.c: atomical add
* gc.c (gc_before_sweep, gc_after_sweep): add to increase2 atomically.
* gc.c (gc_marks): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom