Project

General

Profile

Activity

From 01/27/2016 to 02/02/2016

02/02/2016

11:28 PM Bug #11946: Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
I was able to reduce to a script that doesn't need any gems. I'm using Arch Linux. bjmllr (Ben Miller)
11:25 PM Revision e14c9f10 (git): Fix typo on OpenSSL::PKey doc [ci skip]
* ext/openssl/ossl_pkey.c (Init_ossl_pkey): [DOC] Fix typo
"encrypted" to "decrypted". [Fix GH-1235]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:21 PM Revision a43f2cba (git): Fix Ripper.lex error in dedenting squiggly heredoc
* ext/ripper/lib/ripper/lexer.rb (on_heredoc_dedent): Fix
Ripper.lex error in dedenting squiggly heredoc. heredoc tree is
also an array of Elem in the outer tree. [Fix GH-1234]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@537...
nobu (Nobuyoshi Nakada)
09:36 PM Feature #12047 (Closed): Set#=== (aliased to include?)
Add `Set#===` as an alias for `Set#include?` so that sets may be used in `case` statements:
~~~
require 'set'
GOOD_COMMANDS = Set[ :foo, :bar, :jim ]
BAD_COMMANDS = Set[ :baz, :bax, :jam ]
ODD_COMMANDS = Set[ :quux, :xyzzy ]
...
Phrogz (Gavin Kistner)
06:51 PM Feature #12034: RegExp does not respect file encoding directive
nobu@ruby-lang.org wrote:
> That encoding has never changed since 1.9.
> It seems because `File.readlink` and `File.realpath` return locale strings.

Ugh, that isn't right to me since filesystem names (on *nix) can have
any byte be...
normalperson (Eric Wong)
10:14 AM Feature #12034: RegExp does not respect file encoding directive
This is considered as a spec now.
Anyway the change is very tiny.
```c
diff --git a/re.c b/re.c
index 3f7d227..3619711 100644
--- a/re.c
+++ b/re.c
@@ -2558,9 +2558,6 @@ rb_reg_initialize(VALUE obj, const char *s, long len, rb...
naruse (Yui NARUSE)
06:50 PM Bug #11930: Segmentation Fault in gc_mark_ptr in 2.3.0p0
Nobuyoshi Nakada wrote:
> Seems a GC problem with `Proc`.
> ...
Do you still need feedback?
b264 (Brian Giaraffa)
05:38 PM Revision 922d359e (git): * 2016-02-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:38 PM Revision 7aefa7b8 (git): * re.c (rb_reg_prepare_enc): use already compiled US-ASCII regexp
if given string is ASCII only.
121.2s to 113.9s on my x86_64-freebsd10.2 Intel Core i5 661
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:56 PM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
I agree, it seems the best place to put this information is in the SyntaxError exception. If we need to keep compatibility by keeping the output to $stderr, I'm OK with that but I want to be able to rescue the SyntaxError and get the "... jrafanie (Joe Rafaniello)
12:06 AM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
If the character position can be achieved in addition to the line number, then the "hint" can be reconstructed. (However, I think the syntax error information being bound to the raised error rather than being output to `$stderr` would be... sawa (Tsuyoshi Sawada)
02:30 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Benoit, you are absolutely right about the error message. I was a bad person and didn't really check after copying & pasting...
Regarding the method name, `#private_call?` sounds better to me than `private_method_callable?`.
Nakamura...
yuki24 (Yuki Nishijima)
02:17 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Does it satisfy your use case that raising another exception when private method call with `self.` ?
```ruby
begin
self.a_private_method
rescue NoMethodError => e
e.is_a? PrivateMethodCallError #=> true
end
begin
self.m...
usa (Usaku NAKAMURA)
02:09 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
The first error message is actually
"undefined method `method_that_does_not_exist' for main:Object".
But that does not help since anyway the error message below would be the same since it has "()" (and the same problem if it would have...
Eregon (Benoit Daloze)
01:57 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
I think I should've been more specific and also should've mentioned that in the example above, the method you are trying to call doesn't actually exist.
```ruby
begin
self.method_that_does_not_exist
rescue NoMethodError => e
e...
yuki24 (Yuki Nishijima)
01:14 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
So this would essentially be a way to tell if the call was a "fcall", without needing to parse the exception message?
In other terms, telling if this NoMethodError is a "private method called" error.
Maybe exc.private_method_error? or ...
Eregon (Benoit Daloze)
01:02 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Nakada-san, that's exactly what I want. A code example would be something like this:
```ruby
begin
self.do_something
rescue NoMethodError => no_method_error
no_method_error.private_method_callable? # => false ...
yuki24 (Yuki Nishijima)
01:54 AM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
I think he wants to distinguish `self.foo` and `foo()`.
Only public methods can be candidates in the former case, but also private methods can be in the latter case.
nobu (Nobuyoshi Nakada)
01:39 PM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
Speaking of `NoMethodError`, I think the former (`NoMethodError.new(msg, name [, args [,receiver]])`) makes more sense to me since the latter may break existing apps. yuki24 (Yuki Nishijima)
01:29 PM Feature #12042: A better interface that returns a list of local variables available where the exception is raised
As you may know, in Ruby 2.2 and older, `#local_variables` returns a list of local variables available in the scope where the method is called, or raises an NameError if it's called from outside of the class:
```ruby
class NameError
...
yuki24 (Yuki Nishijima)
01:01 PM Revision 59e8cd3e (git): follow r53691
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:02 AM Revision 10eef96d (git): Skip SHA from test_digest_constants for LibreSSL 2.3
The first one of ruby/openssl#40
https://github.com/ruby/openssl/issues/40#issuecomment-159839338
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:08 AM Revision df64c27e (git): downloader.rb: https setter
* tool/downloader.rb (Downloader.https): define class variable
setter for 1.8, class_variable_set was private.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:43 AM Revision eee61631 (git): win32.c: reuse fullpath buffer
* win32/win32.c (open_dir_handle): reuse the fullpath buffer
instead of allocating another buffer for copy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:39 AM Revision 21daa56b (git): * re.c: Introduce RREGEXP_PTR.
patch by dbussink.
partially merge https://github.com/ruby/ruby/pull/497
* include/ruby/ruby.h: ditto.
* gc.c: ditto.
* ext/strscan/strscan.c: ditto.
* parse.y: ditto.
* string.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
naruse (Yui NARUSE)
04:39 AM Revision 73733206 (git): enc: workdir timestamps
* enc/depend: make timestamps for each work directory, instead of
making for each compilation and link.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:24 AM Feature #12046 (Rejected): Allow attr_reader :foo? to define instance method foo? for accessing @foo
Now we should write an accessor method of a boolean instance variable like
```ruby
def foo?
@foo
end
```
But I want to write it by using attr_reader like:
```ruby
attr_reader :foo?
```
mrkn (Kenta Murata)
03:53 AM Revision 120c23ed (git): ChangeLog: reword
* ChangeLog: reword "affect" as it is a verb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:50 AM Bug #12037: did_you_mean reporting impossible suggestion
Yuki Nishijima wrote:
> Martin, your idea sounds great to me, but I think it sounds more like a feature. Could you create a new issue so we can hear from other committers?
Yuki, I can do that, but do we really need feature requests...
duerst (Martin Dürst)
02:27 AM Bug #9817 (Feedback): The extconf.rb for OpenSSL assumes MingW
First of all, from where did your "openssl" libraries come?
`ws2_32.lib` should be linked by the default, and I can't get why openssl needs GDI.
nobu (Nobuyoshi Nakada)
12:11 AM Revision 4e8b8c10 (git): * lib/rubygems/specification.rb: `coding` is affect only first line except
shebang.
* lib/rubygems/package.rb, lib/rubygems/package/*: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

02/01/2016

11:25 PM Bug #12045 (Closed): Add documentation lib/debug.rb
I am currently working on wrapping up documentation for lib/debug.rb. Right now there are quite a few undocumented methods and params.
dpulliam (Dylan Pulliam)
10:52 PM Bug #12044 (Closed): net/ftp.rb: add NullSocket#closed? to fix closing not yet opened connection
Hi there,
I've opened a PR for this issue on GitHub: https://github.com/ruby/ruby/pull/1232
An instance of `NullSocket` is stored in a `@sock` variable of a new `Net::FTP`, it also has a `#close` method (that obviously does nothing...
antstorm (Anthony Dmitriyev)
10:01 PM Bug #11969: [PATCH] IRB: Final newline missing in truncated backtraces
Ping... Any update on this? javawizard (Alex Boyd)
09:28 PM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
Hi @nobu, thanks for working on this feature in https://github.com/ruby/ruby/compare/trunk...nobu:feature/11868-SyntaxError-location.
For this example:
~~~~
RubyVM::InstructionSequence.new("puts 'hi'\n puts 'hi2'\n\nthis.is -> no...
jrafanie (Joe Rafaniello)
03:06 PM Revision a8bf0f71 (git): * 2016-02-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision 0f19e79b (git): win32.c: w32_wopendir
* win32/win32.c (w32_wopendir): remove filename parameter, and
check the drive letter in wpath instead. rename from
opendir_internal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:02 PM Bug #9817: The extconf.rb for OpenSSL assumes MingW
Looking at the source code, File::ALT_SEPARATOR only appears to be defined on Windows. It's set in file.c if DOSISH is defined, and the DOSISH macro is set in defines.h if _WIN32 is defined.
In any case, it's definitely not limited to...
djberg96 (Daniel Berger)
01:16 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Is respond_to?(no_method_error.name, false) not enough for this purpose? Eregon (Benoit Daloze)
12:22 PM Feature #12043 (Closed): Add a method to NoMethodError that tells if private methods are callable at the time of
I've briefly talked about this to Sasada-san, but also wanted to hear from other committers. I would like to add a method to `NoMethodError` that tells whether or not private methods are callable from the line where the exception is rais... yuki24 (Yuki Nishijima)
12:43 PM Revision a82fb030 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:43 PM Revision 7a06afa9 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:43 PM Revision a21d403f (git): * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2.
It supports to enable frozen string literal and add `--norc` option for
disable to `.gemrc` configuration.
See 2.5.2 release notes for other fixes and enhancements.
https://github.com/rubygems/rubygems/blob/a8aa3bac723f045c52471c7b...
hsbt (Hiroshi SHIBATA)
12:30 PM Feature #12042 (Feedback): A better interface that returns a list of local variables available where the exception is raised
I'm uncertain about what you mean by "change".
Could you elaborate the behavior what you expect?
nobu (Nobuyoshi Nakada)
12:16 PM Feature #12042 (Feedback): A better interface that returns a list of local variables available where the exception is raised
We've changed the behavior of `NameError#local_variables` as discussed on #11777, but I'm not actually satisfied by the change. This change has made it impossible to get a list of local variables available within a NameError scope. It wo... yuki24 (Yuki Nishijima)
12:25 PM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
What's about `NoMethodError`?
Currently, it is
```ruby
NoMethodError.new(msg, name [, args]) #-> no_method_error
```
If `NameError#initialize` has third argument, where will it be placed?
The last?
```ruby
NoMethodError....
nobu (Nobuyoshi Nakada)
11:42 AM Feature #12041 (Open): Change the initializer of NameError to take a receiver as the third argument
I would like to change `NameError#initialize` to take a receiver object as the third argument. An example would be like this:
```ruby
receiver_object = Object.new
name_error = NameError.new("Error message", "name", receiver_obj...
yuki24 (Yuki Nishijima)
12:08 PM Revision 94cfa289 (git): win32.c: volume_prefix_len
* win32/win32.c (rb_w32_read_reparse_point): name the prefix
length to be dropped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:40 AM Bug #12037: did_you_mean reporting impossible suggestion
fixed in [yuki24/did_you_mean@1c52c88](https://github.com/yuki24/did_you_mean/commit/1c52c887c62b0921e799f94bcc4a846dc7cbc057). Thank you Chris for reporting this issue!
Martin, your idea sounds great to me, but I think it sounds more...
yuki24 (Yuki Nishijima)
03:02 AM Bug #12037: did_you_mean reporting impossible suggestion
> Issue #12037 has been updated by Nobuyoshi Nakada.
>
> Status changed from Open to Third Party's Issue
> Assignee set to Yuki Nishijima
>
> Probably the same name as the erred should be removed from candidates first.

Even bett...
duerst (Martin Dürst)
09:47 AM Feature #11678 (Closed): ability to comment out methods in a multi-line method chain without needing a new line escape
naruse (Yui NARUSE)
08:43 AM Feature #11678: ability to comment out methods in a multi-line method chain without needing a new line escape
It is a duplicate of https://bugs.ruby-lang.org/issues/7639. sawa (Tsuyoshi Sawada)
08:14 AM Revision 19162d26 (git): win32.c: suffix should be alnum
* win32/win32.c (fileattr_to_unixmode): built-in executable
suffixes are alpha-numeric only, no needs to scan whole path,
especially path separators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53705 b2dd03c8-39d4-4d8f-98ff-82...
nobu (Nobuyoshi Nakada)
08:13 AM Bug #12040 (Assigned): [Win32] File.stat fails on a mounted volume
On Windows, `File.stat` fails on the volume mount point directory whose name contains `"..."`.
Where `%vol%` is the volume ID of a new VHD volume,
~~~
C:> set vol
\\?\Volume{3C458AE9-C8B1-11E5-A233-0800271D089F}\
C:> mkdir x...y...
nobu (Nobuyoshi Nakada)
06:25 AM Revision 01cfc8b5 (git): * 2016-02-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:25 AM Revision 1664a4ca (git): win32.c: move counting length
* win32/win32.c (opendir_internal): defer counting the length just
before the loop where it is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:59 AM Misc #12004: Code of Conduct
Hi, for what it's worth at this point, I strongly support both adopting a code of conduct, and adopting the Contributor Covenant. Thanks everyone for your work and leadership on a difficult topic. kevinburke (Kevin Burke)
03:11 AM Feature #12039: Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
This is probably a useful method to be able to rely on universally, even if `Fixnum` and `Bignum` just return `false`. seantheprogrammer (Sean Griffin)
01:22 AM Feature #12039: Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
It might also make sense to consider if other "predicates" make sense, e.g. `nan?` They should be declared on Numeric with a default logical implementation where possible. ioquatix (Samuel Williams)
01:19 AM Feature #12039 (Closed): Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
We have an issue where it is not easy to ask if a number is +ve or -ve infinity. https://github.com/rails/arel/issues/411
Both Float and BigDecimal do respond to infinite? but Integer derivatives don't. It sort of makes sense, since w...
ioquatix (Samuel Williams)
02:02 AM Feature #12024: Add String.buffer, for creating strings with large capacities
On 2016/01/30 21:17, mame@ruby-lang.org wrote:
> I have no strong objection, but still I have a question. I guess that creating a large string by concatenating many short strings is natural use case in Ruby. However, are there so mu...
duerst (Martin Dürst)

01/31/2016

09:43 AM Revision 28a7199a (git): r53688 test
* test/ruby/test_file_exhaustive.rb (test_realpath_mount_point):
test for r53688.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:52 AM Misc #12004: Code of Conduct
Just some clarification of context on this for the record. Again, my goal is not to debate whether we need a CoC but to make sure that perspectives are on the table.
Coraline Ada Ehmke wrote:
> It should be noted that the leaders of...
einhverfr (Chris Travers)
05:43 AM Bug #11993: foo(hash) is handled like foo(**hash)
See #11967 for Marc-Andre's explanation. avit (Andrew Vit)
03:34 AM Revision c2e998d6 (git): additional math operations
* test/drb/ut_large.rb (multiply, avg, median): add additional
math operations to DRbLarge. [Fix GH-1086]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:20 AM Revision 8b9cd1db (git): test for File#lstat.
* test/ruby/test_file_exhaustive.rb (test_lstat): Add lacking test
for File#lstat. [Fix GH-1231]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:16 AM Revision 92862661 (git): standard_library.rdoc: fix typo [ci skip]
* doc/standard_library.rdoc: fix typo [Fix GH-1230]
Spelling mistakes -
outputing > outputting
publich > publish
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:11 AM Revision 610e39e9 (git): io.c: rb_io_open_generic
* io.c (rb_io_open_generic): split from rb_io_open without
argument conversions.
* io.c (rb_io_s_binread): get rid of unnecessary object creation
and conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53698 b2dd03c8-39d4...
nobu (Nobuyoshi Nakada)
02:58 AM Revision c949aab5 (git): * 2016-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:58 AM Revision e7cf2031 (git): io.c: constify
* io.c (rb_file_open_generic, pipe_open, pipe_open_s): constify
convconfig parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

01/30/2016

10:51 PM Misc #12004: Code of Conduct
> And also, can we get the troll removed, please? Whether or not jewish Illuminati
> rule the world is irrelevant to the topic.

Done.

The reason is not being troll, the reason is ethnic insult. Trolling
is obviously wrong behavi...
kosaki (Motohiro KOSAKI)
10:03 PM Misc #12004: Code of Conduct
Since I posted that version 1.4 has been merged into master. You can find the final version here:
http://contributor-covenant.org/version/1/4/
CoralineAda (Coraline Ada Ehmke)
09:47 PM Misc #12004: Code of Conduct
I must say I'm actually positively surprised by Contributor Covenenant 1.4.
I'm no fan of Coraline or SJWs, but I think she did a really bang up job with
her version 1.4. This feels and reads like an even-handed document centred
on de...
jaen (Tomek Mańko)
08:25 PM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> It should be noted that the leaders of the Postgres project rejected the language in the proposed CoC and have decided to consult with professionals on developing an appropriate code of conduct for their comm...
jeremyevans0 (Jeremy Evans)
08:15 PM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> It should be noted that the leaders of the Postgres project rejected the language in the proposed CoC
I cannot see that from the email you referred to. On the contrary the first item of the list mentions ...
rklemme (Robert Klemme)
07:56 PM Misc #12004: Code of Conduct
It should be noted that the leaders of the Postgres project rejected the language in the proposed CoC and have decided to consult with professionals on developing an appropriate code of conduct for their community. In light of that I don... CoralineAda (Coraline Ada Ehmke)
07:12 PM Misc #12004: Code of Conduct
Shlomo Shekelstein wrote:
> ...
Please stop: this is unprofessional. Everyone has made their points and it is done here. If you wish to continue, suggest another venue for discussion.
avit (Andrew Vit)
11:54 AM Misc #12004: Code of Conduct
(This message has been deleted) ShlomoShekelstein (Shlomo Shekelstein)
11:31 AM Misc #12004: Code of Conduct
(This message has been deleted)
ShlomoShekelstein (Shlomo Shekelstein)
01:51 AM Misc #12004: Code of Conduct
On 01/30/2016 05:39 AM, Matthew Kerwin wrote:
> Please take the rest of this discussion off the tracker and mailing list. Matz said it was enough days ago.

It is rather clear to me that these people still posting to this thread are ...
shyouhei (Shyouhei Urabe)
08:20 PM Bug #8316: Can't pass hash to first positional argument; hash interpreted as keyword arguments
Andrew Schwartz wrote:
> This is unfortunately still an issue with default values in positional arguments
See #11967 for the explanation.
avit (Andrew Vit)
06:03 PM Bug #12030: Crash calling Hash#dig when hash contains ActiveRecord objects
r53695 should be backported into ruby_2_3 branch.
rb_check_funcall_with_hook() exists in ruby_2_0_0, ruby_2_1, ruby_2_2 branches and they have same potential bug, but rb_check_funcall_with_hook() is never called in these branches.
I fi...
nagachika (Tomoyuki Chikanaga)
06:18 AM Bug #12030 (Closed): Crash calling Hash#dig when hash contains ActiveRecord objects
Applied in changeset r53695.
----------
vm_eval.c: fix hook call
* vm_eval.c (rb_check_funcall_with_hook): also should call the
given hook before returning Qundef when overridden respond_to?
method returned false. [ruby-core:73556...
nobu (Nobuyoshi Nakada)
05:28 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Template engines would be the main use case for this. Note that you don't need to know the exact length of the string. If you know your average generated string is 8k, you can use a 8k buffer by default. If the string generated is onl... jeremyevans0 (Jeremy Evans)
12:17 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Thank you for your benchmark. I tried it and confirmed the speed up in Linux. Now I have no strong objection against your proposal.
realloc takes O(1) if the size is much larger than page size (4096B in Linux), but the benchmark sta...
mame (Yusuke Endoh)
04:29 PM Bug #11869: random hang/SegFault when accessing a missing constant in irb
I built our whole system (ruby, libedit, ncurses, etc) without any optimizations at all and got a build that passed our specs.
I tried dropping the optimization down to -O2 from the -O3 we had been using, along with bumping libedit fr...
lamont (Lamont Granquist)
11:58 AM Feature #12038 (Third Party's Issue): Please add documentation to open-uri showing how to obtain an attachment
naruse (Yui NARUSE)
10:47 AM Feature #12038: Please add documentation to open-uri showing how to obtain an attachment
al2o3-cr on IRC showed the solution:
File.write('foo.txt', open("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=189458859&rettype=fasta&retmode=text").read)
So it was indeed quite simple.
Maybe some docum...
shevegen (Robert A. Heiler)
10:45 AM Feature #12038 (Third Party's Issue): Please add documentation to open-uri showing how to obtain an attachment
The current documentation for open-uri is at:
ruby-doc.org/stdlib-2.3.0/libdoc/open-uri/rdoc/OpenURI.html
I am trying to download:
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=189458859&rettype=fast...
shevegen (Robert A. Heiler)
07:01 AM Feature #11917: Add Range#length as an alias for size
Attached patch for consideration. I made the aliases the same as Array. avit (Andrew Vit)
06:24 AM Bug #11915: File.read reading string starting with | executes it.
People should (hopefully) always read files with an absolute path prefix, but something like this could be surprising:
~~~
userinput = "|env"
Dir.chdir("/app/public/downloads") do
puts File.read(userinput)
end
~~~
(Yes, it...
avit (Andrew Vit)
06:19 AM Revision 6ee8ec70 (git): vm_eval.c: fix hook call
* vm_eval.c (rb_check_funcall_with_hook): also should call the
given hook before returning Qundef when overridden respond_to?
method returned false. [ruby-core:73556] [Bug #12030]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
nobu (Nobuyoshi Nakada)
04:08 AM Feature #11882: Map or NamedMap
Robert A. Heiler wrote:
> I concur with Hampton Catlin for the most part (save for the
> ...
"Dict" is another possible name.
How would this proposal handle other key types? Should `obj[1] = 'a'` convert using `to_s` or raise an error?
avit (Andrew Vit)
03:13 AM Bug #12037 (Third Party's Issue): did_you_mean reporting impossible suggestion
Probably the same name as the erred should be removed from candidates first. nobu (Nobuyoshi Nakada)
02:57 AM Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Andrew,
I don't think `dig!` is a good name, because `!` usually denotes dangerous version of a method in Ruby naming convention.
Colin,
Thank you for the investigation. Your survey means most code does not consider exceptional ...
matz (Yukihiro Matsumoto)
02:38 AM Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Yukihiro Matsumoto wrote:
> If #dig returns nil instead of exception, as you want, we cannot distinguish case 2 and case 3.
In that case, how about `dig` vs. `dig!` ?
avit (Andrew Vit)
02:49 AM Feature #12034: RegExp does not respect file encoding directive
That encoding has never changed since 1.9.
It seems because `File.readlink` and `File.realpath` return locale strings.
nobu (Nobuyoshi Nakada)
02:04 AM Feature #11848: New #to_b method for String, Symbol, Numeric, NilClass, TrueClass and FalseClass.
I've had to do this in a few places over the years myself:
~~~
TRUTHY_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE', 'y', 'Y', 'yes', 'YES']
FALSY_VALUES = [false, 0, '0', 'f', 'F', 'false', 'FALSE', 'n', 'N', 'no', 'NO']
~~~
...
avit (Andrew Vit)
01:49 AM Revision 68241c2e (git): common.mk: update-bundled_gems
* common.mk (update-bundled_gems): to update version numbers in
gems/bundled_gems file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:08 AM Revision 807b9187 (git): update bundled gems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

01/29/2016

11:56 PM Bug #12037 (Third Party's Issue): did_you_mean reporting impossible suggestion
The did_you_mean feature in Ruby 2.3.0 reports an impossible suggestion when you define whatever is being called in the current scope after it is being called:
~~~
irb(main):001:0> def foo
irb(main):002:1> bar
irb(main):003:1> bar ...
chrisarcand (Chris Arcand)
09:30 PM Bug #12036 (Closed): Enumerator's automatic rewind behavior
When enumerating an enumerator, the enumerator automatically rewinds when #next raises an error. The concern here is that someone may need to handle that error and continue processing the rest of the enumerator.
12:22 < Ox0dea> I thin...
slash_nick (Ryan Hosford)
06:59 PM Misc #12004: Code of Conduct
Lisa Beld wrote:
> I would recommend the Contributor Covenant. People complaining that it includes harassment in public spaces are most likely just guilty of doing so. Just because the harassment occurs outside the scope of the project ...
avit (Andrew Vit)
08:36 AM Misc #12004: Code of Conduct
Hi everyone;
First, in scope I recognize the discussion as to whether to have a code of conduct is over. Ruby has done well so far and I trust that Matz will act with wisdom and inclusion on this issue, and not exclude other cultura...
einhverfr (Chris Travers)
06:37 AM Misc #12004: Code of Conduct
First off, thank you to mods for re-opening account registration. I would like to jump in and comment on this, since I was not able to before.
Coraline Ada Ehmke wrote:
> It's not about my values, it's about our shared values. I'm en...
angularjays (Jay S)
03:11 AM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
For over 5 years now, I've been a Ruby developer. This discussion has to be on of the most disruptive topics I have ever read from the Ruby Community. In all of the other email threa...
Anonymous
02:10 AM Misc #12004: Code of Conduct
I've noticed new accounts can register again, so I guess I'll add my two cents.
I understand the need for CoCs - the Internet is a place where no matter how
much you wish, you can't expect all people to act nice. It is quite unfortun...
jaen (Tomek Mańko)
06:01 PM Bug #12035 (Rejected): scanf suspicious results.
The code: 'a b c'.scanf('%[a] %[b] %[c]')
yields the result: ["a"] and not ["a","b","c"] as expected.
So far it seems that when sets of characters are used, only
the first one in the parse specification string actually returns
...
PeterCamilleri (Peter Camilleri)
04:53 PM Bug #11869: random hang/SegFault when accessing a missing constant in irb
I'm seeing this on debian 7, rhel 6, and ubuntu 14.04 at least (but running binaries compiled on debian 6, rhel 5, and ubuntu 10.04, respectively). The chef rspec test suite triggers this:
git clone https://github.com/chef/chef
cd c...
lamont (Lamont Granquist)
04:45 PM Bug #12033: WSASocket can't work with Ruby extensions.
Okay. I see.
What you're telling me is that you're basically overriding at link time the list of posix-looking functions, to hijack them into "real" posix versions. Now the problem is, if I am trying to write a Ruby wrapper for a stat...
nicolasnoble (Nicolas Noble)
11:12 AM Bug #12033: WSASocket can't work with Ruby extensions.
First, You don't have to care about initializing/cleanup WinSock.
Ruby does them.
To keep source level compatibility with Unix-like platforms,
Ruby makes some hack about Windows' socket.
The return value of Unix's `socket` is a fil...
usa (Usaku NAKAMURA)
10:56 AM Bug #12033: WSASocket can't work with Ruby extensions.
I forgot to mention that I tried this under windows 10 and Windows 7, with the same result on both os. nicolasnoble (Nicolas Noble)
10:39 AM Bug #12033 (Closed): WSASocket can't work with Ruby extensions.
Basically, when creating a gem with C code that tries to do a WSASocket() call, the socket will end up being non-viable. I have tried this using the native DevKit compiler, rake-compiler-dock, ruby 2.2, 2.1, 32 and 64 bits, to no avail. ... nicolasnoble (Nicolas Noble)
03:52 PM Feature #12034 (Open): RegExp does not respect file encoding directive
~~~
$ cat regexp-encoding.rb
# -*- encoding: binary -*-
puts ''.encoding
puts //.encoding
$ ruby regexp-encoding.rb
ASCII-8BIT
US-ASCII
~~~
The RegExp should have ASCII-8BIT encoding IMO.
Actually there is somethin...
vo.x (Vit Ondruch)
03:21 PM Revision 562b14cb (git): * 2016-01-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:21 PM Revision 563706fa (git): suppress warning: assigned but unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:16 PM Bug #12030: Crash calling Hash#dig when hash contains ActiveRecord objects
Hi, I was able to reproduce it on a bit minified example. Here it is:
~~~
class Foo
def self.respond_to?(*args)
super
end
end
{ foo: Foo }.dig(:foo, :foo)
~~~
akhramov (Artem Khramov)
09:32 AM Revision 1e226382 (git): r53689 test
* test/ruby/test_file_exhaustive.rb (test_readlink_junction): test
for r53689.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:41 AM Revision ec943ac6 (git): win32/file.c: drop garbage
* win32/file.c (rb_readlink): drop garbage after the substitute
name, as rb_w32_read_reparse_point returns the expected buffer
size but "\??\" prefix is dropped from the result.
* win32/win32.c (w32_readlink): ditto, including NUL-te...
nobu (Nobuyoshi Nakada)
08:13 AM Revision 47f6196c (git): * win32/win32.c (fileattr_to_unixmode, rb_w32_reparse_symlink_p): volume
mount point should be treated as directory, not symlink.
[ruby-core:72483] [Bug #11874]
* win32/win32.c (rb_w32_read_reparse_point): check the reparse point is
a volume mount point or not.
* win32/file.c (rb_readlink): follow above...
U.Nakamura
08:12 AM Bug #11874 (Closed): File.realpath fail on volume mount point directory
Applied in changeset r53688.
----------
* win32/win32.c (fileattr_to_unixmode, rb_w32_reparse_symlink_p): volume
mount point should be treated as directory, not symlink.
[ruby-core:72483] [Bug #11874]
* win32/win32.c (rb_w32_read_r...
usa (Usaku NAKAMURA)
08:01 AM Revision c0b13e29 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:18 AM Revision 93eb95f0 (git): Rename parameter name
* enum.c (enum_take_while, enum_drop_while): rename block
parameter to obj, since they are generic objects. [Fix GH-1226]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:16 AM Revision 4f8245b7 (git): erb.rb: fronzen-string-literal in comment [Fix GH-1229]
* lib/erb.rb (ERB::Compiler#detect_magic_comment): allow
fronzen-string-literal in comment as well as encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:14 AM Revision 708a982c (git): erb.rb: duplicated magic comments [Fix GH-1229]
* lib/erb.rb (ERB#def_method): insert def line just before the
first non-comment and non-empty line, not to leave duplicated
and stale magic comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53684 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
03:53 AM Feature #12032 (Closed): Matrix.rb ruby documentation
Added documentation for three methods within matrix.rb file: elements_to_f, elements_to_i, elements_to_r Oneill38 (Megan O'Neill)
03:18 AM Revision f54b960d (git): test_erb.rb: improve assertions
* test/erb/test_erb.rb: improve failure messages with
assert_respond_to and assert_not_respond_to.
* test/erb/test_erb.rb: use assert_raise instead of assert(false).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53683 b2dd03c8-39...
nobu (Nobuyoshi Nakada)
02:14 AM Revision c55ad90a (git): erb.rb: frozen-string-literal safe
* lib/erb.rb (ERB#set_eoutvar): explicitly make mutable string as
a buffer to make ERB work with --enable-frozen-string-literal.
[ruby-core:73561] [Bug #12031]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53682 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
02:13 AM Bug #12031 (Closed): Make ERB work with --enable-frozen-string-literal
Applied in changeset r53682.
----------
erb.rb: frozen-string-literal safe
* lib/erb.rb (ERB#set_eoutvar): explicitly make mutable string as
a buffer to make ERB work with --enable-frozen-string-literal.
[ruby-core:73561] [Bug #12031]
nobu (Nobuyoshi Nakada)
02:13 AM Revision 1c3a3f47 (git): test_erb.rb: escape
* test/erb/test_erb.rb (test_token_extension): escape % in
dedented heredoc for editors which do not support this syntax
yet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:46 AM Revision cb50da1d (git): * 2016-01-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:46 AM Revision 809d3770 (git): * lib/net/http/header.rb: Warn nil variable on HTTP Header.
It caused to NoMethodError. [fix GH-952][fix GH-641] Patch by @teosz
* test/net/http/test_httpheader.rb: Added test for nil HTTP Header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

01/28/2016

10:14 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
Thank you Matz for letting us know.
Something I'd like people to keep in mind is that a majority of people will contribute to projects without first reading any conduct guidelines...
danielpclark (Daniel P. Clark)
07:38 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
What about this one https://github.com/domgetter/NCoC/blob/master/CODE_OF_CONDUCT.md
Also, if any of you are not sure what's going on and who are all these nice people, please rea...
iced (Andrew Kirilenko)
07:11 PM Misc #12004: Code of Conduct
Lisa Beld wrote:
> I would recommend the Contributor Covenant. People complaining that it includes harassment in public spaces are most likely just guilty of doing so.
Please do not jump to conclusions! This is an assumption which...
rklemme (Robert Klemme)
05:30 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
I would recommend the Contributor Covenant. People complaining that it includes harassment in public spaces are most likely just guilty of doing so. Just because the harassment occur...
lisa-beld (Lisa Beld)
01:30 AM Misc #12004: Code of Conduct
I would just like to add that I think CoC version 1.4.0 is a good improvement: it better defines the "scope" of what it means to be representing the project, and what circumstances one is liable to be under the CoC.
If we do decide on...
avit (Andrew Vit)
09:51 PM Feature #7314: Convert Proc to Lambda doesn't work in MRI
Use case: a stored block gets called with a "target" as first parameter, plus optional arguments. If the target object is an array, then the behaviour is unpredictable:
~~~ruby
lm = lambda { |target, *options| puts target.inspect, op...
avit (Andrew Vit)
09:41 PM Bug #12031 (Closed): Make ERB work with --enable-frozen-string-literal
ERB currently does not work with --enable-frozen-string-literal:
~~~
$ echo "a" | RUBYOPT=--enable-frozen-string-literal erb
-:1:in `concat': can't modify frozen String (RuntimeError)
from -:1:in `<main>'
from /usr...
jeremyevans0 (Jeremy Evans)
08:11 PM Bug #11962: Ruby 2.3.0 causing compile failure on extensions using a C++ compiler
BTW this causes issues compiling SWIG:
https://github.com/swig/swig/issues/593
vo.x (Vit Ondruch)
06:21 PM Bug #12030 (Closed): Crash calling Hash#dig when hash contains ActiveRecord objects
This code results in a stack consistency error:
~~~
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
...
sbleon (Leon Miller-Out)
04:14 PM Bug #12029 (Rejected): Not all elements are yielded when count is given a block
nobu (Nobuyoshi Nakada)
12:44 PM Bug #12029: Not all elements are yielded when count is given a block
Hans Mackowiak wrote:
> you need splash:
> ...
hmmm, okay. I think I misunderstood how some Enumerable methods work. Thanks.
How do I close this issue by the way?
jsyeo (Jason Yeo)
11:06 AM Bug #12029: Not all elements are yielded when count is given a block
you need splash:
```ruby
to_enum(:foo).count { |*e| e == [1, 2] } #=> 1
```
Hanmac (Hans Mackowiak)
10:19 AM Bug #12029 (Rejected): Not all elements are yielded when count is given a block
When count is called on an enumerable that yields multiple elements, not all elements are yielded to the block.
~~~ruby
def foo
yield 1, 2
end
to_enum(:foo).count { |e| e == [1, 2] }
# Returns: 0
# Expected: 1
~~~
It app...
jsyeo (Jason Yeo)
04:13 PM Bug #12028 (Feedback): Crash ruby
How to reproduce? nobu (Nobuyoshi Nakada)
09:43 AM Bug #12028 (Closed): Crash ruby
(snip segv messages) russian_max (Max Erkin)
08:32 AM Revision 0897a6df (git): * 2016-01-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:32 AM Revision 173e287f (git): socket.c: unlimited size hostname
* ext/socket/socket.c (sock_gethostname): support unlimited size
hostname.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:20 AM Feature #10658: ThreadGroup local variables
Lin Jen-Shin wrote:
> Here's a demonstration:
> ...
I quite liked this syntax and the idea. I actually needed something like ThreadGroup-variables in my project so I've implemented them with this monkey patch:
~~~ruby
# Thread.cu...
amw (Adam Wróbel)
02:34 AM Feature #12024: Add String.buffer, for creating strings with large capacities
Jeremy Evans wrote:
> As to why `String.buffer(10000)` instead of `String.new(:buffersize=>10000)`, see https://bugs.ruby-lang.org/issues/905#note-2
I think String.new(:buffersize=>10000) is better because it can be combined with :...
akr (Akira Tanaka)

01/27/2016

05:17 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Here's the benchmark I wrote for this:
~~~Ruby
require 'benchmark/ips'
eval("def a; b = ' ' * 1000; String.new " + "<< b " * 100 + "end")
eval("def c; b = ' ' * 1000; String.buffer(100000) " + "<< b " * 100 + "end")
Benchmark...
jeremyevans0 (Jeremy Evans)
02:18 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Yui NARUSE wrote:
> More effective example.
What an artificial example that pinpoints realloc overhead :-)
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
02:10 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Yui NARUSE wrote:
> Motohiro KOSAKI wrote:
> ...
why not something like "String.new(:buffersize => 10000)" then?
darix (Marcus Rückert)
02:07 PM Feature #12024: Add String.buffer, for creating strings with large capacities
More effective example.
```
% cat test.rb; ./ruby test.rb
# frozen_string_literal: true
require 'benchmark'
M = 100
N = 25
Benchmark.bm 5 do |r|
r.report "buffer" do
j = 0
while j < M
i = 0
buf = Stri...
naruse (Yui NARUSE)
01:45 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Motohiro KOSAKI wrote:
> Class method is really bad idea because of thread unsafe.
It return a new string object.
naruse (Yui NARUSE)
01:41 PM Feature #12024: Add String.buffer, for creating strings with large capacities
```ruby
% cat test.rb
# frozen_string_literal: true
require 'benchmark'
N = 50_000_000
Benchmark.bm 5 do |r|
r.report "buffer" do
i = 0
buf = String.buffer(N)
while i < N
buf << 'a'
i += 1
end
...
naruse (Yui NARUSE)
01:31 PM Feature #12024: Add String.buffer, for creating strings with large capacities
On Tue, Jan 26, 2016 at 7:12 PM, <merch-redmine@jeremyevans.net> wrote:
> Issue #12024 has been updated by Jeremy Evans.
>
>
> I wasn't aware of #905 when I created this, I probably should have searched first.
>
> This feature is...
kosaki (Motohiro KOSAKI)
11:16 AM Feature #12024: Add String.buffer, for creating strings with large capacities
I'm unsure if this pre-allocation is really effective since recent "realloc" implementations take just O(1). What operating system are you using?
In #905, pre-allocation was actually helpful in JRuby because JVM did not provide such ...
mame (Yusuke Endoh)
12:12 AM Feature #12024: Add String.buffer, for creating strings with large capacities
I wasn't aware of #905 when I created this, I probably should have searched first.
This feature is similar to #905, but the implementation is different. The implementation in #905 is an instance method that changes the capacity of an...
jeremyevans0 (Jeremy Evans)
04:41 PM Bug #11935: Date.new returns inconsistent errors when passed invalid arguments
Tadayoshi Funaba appears to have been gone for a year, so it's unclear who this should be assigned to. CJKinni (C Kinniburgh)
04:28 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
Thank you.
rubydino (Ruby Dino)
04:04 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
Yes, thank you.
elight (Evan Light)
05:52 AM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
Thank you.
davidcelis (David Celis)
05:36 AM Misc #12004: Code of Conduct
Ruby Dino wrote:
> Coraline Ada Ehmke wrote:
> ...
This seems to touch PC, but anyway some other people may also feel like that.
Japanese has good Constitution and curriculum in compulsory education made by U.S. for 70 years.
There...
naruse (Yui NARUSE)
05:33 AM Misc #12004: Code of Conduct
OK, that's enough.
We will set up some form of CoC in the future. Let me think for a while which one we are going to choose.
Matz.
matz (Yukihiro Matsumoto)
05:25 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> All of these scaremongering posts about a Ruby CoC being abused reveals a deep distrust of the leadership in the Ruby community.
Wrong. It reveals a deep distrust about those who would like to be judge.
...
gordon_king (Gordon King)
05:19 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> It's not about my values, it's about our shared values. I'm encouraging us to figure them out, write them down, and enforce them.
> ...
Our shared values and goals are to enhance the lives of others throug...
rubydino (Ruby Dino)
04:38 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> All of these scaremongering posts about a Ruby CoC being abused reveals a deep distrust of the leadership in the Ruby community. Who do you think would be enforcing the code of conduct? Do you trust them to b...
Hanmac (Hans Mackowiak)
04:34 AM Misc #12004: Code of Conduct
> Right here lies the problem. Your values aren't internationally recognized, as many have brought up including the Japanese and Russian participants in the community.
It's not about my values, it's about our shared values. I'm encour...
CoralineAda (Coraline Ada Ehmke)
04:28 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> our values
Right here lies the problem. Your values aren't internationally recognized, as many have brought up including the Japanese and Russian participants in the community.
rubydino (Ruby Dino)
04:23 AM Misc #12004: Code of Conduct
All of these scaremongering posts about a Ruby CoC being abused reveals a deep distrust of the leadership in the Ruby community. Who do you think would be enforcing the code of conduct? Do you trust them to be fair or not?
Matz, as yo...
CoralineAda (Coraline Ada Ehmke)
04:18 AM Misc #12004: Code of Conduct
what my problem is about such "PC" is:
first: i am from a country where law is: "innocent until proven wrong" (means that even if you did something wrong, the other side does need to proof that) thats why what if such CoC is misused fro...
Hanmac (Hans Mackowiak)
03:46 AM Misc #12004: Code of Conduct
Gregory Brown wrote:
> Few people in this thread have the leadership responsibilities to understand that aspect of things
Few people in this thread have the age and experience to understand that aspect of things.
Few people in thi...
gordon_king (Gordon King)
02:21 AM Misc #12004: Code of Conduct
woops, was totally blind when looking at the branches. looks good! thanks! rubyhubie (Hubie Fuller)
02:15 AM Misc #12004: Code of Conduct
Hubie Fuller wrote:
> Can we have the Contributor Covenant utilize the alphabetical order of 'age, body size, culture, disability, ethnicity, gender, gender identity and expression, level of experience, nationality, personal appearance,...
CoralineAda (Coraline Ada Ehmke)
02:00 AM Misc #12004: Code of Conduct
Can we have the Contributor Covenant utilize the alphabetical order of 'age, body size, culture, disability, ethnicity, gender, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sex... rubyhubie (Hubie Fuller)
12:44 AM Misc #12004: Code of Conduct
I also support adopting a Code of Conduct.
I believe CC 1.3 is a good base to work from simply because it is already used on many well known projects. #275 provides the best outline I've seen of specifically what CC does that's import...
sandal (Gregory Brown)
03:58 PM Feature #12026: Support warning processor
I think this filter should be "one for the whole execution" and therefore something like an environment variable or a CLI flag.
Taking inspiration from javac's -Xlint: [1], having them associated by a group or short name would help to...
Eregon (Benoit Daloze)
02:57 PM Revision c308fa68 (git): depend: add capacity.o
* ext/-test-/string/depend (capacity.o): add dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:04 PM Revision b6e761e6 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:04 PM Revision b7b5692a (git): * test/-ext-/string/test_capacity.rb: Added missing library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:00 PM Revision cf3c1bfe (git): * test/ruby/test_file.rb (TestFile#test_realpath_encoding): rescue Errno::EACCES
and skip the testcase because it'll be raised on Windows always unless the
runner doesn't have the administrator privilege.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:52 AM Feature #12025: Reduce minimum string buffer size from 128 to 127
With glibc as Eric says it won't save memory so much.
But with jemalloc, whose next allocation size of 128 is 192, saves some memory.
Darwin also saves 6%.
memo:
https://www.facebook.com/notes/facebook-engineering/scalable-memory-a...
naruse (Yui NARUSE)
11:37 AM Revision 63710b73 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:37 AM Revision d14f0cfd (git): Add tests about String's internal capacity
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:58 AM Feature #12023: Allow ivars to be used as method arguments
With your patch, seems that `def initialize(@foo, @bar = @foo)` wouldn't work.
> ~~~diff
> ...
Dynamic size array isn't allowed in C89.
nobu (Nobuyoshi Nakada)
09:54 AM Revision a7c98796 (git): * enc/unicode.c: Fixed bit mask in macro OnigCodePointCount
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
08:55 AM Revision 415949fa (git): * enc/unicode.c: Protect code point count by macro, in order to
be able to use the remaining bits for flags.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
07:35 AM Revision 75687e0a (git): Fix doc with default value with GH-523
* lib/tempfile.rb (Tempfile#initialize): [DOC] the first parameter
`basename` is optional and defaulted to an empty string since
[GH-523]. [Fix GH-1225]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53668 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
07:30 AM Revision b14ea7d0 (git): hash.c: exception examples
* hash.c (rb_hash_dig): [DOC] add examples of exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:26 AM Revision 4df16807 (git): Fix a Ruby-Doc comment for Array#dig
* array.c (rb_ary_dig): [DOC] fix the exception class to be raised
when intermediate object does not have dig method. TypeError
will be raised now. [Fix GH-1224]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53666 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
04:11 AM Revision a82d2728 (git): test_require.rb: fix temporary library directory
* test/rubygems/test_require.rb (test_dash_i_beats_gems): create
temporary library directory under the temporary directory
created by Gem::TestCase#setup, not to leave garbages in the
default temporary directory.
git-svn-id: svn+s...
nobu (Nobuyoshi Nakada)
02:56 AM Bug #12027 (Rejected): Hash descendants are ignoring custom to_hash method
Because `b.is_a?(Hash)` already.
`to_hash` is the method to pretend to be a `Hash`.
nobu (Nobuyoshi Nakada)
12:20 AM Bug #12027 (Rejected): Hash descendants are ignoring custom to_hash method
I'm not sure it is not intended, but feels really strange:
~~~ruby
class A
def to_hash
{foo: 'bar'}
end
end
class B < Hash
def to_hash
{foo: 'bar'}
end
end
a = A.new
b = B.new
p({**a}) # => {foo: 'ba...
zverok (Victor Shepelev)
 

Also available in: Atom