Activity
From 01/29/2018 to 02/04/2018
02/04/2018
-
09:12 PM Feature #13581: Syntax sugar for method reference
- landongrindheim (Landon Grindheim) wrote:
> Is `map(&Math.&(:sqrt)` viable? Perhaps it would be confused with the safe navigation operator.
No. It would break backward compatibility, as that is currently interpreted as:
~~~
Math.... -
08:10 PM Feature #13581: Syntax sugar for method reference
- > * `map(&Math->sqrt)` (and just `each(&->puts)` probably?) -- Matz is explicitly against it;
Is `map(&Math.&(:sqrt)` viable? Perhaps it would be confused with the safe navigation operator. -
06:26 PM Bug #14440: --jit does not work by default on OpenBSD due to use of gcc instead of clang
- Agreed. May be simpler to just notify the user which GCC versions are
currently supported; and if it works the modern GCC, one can look to
see that older GCC versions could also use --jit. -
04:44 PM Bug #14440 (Closed): --jit does not work by default on OpenBSD due to use of gcc instead of clang
- On OpenBSD, when using just `--jit`, ruby issues a warning message to `$stderr`:
~~~
$ ruby --jit -e 'p 1'
.ext/include/x86_64-openbsd/rb_mjit_min_header-2.6.0.h:2924: error: wrong number of arguments specified for '... -
04:50 PM Bug #14441 (Closed): Dir.chroot results in segfault when used with --jit
- Example code:
~~~
$ ruby --jit --jit-cc=clang -e 'a = 0; Dir.chroot("."); 50000000.times{|i| a += i }; p a
-e:1: [BUG] Segmentation fault at 0x0000000000000058
ruby 2.6.0dev (2018-02-05 trunk 62211) [x86_64-openbsd]
-- Control f... -
03:40 PM Revision 2c179b12 (git): mjit.c: define __EXTENSIONS__ earlier
- Another try of r62204 and r62192.
As far as I can see from solaris's signal.h and sys/procset.h, the only
possibility that causes the following error would be that sys/procset.h
is included without __EXTENSIONS__ and signal.h included i... -
03:34 PM Revision 1f2293df (git): MINIRUBY dependency
- * common.mk ($(MJIT_MIN_HEADER)): add dependency for $(MINIRUBY).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:23 PM Revision 67f12c5f (git): use MINIRUBY
- * common.mk ($(MJIT_MIN_HEADER)): use $(MINIRUBY) at build time.
$(BASERUBY) may not be available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:17 PM Revision 24fcc027 (git): common.mk: CPPOUTFLAG
- * common.mk (rb_mjit_header.h): use $(CPPOUTFLAG).
* win32/Makefile.sub (CPPOUTFLAG): needs -Fi to let cl.exe name
preprocessed file, instead of -Fo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62208 b2dd03c8-39d4-4d8f-98ff-823... - 03:05 PM Revision bfae4b5d (git): * 2018-02-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:05 PM Revision ec115506 (git): common.mk: use vm.i as the temporary filename
- because `cl -P vm.c` always produces vm.i regardless of -o XXX and
currently mswin build is failing.
Fixing r62202. If this commit does not work, I'll revert this and
r62202.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62206 b2dd... -
02:38 PM Bug #14437: Integer == doesn't work with coerce since 2.4 (and != since 1.9). Should it?
- nobu (Nobuyoshi Nakada) wrote:
> `==` and `!=` have never called `coerce`.
> ...
You're right about coerce not being involved here, my theory was wrong.
Looking at the code fix_equal(x,y) when y was of non-core class used to call nu... -
08:51 AM Bug #14437: Integer == doesn't work with coerce since 2.4 (and != since 1.9). Should it?
- `==` and `!=` have never called `coerce`.
Only `+`, `-`, `<`, `>` and so on. -
02:08 PM Feature #14235: Merge MJIT infrastructure with conservative JIT compiler
- I committed Vladimir's MJIT works in r62187 and r62189, and current YARV-MJIT in r62197. The problems in this ticket's description would be solved.
Right now I'm fixing trunk to improve portability, seeing RubyCI. -
11:22 AM Feature #14235 (Closed): Merge MJIT infrastructure with conservative JIT compiler
- Applied in changeset trunk|r62197.
----------
mjit_compile.c: merge initial JIT compiler
which has been developed by Takashi Kokubun <takashikkbn@gmail> as
YARV-MJIT. Many of its bugs are fixed by wanabe <s.wanabe@gmail.com>.
This JIT... -
01:51 PM Revision e8168752 (git): transform_mjit_header.rb: refactor messages and exit
- * tool/transform_mjit_header.rb: print non-error messages to
STDOUT instead of STDERR. exit with false or abort instead of
exit 1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:49 PM Revision ec7dd299 (git): mjit.c: another try for fixing solaris build
- Reverted r62192 and added another try.
I prepared Solaris environment but I couldn't reproduce the RubyCI build
failure. So I'm testing on trunk.
I found the following article and it fixed the same problem with passing
`-D__EXTENSIONS__... -
01:47 PM Revision 7f7a49fe (git): common.mk: phony target mjit-headers
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:43 PM Revision 29c9dc31 (git): common.mk: rb_mjit_header.h
- * common.mk (rb_mjit_header.h): moved from Makefile.in and
win32/Makefile.sub.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 PM Revision 1a5470e9 (git): Makefile.sub: CFLAGS_NO_ARCH
- * win32/Makefile.sub: split CFLAGS into CFLAGS_NO_ARCH and
ARCH_FLAG, as well as Makefile.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:15 PM Revision 25a82d79 (git): vm.c: feedback control frame size change
- to VM_ASSERT. r62197 is adding bp.
I'll try to remove bp, but let's pass CI which enables assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:12 PM Revision e35ff789 (git): match whole word
- * tool/transform_mjit_header.rb: add word boundary anchors and
match whole word to get rid of false `static` declarations,
e.g., rb_str_new_static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62199 b2dd03c8-39d4-4d8f-98ff-823f... -
01:05 PM Feature #14417: String#sub / String#gsub に『キーが Symbol の Hash』を渡せるようにする提案
- Hanmac (Hans Mackowiak) wrote:
> @duerst: what about my example where it does transform the keye internal for the given Hash?
> ...
If the hash is called many times from gsub, those integers shold be converted as String before gsub.
B... -
12:52 PM Bug #14439: build failed on NetBSD 7.1 with MJIT
- 手元のconfigureには該当行は存在するので、たぶん関係ないかと。
-
12:51 PM Bug #14439: build failed on NetBSD 7.1 with MJIT
- In message <redmine.issue-14439.20180204122852.8b177c62b00fc2c1@ruby-lang.org>
on Sun, 04 Feb 2018 12:28:54 +0000 (UTC),
usa@garbagecollect.jp wrote:
> というわけで手元のNetBSD/i386 7.1で試そうとしたら、残念ながらビルドエラーになりました。
http://cvsweb.netbsd.org/b... -
12:28 PM Bug #14439 (Closed): build failed on NetBSD 7.1 with MJIT
- MJITマージおめでとうございます。
というわけで手元のNetBSD/i386 7.1で試そうとしたら、残念ながらビルドエラーになりました。
```
error in final header file:
/tmp/20180204-20715-187ick.c:4961:1: error: static declaration of ‘sigaddset’ follows non-static declaration
sigaddset(sigset_... -
12:37 PM Feature #14430: net/http: use Socket.tcp with connect_timeout, instead of TCPSocket.open wrapped in Timeout.timeout
- normalperson (Eric Wong) wrote:
>
> ...
Right, good catch.
>
> ...
Looking into this i realize that /etc/nsswitch.conf has be to taken into account first. And then maybe nscd, but very few distros (if any?) install it by defau... -
11:59 AM Revision 83a9ccb0 (git): Fix typos and remove redundant `/#{}/`
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:30 AM Bug #14438 (Closed): TestTimeTZ: failures with recent version of tzdata
- This has beeen reported in [Debian as Debian bug #889046](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889046)
Recent tzdata has fixed some definitions about the Japan timezone in the 50s:
> http://mm.icann.org/pipermail/tz-... -
11:22 AM Revision ed935aa5 (git): mjit_compile.c: merge initial JIT compiler
- which has been developed by Takashi Kokubun <takashikkbn@gmail> as
YARV-MJIT. Many of its bugs are fixed by wanabe <s.wanabe@gmail.com>.
This JIT compiler is designed to be a safe migration path to introduce
JIT compiler to MRI. So this... -
09:48 AM Revision 56530b54 (git): Makefile.in: use CFLAGS_NO_ARCH for cpp
- Using $(CFLAGS) breaks the build when multiple `-arch` options are
given. Then we should omit arch flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:34 AM Revision b421f1a7 (git): common.mk: MJIT_MIN_HEADER
- * common.mk ($(MJIT_MIN_HEADER)): moved duplicate recipe from
Makefile.in and win32/Makefile.sub.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:13 AM Revision 5dc3da08 (git): use ifchange tool for rb_mjit_header.h
- * Makefile.in, win32/Makefile.sub (rb_mjit_header.h): use ifchange
tool. cmp command is not available on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:24 AM Revision 329776cd (git): mjit.c: use InterlockedExchangePointer
- for Windows, if it's available.
Before this commit, Windows builds printed following warnings.
mjit.c
../mjit.c(802) : warning C4047: 'function' : 'volatile LONG *' differs in levels of indirection from 'void **'
../mjit.c(802) : warnin... -
07:52 AM Revision 328666a6 (git): mjit.c: try to fix Solaris build failure
- In file included from vm_core.h:87:0,
from mjit.c:81:
/usr/include/signal.h:71:29: error: unknown type name 'procset_t'
extern int sigsendset(const procset_t *, int);
^
In file included from... -
07:43 AM Revision 8a0678b4 (git): mjit.c: try porting va_copy
- for non C99 conforming environments.
The behavior of this macro is undefined, but I heard this works on many
architectures. Let me check the Ruby CI result with this change.
(My Windows environment has only Visual Studio 2015 and va_cop... - 06:58 AM Revision 4342fd3d (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:58 AM Revision fd44a577 (git): mjit.c: merge MJIT infrastructure
- that allows to JIT-compile Ruby methods by generating C code and
using C compiler. See the first comment of mjit.c to know what this
file does.
mjit.c is authored by Vladimir Makarov <vmakarov@redhat.com>.
After he invented great metho... -
06:14 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- Excited to see this awesome feature! I'm implemented fiber-auto-schedule at ruby userland([light](https://github.com/socketry/lightio)) few month ago(using monkey patch). Due to ruby complexity IO API (like: `getc`, `getbyte`, `put,c`, `...
- 05:49 AM Revision b2de4e0b (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:49 AM Revision 0af44e72 (git): common.mk: install a single header file for JIT
- compilation which is created by transforming a preprocessed vm.c.
This file will be used by JIT compiler's generated code which we are
going to have from succeeding commits.
Makefile.in: generate MJIT header for UNIX environments.
win32... -
05:21 AM Bug #14357: thread_safe tests suite segfaults
- Eric Wong wrote:
> ST_DEBUG doesn't reveal anything nor does switching to
> QUADRATIC_PROBE. Waiting for valgrind which is very slow
> and I need to go afk to do other things...
Could be a GC problem related to coverage (also [Bu... -
01:31 AM Revision 0718f53b (git): thread.c: timespec_for is used only if poll() is used
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:39 AM Bug #14162: Invoking binding.irb destructively shifts ARGV
- ruby_2_4 r62185 merged revision(s) 61149,61150,61151,61167.
-
12:39 AM Revision 82031fa8 (git): merge revision(s) 61149,61150,61151,61167: [Backport #14162]
- irb.rb: preserve ARGV on binding.irb
This is not perfectly good solution (at least we don't want to have ARGV
as default value of `argv` argument), but unfortunately IRB.setup and
IRB.parse_opts are public method...
02/03/2018
-
11:21 PM Bug #14357: thread_safe tests suite segfaults
- Eric Wong wrote:
> Using -fsanitize=address reveals use-after-free in st.c
> Investigating, but maybe Vladimir can find it sooner.
ST_DEBUG doesn't reveal anything nor does switching to
QUADRATIC_PROBE. Waiting for valgrind which... -
08:51 PM Bug #14357: thread_safe tests suite segfaults
- v.ondruch@tiscali.cz wrote:
> https://bugs.ruby-lang.org/issues/14357
>
> The thread_safe gem is not maintained anymore, but I don't see
> any reason why its test suite should segfault with Ruby 2.5.
Right, no 3rd-party C exts l... -
11:07 PM Bug #14387: Ruby 2.5 を Alpine Linux で実行すると比較的浅めで SystemStackError 例外になる
- There's a very similar sounding issue being discussed on the python bug tracker: https://bugs.python.org/issue32307
-
10:42 PM Bug #14380: Expected transform_keys! to work just as transform_keys, but it doesn't
- marcandre (Marc-Andre Lafortune) wrote:
> I raised this issue previously https://bugs.ruby-lang.org/issues/13583#note-8
> ...
I'd say that ActiveSupport is testing group for possible new ruby features,
and when getting them into ruby ... -
10:28 PM Bug #14437 (Closed): Integer == doesn't work with coerce since 2.4 (and != since 1.9). Should it?
- Here's extracted test sample:
~~~ruby
class Item
def initialize(value)
@value = value
end
def coerce(other)
[Item.new(other), self]
end
def ==(other)
Item.new("#{inspect} == #{other.inspect}")
end... -
10:28 PM Misc #14431 (Closed): [PATCH] thread.c: remove FP from time calculations
- committed as r62179, r62181, r62182, r62183, r62184
- 10:24 PM Revision 05c18139 (git): thread.c (thread_join_m): avoid NUM2TIMET for Bignum
- Bignums exceed the range of time_t (or long).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:59 PM Revision c0e2f98f (git): thread.c: avoid FP in C-API time calculations
- FP arithmetic can lose precision in some cases leading to
premature wakeup and wasting CPU cycles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:59 PM Revision c915390b (git): thread.c: avoid FP for Thread#join
- FP arithmetic can lose precision in some cases leading to
premature wakeup and wasting CPU cycles.
Convert to use timeval_* functions for now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:59 PM Revision 712439b5 (git): thread.c: extract timeval_sub from timeval_update_expire
- It can be useful on its own.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:59 PM Revision 9ee75789 (git): * 2018-02-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 07:59 PM Revision 076d8863 (git): thread.c (rb_thread_terminate_all): eliminate double2timeval call
- No point for a fixed 1s value, and I plan on eliminating double
timeouts from internal API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:41 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- sam.saffron@gmail.com wrote:
> Issue #13618 has been updated by sam.saffron (Sam Saffron).
>
> > I'm leaning towards Thread::Green, so existing users can do
> > s/Thread.new/Thread::Green.new/ in many cases.
>
> Yes I think thi... -
01:36 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- > I'm leaning towards Thread::Green, so existing users can do
> ...
Yes I think this works the problem though is that people will
expect this to work like green threads, meaning they also
should auto-yield regularly. You should be a... -
07:30 AM Revision 7036c406 (git): parse.y: named backslash
- * parse.y: named backslash to show unexpected character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:25 AM Revision bd5406df (git): compile.c: fix string Range optimization with FSL
- The optimization in [Feature #13355] needs to be detected
differently to work with "frozen_string_literal: true"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:21 AM Revision 55e606b3 (git): parse.y: use lex_goto_eol to skip to EOL
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:50 AM Revision 28490dd1 (git): process.c: command_name encoding
- * process.c (rb_exec_fillarg): share subsequence of argv_buf for
command_name, and copy the encoding from the command string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:51 AM Bug #14032: squiggly heredoc with an interpolation at the beginning is unindented wrongly
- ruby_2_4 r62174 merged revision(s) 60213.
-
02:51 AM Revision 737d1539 (git): merge revision(s) 60213: [Backport #14032]
- parse.y: indent at '#'
* parse.y (parser_here_document): update indent at '#', which is
not a space. [ruby-core:83368] [Bug #14032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@62174 b2dd03c8-39d4-4d... -
02:39 AM Bug #14014: NaN.finite?
- ruby_2_4 r62173 merged revision(s) 60040,60188.
-
02:39 AM Revision 65992061 (git): merge revision(s) 60040,60188: [Backport #14014]
- complex.c: no overflow
* complex.c (rb_complex_finite_p): get rid of overflow and
unnecessary multiplication.
test_complex.rb: NaN Complex
* test/ruby/test_complex.rb (test_finite_p): assertions for N... -
02:25 AM Bug #13982: Memory leak in Zlib.gunzip
- ruby_2_4 r62172 merged revision(s) 60042,60130,60131.
-
02:25 AM Revision ce2bc45a (git): merge revision(s) 60042,60130,60131: [Backport #13982]
- ext: adjust indent [ci skip]
zlib.c: memory leak in gunzip
* ext/zlib/zlib.c (zlib_gunzip): clear zstream to fix memory leak.
[ruby-core:83162] [Bug #13982]
zlib.c: ensure to free
* ext/zlib/... -
02:05 AM Bug #13928: Calling Integer.fdiv with BigDecimal returns unexpected result
- ruby_2_4 r62171 merged revision(s) 59986.
-
02:05 AM Revision 05ba9938 (git): merge revision(s) 59986: [Backport #13928]
- numeric.c: use NUM2DBL
* numeric.c (fix_fdiv_double), bignum.c (rb_big_fdiv_double): use
NUM2DBL on unknown object. RFLOAT_VALUE is only appliicable to
T_FLOAT object. [ruby-core:82924] [Bug #13928]
git-sv... -
01:57 AM Revision eaf301d2 (git): backward.h: adjusted NORETURN declaration
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/02/2018
-
11:25 PM Revision da01eb93 (git): eval.c: get rid of format-zero-length warning
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:41 PM Bug #14334: Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
- pragtob@gmail.com wrote:
> issue" means, but I'm relatively certain that it's a bug in
> Ruby we managed to reproduce it without any simplecov involved
> purely using the coverage library:
> https://github.com/colszowka/simplecov/is... -
04:01 PM Bug #14334: Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
- Hi there!
I'm not quite sure exactly what the status "Third Party's issue" means, but I'm relatively certain that it's a bug in Ruby we managed to reproduce it without any simplecov involved purely using the coverage library: https:/... -
05:30 PM Bug #14436 (Closed): Enchance yield_self docs
- Trying to explain by example how it could be used.
-
05:28 PM Bug #14435 (Closed): Time#gettime slow performance in forked process
- Hi,
I'm seeing poor performance in `Time#gettime` when executing code in a forked process. Perhaps this is expected, but after a good amount of research I could not come to a reasonable conclusion.
See comparisons below:
~~~
re... -
04:44 PM Revision 8b242a0d (git): test_system.rb: tests without shell
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:39 PM Revision 0d829c4a (git): test_system.rb: exit by abort for portability
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:14 PM Revision 2cbb6fa2 (git): process.c: split pst_message_status from pst_message
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:10 PM Revision 228bffe5 (git): process.c: reduce intermediate string
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:02 PM Revision 4c577c4a (git): backward.h: rb_mod_const_missing is internal function
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:16 PM Revision 529850b7 (git): * 2018-02-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:16 PM Revision 800a5e86 (git): eval.c: unnecessary argument
- * eval.c (rb_interrupt): removed unnecessary convertsion specifier
and an empty string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:09 PM Feature #14382: Make public access of a private constant call const_missing
- nobu (Nobuyoshi Nakada) wrote:
> In the case it is accessed from an inherited class, the receiver class/module may differ from class/module which defines the constant as private.
> ...
Can you please let me know which hook method needs... -
02:36 PM Feature #14382: Make public access of a private constant call const_missing
- In the case it is accessed from an inherited class, the receiver class/module may differ from class/module which defines the constant as private.
So I think that the hook method will need another parameter.
And as a private constant is... -
01:29 PM Revision 9a74cc0a (git): variable.c: removed old warning
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:33 AM Misc #14414: Move https://ruby-talk.trydiscourse.com/ to talk.ruby-lang.org
- I think it would be a nice thing to unify ressources onto the *ruby-lang.org main namespace in general.
Not just trydiscourse - but I agree with Sam.
It may also be useful, provided that it may be possible, to think about having a ... -
11:21 AM Revision 59f50229 (git): Fix test
- Followup to r62158
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:03 AM Revision 02d7ad97 (git): Fix call-seq of NameError.new
- `NameError.new(1,2,3)` raises
`wrong number of arguments (given 2, expected 0..1) (ArgumentError)`
in `StrandardError#initialize`, so NameError can't accept 3 or more arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62159 b2... -
11:03 AM Revision 1659a166 (git): Use more verbose status in error messages
- of `system` with `exception: true` like `Process::Status#inspect`
[Feature #14386] [ruby-core:85013]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:57 AM Feature #13581: Syntax sugar for method reference
- Hanmac (Hans Mackowiak) wrote:
> i know they are different meanings,
Sorry, misread.
> ...
Once a `Method` as the result of `&` to passing a block is allowed, optimization of calling a `Method` object might be possible by adding a... -
08:37 AM Feature #13581: Syntax sugar for method reference
- nobu (Nobuyoshi Nakada) wrote:
> Hanmac (Hans Mackowiak) wrote:
> ...
i know they are different meanings,
i was just wondering if they can be optimized for the VM too, to make them run faster if able
like with not creating extra ruby... -
08:27 AM Feature #13581: Syntax sugar for method reference
- Hanmac (Hans Mackowiak) wrote:
> i don't know about the rubyVM but can `xyz(&method(:symbol))` or `xyz(&obj.method(:symbol))` be optimized like `xyz(&:symbol)` is?
They have different meanings all.
`xyz(&method(:symbol))` == `xyz ... -
08:20 AM Feature #13581: Syntax sugar for method reference
- Question for @nobu :
i don't know about the rubyVM but can `xyz(&method(:symbol))` or `xyz(&obj.method(:symbol))` be optimized like `xyz(&:symbol)` is?
the one with the Symbol was optimized to not create a Proc object if not needed.
... -
05:33 AM Feature #13581: Syntax sugar for method reference
- duerst (Martin Dürst) wrote:
> This may be just me, but I think this kind of syntax without spaces could (or even should) be depreciated.
It would hurt code-golfers and quine-makers. :) -
01:51 AM Feature #13581: Syntax sugar for method reference
- nobu (Nobuyoshi Nakada) wrote:
> ```
> ...
This may be just me, but I think this kind of syntax without spaces could (or even should) be depreciated.
That doesn't mean that for the purpose of this issue, I like `!` or `@`. But the... -
10:41 AM Bug #14433 (Third Party's Issue): Error with Trailblazer Wrap using ruby 2.5.0
- Please quote the actual line in the library to report an issue.
Anyway, I *guess* (just guess, because we can't figure out the actual problem from your report) it looks the same as https://bugs.ruby-lang.org/issues/14023. If so, Trail... -
07:48 AM Bug #14433 (Third Party's Issue): Error with Trailblazer Wrap using ruby 2.5.0
- I updated ruby to 2.5.0 and got such error when start server:
syntax error, unexpected '{', expecting keyword_end (SyntaxError) ....transaction { block.call } } {.
I commented Wrap block and error disappered. I think it's because of ch... -
10:32 AM Bug #14434 (Feedback): IO#reopen fails after EPIPE
- Consider the following code, which emulates `yes | head -1`.
```ruby
IO.popen("head -1", "w") do |f|
f.sync = false
stdout = STDOUT.dup
STDOUT.reopen(f)
loop{puts "y"} rescue break $!
ensure
STDOUT.reopen(stdout)
end... -
08:30 AM Revision 49e801c1 (git): io.c: unused assignments
- * io.c (fptr_finalize_flush): removed unused assignments. if
noraise, err is never used after set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:21 AM Bug #14432: Ruby crashes with "[BUG] pthread_mutex_destroy: Device or resource busy (EBUSY)"
- gfuji@cpan.org wrote:
> The very line that the issue raised is here: https://github.com/ruby/ruby/blob/v2_4_2/thread_pthread.c#L260
OK, that means a pthread_mutex is held while destroy is
happening. Unfortunately we can't look at ... -
06:51 AM Bug #14432 (Closed): Ruby crashes with "[BUG] pthread_mutex_destroy: Device or resource busy (EBUSY)"
- We notice that sidekiq (sidekiq pro) workers crash by `rb_bug_errno()`.
The very line that the issue raised is here: https://github.com/ruby/ruby/blob/v2_4_2/thread_pthread.c#L260
```c
static void
native_mutex_destroy(pthread_mut... -
06:23 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- sam.saffron@gmail.com wrote:
> Having discussed this with Koichi I think he is wanting to
> merge this into core but the big blocker here is naming and
> some small details.
I'm leaning towards Thread::Green, so existing users ca... -
05:46 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- Having discussed this with Koichi I think he is wanting to merge this into core but the big blocker here is naming and some small details.
Koichi is not particularly fond of `Thread.current << lambda {}` cause he feels it is a bit co... - 05:44 AM Revision 80477c1d (git): * 2018-02-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:44 AM Revision cc410b2a (git): io.c: hoisted out io_fd_check_closed
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:26 AM Misc #14431 (Closed): [PATCH] thread.c: remove FP from time calculations
- Pretty straightforward. Will commit soonish.
In the future, I may move towards timespec instead of timeval
since it's more accurate and might result in fewer conversions
with clock_gettime being favored.
```
thread.c: remove FP f... -
12:35 AM Feature #14430: net/http: use Socket.tcp with connect_timeout, instead of TCPSocket.open wrapped in Timeout.timeout
- > implement Timeout in the VM itself so it doesn't need
> ...
There be dragons hiding in the VM.
\o/
02/01/2018
-
11:13 PM Feature #13581: Syntax sugar for method reference
- mpapis (Michal Papis) wrote:
> Not sure it's worth it - but while we are at this thinking of a shorthand one of the proposals `&Math&>sqrt` made me think if it could be automated and all the iterators could recognize methods and we coul... -
10:05 PM Feature #13581: Syntax sugar for method reference
- Not sure it's worth it - but while we are at this thinking of a shorthand one of the proposals `&Math&>sqrt` made me think if it could be automated and all the iterators could recognize methods and we could avoid the initial `&` to this ...
-
09:25 PM Feature #14274: Merge Std-Lib Time Class into Core
- Thank you for the replies so far. I do indeed hope that this issue gets attention from the core Ruby maintainers, maybe even Matz himself.
And just to reiterate here (and I think shevegen agrees within his joking around), this issue i... -
04:33 PM Feature #14430: net/http: use Socket.tcp with connect_timeout, instead of TCPSocket.open wrapped in Timeout.timeout
- carl.hoerberg@gmail.com wrote:
> Instead of using TCPSocket.open, wrapped in Timeout.timeout,
> that will create a temporary thread. By using Socket.tcp with
> the connect_timeout argument for open_timeout the connection
> opening i... -
12:51 PM Feature #14430 (Open): net/http: use Socket.tcp with connect_timeout, instead of TCPSocket.open wrapped in Timeout.timeout
- Instead of using TCPSocket.open, wrapped in Timeout.timeout, that will create a temporary thread. By using Socket.tcp with the connect_timeout argument for open_timeout the connection opening is much more efficient as the kernels timeout...
-
01:33 PM Bug #14422: Ruby configuration options should not be reused for gem builds
- shevegen (Robert A. Heiler) wrote:
> This sounds very much like fedora-specific problems rather than
> ...
This issue might suffer any binary distribution sooner or later, be it Fedora, Debian or even Homebrew on Mac. The only case whe... -
01:28 PM Bug #14422: Ruby configuration options should not be reused for gem builds
- nobu (Nobuyoshi Nakada) wrote:
> vo.x (Vit Ondruch) wrote:
> ...
Well, for configuration of every Fedora package, I should be using standard %configure macro, which by default defines CFLAGS and similar env variables. Of course I might... - 09:20 AM Revision 7fdb4099 (git): array.c: remove rb_ary_frozen_p / Array#frozen?
- This is redundant since r15206 /
ffe425ecaaa2a3f813e1d540e20e2179bce44302 as we no longer lock
the array during sort. Instead, fall back to Object#frozen?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62154 b2dd03c8-39d4-4d8f-98ff-... -
09:07 AM Bug #12837 (Closed): Add test for what Forwardable#def_delegator extends object what doesn't mix-in Module class
- Applied in changeset trunk|r62153.
----------
Add test for Forwardable#def_delegator with r55366.
Patch by @aycabta
[Bug #12837][ruby-core:77611] -
09:07 AM Revision 499658ab (git): Add test for Forwardable#def_delegator with r55366.
- Patch by @aycabta
[Bug #12837][ruby-core:77611]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:59 AM Revision 7af65953 (git): ccan/list: sync with upstream
- This brings us up-to-date with ccan/list
5dbd87b876434dd703dfcc30cb0503118aac2076
git://git.ozlabs.org/~ccan/ccan
This is a combination of 3 commits from ccan:
list: add parens to gaurd macro args in LIST_INIT
ccan/list: Add li... -
08:43 AM Feature #14423: Enumerator from single object
- ```ruby
1.0.iterate { |x| (x + 2 / x) / 2 }.slice_when(&:==).first.last
#=> 1.414213562373095
```
( ͡° ͜ʖ ͡°)
Nice. -
08:23 AM Feature #14423: Enumerator from single object
- Maybe it could be as simple as:
```ruby
class Object
def iterate
Enumerator.new { |y|
obj = self
loop do
y << obj
obj = yield obj
end
}
end
end
1.0.iterate { |x| (x + 2 / x) ... -
08:34 AM Bug #14193 (Third Party's Issue): --enable-frozen-string-literal and rubygems, erb, & rdoc
- A patch of rubygems was merged by the upstream repository.
-
05:44 AM Feature #12032 (Assigned): Matrix.rb ruby documentation
-
03:55 AM Revision 6eeb0f7e (git): ruby.h: relax rb_funcall(obj, id, 0, 0) case only
- * include/ruby/ruby.h (rb_varargs_argc_valid_p): relax rb_funcall
check on extra args only if argc == 0, for the compatibility
with wrong code which is probably confused with rb_funcallv.
[Bug #14425]
git-svn-id: svn+ssh://ci.ruby... -
02:56 AM Revision 044e6f12 (git): win32.c: EPIPE for ERROR_NO_DATA
- * win32/win32.c (rb_w32_write): writing to closed pipe fails with
ERROR_NO_DATA but msvcrt maps it to EINVAL. map it to EPIPE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:47 AM Bug #14345: http_proxy setting should respect both parent domain and subdomain
- Any updates here?
-
12:25 AM Revision 6381d498 (git): Fixed duplicated typo for `the the`.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:06 AM Bug #14334 (Third Party's Issue): Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
-
12:04 AM Feature #14426 (Assigned): [PATCH] openssl: reduce memory allocation in OpenSSL::Buffering#do_write
01/31/2018
-
08:09 PM Feature #14399: Add Enumerable#product
- EDIT: The original request was updated and my comment is related to the meaning of previous one. I *don't agree* with adding method of identical name but distinct semantic, ie. existing `Array#product` as a Cartesian product of elements ...
-
08:09 PM Bug #14429 (Closed): Overzealous escaping of + in Shellwords
- The `Shellwords` module is currently a little too conservative: `+` isn't a token in Bourne sh[1], but `Shellwords` escapes it anyways.
Actual:
~~~ ruby
>> Shellwords.escape 'foo+bar' #=> "foo\\+bar"
~~~
Expected:
~~~ ruby
... -
07:11 PM Feature #14426: [PATCH] openssl: reduce memory allocation in OpenSSL::Buffering#do_write
- janko.marohnic@gmail.com wrote:
> https://bugs.ruby-lang.org/issues/14426
> I also thought that splitting writes on newlines was adding
> unnecessary memory allocations, so I removed that.
Agreed.
> I tested uploading a 5MB f... -
12:36 PM Feature #14426 (Closed): [PATCH] openssl: reduce memory allocation in OpenSSL::Buffering#do_write
- When writing data to an SSLSocket, there are a lot of, in my opinion, unnecessary strings being allocated, concretely in OpenSSL::Buffering#do_write.
When the buffer would be written, it would always be copied into a new string first,... -
07:01 PM Bug #14428: backport r53727
- ruby_2_3 r62148 merged revision(s) 53727.
-
06:59 PM Bug #14428 (Closed): backport r53727
- バックポート管理用チケットです。
- 07:01 PM Revision 8bc9c80b (git): merge revision(s) 53727: [Backport #14428]
- Remove debug print introduced in r52386
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:35 PM Revision 00716bee (git): io.c: fix comparison subject
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:26 PM Revision aff05774 (git): * 2018-02-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:26 PM Revision 4139024e (git): io.c: fix fptr_copy_finalizer
- * io.c (fptr_copy_finalizer): fix inverted condition. if
finalizer does not change, pipe_list should not change too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:04 PM Bug #14334: Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
- Hello! Here is the corresponding simplecov issue: https://github.com/colszowka/simplecov/issues/652 (maintainer here) - I'm stumped as to what happens. Would happy to find the source but also to find a work around that I could publish :D
-
03:10 PM Bug #14334: Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
- FWIW I am getting virtually the same exception in simplecov running minitest. Exception is attached and happy to provide any other info as well.
-
03:56 PM Feature #14383: Making prime_division in prime.rb Ruby 3 ready.
- This version is probably better, as it's a little faster, and takes a complete
list of witnesses for a given number, which can be determined separately.
```
# Returns true if +self+ is a prime number, else returns false.
de... -
03:06 PM Bug #14424: Backport r59984 to ruby_2_4 and ruby_2_3
- Thank you!
-
06:18 AM Bug #14424 (Closed): Backport r59984 to ruby_2_4 and ruby_2_3
-
02:56 PM Bug #14427 (Closed): Backport r61469
- Please backport r61469 to ruby_2_5 branch.
2.5.0:
```
% rbenv exec irb -r irb/completion --simple-prompt
>> {foo: 1}.fetch(:fooo)
Traceback (most recent call last):
3: from .../bin/irb:11:in `<main>'
2: from (i... -
02:31 PM Feature #12656: Expand short paths with File.expand_path
- This would be a good addition because "expand" means that the form should be long.
-
01:58 PM Bug #14009: macOS High Sierra and “fork” compatibility
- ruby_2_3 r62144 merged revision(s) 60182.
- 01:58 PM Revision 766c3744 (git): merge revision(s) 60182: [Backport #14009]
- configure.ac: link Foundation framework
* configure.ac (XLDFLAGS): link against Foundation framework and
let __NSPlaceholderDictionary initialize, to get rid of crash
after fork on macOS High Sierra. [ruby-c... -
01:52 PM Bug #14354: Remove confusing doc comments for 2.3
- ruby_2_3 r62143 merged revision(s) 56285.
-
07:04 AM Bug #14354 (Closed): Remove confusing doc comments for 2.3
- 01:52 PM Revision 4cc2435a (git): merge revision(s) 56285: [Backport #14354]
- * thread_sync.c (Init_thread_sync): Remove confusing doc comments,
which are picked up by rdoc unexpectedly, from Queue and
SizedQueue. [Fix GH-1450]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62... -
01:49 PM Bug #13794: Infinite loop of sched_yield
- ruby_2_3 r62142 merged revision(s) 60079.
- 01:49 PM Revision c5a99cf3 (git): merge revision(s) 60079: [Backport #13794]
- thread_pthread.c: do not wakeup inside child processes
* thread_pthread.c (rb_thread_wakeup_timer_thread): check
ownership before incrementing
(rb_thread_wakeup_timer_thread_low): ditto
[Bug #13794]... -
01:47 PM Bug #14321: Backport r54803 (Fix Math.lgamma on AIX)
- ruby_2_3 r62141 merged revision(s) 54803.
- 01:47 PM Revision cce645e6 (git): merge revision(s) 54803: [Backport #14321]
- * configure.in (rb_cv_lgamma_r_pm0): check if lgamma_r(+0.0)
returns positive infinity, in addition to lgamma_r(-0.0).
AIX returns an incorrect result of negative infinity.
* math.c (ruby_lgamma_r): handle +0... -
01:43 PM Feature #9528: mathn.rb library
- Given that my proposal is more general than the obsoleted mathn.rb,
would it be helpful, if I filed a new Feature Request that would
suggest an addition of a new class to the Ruby stdlib?
For example, the function apply_binary_oper... -
07:18 AM Feature #9528 (Rejected): mathn.rb library
- mathn.rb has been removed at Ruby 2.5.0 [Feature #10169]
-
01:40 PM Bug #13957: readline が SHARABLE_MIDDLE_SUBSTRING=1 を考慮していない
- ruby_2_3 r62140 merged revision(s) 60071.
-
01:39 PM Bug #13955: NKF.nkf のオプション文字列が SHARABLE_MIDDLE_SUBSTRING=1 を考慮していない
- ruby_2_3 r62140 merged revision(s) 60071.
-
01:39 PM Bug #13954: Etc.getpwnam, getgrnam が SHARABLE_MIDDLE_SUBSTRING=1 を考慮していない
- ruby_2_3 r62140 merged revision(s) 60071.
-
01:39 PM Bug #13953: gdbm が SHARABLE_MIDDLE_SUBSTRING=1 を考慮していない
- ruby_2_3 r62140 merged revision(s) 60071.
- 01:38 PM Revision 3d6510c5 (git): merge revision(s) 60071: [Backport #13953] [Backport #13954] [Backport #13955] [Backport #13957]
- ext: check if null byte is contained
[ruby-dev:50267] [Bug #13953]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:30 PM Bug #13952: String#succ not updating code range
- ruby_2_3 r62139 merged revision(s) 60066.
- 01:30 PM Revision 3f594167 (git): merge revision(s) 60066: [Backport #13952]
- string.c: fix ASCII-only on succ
* string.c (str_succ): clear coderange cache when no alpha-numeric
character case, carried part may become ASCII-only.
[ruby-core:83062] [Bug #13952]
git-svn-id: svn+ssh://ci... -
01:28 PM Bug #13949: String#unpack with 'M' directive can create strings with wrong code range
- ruby_2_3 r62138 merged revision(s) 60059.
- 01:28 PM Revision 4e2989ee (git): merge revision(s) 60059: [Backport #13949]
- pack.c: unpack "M" may be ASCII only
* pack.c (pack_unpack_internal): set ASCII only properly on "M",
may be ASCII only. [ruby-core:83055] [Bug #13949]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62... -
01:26 PM Bug #13950: String#tr incorrectly marks strings as CR_7BIT
- ruby_2_3 r62137 merged revision(s) 60060.
- 01:26 PM Revision a852edd8 (git): merge revision(s) 60060: [Backport #13950]
- string.c: ASCII-incompatible is not ASCII only
* string.c (tr_trans): ASCII-incompatible encoding strings cannot
be ASCII-only even if valid. [ruby-core:83056] [Bug #13950]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby... -
01:24 PM Bug #13945: Backport r60024
- ruby_2_3 r62136 merged revision(s) 60024.
- 01:24 PM Revision 91e4978b (git): merge revision(s) 60024: [Backport #13945]
- vm.c: fetch retval iff necessary
* vm.c (rb_vm_make_jump_tag_but_local_jump): get rid of fetching
retval when it is not used. it is necessary for local jump
state only.
git-svn-id: svn+ssh://ci.ruby-lang.or... -
01:16 PM Bug #13964: [BUG] Stack consistency error
- ruby_2_3 r62135 merged revision(s) 60099,60100.
- 01:16 PM Revision 935319fb (git): merge revision(s) 60099,60100: [Backport #13964]
- compile.c: fix stack consitency error
* compile.c (iseq_compile_each0): fix stack consitency error on
attr-assign with safe navigation operator when the receiver is
nil, should pop it too. [ruby-core:83078] ... -
01:13 PM Bug #13776: Refined methods ignore visibility of inherited methods
- ruby_2_3 r62134 merged revision(s) 59444,59445.
- 01:13 PM Revision 1aee5acd (git): merge revision(s) 59444,59445: [Backport #13776]
- adjust indent [ci skip]
* vm_insnhelper.c (vm_call_method_each_type): adjust indent of a
block in switch.
visibility of inherited method
* vm_insnhelper.c (vm_call_method_each_type): honor the origina... -
12:13 PM Feature #11084: Use rb-readline instead of ext/readline
- https://github.com/ConnorAtherton/rb-readline/blob/master/lib/rbreadline.rb is almost 9000 lines of Ruby code.
How fast does it load?
That seems important for command-line applications -
07:14 AM Feature #11084 (Assigned): Use rb-readline instead of ext/readline
-
12:04 PM Bug #14246 (Open): Inconsistent C source code indentation
- Re-open because accidentally closed.
At least misc/ruby-style.el set to tabs. -
11:47 AM Bug #13926: Non UTF response headers raise an Argument error since 2.4.2p198
- ruby_2_3 r62133 merged revision(s) 60021.
-
11:47 AM Feature #14386: Add option to let Kernel.#system raise error instead of returning false
- +1. It seems more consistent. Please do so.
- 11:47 AM Revision ecb7182f (git): merge revision(s) 60021: [Backport #13926]
- HTTPHeader#add_field should allow binary [Bug #13926]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:43 AM Bug #13487: Update ri man page (and others)
- ruby_2_3 r62132 merged revision(s) 58410,58411.
- 11:43 AM Revision 66dfa32f (git): merge revision(s) 58410,58411: [Backport #13487]
- ri.1: rewrite ri man page
* man/ri.1: update the (very outdated) ri man page:
* update document date
* fix document title formatting and volume name
* update descriptions and options to current ri -... -
11:26 AM Bug #13649: Net::IMAP doesn't support response from a Microsoft Exchange server (which is not compliant with RFC standards)
- ruby_2_3 r62131 merged revision(s) 59372.
- 11:26 AM Revision 937457fe (git): merge revision(s) 59372: [Backport #13649]
- lib/net/imap.rb: Ignore trailing space for Microsoft Exchange Server
Based on the patch by keysen (Jeremy Carlier).
[ruby-core:81641] [Bug #13649]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62131 b2dd... -
11:24 AM Bug #13386: Improve Process::CLOCK_* RDoc
- ruby_2_3 r62130 merged revision(s) 58208.
- 11:24 AM Revision 1f322108 (git): merge revision(s) 58208: [Backport #13386]
- Add documents on Process::CLOCK_* constants
* process.c: Add documents on Process::CLOCK_* constants.
Patch by Sunao Komuro <sunao-komuro@cookpad.com>.
Closes [GH-1567] [Bug #13386]
git-svn-id: svn+ssh://ci.... -
11:17 AM Feature #14417: String#sub / String#gsub に『キーが Symbol の Hash』を渡せるようにする提案
- @duerst: what about my example where it does transform the keye internal for the given Hash?
or is that a nono too?
it might be possible to only do it if the given hash has non String key? -
11:06 AM Feature #14417: String#sub / String#gsub に『キーが Symbol の Hash』を渡せるようにする提案
- `gsub` with Hash is used in some contexts where high performance is of interest. An example is `lib/unicode_normalize/normalize.rb`. This proposal would make these cases less efficient, for the benefit of people who can't keep Symbols an...
-
11:11 AM Bug #10838: ri's man page and options are wrong
- ruby_2_3 r62129 merged revision(s) 58409.
- 11:11 AM Revision 5ec3e167 (git): merge revision(s) 58409: [Backport #10838]
- ri.1: fix errors in ri man page
* man/ri.1: fix some errors in ri man page (add missing options,
remove options that do not exist, fix formatter list).
Reported by Josh Cheek. [ruby-core:68065] [Bug #10838]... -
11:10 AM Bug #10936: Error in Rubydoc for DateTime#rfc3339
- ruby_2_3 r62128 merged revision(s) 58020.
- 11:10 AM Revision 4238b67d (git): merge revision(s) 58020: [Backport #10936]
- date_core.c: fix error in DateTime docs
* ext/date/date_core.c: [DOC] fix format string for DateTime#rfc3339.
Reported by Andreas Rayo Kniep. [ruby-core:68418] [Bug #10936]
* ext/date/date_core.c: [DOC] ditto... -
11:05 AM Bug #13159: [DOC] Revise documentation for OpenStruct
- ruby_2_3 r62127 merged revision(s) 57887.
- 11:05 AM Revision 59475e58 (git): merge revision(s) 57887: [Backport #13159]
- lib/ostruct.rb: [DOC] revise docs for OpenStruct
* update paragraph on implementation:
define_singleton_method is used, not define_method
* add call-seq with return values for each_pair
* adopt descript... - 11:03 AM Revision 35350399 (git): merge revision(s) 57686: [Backport #13233]
- rational.c: fix rdoc
* rational.c: [DOC] fix wrong indentations and comment out some lines
in code examples to make them valid Ruby code and syntax highlighted
on the rendered page.
[ci skip] [Bug #1... -
10:58 AM Bug #13192: [DOC] Add example for Symbol#to_s
- ruby_2_3 r62125 merged revision(s) 57536.
- 10:58 AM Revision 305b200d (git): merge revision(s) 57536: [Backport #13192]
- doc: Add example for Symbol#to_s
* string.c: add example for Symbol#to_s.
The docs for Symbol#to_s only include an example for
Symbol#id2name, but not for #to_s which is an alias;
the docs should include... -
10:52 AM Bug #14182: Backport r55265
- ruby_2_3 r62124 merged revision(s) 55265.
- 10:52 AM Revision 73549682 (git): merge revision(s) 55265: [Backport #14182]
- * lib/mkmf.rb (create_makefile): sort lists of source and object
files in generated Makefile, unless given by extconf.rb.
[Fix GH-1367]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62124 b2dd03c8-39... -
10:10 AM Feature #14423: Enumerator from single object
- BTW, just infinite enumerator is converted to "converger" without lot of problems:
```ruby
class Object
def iterate(&block)
Enumerator.new { |y|
prev = self
y << self
loop do
cur = block.call(pre... -
04:55 AM Feature #14423: Enumerator from single object
- I found it really interesting to compare Object#converge with an Object#unfold based on Elixir's Stream.unfold/2. Here's my Ruby implementation:
~~~ ruby
class Object
def unfold
Enumerator.new do |yielder|
next_acc = s... -
08:29 AM Feature #10274 (Closed): [PATCH 0/2] more rb_iseq_t reductions (and more planned)
-
08:29 AM Feature #9841 (Rejected): [RFC] use ihash for fstring implementation
-
08:28 AM Feature #10256 (Rejected): [PATCH] reduce rb_call_info_t 96 => 88 bytes on 64-bit
-
08:27 AM Feature #10096 (Rejected): [PATCH] use khash for fstring and id_str tables
-
08:21 AM Bug #11362 (Closed): [PATCH] ensure Process.kill(:STOP, $$) is resumable
-
08:18 AM Bug #9609 (Rejected): [PATCH] vm_eval.c: fix misplaced RB_GC_GUARDs
-
08:17 AM Revision 4057ee5e (git): io.c: fptr_copy_finalizer
- * io.c (fptr_copy_finalizer): remove fptr from pipe_list when pipe
became ordinary file, to fix access after free. to be finalized
by pipe_finalize and being in pipe_list must match.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun... -
08:14 AM Misc #10198 (Closed): [PATCH cleanup] vm.c: remove unused USE_THREAD_RECYCLE ifdefs
-
08:14 AM Feature #10187 (Closed): minor iseq memory reductions
-
08:13 AM Feature #9579 (Closed): [PATCH] ext/extmk.rb: parallelize configure
-
08:13 AM Feature #11330 (Closed): [PATCH] string.c: ensure String#freeze resizes internal buffer
-
08:12 AM Misc #10278 (Closed): [RFC] st.c: use ccan linked list
-
07:35 AM Bug #10188 (Rejected): Regression of Benchmark.realtime
- It already fixed current trunk and other branches.
-
07:07 AM Bug #14152 (Third Party's Issue): faceing issue while creating box
- vagrant uses an embedded ruby interpreter. Please report vagrant support form.
-
06:41 AM Revision 302825ce (git): Update csv maintainers.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:31 AM Bug #14322: Inconsitency in command line options between 2.4 and 2.5
- out of curiosity, why there was no deprecation phase for this change?
-
06:28 AM Bug #14322 (Rejected): Inconsitency in command line options between 2.4 and 2.5
- It's an intentional change. I have no plan to revert it.
-
04:26 AM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
- I've filled Backport field according to the request at #14424.
-
04:24 AM Revision 1d5847d1 (git): io.c: pipe_register_fptr
- * io.c (pipe_register_fptr): get rid of double registration which
causes access after free and segfault.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:02 AM Revision 80d74ea7 (git): io.c: simplified pipe_del_fptr
- * io.c (pipe_del_fptr): merged code for the case fptr is first to
the loop for the rest.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:02 AM Revision e97cc464 (git): trick ruby-mode.el by heredocs
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:48 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- > Wouldn't having these abstractions allow building this by hand using existing Fiber?
Yes, it's feasible and already implemented here https://github.com/socketry/async and it's backwards compatible with older Rubies.
> ...
I agree... -
01:43 AM Bug #14421: super_method segfaults when called on a re-bound Method
- I have confirmed the segfaults was reproducible with trunk/2.5.0, but wasn't with 2.4.3.
But this fault was introduced at r60127 (#13973), and I think r60127 should be backported.
r62115 should be backported with r60127.
I will fill `... -
01:36 AM Bug #13973: super_method fails on some UnboundMethods
- I have noticed this ticket during searching changesets related with r62115.
I think r60127 should be backported, but you should backport r62115 too. See #14421. -
01:21 AM Bug #14425: rb_funcall too strict on extra args
- mame@ruby-lang.org wrote:
> normalperson (Eric Wong) wrote:
> > Attached are over 500 gem-codesearch results of latest gems.
>
> nitpick: Your query includes `rb_funcall2`, `rb_funcall3`, and `rb_funcallv` which are safe to pass "`... -
12:45 AM Bug #14425: rb_funcall too strict on extra args
- normalperson (Eric Wong) wrote:
> Attached are over 500 gem-codesearch results of latest gems.
nitpick: Your query includes `rb_funcall2`, `rb_funcall3`, and `rb_funcallv` which are safe to pass "`0, 0`".
-
01:02 AM Bug #12941 (Feedback): malloc: *** error for object 0x7fb4a88d2320: pointer being freed was not allocated
- Ruby 2.3.1 is not the latest release version. Please try with Ruby 2.3.6 or 2.4.3.
-
12:52 AM Bug #6141 (Rejected): rails-3.2.2+1.9.3p125 の環境で SEGV が発生
- 5年前の issue で深追いすることもなさそうなので reject にしておきます。
-
12:19 AM Revision f1b7bf10 (git): Fix wrong function names in rb_bug messages [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01/30/2018
-
11:55 PM Bug #14425 (Closed): rb_funcall too strict on extra args - Applied in changeset trunk|r62116.
----------
ruby.h: relax rb_funcall check on extra args for clang
clang 5.+ (tested clang 7.0.0) seems to be attempting division-by-zero
and giving a very large number for static args to rb_funcall.
... -
09:36 PM Bug #14425 (Closed): rb_funcall too strict on extra args
- Ruby 2.5 instroduces extra checking for rb_funcall checking,
but apparently it is too strict for some compilers and extra
args should not cause fatal problems (only warnings).
Jeremy first reported this to me in:
https://bogomips.o... - 11:55 PM Revision e403fd85 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 11:55 PM Revision 3ce9a140 (git): ruby.h: relax rb_funcall check on extra args for clang
- clang 5.+ (tested clang 7.0.0) seems to be attempting division-by-zero
and giving a very large number for static args to rb_funcall.
* include/ruby/ruby.h (rb_varargs_bad_length): relax check for clang
* ext/-test-/funcall/funcall.c: re... -
07:35 PM Bug #14421 (Closed): super_method segfaults when called on a re-bound Method - Applied in changeset trunk|r62115.
----------
proc: fix super_method segfault after bind
* proc.c: handle undefined iclass
[ruby-core:85231] [Bug #14421]
From: Eric Wong <e@80x24.org> -
01:08 AM Bug #14421: super_method segfaults when called on a re-bound Method
- andy@rusterholz.org wrote:
> Note: the above failing code correctly returns nil on a coworker's machine
> running `ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin17]`.
Thanks for simple test case, I guess the following pa... - 07:35 PM Revision b10b5122 (git): proc: fix super_method segfault after bind
- * proc.c: handle undefined iclass
[ruby-core:85231] [Bug #14421]
From: Eric Wong <e@80x24.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:19 PM Bug #12941: malloc: *** error for object 0x7fb4a88d2320: pointer being freed was not allocated
- No feedback received, no other people have reported the same issue. Let's close this for now until we have a good, isolated repro case.
-
07:18 PM Feature #14423: Enumerator from single object
- > All those conditions are quite different.
Well, you can say that next page fetching "converges" up to "no more pages left" (which in some APIs represented by infinite repetition of the same page, while in other with an empty page), ... -
02:35 PM Feature #14423: Enumerator from single object
- > exit when queue is empty [...] til the result is nil, or same page repeated
All those conditions are quite different. Your reference implementation only handles the latter (`cur == prev`), it doesn't check for `nil`, let alone "queu... -
09:47 AM Feature #14423 (Closed): Enumerator from single object
- **UPD: Current proposal**
Introduce method `Object#enumerate` for producing infinite enumerator by applying block to result of previous call.
Reference implementation:
```ruby
class Object
def enumerate(&block)
Enumerat... -
06:56 PM Bug #14372: Memory leak in require with Pathnames in the $LOAD_PATH in 2.3/2.4
- I opened a backport bug so we can have this memory leak fixed in ruby 2.3 and 2.4:
https://bugs.ruby-lang.org/issues/14424 -
08:27 AM Bug #14372 (Closed): Memory leak in require with Pathnames in the $LOAD_PATH in 2.3/2.4
-
01:42 AM Bug #14372: Memory leak in require with Pathnames in the $LOAD_PATH in 2.3/2.4
- According to `git bisect`, this leak had been introduced at r51360 [Bug #11386] and this was fixed at r59984 [Feature #10222] on trunk.
-
06:55 PM Bug #14424 (Closed): Backport r59984 to ruby_2_4 and ruby_2_3
- Please backport r59984, https://bugs.ruby-lang.org/issues/10222.
There is a memory leak in ruby 2.3 and 2.4 described here: https://bugs.ruby-lang.org/issues/14372
This backport will require backporting other changes to apply thi... -
06:32 PM Bug #14349 (Closed): Fix Net::HTTP documentation around connection reuse - Applied in changeset trunk|r62113.
----------
net/http: fix documentation for HTTP connection reuse
Thanks to Paul Kuruvilla <rohitpaulk@gmail.com> for the patch
* lib/net/http.rb: fix documentation for HTTP connection reuse
[ruby-c... - 06:32 PM Revision 1bb98357 (git): * 2018-01-31
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:32 PM Revision 3474d5c3 (git): net/http: fix documentation for HTTP connection reuse
- Thanks to Paul Kuruvilla <rohitpaulk@gmail.com> for the patch
* lib/net/http.rb: fix documentation for HTTP connection reuse
[ruby-core:84815] [Bug #14349]
From: Paul Kuruvilla <rohitpaulk@gmail.com>
git-svn-id: svn+ssh://ci.ruby-la... -
06:01 PM Feature #14383: Making prime_division in prime.rb Ruby 3 ready.
- FYI, I re-ran the examples above (and an additional one) using the `Miller-Rabin`
implementation in my `primes-utls` 3.0 development branch. Not only is it
deterministic up to about 25-digits, but it's way faster too. It can probably... -
02:56 PM Feature #14386: Add option to let Kernel.#system raise error instead of returning false
- How about using part after pid of `Process::Status#inspect`?
```
% ruby -ve 'begin;system(%q(ruby -e "exit(false)"), exception: true);rescue => e;p e;p Process.last_status;end'
ruby 2.6.0dev (2018-01-30 trunk 62111) [x86_64-darwin16... -
02:41 PM Feature #14411: URI#secure?
- - I think scheme is incomplete to detect secure or not.
- postgres scheme use with/without ssl.
- mailto does depend on transport.
- And secure protocols without ssl exist.
- S-HTTP is secure but does not use ssl.
-
01:59 PM Feature #14411: URI#secure?
- sos4nt (Stefan Schüßler) wrote:
> artur86 (Artur Beljajev) wrote:
> ...
My fault. I assumed it is immutable, for some reason. Then it will check current scheme dynamically. -
01:24 PM Feature #14411: URI#secure?
- artur86 (Artur Beljajev) wrote:
> Base class might always return false, whereas HTTPS class should return true then.
Note that you can change the scheme:
```ruby
uri = URI('http://example.com/')
uri.scheme = 'https'
uri ... -
12:37 PM Feature #14411: URI#secure?
- `Rack` uses `ssl?`.
https://github.com/rack/rack/blob/master/lib/rack/request.rb#L252 -
12:54 PM Bug #14419 (Closed): SEGV in build - MinGW and/or gcc 7.3.0 svn 62087
-
04:15 AM Bug #14419: SEGV in build - MinGW and/or gcc 7.3.0 svn 62087
- @nobu & @shyouhei
As of svn 62103, Appveyor is green. https://ci.appveyor.com/project/MSP-Greg/ruby-loco/build/396/messages.
Thank you, Greg -
12:13 PM Revision 1fd4a693 (git): Remove empty directories [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:03 PM Revision 369b74f8 (git): simply show BASERUBY itself
- * common.mk (showflags): simply show `BASERUBY` itself, because nmake does not
supports backquote notation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:50 AM Bug #13628 (Closed): rdoc json.gz files differ across builds
-
11:48 AM Feature #14235 (Assigned): Merge MJIT infrastructure with conservative JIT compiler
-
11:40 AM Bug #13627 (Closed): created.rid prevents reproducible builds
-
11:12 AM Revision 51fdac39 (git): setup.mak: discard BASERUBY output
- * win32/setup.mak: discard output from BASERUBY command, even if
it contains multiple commands.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:46 AM Feature #14362: use BigDecimal instead of Float by default
- nobu (Nobuyoshi Nakada) wrote:
> Rational and BigDecimal do not cover irrational numbers.
That's exactly what I wanted to say. Changing Float to BigDecimal only solves _some_ problems. It's not a magic bullet. (neither is Rational)
... -
10:12 AM Bug #14422: Ruby configuration options should not be reused for gem builds
- This sounds very much like fedora-specific problems rather than
a problem caused by ruby, to be honest. -
08:53 AM Bug #14422: Ruby configuration options should not be reused for gem builds
- i had some problem when building wxWidgets gem for ruby (and testing it on osx)
i needed to check that both wxWidgets, ruby and my gem where both build with the same compiler,
and in cases of wxWidgets and my gem with same compiler f... -
08:41 AM Bug #14422: Ruby configuration options should not be reused for gem builds
- vo.x (Vit Ondruch) wrote:
> > Our build flags are fully ABI-compatible with each other, so mismatches will not cause any problems at the C/C++/ABI level.
Possibly it can be true on Fedora, but no one guarantees it on other platforms,... -
07:15 AM Bug #14422 (Closed): Ruby configuration options should not be reused for gem builds
- When Fedora started to harden its packages, we quite often seen complains from our users about problems installing their gems, with errors such as [1]:
~~~
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or director... -
07:34 AM Revision 42bb73cf (git): support ruby 1.9.3
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:32 AM Bug #14418: ruby 2.5 slow regexp execution
- What happens essentially when using //i is that every 'ß' in the string (and in the regular expression) is expanded to 'ss', dynamically. For [\S\s], this wouldn't be necessary. But all character classes are internally treated the same w...
-
06:00 AM Bug #14418: ruby 2.5 slow regexp execution
- FYI, you can avoid it by using `.` instead of `[\S\s]`.
-
07:08 AM Revision b0d1586f (git): [DOC] Refinements on modules are allowed
- From: Leo Correa <lcorr005@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:23 AM Feature #6242: Ruby should support lists
- jamesw (James Owen) wrote:
> even i guess so Ruby is a LISP
> ...
Yes agree with you
https://leatherbaba.com/genuine-leather-motorcycle-jacket -
05:48 AM Bug #14420 (Closed): [BUG] Unnormalized Fixnum value on Rational#hash.to_s
- Applied in changeset trunk|r62107.
----------
force fixable
* complex.c (nucomp_hash): force hash values fixable.
[ruby-core:85224] [Bug #14420]
* rational.c (nurat_hash): ditto. -
05:48 AM Revision 3f7221ad (git): force fixable
- * complex.c (nucomp_hash): force hash values fixable.
[ruby-core:85224] [Bug #14420]
* rational.c (nurat_hash): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:43 AM Revision 5af43b1e (git): ia64: update ia64-specific code to use execution context
- This change follows commit 837fd5e494731d7d44786f29e7d6e8c27029806f
in '#ifdef __ia64' branches.
Noticed as a build failure by John Paul Adrian Glaubitz:
```
cont.c:502:50: error: 'rb_thread_t {aka struct rb_thread_struct}'
has n... -
05:32 AM Bug #14403 (Closed): Crash and coredump (Stack consistency error) on ruby 2.5.0
-
05:31 AM Feature #14405 (Assigned): Add base option to Pathname.glob also
-
04:17 AM Revision c3ce3b47 (git): vcs.rb: checkout the current branch before rebase
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:57 AM Revision d7d2225e (git): common.mk: added minimum dependencies of incs
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:42 AM Bug #14387: Ruby 2.5 を Alpine Linux で実行すると比較的浅めで SystemStackError 例外になる
- mame (Yusuke Endoh) wrote:
> 環境変数 `RUBY_THREAD_MACHINE_STACK_SIZE` に 1048576 とか大きい値を設定してみたら動きますか?
> ...
スレッドといってもメインスレッドしか存在せず、native_thread_create() が呼び出されるわけではないので、残念ながら動作は変化していないようです。
```
/work # ./miniruby test.rb 2>&1|grep lev... -
03:21 AM Revision d4d671f2 (git): bare_instructions.rb: sp_inc is signed
- * tool/ruby_vm/models/bare_instructions.rb (predefine_attributes):
`sp_inc` attribute which may return negative values must be
signed `rb_snum_t`, to be signed-expanded at type promotion.
* vm_insnhelper.h (ADJ_SP): removed the work... -
02:21 AM Revision 68e2a2e5 (git): skip EINVAL on unsupported platform
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:20 AM Revision a24ccfe6 (git): vcs.rb: fix errors
- * tool/vcs.rb (DebugSystem#system): fix undefined local variable
error. as system doesn't accept `exception:` option before 2.6,
remove it from `opts`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62101 b2dd03c8-39d4-4d8f-98ff... -
02:08 AM Revision 5ce70a08 (git): iseq.c: internal lvar name
- * iseq.c (local_var_name): name internal local variables as `?N`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:22 AM Bug #14416 (Closed): Net::POPMail methods modify frozen literal when using default arg - Applied in changeset trunk|r62099.
----------
net/pop: make modified strings mutable
Thanks to Michael Zimmerman for the bug report
* lib/net/pop.rb: make modified strings mutable
[ruby-core:85210] [Bug #14416]
* test/net/pop/test_p... - 12:22 AM Revision 7830a950 (git): net/pop: make modified strings mutable
- Thanks to Michael Zimmerman for the bug report
* lib/net/pop.rb: make modified strings mutable
[ruby-core:85210] [Bug #14416]
* test/net/pop/test_pop.rb: new test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62099 b2dd03c8-39d4-...
01/29/2018
-
11:41 PM Bug #14416: Net::POPMail methods modify frozen literal when using default arg
- mzimme@gmail.com wrote:
> Net::POPMail #pop, #top, and #header can modify their "dest" argument. Problem is it has a default value of '', and so FrozenError can be thrown.
Thanks, will fix. -
05:45 AM Bug #14416 (Closed): Net::POPMail methods modify frozen literal when using default arg
- Net::POPMail #pop, #top, and #header can modify their "dest" argument. Problem is it has a default value of '', and so FrozenError can be thrown.
Problem methods start here:
https://github.com/ruby/ruby/blob/582951e2c8995d6bab5ddaf98... -
10:35 PM Feature #14411: URI#secure?
- Would this predicate (whatever it's called) return true for an sftp URI? XMPP?
If so, do you not still have to test for HTTP(S) explicitly? So what value does it add?
And if not, don't you just want an `#is_https?` predicate? -
04:52 PM Feature #14411: URI#secure?
- I agree that `#secure?` might not be good for existing `Net::*` classes, but how about `URI`? Do you still think it should also be called `use_ssl?`? I am happy with both of the options, but I wonder how is usually this kind of debates s...
-
01:27 AM Feature #14411: URI#secure?
- `#use_ssl?` will answer what it is being asked, namely whether SSL is used or not. Aliasing that to `#secure?` will give the wrong impression; there are many different ways to use SSL and still not be 'secure'. So please avoid method nam...
-
10:32 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- sam.saffron@gmail.com wrote:
> I like ThreadTask a lot since these things are coupled with
> threads. I think ThreadJob works as well.
Maybe we can call it what it is: Thread::Green
I suspect using top-level namespace is unnec... -
09:28 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- I think Routine is a bit tricky to spell so I would recommend avoiding it. In Go people talk about Goroutines but never actually write it in code. That said, this is pretty hidden.
> In other words, API for usage and class name can b... -
08:56 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- Looking at naming in few languages that implement a similar feature, there seems to be no consensus:
* Goroutine (Go)
* Lane (Lua)
* Spark on a Haskell Thread (Haskell)
* Task (Elixir - though there's more is going on here, and Pro... -
09:51 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- sam.saffron@gmail.com wrote:
> I like Task a lot, it is short and makes much sense.
I guess there's a risk of namespace conflict with existing
code with such a generic name like "Task" or "Job". But,
maybe the class name should ... -
05:38 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- What about Job?
```
job = Thread.current.queue do
sleep 100
end
job.cancel
``` -
05:21 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- On 2018/01/29 14:06, sam.saffron@gmail.com wrote:
> I like Task a lot, it is short and makes much sense.
I strongly oppose the name `Task` because it is ambiguous, many language
(and OSs) uses this word as many purpose.
--
//... -
05:06 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- I like Task a lot, it is short and makes much sense.
So conceptually a kernel thread will be allowed to schedule N Tasks.
How would you manage scheduling tasks that are potentially blocking. Should Ruby opt for a goroutine type i... -
04:51 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- sam.saffron@gmail.com wrote:
> I am not a huge fan of the name threadlet, it just does not sound right.
Is "Task" better? Or "CoThread" (like "coroutine").
Actually I don't like "CoThread" much, but "Task" is
short and a somewh... -
12:39 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
- I am not a huge fan of the name threadlet, it just does not sound right.
What if a new construct is introduced:
```
pool = ThreadPool.new(concurrency: 100, max_workers: 5 # optional)
thread = pool.run do
sleep # thread pool... -
10:30 PM Feature #14383: Making prime_division in prime.rb Ruby 3 ready.
- Thank you for taking this project into consideration.
FYI, there is C open source code for both the `Coreutils` [factor](https://github.com/coreutils/coreutils/blob/master/src/factor.c) function and the [APR-CL](https://sourceforge.ne... -
06:21 AM Feature #14383: Making prime_division in prime.rb Ruby 3 ready.
- Faster is better -- with certain conditions. Considering those conditions, I would like to take the following approach.
1. Remove the dependency from `mathn.rb` to `prime.rb`
2. Move `prime.rb` from `lib/` to a bundled gem
3. Apply... -
08:33 PM Bug #14380 (Open): Expected transform_keys! to work just as transform_keys, but it doesn't
- I raised this issue previously https://bugs.ruby-lang.org/issues/13583#note-8
This is a spec change. Moreover it introduces incompatibilities with ActiveSupport.
Matz: final verdict please? -
02:27 PM Bug #14380: Expected transform_keys! to work just as transform_keys, but it doesn't
- Will this be backported to 2.5?
-
07:31 PM Bug #14387: Ruby 2.5 を Alpine Linux で実行すると比較的浅めで SystemStackError 例外になる
- ~~~ text
/app # ruby -ve 'p RubyVM::DEFAULT_PARAMS[:thread_machine_stack_size]'
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux-musl]
1048576
/app # RUBY_THREAD_MACHINE_STACK_SIZE=100000 ruby -ve 'p RubyVM::DEFAULT_PARAMS[:thr... -
09:28 AM Bug #14387: Ruby 2.5 を Alpine Linux で実行すると比較的浅めで SystemStackError 例外になる
- wanabe (_ wanabe) wrote:
> koshigoe (Masataka SUZUKI) wrote:
> ...
I've also come across this issue: https://github.com/rspec/rspec-support/pull/343
mame (Yusuke Endoh) wrote:
> 環境変数 `RUBY_THREAD_MACHINE_STACK_SIZE` に 1048576 とか大きい... -
06:40 PM Bug #14406: File.expand_path doesn't expand tilde inside Windows home directory
- I wrote a patch for this with #12656
-
09:38 AM Bug #14406: File.expand_path doesn't expand tilde inside Windows home directory
- @abotalov:
you need to call GetLongPathName https://msdn.microsoft.com/en-us/library/windows/desktop/aa364980(v=vs.85).aspx
using win32api or fiddle
the win32api would look like that:
~~~ ruby
require "tmpdir"
def get_long_win3... -
06:31 PM Bug #14418: ruby 2.5 slow regexp execution
- Ok, Blow is the regexp that I tested. I used utf-8 encodnings at the begining:
~~~ ruby
"fußball "*20 =~ /([\S\s]{1000})/i
~~~
Some measurements:
~~~ ruby
(0..20).each { |n| puts Benchmark.measure { "fußball "*n =~ /^([\S\s]... -
05:21 PM Bug #14418: ruby 2.5 slow regexp execution
- > You have to insert a blank line before
I also often just insert four ' ' space characters before the code
I want to add; no idea if it is correctly interpreted but it seems
to work on both github and ruby-lang.org, so I tend to u... -
04:56 PM Bug #14418: ruby 2.5 slow regexp execution
- > I can't paste the code here corectly.
You have to insert a blank line before `~~~` -
03:25 PM Bug #14418: ruby 2.5 slow regexp execution
- I can't paste the code here corectly. I creted a gist with regexp: https://gist.github.com/kubaw/60ca998200d80883156fa94efa7eb6fe
-
03:17 PM Bug #14418 (Closed): ruby 2.5 slow regexp execution
- I have simple regexp that performing very slow.
~~~ ruby
"fußball "*20 =~ /^([\S\s]{1000})/i
~~~
It works fast if I remove `/i` flag. I figured out that is also depends on string length or on quantifier value (in this case it is ... -
05:54 PM Bug #14421: super_method segfaults when called on a re-bound Method
- Note: the above failing code correctly returns nil on a coworker's machine running `ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin17]`.
-
05:25 PM Bug #14421 (Closed): super_method segfaults when called on a re-bound Method
- The line of code below causes a segfault on 2.5.0.
This appears to possibly be related to #[[11419]], but is not the same.
The segfault is not limited to the String class used in the example; it can be reproduced with any class wit... -
05:12 PM Revision f65c682f (git): show BASERUBY's version on `make showflags`
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:05 PM Revision be264f4a (git): Suport ruby 1.9.3
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:00 PM Bug #14270: backport r61564, r61565, r61571 (fix SEGV touching uninitialized memory)
- ruby_2_5 r62095 merged revision(s) 61564,61565,61571.
- 05:00 PM Revision 0397ed45 (git): * 2018-01-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:00 PM Revision 54a3b8e6 (git): merge revision(s) 61564,61565,61571: [Backport #14270]
- fix SEGV touching uninitialized memory
This function can be called from Init_VM().
No assumption can be made about object internals.
(lldb) run
Process 15734 launched: './miniruby' (x86_64)
Proce... -
04:08 PM Revision 3fa5bd38 (git): Update to ruby/spec@83063a3
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:07 PM Revision 1e658d45 (git): * 2018-01-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:07 PM Revision 6fd1a18f (git): Update to ruby/mspec@5d49a6c
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:06 PM Bug #14420: [BUG] Unnormalized Fixnum value on Rational#hash.to_s
- The same seems to happen with Complex as well:
https://ci.appveyor.com/project/eregon/windows-shell/build/33 -
03:57 PM Bug #14420: [BUG] Unnormalized Fixnum value on Rational#hash.to_s
- FWIW this was found by ruby/spec: https://github.com/ruby/spec/commit/f30246e5e2909660377a1d7a07591b308595ddab
-
03:56 PM Bug #14420 (Closed): [BUG] Unnormalized Fixnum value on Rational#hash.to_s
- ~~~ ruby
p eval("(Rational(1, 2)).hash.to_s")
~~~
causes a crash on Windows 64-bit, for both Ruby 2.4 and trunk.
Ruby 2.3 seems fine.
Here is a failure log:
https://ci.appveyor.com/project/eregon/windows-shell -
03:41 PM Bug #14419 (Closed): SEGV in build - MinGW and/or gcc 7.3.0 svn 62087
- It seems 62087 (https://github.com/ruby/ruby/commit/7d4ad74f22fa259ee81064970fa12d9942472c13) is breaking MinGW builds, which is using gcc 7.3.0.
Failure portion of build log attached.
Thanks, Greg -
03:17 PM Feature #14417: String#sub / String#gsub に『キーが Symbol の Hash』を渡せるようにする提案
- did look at string.c for gsub code,
https://github.com/ruby/ruby/blob/trunk/string.c#L5094
seems to be the line where we could add a transform_keys call
but i don't know currently what the best way to call `hash.transform_keys(&:to_... -
10:51 AM Feature #14417: String#sub / String#gsub に『キーが Symbol の Hash』を渡せるようにする提案
- Thanks for reply!!!
> would it probably better if sub/gsub would call hash.transform_keys(&:to_s) internal in their code with the hash if hash is given?
hmmmm... Thanks for idea :)
> ...
そうですねえ…もう少し具体的なユースケースを考えてみたいと思います。
コメントあ... -
09:59 AM Feature #14417 (Feedback): String#sub / String#gsub に『キーが Symbol の Hash』を渡せるようにする提案
- 提案されている利点は弱すぎて賛成しがたいです(趣味では)。
とはいえ機能自体に反対ではないですから、より具体的なユースケースがあると賛成しやすくなるかなと思います。 -
09:56 AM Feature #14417: String#sub / String#gsub に『キーが Symbol の Hash』を渡せるようにする提案
- even if Ruby Symbols are freed now, i still have some problems with that it creates that much symbols from possible tainted string data
would it probably better if sub/gsub would call `hash.transform_keys(&:to_s)` internal in their co... -
09:35 AM Feature #14417 (Feedback): String#sub / String#gsub に『キーが Symbol の Hash』を渡せるようにする提案
- ## 概要
`String#sub` / `String#gsub` に『キーが `Symbol` の `Hash`』を渡した場合でも `String` の場合と同様に置き換える。
## 現行の動作
```ruby
hash = {'b'=>'B', 'c'=>'C'}
p "abcabc".gsub(/[bc]/, hash) #=> "aBCaBC"
# キー が Symbol の Hash は置き換えられない
hash =... -
09:51 AM Misc #14414: Move https://ruby-talk.trydiscourse.com/ to talk.ruby-lang.org
- duerst@it.aoyama.ac.jp wrote:
> This is only for ruby-talk at the moment. There are more
> mailing lists on this server; is the idea that all would be
> mirrored, or not?
Fwiw, there's https://public-inbox.org/ruby-core/ and
http... -
05:04 AM Misc #14414: Move https://ruby-talk.trydiscourse.com/ to talk.ruby-lang.org
- This is only for ruby-talk at the moment. There are more mailing lists on this server; is the idea that all would be mirrored, or not?
Discourse certainly looks better than the traditional archive at http://blade.nagaokaut.ac.jp/ruby/... -
08:40 AM Revision 552a5a99 (git): string.c (rb_str_format_m): Fix the example code of the doc
- Change `%08x` to `%016x` because of two reasons:
* `%016x` demonstrates that we can use two or more digits here.
* Currently, many people uses 64-bit environment.
(I'm unsure if object_id is a good example here, though...)
I'm unsure ... -
08:11 AM Revision 3bc2f5a9 (git): redefinition of a typedef is a C11ism
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:51 AM Bug #14403: Crash and coredump (Stack consistency error) on ruby 2.5.0
- It is also reproduce in my environments.
~~~
sw_vers
ProductName: Mac OS X
ProductVersion: 10.12.6
BuildVersion: 16G1212
ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61467) [x86_64-darwin16]
~~~
However, it will not reproduce... -
07:49 AM Feature #6284: Add composition for procs
- Please take this to next Developers Meeting Agenda?
The best possible name is discussed for 6 years already, and feature seems pretty nice to have. I believe that sometimes it is just good to make "executive decision" about name once... -
07:15 AM Revision c788fb48 (git): eliminate CALL_SIMPLE_METHOD
- Arrange operands of several opt_something insns so that jumps to
opt_send_without_block can be applied to them. This makes it
possible to eliminate CALL_SIMPLE_METHOD macro at all. Results
in binary size of vm_exec_core to change from 2... -
07:04 AM Revision 31ecd18f (git): s/CALL_SIMPLE_METHOD/DISPATCH_ORIGINAL_INSN/
- Now that DISPATCH_ORIGINAL_INSN is introduced, we can replace
CALL_SIMPLE_METHOD with DISPATCH_ORIGINAL_INSN. These two macros
differ in size very much and results in this big difference in
compiled binary size. This changeset reduces th... -
06:56 AM Revision 7d4ad74f (git): also use sp_inc in vm core
- Now that sp_inc attributes are officially provided as inline
functions. Why not use them directly from the vm core, not just
by the compiler. By doing so, it is now possible for us to
optimize stack manipulations. We can now know exactly... -
06:54 AM Revision 592dcccd (git): ruby.c: no VARIABLE_LIBPATH
- * ruby.c (ruby_init_loadpath_safe): removed code using fixed size
path buffer. relative load path is supported only on platforms
where dladdr is available, or on Windows, so !VARIABLE_LIBPATH
code is not used.
git-svn-id: svn+ssh... -
06:47 AM Revision 9a8b38ca (git): extensive use of instruction attributes
- Instead of using magic numbers, let us define a series of attributes
and use them from the VM core. Proper function declarations makes
these attributes inlined in most modern compilers. On my machine
exact same binary is generated with... -
05:54 AM Feature #14405: Add base option to Pathname.glob also
- nobu (Nobuyoshi Nakada) wrote:
> `Pathname` has `glob` instance method.
> ...
Definitely. I also noticed it after created this ticket.
However I think `Pathname.glob` makes sense for two reasons.
Firstly, I think `Pathname.glob... -
05:30 AM Feature #4824: Provide method Kernel#executed?
- Hi, i created a patch for this ticket.
please take a look.
https://github.com/ruby/ruby/pull/1802 -
03:04 AM Bug #14415: Empty keyword hashes get assigned to ordinal args.
- Was thinking about this more, and I *think* I see what the problem is: `**` should not be `kwrest`, it should be `options_rest`. And keyword args should be about destructuring the options hash. In the case of mixed keys in the hash, they...
-
02:17 AM Bug #14413: `-n` and `-p` flags break when stdout is closed
- It may be better to translate `Errno::EPIPE` to `SIGPIPE` only in `STDOUT.write`.
```ruby
# silent_epipe.rb
# -*- frozen-string-literal :true -*-
BEGIN {
if Errno.const_defined?("EPIPE") and Signal.list["PIPE"]
class << STD... -
01:05 AM Bug #14413: `-n` and `-p` flags break when stdout is closed
- It didn't work with `END {}`.
```ruby
# silent_epipe.rb
# -*- frozen-string-literal :true -*-
BEGIN {
if Errno.const_defined?("EPIPE") and Signal.list["PIPE"]
class SystemCallError
prepend Module.new {
sigpi... -
12:29 AM Feature #14404: Adding writev support to IO#write_nonblock
- > How ugly/tedious would it be for the users to deal with partial
> ...
It does take a bit of work, but I believe the following code would do the job:
~~~ ruby
until chunks.empty?
length = io.write_nonblock(*chunks)
break unle...