Activity
From 01/24/2017 to 01/30/2017
01/30/2017
-
10:25 PM Bug #13170: OpenSSL::X509::Name#eql? broken in Ruby 2.4.0
- Pull request at https://github.com/ruby/openssl/pull/100.
-
10:25 PM Bug #13170: OpenSSL::X509::Name#eql? broken in Ruby 2.4.0
- A colleague has posted a pull request at https://github.com/ruby/openssl/pull/100 fixing this issue.
-
10:15 PM Bug #13170 (Closed): OpenSSL::X509::Name#eql? broken in Ruby 2.4.0
- Previously the behavior in Ruby `2.3.1` and earlier was:
```
[1] pry(main)> OpenSSL::X509::Name.new([['CN', 'foo']]).eql?(OpenSSL::X509::Name.new([['CN', 'bar']]))
=> false
[2] pry(main)> OpenSSL::X509::Name.new([['CN', 'foo']]).eq... -
10:23 PM Bug #12371: Windows Nano Server WIN32OLE compatibility
- Masaki -
I apologize for missing your response. There is a pull request open at https://github.com/ruby/ruby/pull/1423 from one of the engineers at Chef addressing this issue. If you could review, that would be great.
Thanks! - 10:03 PM Revision 4b9a21cd (git): io.c (rb_io_syswrite): avoid leaving garbage after write
- As with IO#write, IO#syswrite also generates garbage which can
be harmful in hand-coded read-write loops.
* io.c (swrite_arg, swrite_do, swrite_end): new
(rb_io_syswrite): use new functions to cleanup garbage
[ruby-core:78898] [Bug ... -
09:54 PM Bug #13085 (Closed): io.c io_fwrite creates garbage - Applied in changeset r57471.
----------
string.c (rb_str_tmp_frozen_release): release embedded strings
Handle the embedded case first, since we may have an embedded
duplicate and non-embedded original string.
* string.c (rb_str_tmp_fr... -
08:41 PM Bug #13085: io.c io_fwrite creates garbage
- nobu@ruby-lang.org wrote:
> Seems nice, let's try it.
Thanks, r57469. I'll work on syswrite and send* (socket) next. - 09:54 PM Revision 5c988df0 (git): string.c (rb_str_tmp_frozen_release): release embedded strings
- Handle the embedded case first, since we may have an embedded
duplicate and non-embedded original string.
* string.c (rb_str_tmp_frozen_release): handled embedded strings
* test/ruby/test_io.rb (test_write_no_garbage): new test
[ruby-... -
09:03 PM Bug #13169 (Closed): Fix OpenStruct#each_pair return value
- ```
ostruct.rb: fix OpenStruct#each_pair return value
* lib/ostruct.rb (OpenStruct#each_pair): let #each_pair
with block return self instead of the internal hash table.
```
Currently OpenStruct#each_pair with block returns the... - 08:40 PM Revision fb3313bf (git): * 2017-01-31
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:40 PM Revision 9c4ba969 (git): io.c: recycle garbage on write
- * string.c (STR_IS_SHARED_M): new flag to mark shared mulitple times
(STR_SET_SHARED): set STR_IS_SHARED_M
(rb_str_tmp_frozen_acquire, rb_str_tmp_frozen_release): new functions
(str_new_frozen): set/unset STR_IS_SHARED_M as appropr... -
12:51 PM Bug #13146: Float::NANs in Hashes are confusing (more than usual).
- Nobuyoshi Nakada wrote:
> Are you suggesting to make infinities and a NaN multiton?
One alternative is to copy the approach given here: https://research.swtch.com/randhash
TLDR:
1: NaN is given a random hash (to avoid hash key... -
12:00 PM Revision 886e8f75 (git): common.mk: limits.c
- * common.mk (ext/rbconfig/sizeof/sizes.c): specify the target
explicitly.
* common.mk (ext/rbconfig/sizeof/limits.c): add the recipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:49 AM Bug #13168 (Closed): Marshaling broken with GCC 7.x
- Builds of Ruby 2.4 recently started to fail in Fedora CI when GCC 7.0.1 landed (please see the build logs [1]). The Ruby either segfaults when generating documentation:
```
Generating RI format into /builddir/build/BUILD/ruby-2.4.0/.... -
11:45 AM Revision 12d61437 (git): VC18 or later support stdbool.h
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 10:12 AM Revision 9dd87beb (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:12 AM Revision 8ad74296 (git): make FIXNUM_MAX visible from Ruby
- Because our tests now have several places where FIXNUM_MAX is needed,
we decided to provide it along with several other constants.
* template/limits.c.tmpl: new file, defining RbConfig::Limits
* ext/rbconfig/sizeof/depe... -
10:11 AM Bug #13167 (Closed): Dir.glob is 25x slower since Ruby 2.2
- Hello,
we've found a huge speed regression in our Rails app. After some digging the reason is in `Dir.glob` method which is much slower since Ruby 2.2.6. This is probably Windows only!
This code is used heavily in Rails for partial l... -
07:39 AM Revision f7015c96 (git): add a ticket number.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:25 AM Feature #13166: Feature Request: Byte Arrays for Ruby 3
- I don't like the syntax (Array8) but I am not against it per se - I just want to
add that you actually made a good point nonetheless, simply by pointing out that
ruby 3 wants to be a lot faster. So this argument is pretty cool to see. :D -
05:09 AM Revision 6cc463ca (git): reduce iterations for slower machines
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:54 AM Revision 9e03ee87 (git): fix up r57461
- * internal.h: Microsoft Visual C++ has never supported C99 yet,
even in 2017.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:47 AM Revision 9b0118a8 (git): refine assertions
- * test/irb/test_ruby-lex.rb (test_prompt): invert confinue flag by
FIXME comments. adjust line numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:42 AM Revision 7c7133b7 (git): #include <stdbool.h>
- 17+ years passed since standardized in ISO, 8 years since we added
AC_HEADER_STDBOOL to configure.in. I'm quite confident that it's
already safe to use <stdbool.h>.
I understand that when we introduced AC_HEADER_STDBOOL, <stdbool.h>
wa... -
03:57 AM Revision d617fce9 (git): more checks for prompt
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:21 AM Revision d492043f (git): * 2017-01-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:21 AM Revision 5a48f20c (git): test for prompt
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/29/2017
-
09:43 PM Feature #13166 (Feedback): Feature Request: Byte Arrays for Ruby 3
- I do a lot of numerically intensive applications.
In many instances I use arrays that contain boolean data (true|false or 1|0) values.
When I create such an array like:
`data = Array.new(size, value)` or just `data = Array.new(si... -
06:26 PM Feature #9116: String#rsplit missing
- I'd like to revive the discussion about `String#rsplit`.
Here one use case I stumbled upon recently: splitting the digest off the end of a cookie (taken from Rack::Session::Cookie, see https://github.com/rack/rack/blob/master/lib/rack... -
01:07 PM Bug #13164: A second `SystemStackError` exception results in `Segmentation fault (core dumped)`
- When configured with `--with-setjmp-type=sigsetjmp`, it seemed working.
But segfaulted at the fourth system stack overflow. -
12:53 PM Revision 62acbb98 (git): test for immature statement
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:53 PM Revision 1997f780 (git): test for top level statement
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:20 PM Revision 3abb4948 (git): test for comment
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:51 AM Revision 25ad4a79 (git): tests for irb lexer
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:35 AM Revision afe4e0e4 (git): * 2017-01-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:35 AM Revision b9d8758e (git): {ext,test}/etc: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:29 AM Bug #13162 (Rejected): tr does not recognize multi-byte characters correctly
-
01:02 AM Bug #13085 (Assigned): io.c io_fwrite creates garbage
- Seems nice, let's try it.
-
01:01 AM Feature #13050: Readline: expose rl_completion_quote_character variable
- I should have mentioned in my previous comment: I also tested Readline with multi-byte quote characters, and got back only the value of the first byte from `rl_completion_quote_character`.
Anything else I can do to move this forward?
01/28/2017
-
08:46 PM Bug #13164: A second `SystemStackError` exception results in `Segmentation fault (core dumped)`
- This is a good observation and I'm happy you found this...
However, I'm not sure that using `return size * 2` as a patch will solve the issue. It might end up masking the real issue, making it harder to find (although I might be wrong... -
01:10 PM Bug #13164: A second `SystemStackError` exception results in `Segmentation fault (core dumped)`
- By doubling `rb_sigaltstack_size()`, it doesn't segfault and the second or more stack overflows never happen now.
I suspect that the stack guard page may need to be reset, but not sure.
```diff
diff --git a/signal.c b/signal.c
inde... -
04:47 PM Bug #11293: Integer('0123') => 83
- Got it. Thank you. :-)
-
11:27 AM Revision 1127a366 (git): test/unit.rb: minimum workers
- * test/lib/test/unit.rb (_run_parallel): launch only necessary
workers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:50 AM Bug #13085: io.c io_fwrite creates garbage
- I think this can be a universal solution. Lightly tested and all tests pass,
but I have not checked coverage, yet.
I reuse one of the embed length bits for shared (noembed) string
to track when a string is shared multiple times. I... -
05:31 AM Revision b2c9c82c (git): extmk.rb: remove clean and install mode
- * ext/extmk.rb (parse_args): remove clean and install mode, now
configure mode only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:23 AM Revision c3df88ec (git): extmk.rb: remove direct build mode
- * ext/extmk.rb (parse_args): --command-output is now mandatory.
remove direct build mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:02 AM Revision cc33dd2b (git): extension gems in static-linked-exts
- * template/configure-ext.mk.tmpl: --no-extstatic option to gems.
* template/exts.mk.tmpl: include extension gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:02 AM Revision b3dbeb6e (git): mkmf.rb: fix script installation
- * lib/mkmf.rb (MakeMakefile): fix condition to install script
files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:36 AM Revision 886e8057 (git): {ext,test}/dbm: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:43 AM Revision 658fc3dd (git): exts.mk.tmpl: ruby names
- * template/exts.mk.tmpl: extract configured ruby names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/27/2017
-
09:50 PM Bug #13165: Typographical Error in Refinements docs 2.1.1
- The current docs work, e. g. see links such as:
https://ruby-doc.org/core/doc/syntax/refinements_rdoc.html
where you get redirected. There, the refinement example works.
The old link for old versions like 2.1.1 indeed have a t... -
09:12 PM Bug #13165 (Rejected): Typographical Error in Refinements docs 2.1.1
- If you check the example for refinements [[https://ruby-doc.org/core-2.1.1/doc/syntax/refinements_rdoc.html]][[here]], the varialbe **c** is not defined, it is suppose to be x. If a new user tries to run this code, this will raise a Name...
-
08:49 PM Feature #4532: [PATCH] add IO#pread and IO#pwrite methods
- The same patch as above, but with typo fixes
-
08:31 PM Feature #4532: [PATCH] add IO#pread and IO#pwrite methods
- I rebased the patch against current trunk, and also made some improvements:
* raise NotImplementedError on platforms, which do not support pread/pwrite
* improved documentation
* fix argument order for IO#pwrite to be consistent wit... -
06:08 PM Feature #4532: [PATCH] add IO#pread and IO#pwrite methods
- Hi everyone, any plans to include pread/pwrite in near future?
-
03:39 PM Bug #13160: Socket c code breaks ruby interpreter
- Hi, I tried to run it in gdb but that is going to crash it even earlier, however there are other findings:
When i remove and disable all the metasploit related stuff it is working again (running without issues).
So maybe one of its d... -
03:13 AM Bug #13160: Socket c code breaks ruby interpreter
- Maybe related to [Bug #13076]?
-
03:11 AM Bug #13160 (Feedback): Socket c code breaks ruby interpreter
- Can you show us the reproducing code that generates SEGV? Additionally if possible, can you give us a gdb-printed backtrace? The strace output says your process dumped core; feeding it to gdb might tell you a detailed inspection.
- 03:32 PM Revision e52d2e03 (git): * 2017-01-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:32 PM Revision ac66222f (git): fix typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:41 PM Bug #13164 (Open): A second `SystemStackError` exception results in `Segmentation fault (core dumped)`
- This issue is was exposed by leveraging the fact that `Object#hash` is implemented recursively for core Ruby datatypes (i.e., Hash and Array). See the discussion here: https://github.com/boazsegev/combine_pdf/pull/91#issuecomment-2755521...
-
11:58 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- There is another duplicate of this (#11705). I understand this is expected behaviour and it makes sense that this is the way it is with the current architecture.
I don't however think that this is the way it _should_ be. Does anyone e... -
11:34 AM Bug #13162: tr does not recognize multi-byte characters correctly
- OK. I now realize that this was not a bug but a feature. Please close.
-
05:33 AM Bug #13162 (Rejected): tr does not recognize multi-byte characters correctly
- This looks as expected:
```
"\\".tr('\\', '\') # => "\"
```
but this doesn't:
```
"\\".tr("\\¥'", "\¥'") # => "\\"
```
I confirmed the strings are UTF-8. -
08:05 AM Revision 3d5facc4 (git): extmk.rb: fix for static-linked-ext
- * ext/extmk.rb (extmake): fix up r57424 for static-linked-ext.
separate maybestatic argument from basedir which is given always
now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:51 AM Revision dbacbc44 (git): template/exts.mk.tmpl: fix missing dependencies
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:46 AM Bug #13146: Float::NANs in Hashes are confusing (more than usual).
- Nobuyoshi Nakada wrote:
> Are you suggesting to make infinities and a NaN multiton?
I don't know how these are implemented, but I'd expect `-Float::NAN` to work like `Float:NAN` in that regard. If I'm not mistaken, theres only one `F... -
03:07 AM Bug #13146: Float::NANs in Hashes are confusing (more than usual).
- Are you suggesting to make infinities and a NaN multiton?
-
07:23 AM Revision 88eea2ba (git): template/exts.mk.tmpl: consider EXEEXT
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:16 AM Revision df05027c (git): exts.mk.tmpl: for not GNU makes
- * template/exts.mk.tmpl: use `cd` then `make` instead of `make -C`
when not GNU make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:13 AM Bug #13163 (Closed): Uncaught exceptions may not be reported when Thread#report_on_exception=true and Thread#abort_on_exception=true
- When we set true on both of `Thread#report_on_exception` and `Thread#abort_on_exception`, it just works as `Thread#abort_on_exception` and raised error will be re-raised in main thread.
But in our case, main thread sometimes in `begin`-... -
05:01 AM Revision 640bcdf2 (git): leakchecker.rb: get rid of uninitialized Tempfile
- * test/lib/leakchecker.rb (LeakChecker#find_tempfiles): get rid of
errors on uninitialized Tempfile, which can be left when
Dir.tmpdir failed or by Tempfile.allocate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57437 b2dd03c8-... -
03:24 AM Bug #13161 (Closed): [DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array
- Applied in changeset r57434.
----------
Enumerable#{min,min_by,max,max_by} [ci skip]
* enum.c: [DOC] Enumerable#{min,min_by,max,max_by} return a sorted
array when +n+ argument is used.
* enum.c: Small typo : minimum -> maximum
[Bug... -
03:24 AM Revision 70410163 (git): enum.c: write barrier
- * enum.c (rb_nmin_run): set the class with write barrier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:24 AM Revision 2c1bdb58 (git): enum.c (rb_nmin_run): adjust indent [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:24 AM Revision 559bef42 (git): Enumerable#{min,min_by,max,max_by} [ci skip]
- * enum.c: [DOC] Enumerable#{min,min_by,max,max_by} return a sorted
array when +n+ argument is used.
* enum.c: Small typo : minimum -> maximum
[Bug #13161]
Author: Eric Duminil <eric.duminil@gmail.com>
git-svn-id: svn+ssh://ci.rub... -
02:55 AM Revision 3be16b24 (git): configure-ext.mk.tmpl: fix ext build
- * template/configure-ext.mk.tmpl: fixed inverted names of target
and directory, and chomp the last slash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:29 AM Revision 8edb6ce4 (git): {ext,test}/date: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/26/2017
-
09:12 PM Bug #13161 (Closed): [DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array
- * Enumerable#{min,min_by,max,max_by} return a sorted array when +n+ argument is used. This isn't mentioned from the current documentation.
* "minimum n elements" in Enumerable#max_by should be "maximum n elements" -
05:41 PM Bug #13127: DRb `load': connection closed (DRb::DRbConnError) when client exit's from within a loop iterating over remote objects
- The Kernel.exit! works.
But why does the problem happen with the exit called? Isn't that a bug. -
05:39 PM Bug #13102: Confusing method name: Set#delete?
- Kai Kuchenbecker wrote:
> I think it is very surprising for a method ending in a question mark to have a side effect.
Indeed, that also applies to `Set#add?`.
> ...
Not really, `Set#delete` also modifies the receiver.
The actu... -
05:11 PM Bug #13160 (Closed): Socket c code breaks ruby interpreter
- When a client connects to a socket, the ruby interpreter crashes with the backtrace at the bottom (used the current version of my gem ICAPrb::Server (this gem has no native extensions))
the ruby vm should not when in receives a connec... -
03:14 PM Revision c71e1223 (git): [DOC] Use Integer instead of Fixnum [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:14 PM Revision 8eeadfe0 (git): * 2017-01-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:14 PM Revision e7cc3900 (git): lib/weakref.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:03 PM Feature #13153: Inconsistent sprintf formatting for 0 value
- Old ruby's results are `0x00`.
It changed between `1.9.0-0` and `1.9.0-5`.
```
% rbenv each ruby -ve 'puts "%#0.2x" % 0'
ruby 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux]
0x00
ruby 1.8.6 (2010-09-02 patchlevel 420) [x86_64-linu... -
01:44 PM Bug #12705: yielding args to a lambda uses block/proc rather than lambda/method semantics
- I encountered this bug myself today and while searching for a reason behind it, I found this:
https://github.com/ruby/ruby/blob/v2_4_0/vm_insnhelper.c#L2435
```c
static VALUE
vm_yield_with_cfunc(rb_thread_t *th,
const stru... -
01:29 PM Bug #13146: Float::NANs in Hashes are confusing (more than usual).
- Somehow, using `-Float::NAN` (for example in a hash or array) results in new objects being created:
```ruby
-Float::NAN.object_id
#=> -70362448918680
[-Float::NAN, -Float::NAN, -Float::NAN].map(&:object_id)
#=> [70362448604580, 70... - 12:47 PM Revision fdbb4bb3 (git): Add document for lib/rss/atom.rb
- [fix GH-1520]
Patch by Tsehau Chao. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:38 AM Bug #12688 (Feedback): Thread unsafety in autoload
- I can't reproduce headius's issue. It shows 50 dots and stop at next iteration because autoload is failed.
Inserting `$".pop` Shirosaki san suggested, I don't get any exception.
I tried on current trunk.
```
$LOAD_PATH.unshif... -
10:25 AM Feature #12967 (Rejected): Add a default for RUBY_GC_HEAP_GROWTH_MAX_SLOTS out-of-the-box
- > My suggestion is to ship with a far safer default of: RUBY_GC_HEAP_GROWTH_MAX_SLOTS=100000
To define "safe" is difficult. Providing tuning parameter is enough for this purpose. -
09:57 AM Bug #13030 (Closed): Unexpected T_IMEMO object when building with VMDEBUG
- Applied in changeset r57427.
----------
skip T_IMEMO for VMDEBUG
* vm_dump.c (vm_stack_dump_each): skip T_IMEMO object to display
for VMDEBUG=3. [Bug #13030] -
09:57 AM Revision 8fa99e64 (git): skip T_IMEMO for VMDEBUG
- * vm_dump.c (vm_stack_dump_each): skip T_IMEMO object to display
for VMDEBUG=3. [Bug #13030]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:40 AM Revision a4bc6c27 (git): * vm_dump.c: enable to compile with VMDEBUG == 3.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:19 AM Revision 599d7511 (git): * 2017-01-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:19 AM Revision 72ad0019 (git): Parallel gem configuration
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:09 AM Revision 17ee9196 (git): Fix function name for DBM on extension document.
- Patch by Yuji Yaginuma, @y-yagi <yuuji.yaginuma@gmail.com>
[ci skip][fix GH-1519]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/25/2017
-
09:03 PM Bug #13159 (Closed): [DOC] Revise documentation for OpenStruct
- ```
* update paragraph on implementation:
define_singleton_method is used, not define_method
* add call-seq with return values for each_pair
* adopt description of dig from Array and Hash
* fix description of the hash method
* :n... -
02:34 PM Bug #13158 (Closed): UNIXServer#closed? returns false after UNIXServer#close called
- Applied in changeset r57422.
----------
io.c: close before wait
* io.c (io_close_fptr): notify then close, and wait for other
threads before free fptr. [ruby-core:79262] [Bug #13158] -
10:16 AM Bug #13158 (Closed): UNIXServer#closed? returns false after UNIXServer#close called
- When I tried the simple script below, ruby trunk works unexpectedly:
```ruby
require 'socket'
server = UNIXServer.new('/tmp/yaaaay')
thread = Thread.new do
begin
while sock = server.accept
p(here: "accepted", sock:... -
02:34 PM Revision 61701ae1 (git): io.c: close before wait
- * io.c (io_close_fptr): notify then close, and wait for other
threads before free fptr. [ruby-core:79262] [Bug #13158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:28 PM Revision a7bc6c1b (git): [DOC] Add empty example to enum.all? and any?
- [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:35 AM Feature #13156: In-tree copy of ruby/spec
- Koichi Sasada wrote:
> I'm not sure because I'm not a heavy github user, but most of github users feel happy on github contribution, doesn't it?
Anyone can of course keep contributing on GitHub.
But it's very inconvenient when chang... -
02:07 AM Feature #13156: In-tree copy of ruby/spec
- I'm not sure because I'm not a heavy github user, but most of github users feel happy on github contribution, doesn't it?
-
01:23 AM Feature #13156: In-tree copy of ruby/spec
- I'm neutral or somewhat positive to this. It sounds worth trying. At least I have no reason to object.
-
12:55 AM Feature #13156: In-tree copy of ruby/spec
- Benoit Daloze wrote:
> Was this discussed in the last developer meeting?
Apparently not (see https://docs.google.com/document/d/1ZKk-vxoYkq8b2H4ml2z4NhoHsi3GdZqhNXNgpB2vTv8/pub). I plan to be at the next meeting, and I hope we can di... -
06:08 AM Revision 7db9fbdf (git): regcomp.c: debug function [ci skip]
- * regcomp.c (print_indent_tree): make a function for debug static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:05 AM Revision 4f1a54d2 (git): .gdbinit: fix on empty strings [ci skip]
- * .gdbinit (output_string): get rid of "Invalid number 0 of
repetitions" error on empty strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:05 AM Revision 0da52e56 (git): .gdbinit: op symbols [ci skip]
- * .gdbinit (rp_id): add unhandled operator symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:45 AM Misc #13072: Current state of date standard library
- Victor Shepelev wrote:
> > Time is kept in core
> ...
Date and Time are incompatible both its philosophy, implementation, and API.
If we make Date compatible with Time, it needs Date to introduce incompatible API change.
If so, Date ... -
03:28 AM Feature #12901: Anonymous functions without scope lookup overhead
- I have thought about this a number of times, but never got around to writing a feature request: we already have a way to tell Ruby that we don't want to capture certain variables from the surrounding scope: block local variables. We also...
-
03:13 AM Feature #12901: Anonymous functions without scope lookup overhead
- Jeremy Evans wrote:
> It would probably be better if ruby could do analysis and if there are no references to local variables in the outer scope(s), automatically optimize such procs, so that you don't need to specify `scope: false`. I... -
03:07 AM Feature #12180: switch id_table.c variant
- Yura:
Sorry for my laziness. I committed it (remain only your algorithm) and cleanup source code.
Pls make another ticket to improve id_table structure.
-
03:03 AM Feature #12180 (Closed): switch id_table.c variant
- Applied in changeset r57416.
----------
swithc id_table data structure.
* id_table.c: swtich to "simple open addressing with quadratic probing"
by Yura Sokolov. For more detail measurements, see [Feature #12180]
* id_table.c: remove... - 03:03 AM Revision 26270bd2 (git): * 2017-01-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:03 AM Revision 4c2d014e (git): swithc id_table data structure.
- * id_table.c: swtich to "simple open addressing with quadratic probing"
by Yura Sokolov. For more detail measurements, see [Feature #12180]
* id_table.c: remove other algorithms to simplify the source code.
git-svn-id: svn+ssh://ci.... -
01:13 AM Bug #13157 (Closed): Rational doc bug
- On the ruby-doc page for Rational, the following example appears.
Rational(900) + Rational(1) #=> (900/1)
I think it should be
Rational(900) + Rational(1) #=> (901/1)
Ruby executes the expression correctly, i.e.... -
01:10 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- ~~~
$ nawk --version
awk version 20121220 (FreeBSD)
$ nawk 'END { printf("%d\n", -2 ** 4) }' < /dev/null
-16
~~~ -
01:10 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- By the way, about "/" and "%" operators, in Ruby:
~~~
irb(main):001:0> -10%3 # (-10) % 3 == 2
=> 2
irb(main):002:0> 0-10%3 # 0 - (10 % 3) == -1
=> -1
~~~
in Ada:
~~~
with Ada.Integer_Text_IO;
procedure modu is
begin
Ada... -
12:54 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Ada
~~~
with Ada.Integer_Text_IO;
procedure pow is
begin
Ada.Integer_Text_IO.Put (-2 ** 4);
end;
~~~
-16
01/24/2017
-
11:23 PM Feature #13153: Inconsistent sprintf formatting for 0 value
- FWIW, this is the exact same behavior in C since we're just calling through to `snprintf` for these format specifiers.
```
printf("%#0.2x %#04x %#0.2x %#04x\n", 0, 0, 1, 1)
``` -
11:33 AM Feature #13153 (Open): Inconsistent sprintf formatting for 0 value
- ```ruby
0.upto(5).map { |i| "%#0.2x" % i }
# expect: ["0x00", "0x01", "0x02", "0x03", "0x04", "0x05"]
# actual: ["00", "0x01", "0x02", "0x03", "0x04", "0x05"]
```
Notice that the 0x is omitted when i == 0. The 0x prefix is sp... -
09:08 PM Feature #13156: In-tree copy of ruby/spec
- Was this discussed in the last developer meeting?
Sorry for making this feature request a bit late.
-
09:05 PM Feature #13156 (Closed): In-tree copy of ruby/spec
- I would like to integrate an in-tree copy of ruby/spec under spec/rubyspec/
(at the same location ruby/spec is currently cloned to ease transition).
This way, implementation and tests can be changed in a single commit, just like with M... -
08:55 PM Feature #13124: Should #puts convert to external encoding?
- Thank you for the reply and pointer.
What do you think of having STDOUT, STDERR and STDIN internal_encoding be set by default?
It seems reasonable for those to use the locale encoding.
On the other hand, it seems useless to dump a w... -
08:43 PM Feature #12957: A more OO way to create lambda Procs
- Actually, it is possible to create a single block of code that can be proc or lambda with #send:
> Kernel.send(:lambda) {}.lambda?
=> true
> Kernel.send(:proc) {}.lambda?
=> false
I was surprised as well this wor... -
02:52 PM Revision 54fa9f9e (git): eval.c: copy special exception
- * eval.c (setup_exception): make unfrozen copy of special
exception before setting up a cause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:43 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
- FORTRAN
```
PROGRAM POW
WRITE (*,*) -2**4
STOP
END
```
=> -16 -
01:32 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
Lua result:
~~~
$ lua
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
> ...
-16.0
> - 2 ^ 4
-16.0
> ...
16.0
~~~ -
01:15 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
- https://www.google.co.jp/search?q=-2**4
> -(2 ** 4) =
> -16 -
10:05 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
here is METAFONT result.
~~~
This is METAFONT, Version 2.7182818 (TeX Live 2016/Debian) (preloaded base=mf)
**\relax
*... -
09:23 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
Here is dlang result:
~~~ cpp
import std.stdio;
void main()
{
writeln(-2 ^^ 4); // -16
writeln((-2) ^^ ... -
09:17 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
I tried it by nodejs v7.4.0.
~~~
console.log(process.version);
//=> v7.4.0
console.log(-2 ** 4);
//console.log(-2 *... -
05:26 AM Bug #13152: Numeric parsing differences between ruby <-> crystal
- Martin Dürst wrote:
> - What do other languages (in particular languages more well known that Cristal) do?
Here we go:
```sh
zsh % /bin/sh
sh-3.2$ echo $((-2 ** 4))
16
sh-3.2$
```
```perl
zsh % perl -e 'warn(eval("-2 ** 4... -
05:17 AM Bug #13152 (Rejected): Numeric parsing differences between ruby <-> crystal
- It is intentional.
That unary minus is not considered a part of an integer literal. -
01:08 PM Bug #13155: Segfault testing Pry
- This appears to crash on Travis (Ubuntu) as well:
https://travis-ci.org/pry/pry/jobs/183781286 -
12:53 PM Bug #13155 (Closed): Segfault testing Pry
- Trying to fix Pry on Fedora Rawhide, I get random segfaults. Unfortunately, I can't see any pattern in them. The backtrace is always different. Attaching two logs in case it might make the issue more obvious. Here are some package versio...
-
12:11 PM Bug #13154: URI::Generic, == operator, normalize!
- Dmitry Sk wrote:
> But nil scheme actually equivalent to file
Are you sure? I thought a `URI::Generic` object with a `nil` scheme is a [relative reference](https://tools.ietf.org/html/rfc3986#section-4.2). See: [URI::Generic#merge](... -
11:45 AM Bug #13154 (Rejected): URI::Generic, == operator, normalize!
- This two URI means the same:
```
uri1 = URI::parse '/1/2/3'
uri2 = URI::parse 'file:///1/2/3'
```
but `uri1 == uri2` return **false**
it is cause of normalize! implementation that compare scheme this way:
```
if scheme && scheme ... -
07:52 AM Revision 7bf450d0 (git): parse.y (parser_yylex): remove wrong warning
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:38 AM Revision e22aa951 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:38 AM Revision 5d438215 (git): Update Rubygems 2.6.10
- * https://github.com/rubygems/rubygems/commit/2ee5bf9fd3bd7649d3e244bc40107ff32070ef47
* https://github.com/rubygems/rubygems/commit/be510dd4097e65c6a256a6e173d6b724a3a96472
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57412 b2dd0...