Activity
From 02/11/2017 to 02/17/2017
02/17/2017
-
11:19 PM Feature #13224 (Closed): Add FrozenError as a subclass of RuntimeError
- Currently, attempting to modify a frozen object leads to a `RuntimeError` exception. Unfortunately, this means it is not easy to differentiate exceptions raised from attempting to modify frozen objects from generic exceptions such as ca...
-
10:24 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
- A new version **`intsqrt3`** is one line shorter, and more intuitive (to me)
but there is a neglible difference in speed versus **`intsqrt2`** in Ruby.
Maybe it's faster in C?
```ruby
def intsqrt(n)
bits_shift = (n.to_s(2).size)... -
05:47 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
- This works well in my code.
Easier to code and read with accurate results.
```ruby
class Integer
def sqrt_i
self <= MAX_RANGE ? Math.sqrt(self).to_i : intsqrt(self)
end
private
MAX_RANGE = 9_999_899_999_... -
04:01 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
- I just realized **`class Integer`** has a **`bit_length`** instance_method.
It makes the code a bit simpler, easier to understand, and faster.
```ruby
def intsqrt(n)
bits_shift = (n.to_s(2).size)/2 + 1
bitn_mask = root = 1 << ... -
03:34 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
- This is the C version of the algorithm.
I put the part before the start of the **while** loop of the ruby
version to make it applicable for arbitrary size integers.
http://www.codecodex.com/wiki/Calculate_an_integer_square_root
... -
12:57 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
- Since this method is designed to operate on integers it would be nice to make it
a **`class Integer`** method, then you can do this: `4829391.sqrt_i`
(or whatever name it's given), which allows you to easily do method chaining. -
12:32 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
- On my 64-bit Linux OS laptop with an I7 cpu, I tested that **`Math.sqrt(n).to_i`** gives correct
answers from `(0..9_999_899_999_899_999_322_536_673_279)`. This was also the same on JRuby-9.1.7.0.
Thus, I can create a hybrid method t... -
06:27 PM Bug #13223 (Closed): `File.join` will segv if File::SEPARATOR and File::Separator are set.
- The program below will crash with a segv:
~~~ruby
File.const_set :Separator, "hello"
File.const_set :SEPARATOR, "hello"
GC.start
File.join "hello", "world"
~~~
This is because the separator object is referenced from a glob... -
03:43 PM Bug #13102: Confusing method name: Set#delete?
- I was referring to the use of bang [method names](http://ruby-doc.org/core-2.4.0/doc/syntax/methods_rdoc.html#label-Method+Names) in the Ruby core library:
> [...] In ruby core library the dangerous method implies that when a method e... -
03:34 PM Bug #13102: Confusing method name: Set#delete?
- Stefan Schüßler wrote:
> Not really, `Set#delete` also modifies the receiver.
> ...
Let me point you to this explanation on the use of bang in ruby method names: https://www.ruby-forum.com/topic/176830#773946
It is perpetually misunde... -
01:31 PM Revision 3d031cea (git): test_fileutils.rb: no broken symlinks on Cygwin
- * test/fileutils/test_fileutils.rb (no_broken_symlink): exclude
test using broken symlinks on Cygwin, which are not allowed
because of the directory flag of Windows native symlink.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5... -
01:31 PM Revision 1b4df625 (git): test_fileutils.rb: fix relative symlink path
- * test/fileutils/test_fileutils.rb (test_rm_symlink): fix relative
symlink path, the target should be relative to the directory in
which the symlink gets created.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57647 b2dd03c8-39d4... -
11:56 AM Feature #13172: Method that yields object to block and returns result
- .patch file
-
11:23 AM Bug #13220: Enhance support of Unicode strings manipulation
- Radovan Smitala, an example for splitting up into subsections could be seen here:
https://bugs.ruby-lang.org/issues/5481
This would make it easier for the ruby core team to fix any of the issues (if they
are issues at all in the... -
08:21 AM Bug #13220: Enhance support of Unicode strings manipulation
- Note that these results are in NFD.
It seems to result as expected by using NFC. -
07:44 AM Bug #13220: Enhance support of Unicode strings manipulation
- Radovan Smitala wrote:
> It's not my blog post. But when i tried some testing cases they were really wrong and unexpected.
Can you, then, show us your testing cases so that we can look at the "wrong and unexpected" results? -
06:33 AM Bug #13220: Enhance support of Unicode strings manipulation
- Yes i know its little bit large issue.
I'm not sure how to handle it and separate problematic parts into content blocks.
Or just bug by bug what is 33 issues.
It's not my blog post. But when i tried some testing cases they were re... -
02:31 AM Bug #13220 (Feedback): Enhance support of Unicode strings manipulation
- Can you split this request into several ones? Because what this ticket aims is a bit too large and perhaps vague. It is advised that you should create an issue with an obvious goal.
For instance if you believe String#[] understand u... -
11:00 AM Bug #11567: Segmentation fault CFUNC :gets
- I'm having the same problem. Running the code as it is, I get reproducible crashes with both Ruby 2.3.1 and 2.4.0:
~~~
test.rb:18: [BUG] Segmentation fault at 0x00000000000000
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
... -
10:59 AM Bug #13222 (Closed): Array#sum inconsistency when init value is non-numeric
- Since Array#sum skips calling plus for `0` https://github.com/ruby/ruby/blob/c85a58d/array.c#L5831-L5832, it doesn't raise when the receiver array consists of 0 only, even when the "init" value is non-numeric.
```
% ruby -e "p [1].su... -
10:22 AM Revision c85a58d5 (git): test_fileutils.rb: workaround for Cygwin
- * test/fileutils/test_fileutils.rb (root_in_posix): seems Cygwin
has some different conditions for privilege.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:22 AM Revision 1ac36ecf (git): test_fileutils.rb: cache distinct UIDs
- * test/fileutils/test_fileutils.rb: cache distinct UIDs as
constants at initialization. assume no UIDs will be
added/removed during tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:45 AM Revision 68319db7 (git): * 2017-02-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:45 AM Revision 6877de73 (git): DEPRECATED_INTERNAL_FEATURE
- * error.c (ruby_deprecated_internal_feature): renamed, to
explicitly represent deprecation.
* internal.h (DEPRECATED_INTERNAL_FEATURE): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:31 AM Feature #13221 (Closed): [PATCH] gems/bundled_gems: add "curses" RubyGem
- This was part of the standard library in Ruby 2.0 and earlier;
and some users may still expect it to be in the standard
install.
02/16/2017
-
10:34 PM Bug #13220 (Feedback): Enhance support of Unicode strings manipulation
- Hi,
last days, Starr Horne posted very interesting testing results about manipulation unicode strings in Ruby 2.4.
And many methods doesn't work as excepted.
Article:
http://blog.honeybadger.io/ruby-s-unicode-support/ -
10:19 PM Feature #13219 (Closed): bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
- In doing a math application using **Math.sqrt(n).to_i** to compute integer squareroots
of integers I started noticing errors for numbers > 10**28.
I coded an algorithm that accurately computes the integer squareroot for arbirary s... -
06:52 PM Bug #13215: Cross compiling Ruby Gems uses Build System Linker Options
- Thanks. I created a ticket in their tracker: https://github.com/rubygems/rubygems/issues/1840
-
07:47 AM Bug #13215: Cross compiling Ruby Gems uses Build System Linker Options
- RubyGems is bundled but not a part of Ruby.
The upstream is https://github.com/rubygems/rubygems.
I have never cross-compiled gems with extension libraries. -
02:48 PM Revision 14d61a94 (git): variable.c: fatal rb_generic_ivar_table
- * variable.c (rb_generic_ivar_table): raise fatal error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:34 PM Bug #13218 (Feedback): testing
- Please post the whole message.
And 2.3.0p0 is outdated, try 2.3.3. -
12:51 PM Bug #13218 (Rejected): testing
- I am following the Rails Tutorial e-book (https://www.railstutorial.org/book/modeling_users). I have reached chap6, where we must validity tests for user e-mails. I reached listing 6.23 added this line of code (`VALID_EMAIL_REGEX = /\A[\...
-
11:54 AM Bug #13217: JSON.parse() chokes on the UTF-8 character EM SPACE (U+2003, e2 80 83)
- Martin Dürst wrote:
> RFC 7159 defines what's allowed as spaces between data. Please see the 'ws' production at https://tools.ietf.org/html/rfc7159#section-2, which lists only the following four:
> ...
Okay, thanks for the json lesson! -
11:44 AM Bug #13217 (Rejected): JSON.parse() chokes on the UTF-8 character EM SPACE (U+2003, e2 80 83)
- RFC 7159 defines what's allowed as spaces between data. Please see the 'ws' production at https://tools.ietf.org/html/rfc7159#section-2, which lists only the following four:
```
ws = *(
%x20 / ; Space
... -
11:29 AM Bug #13217 (Rejected): JSON.parse() chokes on the UTF-8 character EM SPACE (U+2003, e2 80 83)
- ### Steps to reproduce
No error here:
```
require 'json'
json = %Q{
["a", "b"]
}
obj = JSON.parse(json)
```
But there is a UTF-8 space character called `EM SPACE` (U+2003, e2 80 83), which looks like a regular ascii... -
09:15 AM Revision ccc388d8 (git): use rb_iseq_check() for USE_LAZY_LOAD, too.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:42 AM Bug #13214 (Closed): FileUtils::mkdir_p creates additional (unrequested) directory on Cygwin
- Applied in changeset r57640.
----------
fileutils.rb: do not make root
* lib/fileutils.rb (FileUtils#mkdir_p): no need to make root
directory which should be exist and cannot be made with mkdir
recent Cygwin can make a directory co... -
08:42 AM Revision 3261cfd8 (git): fileutils.rb: do not make root
- * lib/fileutils.rb (FileUtils#mkdir_p): no need to make root
directory which should be exist and cannot be made with mkdir
recent Cygwin can make a directory contains a colon.
[Bug #13214]
git-svn-id: svn+ssh://ci.ruby-lang.org/ru... -
08:24 AM Revision a1738430 (git): use rb_iseq_check() for USE_LAZY_LOAD.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:03 AM Bug #13216: Possible unexpected behaviour reading string starting with a byte order mark
- Shyouhei Urabe wrote:
> > $ echo -n -e '\xEF\xBB\xBFid' | ruby -e 'puts STDIN.read.bytes.pack("U")'
> ...
Not a bug.
`pack("U")` packs just one codepoint, and U+00EF is LATIN SMALL LETTER I WITH DIAERESIS, which is the printed exact... -
01:41 AM Bug #13216: Possible unexpected behaviour reading string starting with a byte order mark
- Hello.
Gabriel Giordano wrote:
> $ echo -n -e '\xEF\xBB\xBFid' | ruby -e 'puts STDIN.read.bytes'
> ...
These two are as expected, aren't they?
> $ echo -n -e '\xEF\xBB\xBFid' | ruby -e 'puts STDIN.read.to_sym'
> ...
I think it's... - 02:47 AM Revision f4e0086d (git): * 2017-02-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:47 AM Revision 9019934c (git): win32.c: memcpy instead of strlcpy
- * win32/win32.c (cmdglob): memcpy the exact size instead of
strlcpy with +1.
* win32/win32.c (w32_cmdvector): ditto, with NUL-terminating.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:33 AM Feature #7792: Make symbols and strings the same thing
- > result = some.rpc_method(foo:123, bar:"baz")
> ...
I believe it is time now with the advent of Ruby 3 to revisit this feature request.
Although maybe not quite like it is stated right now.
What are your feelings about it? -
02:21 AM Feature #7792: Make symbols and strings the same thing
- Hi Daniel,
Daniel Ferreira wrote:
>
> ...
I've continued using the aforementioned RPC system without enabling
the setting that would allow it to recreate symbols on the receiving
end.
So it continues to work as it did before (i... -
01:22 AM Feature #7792: Make symbols and strings the same thing
- Hi Bill
> One example:
> ...
With symbols being garbage collected now is this functionality broken or are you still relying on symbols over strings for your solution?
Thanks,
Daniel
02/15/2017
-
08:58 PM Bug #13216 (Closed): Possible unexpected behaviour reading string starting with a byte order mark
- Maybe the comparison between symbols has an unexpected behaviour. Tested with ruby 2.4.0
```
$ echo -n -e '\xEF\xBB\xBFid' | ruby -e 'puts STDIN.read.bytes'
239
187
191
105
100
$ echo -n -e 'id' | ruby -e 'puts STDIN.read.byt... -
04:41 PM Bug #13215: Cross compiling Ruby Gems uses Build System Linker Options
- If Rubygems (which I thought was part of Ruby now?) doesn't support cross-compiling Ruby gems, how do you cross-compile Ruby gems ?
-
07:17 AM Bug #13215 (Third Party's Issue): Cross compiling Ruby Gems uses Build System Linker Options
- Does rubygems support cross-compiling?
-
01:41 PM Feature #13211: Hash#delete taking a splat
- Okay, yes, an arbitrary number of arguments. Is this something to which people would be amenable?
-
12:10 PM Feature #13211: Hash#delete taking a splat
- Whether to accept a splat (perhaps on an array) at the beginning of an argument is not something to be specified as a method signature.
Your real issue is to let the method accept an arbitrary number of arguments.
Whether you pass ... -
11:17 AM Revision 12cccce6 (git): Update gems/bundled_gems
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:51 AM Revision 22510511 (git): gmake.mk: mflags without -jN
- * defs/gmake.mk (mflags): override the definition in common.mk
without -jN option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:51 AM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
- Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
> On 2017/02/13 19:05, Nobuyoshi Nakada wrote:
> ...
Ah, thanks. I forgot this :x I saw you already made r57634.
Since callcc is obsolete, is the following patch OK; or can Fiber
have th... -
07:32 AM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
- On 2017/02/13 19:05, Nobuyoshi Nakada wrote:
>> But in marshal.c, I think we can use `klass==0` to hide the object
> ...
Sorry, I missed that `arg` may be dereferenced in `check_dump_arg()`
in the case continuation is used. Hiding wr... -
08:38 AM Revision d9ae8c0b (git): marshal.c: revert r57631 partially
- * marshal.c (rb_marshal_dump_limited): do not free dump_arg, which
may be dereferenced in check_dump_arg due to continuation, and
get rid of dangling pointers.
* marshal.c (rb_marshal_load_with_proc): ditto for load_arg.
git-svn-id... -
05:53 AM Revision cd891481 (git): thread.c: fix for VC
- * thread.c (rb_fd_no_init): make void same as rb_fd_init_copy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:42 AM Revision 87577a1f (git): * 2017-02-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:42 AM Revision 9f20ee51 (git): marshal.c: use hidden objects to allow recycling
- Hidden objects (klass == 0) are not visible to Ruby code invoked
from other threads or signal handlers, so they can never be
accessed from other contexts. This makes it safe to call
rb_gc_force_recycle on the object slot after releasing...
02/14/2017
-
06:42 PM Bug #13215 (Third Party's Issue): Cross compiling Ruby Gems uses Build System Linker Options
- When cross-compiling Ruby Gems under Ruby 2.4.0, the rbconfig system uses the build system's configuration to cross-compile Ruby Gems, resulting in linker flags that do not work for the host system's linker.
Example:
~~~ text
curb... -
01:49 PM Bug #12604: Win32::Resolv.get_resolv_info returns unavailable DNS servers
- r57629 is also need to be backported.
-
09:59 AM Bug #12604: Win32::Resolv.get_resolv_info returns unavailable DNS servers
- I reverted r57571 at r57626. r57571 broke RubyCI on vc12-x64.
http://13.78.52.201/vc12-x64/ruby-2.3/log/20170207T182419Z.log.html.gz
I cannot have time to see in details to fix it just now, I temporarily reverted it. - 01:29 PM Revision b89623fb (git): Fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:34 PM Revision aded420d (git): resolv9x.rb: fix typo
- * ext/win32/lib/win32/resolv9x.rb (WsControl): fix missing close
parenthesis at r22724.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:29 PM Revision 7de42daa (git): string.c: assertion
- * string.c (str_shared_replace): use RUBY_ASSERT for
pre-condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:04 PM Bug #13214 (Closed): FileUtils::mkdir_p creates additional (unrequested) directory on Cygwin
- FileUtils.mkdir(SOMEPATH) on Cygwin will create a directory ./c: in addition to SOMEPATH, if the following two conditions are met:
-SOMEPATH must be specified as absolute path using Windows drive letters and forward slashes as separat... -
11:26 AM Feature #5481: Gemifying Ruby standard library
- @headius
Thank you for your information. I have never seen jruby patches in jruby/ruby repository.
https://github.com/jruby/ruby/commit/b34aa3d97872a70ca91d8e2dd481628444f33d5e
I think that the above patch is a good way to merge... -
11:12 AM Feature #13213 (Closed): Gemify scanf
- Applied in changeset r57627.
----------
Added initial gemspec for Scanf module.
[Feature #13213] -
11:02 AM Feature #13213 (Closed): Gemify scanf
- This issue is tracking for gem release of Scanf module.
-
11:12 AM Revision 6c0d7c98 (git): Added initial gemspec for Scanf module.
- [Feature #13213]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:56 AM Revision 0f1e7563 (git): revert r57571. `merge revision(s) 55781,55783: [Backport #12604]`
- It breaked CI on vc12-x64
http://13.78.52.201/vc12-x64/ruby-2.3/log/20170207T182419Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@57626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:52 AM Revision 957e6e4b (git): initialize variables
- * string.c (rb_str_enumerate_lines): initialize conditionally
used variable.
* thread.c (rb_fd_no_init): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:51 AM Feature #13212 (Closed): Syntax proposal: don't require begin-end to rescue exceptions inside do-end blocks
- It's accepted by https://bugs.ruby-lang.org/issues/12906
You can use this syntax after Ruby 2.5. -
12:10 AM Misc #13209: fact.rb in ruby/sample variations
- For MRI Ruby (but not JRuby) **while** loops are consistently faster than all
the other loop constructs (times, each, step, etc). If the goal is fastest
possible speed for MRI Ruby 3x3 it seems internals should use **while** loops
whe...
02/13/2017
-
09:02 PM Feature #13212 (Closed): Syntax proposal: don't require begin-end to rescue exceptions inside do-end blocks
- Blocks are ubiquitous in Ruby world. There's as many blocks in every Ruby code as methods - if not even more. It would be very nice to treat blocks as first class citizens like methods and reduce the undesirable begin-end boilerplate ins...
-
06:35 PM Feature #5481: Gemifying Ruby standard library
- Please coordinate with us on the JRuby team. The released gems will need to be loadable in JRuby, since people will start depending on specific versions, upgrading them independently, etc.
MOST of stdlib in JRuby is identical to that ... -
05:53 PM Misc #13209: fact.rb in ruby/sample variations
- Added another version using the **step** method, in **fact3**.
It's faster than using **downto** and neck-in-neck with using **reduce** as n gets bigger.
```
def fact(n)
return 1 if n == 0
f = 1
n.downto(1) do |i|
f *... -
12:59 AM Misc #13209 (Open): fact.rb in ruby/sample variations
- I was looking at some of the Sample files that come with Ruby and
saw the example for doing factorials. It's an old example that I
thought I could make simpler/faster. Below are the results.
Maybe upgrading to show the difference be... -
04:38 PM Feature #13211 (Closed): Hash#delete taking a splat
- Hi there,
I would like to add the ability for Hash#delete to take a splat of arguments that would delete entries at each of the given keys. I've run into this quite a few times where it would be useful in application code. Something l... -
03:28 PM Revision c59f2b03 (git): gmake.mk: test-ruby
- * defs/gmake.mk (ORDERED_TEST_TARGETS): add test-ruby target, test
for ruby core without bundled libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:19 PM Revision 69aa9bd5 (git): * 2017-02-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:19 PM Revision b1c61c6e (git): thread.c: use ASSUME only on gcc 5 or later
- * thread.c (rb_fd_no_init): on gcc 4, ASSUME macro affects
something too much.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:08 PM Revision c9929d9f (git): ruby.h: remove comment
- * include/ruby/ruby.h (RB_GC_GUARD): remove comment unsupported by
Solaris AS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:16 PM Revision ad97d483 (git): lib/find.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:12 AM Bug #13210 (Rejected): Wrong float substraction result
- Floating point calculations have limited precision!
Please read http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html.
It's linked from the top page of this site (https://bugs.ruby-lang.org/). -
09:35 AM Bug #13210 (Rejected): Wrong float substraction result
- ~~~ ruby
0.1 - 0.0001 => 0.0999
0.1 - 0.001 => 0.099
0.1 - 0.01 => 0.09000000000000001
0.01 - 0.0001 => 0.00999
0.01 - 0.001 => 0.0099
0.01 - 0.01 => 0.009000000000000001
~~~
There is something strange going on.
As you c... -
10:08 AM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
- On 2017/02/13 10:04, Eric Wong wrote:
> I still support fixing `RB_GC_GUARD` to be stronger for GCC7.
I think it is stronger than GCC7 now.
> ...
Seems nice.
--
Nobu Nakada
-
01:08 AM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
- Eric Wong <normalperson@yhbt.net> wrote:
> naruse@ruby-lang.org wrote:
> ...
I still support fixing `RB_GC_GUARD` to be stronger for GCC7.
But in marshal.c, I think we can use `klass==0` to hide the object
and use `rb_gc_force_recy... -
08:14 AM Revision 9eb54f7f (git): ruby.h: RB_GC_GUARD stronger than gcc7
- * include/ruby/ruby.h (RB_GC_GUARD): prevent guarded pointer from
optimization by using as an input to inline asm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:57 AM Bug #13081: resolv.rb may be the cause of the rubygems bug on Windows
- Nobuyoshi Nakada wrote:
> Applied in changeset r57265.
> ...
How can I reflect this update to our local Ruby+Windows environment?
(of course this fails.)
~~~ text
C:\Ruby23\bin>gem update --system
ERROR: While executing gem ..... -
06:22 AM Feature #13207: Allow keyword local variable names like `class` or `for`
- I don't have any pro or con on the proposal itself. I also have no idea if
this is a difficult change or whether matz likes it or not, but I wanted
to comment on just one other part.
Kasper Timm Hansen gave this example with keyword... -
05:44 AM Revision 959aac29 (git): suppress warnings
- * string.c (rb_str_enumerate_lines): hint to suppress a
maybe-uninitialized warning by gcc.
* thread.c (rb_fd_no_init): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:23 AM Revision 5c0aa3ad (git): compile.c: suppress a warning
- * compile.c (iseq_build_kw): suppress an alloc-size-larger-than
warning by gcc 7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:11 AM Revision 44e36c79 (git): gmake.mk: tests step
- * defs/gmake.mk (TEST_TARGETS): run tests step by step.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:53 AM Feature #13173: Gemify webrick
- webrick gem is already registered.
* https://rubygems.org/gems/webrick (It's masked yet)
this gem is registered by @nahi. I ask him about this namespace after unmasked on rubygems.org. -
02:52 AM Feature #13197: Gemify fileutils
- fileutils gem is already registered.
* https://rubygems.org/gems/fileutils (It's masked yet)
I ask about this namespace to rubygems.org admin. -
02:50 AM Feature #13201 (Open): Gemify dbm
- DBM gem is already registered. see. https://rubygems.org/gems/dbm
- 02:04 AM Revision 302ae913 (git): array.c (ary_recycle_hash): use rb_gc_force_recycle
- Hidden objects (RBASIC_CLASS(hash) == 0) can never become
visible to other threads or signal handlers via
ObjectSpace.each_object or similar means. Thus it is safe to
forcibly recycle the object slot for future use, here.
git-svn-id: s... - 01:05 AM Revision d6de5804 (git): cont.c: avoid needless branch for dmark callbacks
- gc.c (gc_mark_children, case T_DATA) does not use
the dmark function pointer if DATA_PTR is NULL
* cont.c (cont_mark, fiber_mark): remove branch, ptr is never NULL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57614 b2dd03c8-39d4-4...
02/12/2017
- 11:37 PM Revision ba77cb7c (git): * 2017-02-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:37 PM Revision be92fcab (git): gmake.mk: -n for tests
- * defs/gmake.mk (gnumake_recursive): do not invoke tests if -n
option is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:58 PM Feature #13208: Vector.zero(n) and vector.zero?
- Looks good.
I think the short description is probably good enough. The example makes it clear if someone has doubts...
I'm travelling, will commit in a few days. -
08:15 PM Feature #13208: Vector.zero(n) and vector.zero?
- I think the method is fine but of course that is just my own opinion,
the core team and matz will decide that.
One hopefully small request though:
- Do you think you could make the description for the method a
bit more explicit... -
08:19 PM Feature #13166: Feature Request: Byte Arrays for Ruby 3
- I want to using an Array8 that has the same semantics, and inherits the same module methods (`Enumerables`, etc),
as Array. I need its elements to be numberical values from 0..255 and/or -128..0..127.
Since 8-bit bytes are the minim... -
04:22 PM Feature #2740: Extend const_missing to pass in the nesting
- This would still be very useful for people implementing auto loading systems, not just Rails
-
12:53 PM Feature #13207 (Feedback): Allow keyword local variable names like `class` or `for`
- `Binding#local_variable_get` is for that purpose.
Or do you have any concrete proposal? -
12:40 PM Feature #5588: add negation flag (v) to Regexp
- Onigmo 6.1.1 was merged by r57603.
It supports absent operator `(?~pattern)` which can be a replacement of `(?v:pattern)`. -
08:43 AM Revision 425d52df (git): parse.y: ripper_intern is no longer used
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:33 AM Revision 2c51dc50 (git): parse.y: logop
- * defs/id.def (predefined): add keywords `and` and `or`.
* parse.y (log_op): unify parser and ripper, and use tokens
instead of node types and symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57610 b2dd03c8-39d4-4d8f-98ff-8... -
04:31 AM Revision b2345fec (git): ext/objspace: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:23 AM Revision 737d6f36 (git): parse.y: call_bin_op
- * parse.y (call_bin_op): unify parser and ripper, and use IDs
instead of tokens.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:20 AM Revision a062d030 (git): parse.y: call_uni_op
- * defs/id.def (predefined): add keyword `not`.
* parse.y (call_uni_op): unify parser and ripper, and use IDs
instead of tokens.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:15 AM Revision 549a3b74 (git): ripper: fix %-op on_operator_ambiguous
- * parse.y (ambiguous_operator): separate token and string
representation of operators, to fix %-operator argument. in a
warning message, needs to be escaped by '%' but the symbol
should not be.
git-svn-id: svn+ssh://ci.ruby-lang.... -
02:48 AM Revision 01134984 (git): symbol/init.c: ID value
- * ext/-test-/symbol/init.c (sym_pinneddown_p): return ID value or
nil for debugging.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/11/2017
-
07:54 PM Feature #13208 (Closed): Vector.zero(n) and vector.zero?
- Found that I need this recently, and class `Matrix` has these two function while `Vector` not.
So I add two function based on `Matrix` counterpart and also add test.
Usage
``` ruby
require 'matrix'
v = Vector.zero(3) # => Vecto... -
03:47 PM Feature #13207 (Feedback): Allow keyword local variable names like `class` or `for`
- Sometimes when trying to write expressive Ruby you enevitably hit a case
that would sound just right if the variable name matches a Ruby keyword.
E.g. writing a method to output HTML tags:
```ruby
def label_tag(text, class:)
%... - 03:08 PM Revision 6d0f7c3c (git): * 2017-02-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:08 PM Revision 6b1c6e0e (git): Merge Onigmo 6.1.1
- * Support absent operator https://github.com/k-takata/Onigmo/issues/82
* https://github.com/k-takata/Onigmo/blob/Onigmo-6.1.1/HISTORY
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:37 AM Revision 238b9276 (git): appveyor.yml: extract zlib_version
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:33 AM Revision 0da70829 (git): fiddle/depend: build-libffi
- * ext/fiddle/depend (build-libffi): get rid of making $(LIBFFI_A)
a sole target, which may be empty when installed libffi is
found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:05 AM Misc #13072: Current state of date standard library
- Just wanted to add - for a new user of ruby, it may be confusing to
know the difference between Time, Date, DateTime and DuckTime (ok
the last one is made up but you get the point).
So from that point of view, it may be easier to un... -
08:59 AM Feature #5481: Gemifying Ruby standard library
- Looks as if this ticket may soon be resolved/finished after 5 years. :)
The only one on the todo list above is "Related to Ruby trunk - Misc #13072:
Current state of date standard library", or is there something else missing
that ha... -
03:12 AM Revision 78295b6b (git): appveyor.yml: Update zlib
- * Update zlib to 1.2.11
* Use https instead of http
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:14 AM Revision 8a4382a7 (git): * 2017-02-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:14 AM Revision 58e97c4e (git): parse.y: TOKEN2ID
- * parse.y (TOKEN2ID): add macro which maps static tokens to IDs.
* template/id.h.tmpl (TOKEN2*ID, DEFINE_*ID_FROM_TOKEN): separate
into macros, token to ID mapping and enum definitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru... -
02:03 AM Bug #13187 (Third Party's Issue): In rails console ,excute "User.all" or "User.new",remind a bugreport