Project

General

Profile

Activity

From 02/16/2017 to 02/22/2017

02/22/2017

11:49 PM Revision 2e2063fe (git): rational.c: infinity in power
* rational.c (nurat_expt): return 0 due to overflow.
[ruby-core:79686] [Bug #13242]:
git-svn-id: svn+ssh://ci.ruby...
nobu (Nobuyoshi Nakada)
11:33 PM Bug #13242: SIGSEGV in rb_bigzero_p()
2.3 and earlier hung up before SEGV. nobu (Nobuyoshi Nakada)
11:28 PM Bug #13242 (Closed): SIGSEGV in rb_bigzero_p()
Applied in changeset r57688.
----------
rational.c: infinity in power
* rational.c (nurat_expt): return Infinity du...
nobu (Nobuyoshi Nakada)
01:31 PM Bug #13242 (Closed): SIGSEGV in rb_bigzero_p()
After some fuzz testing I found a crashing test case.
Git HEAD: fbd5cda6aad6db01bbca3d893a9970314a1bd52c
To rep...
fumfel (Kamil Frankowicz)
11:28 PM Revision 06010b2b (git): rational.c: infinity in power
* rational.c (nurat_expt): return Infinity due to overflow.
[ruby-core:79686] [Bug #13242]:
git-svn-id: svn+ssh://...
nobu (Nobuyoshi Nakada)
10:40 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
~~~
def isqrt(n)
r = 0
o = 1 << ((n.bit_length >> 1 ) << 1)
while o != 0 do
t = r + o
...
Student (Nathan Zook)
09:05 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Hey that's great! I'd love to help work on this too, though
I'm not much of a C programmer. I can help with testing ...
jzakiya (Jabari Zakiya)
07:05 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Jabari Zakiya wrote:
> Let me attempt to address some of the issues/questions that have recently been presented.
> ...
Student (Nathan Zook)
06:40 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
No, I am sorry for any confusion.
My initial concern was for accurately computing exact integer squareroots
for m...
jzakiya (Jabari Zakiya)
05:40 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Matz, akr:
sorry for the noise, it's of course completely clear. I only didn't read close enough and missed the sw...
stomar (Marcus Stollsteimer)
05:36 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Let me attempt to address some of the issues/questions that have recently been presented.
Excuse me if any of this r...
jzakiya (Jabari Zakiya)
05:17 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Nobuyoshi Nakada wrote:
> Yukihiro Matsumoto wrote:
> > It's OK to add the functionality. Is `Integer.sqrt(n)` OK f...
Student (Nathan Zook)
04:52 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Marcus, probably you are confusing `Integer.sqrt()` and `Integer#sqrt()`.
The former, you call `Integer.sqrt(4) # =>...
matz (Yukihiro Matsumoto)
04:17 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Marcus Stollsteimer wrote:
> I think `Integer.sqrt` or `Numeric.sqrt` is extremely problematic. I guess everybody wo...
akr (Akira Tanaka)
03:54 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
For square roots, `isqrt` seems to be an option with some(?) spread, see https://en.wikipedia.org/wiki/Integer_square... stomar (Marcus Stollsteimer)
02:32 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
_Edit: please ignore (misunderstanding)_
~~I think `Integer.sqrt` or `Numeric.sqrt` is extremely problematic. I gu...
stomar (Marcus Stollsteimer)
11:27 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
using Newton's method might be another good way to implement it.
~~~ruby
def intsqrt_newton(n)
raise if n<0
...
tompng (tomoya ishida)
10:41 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Yukihiro Matsumoto wrote:
> It's OK to add the functionality. Is `Integer.sqrt(n)` OK for you?
When `n` is not an...
nobu (Nobuyoshi Nakada)
09:50 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
It's OK to add the functionality. Is `Integer.sqrt(n)` OK for you?
Matz.
matz (Yukihiro Matsumoto)
06:53 PM Feature #13026: Public singleton methods
Yukihiro Matsumoto wrote:
> Interesting. Could you tell us expected use-case?
>
> Matz.
Hi Matz. Thank you for...
subtileos (Daniel Ferreira)
06:48 AM Feature #13026: Public singleton methods
Interesting. Could you tell us expected use-case?
Matz.
matz (Yukihiro Matsumoto)
05:21 PM Feature #13241: Method(s) to access Unicode properties for characters/strings
Jan Lelis wrote:
> I think, it should be always plural methods which return a list of properties used in the
> st...
shevegen (Robert A. Heiler)
09:22 AM Feature #13241: Method(s) to access Unicode properties for characters/strings
I think prefixing such methods with `unicode_` would be no problem. While it's a little verbose, it still reads good:... rbjl (Jan Lelis)
09:17 AM Feature #13241: Method(s) to access Unicode properties for characters/strings
Great idea, I'd love to have such capabilities built into the language!
I've recently build this for scripts, bloc...
rbjl (Jan Lelis)
09:06 AM Feature #13241: Method(s) to access Unicode properties for characters/strings
I am neutral about the proposal, but the method names are too generic. It should be prefixed by `unicode_` for exampl... matz (Yukihiro Matsumoto)
08:02 AM Feature #13241 (Open): Method(s) to access Unicode properties for characters/strings
[This is currently an exploratory proposal.]
Onigmo allows Unicode properties in regular expressions. With this, i...
duerst (Martin Dürst)
04:17 PM Bug #13237: Behavior for #dup and #clone on Rational/Complex/BigDecimal differs from Integer/Float
Will this be backported to 2.4? (IOW is this 2.4.0 bug or 2.5 new feature?) matsuda (Akira Matsuda)
02:02 AM Bug #13237 (Closed): Behavior for #dup and #clone on Rational/Complex/BigDecimal differs from Integer/Float
Applied in changeset r57682.
----------
numeric.c: Numeric#clone and #dup
* numeric.c (num_clone, num_dup): no long...
nobu (Nobuyoshi Nakada)
03:46 PM Bug #13233 (Closed): [DOC] Fix rdoc for Rational
Applied in changeset r57686.
----------
rational.c: fix rdoc
* rational.c: [DOC] fix wrong indentations and comment...
Anonymous
03:46 PM Revision 3f6aeba6 (git): * 2017-02-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:46 PM Revision 3f1d2dd8 (git): rational.c: fix rdoc
* rational.c: [DOC] fix wrong indentations and comment out some lines
in code examples to make them valid Ruby code...
znz (Kazuhiro NISHIYAMA)
11:25 AM Feature #12602: Add NilClass#to_d
Hi, are there any updates or concerns about this feature? Domon (Chun-wei Kuo)
10:36 AM Bug #13234: Infinite recursion (stack overflow) in parse_char_class()
Thank you again for the useful information. Will consider using the fuzzer and hopefully integrate into our test sui... shyouhei (Shyouhei Urabe)
09:49 AM Bug #13234: Infinite recursion (stack overflow) in parse_char_class()
This is CVE-2017-6181. fumfel (Kamil Frankowicz)
10:29 AM Feature #13156: In-tree copy of ruby/spec
Akira Tanaka wrote:
> I recommend test-all over rubyspec because
> it is difficult to change developer's behavior.
...
Eregon (Benoit Daloze)
10:06 AM Feature #13156: In-tree copy of ruby/spec
Yukihiro Matsumoto wrote:
> I have several concerns:
>
> * If `ruby/spec` tries to be a **common** executable spe...
Eregon (Benoit Daloze)
09:34 AM Feature #13156 (Feedback): In-tree copy of ruby/spec
I have several concerns:
* If `ruby/spec` tries to be a **common** executable specification of the language, it se...
matz (Yukihiro Matsumoto)
08:37 AM Feature #13156: In-tree copy of ruby/spec
I recommend test-all over rubyspec because
it is difficult to change developer's behavior.
I.e. it is difficult to ...
akr (Akira Tanaka)
09:41 AM Feature #13166: Feature Request: Byte Arrays for Ruby 3
I think String#getbit and String#setbit is useful. akr (Akira Tanaka)
09:18 AM Feature #13166: Feature Request: Byte Arrays for Ruby 3
Should we use narray/numarray instead? Maybe we can make either of them a bundled gem.
Matz.
matz (Yukihiro Matsumoto)
09:41 AM Feature #13077: [PATCH] introduce String#fstring method
[email protected] wrote:
> For the time being, let us make `-@` to call `rb_fstring`.
> If users want more descrip...
normalperson (Eric Wong)
07:34 AM Feature #13077: [PATCH] introduce String#fstring method
For the time being, let us make `-@` to call `rb_fstring`.
If users want more descriptive name, let's discuss later....
matz (Yukihiro Matsumoto)
09:36 AM Feature #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname
I agree with Eric. Documentation deprecation is preferable.
Matz.
matz (Yukihiro Matsumoto)
08:50 AM Feature #8661 (Closed): Add option to print backtrace in reverse order (stack frames first and error last)
Applied in changeset ruby-trunk:r57685.
----------
eval_error.c: backstrace in reverse order
* eval_error.c (rb_thr...
nobu (Nobuyoshi Nakada)
08:50 AM Revision 5318154f (git): eval_error.c: backstrace in reverse order
* eval_error.c (rb_threadptr_error_print): print backtrace and
error message in reverse order if STDERR is unchange...
nobu (Nobuyoshi Nakada)
08:01 AM Feature #13240 (Open): Change Unicode property implementation in Onigmo from inversion lists to direct lookup
For Unicode property checks (e.g. `/\p{hiragana}/`), Onigmo is currently using inversion lists. See enc/unicode/9.0.0... duerst (Martin Dürst)
07:40 AM Feature #12508: Integer#mod_pow
Go ahead and add `pow(a,b)`.
Matz.
matz (Yukihiro Matsumoto)
07:39 AM Feature #13083: Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
Those methods (but `=~`) should consistently raise exceptions.
Matz.
matz (Yukihiro Matsumoto)
07:31 AM Bug #13024 (Closed): Confusing error message matching a non-ASCII string with ASCII-regex
Applied in changeset r57684.
----------
refine warning message for binary regexp /.../n.
Reported by Herwin W. [ru...
akr (Akira Tanaka)
07:31 AM Revision dbd4c4a7 (git): refine warning message for binary regexp /.../n.
Reported by Herwin W. [ruby-core:78592] [Bug #13024]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57684 b2dd...
akr (Akira Tanaka)
07:16 AM Feature #13009 (Closed): Implement fetch for Thread.current
Applied in changeset r57683.
----------
Thread#fetch
* thread.c (rb_thread_fetch): add new method Thread#fetch.
[...
nobu (Nobuyoshi Nakada)
06:55 AM Feature #13009: Implement fetch for Thread.current
OK.
Matz
matz (Yukihiro Matsumoto)
07:16 AM Revision 7d54b4ea (git): Thread#fetch
* thread.c (rb_thread_fetch): add new method Thread#fetch.
[Feature #13009]
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)
07:09 AM Feature #13047 (Assigned): Use String literal instead of `String#+` for multiline pretty-printing of multiline strings
shyouhei (Shyouhei Urabe)
07:06 AM Feature #9846 (Rejected): Regexp#to_regexp
Is there any concrete use-case? Consistency is not the best reason.
This proposal leads against Duck typing.
Matz.
matz (Yukihiro Matsumoto)
06:59 AM Feature #13045 (Rejected): Passing a Hash with String keys as keyword arguments
Rejected. **method to convert string-keys into symbol-keys** or `transform_keys` may be good ideas.
Matz.
matz (Yukihiro Matsumoto)
06:17 AM Feature #13133 (Assigned): TracePoint: Add event type for constant access
shyouhei (Shyouhei Urabe)
05:55 AM Feature #10912 (Assigned): Add method(s) to IPAddr for determining whether an address is link local
shyouhei (Shyouhei Urabe)
05:54 AM Feature #12996: Optimize Range#===
Sounds reasonable. We'd like to see how big incompatibility is.
Matz.
matz (Yukihiro Matsumoto)
05:49 AM Feature #12995 (Rejected): Conditional expression taking a receiver outside the condition
Interesting proposal but this changes the meaning of `if` and `case` too much.
Matz.
matz (Yukihiro Matsumoto)
05:21 AM Bug #13225: [DOC] expand docs for Date shifting
Agreed. Proceed to usual committer admission.
Matz.
matz (Yukihiro Matsumoto)
02:02 AM Revision 31ef3124 (git): numeric.c: Numeric#clone and #dup
* numeric.c (num_clone, num_dup): no longer raises TypeError,
returns the receiver instead as well as Integer and F...
nobu (Nobuyoshi Nakada)
01:55 AM Revision 4096f39d (git): * 2017-02-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:55 AM Revision 80b8ee97 (git): object.c: refactor rb_obj_clone and rb_obj_clone2
* object.c (rb_obj_clone2): extract option for clone, and split by
whether the object is immutable or mutable.
* o...
nobu (Nobuyoshi Nakada)
01:27 AM Bug #13062 (Closed): 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
Fixed in bigdecimal 1.3.1 and ruby trunk. mrkn (Kenta Murata)

02/21/2017

11:21 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I am confused by your solution in comment #3. By your own report, there is no issue for numbers much larger than a s... Student (Nathan Zook)
06:21 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
You might want to consider the following articles:
https://www.reddit.com/r/algorithms/comments/1zt63v/fast_algorith...
Student (Nathan Zook)
09:07 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I just noticed this thread. One bit per cycle methods are not fast by modern methods, they are quite slow. I will a... Student (Nathan Zook)
08:45 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I updated my **roots** rubygem to 2.0.0 to include **iroot2** and **irootn**.
https://rubygems.org/gems/roots
htt...
jzakiya (Jabari Zakiya)
02:27 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Is there many application for this method?
Concrete examples may help to persuade matz.
Another important problem...
akr (Akira Tanaka)
07:11 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
The comparison with other programming languages is kind of interesting, but the main argument IMO for
the implemente...
stomar (Marcus Stollsteimer)
03:35 PM Bug #13238 (Closed): string.c assertion fails after attempting to modify singleton class of a frozen string
nobu (Nobuyoshi Nakada)
02:51 PM Revision f2c5146d (git): object.c: message encoding
* object.c (rb_obj_clone2): preserve encoding in error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
nobu (Nobuyoshi Nakada)
02:42 PM Revision f5faaf7b (git): backward.h: RClassDeprecated
* include/ruby/backward.h (RClassDeprecated): move from
ruby/ruby.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
nobu (Nobuyoshi Nakada)
12:27 PM Bug #13239 (Feedback): Bug with "special exceptions" when they are thrown in context of a rescue clause.
It has been fixed at r57415, I think. nobu (Nobuyoshi Nakada)
06:22 AM Bug #13239: Bug with "special exceptions" when they are thrown in context of a rescue clause.
Oops, wrong link to the ruby fork.
Here's the right one: https://github.com/NickolasVashchenko/ruby/commits/special_...
nvashchenko (Nikolay Vashchenko)
06:19 AM Bug #13239 (Closed): Bug with "special exceptions" when they are thrown in context of a rescue clause.
I've stumbled upon a case when ruby is supposed to throw "IOError: stream closed"(https://github.com/ruby/ruby/blob/t... nvashchenko (Nikolay Vashchenko)
12:09 PM Bug #13236 (Feedback): Ruby segfault
Could you enable debugging? nobu (Nobuyoshi Nakada)
08:18 AM Revision 6699debd (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:18 AM Revision 76c4cca1 (git): add performance counting mechanism for MRI debug/tuning purpose.
* How to enable this feature?
* define USE_DEBUG_COUNTER as 1.
* you can disable to output the result with
RU...
ko1 (Koichi Sasada)
06:16 AM Revision 51de3aa2 (git): backward.h: move deprecated declaration
* include/ruby/backward.h (rb_autoload): move declaration of
deprecated function.
git-svn-id: svn+ssh://ci.ruby-la...
nobu (Nobuyoshi Nakada)
06:16 AM Revision cd0426c0 (git): variable.c: remove deprecated internal feature
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:07 AM Revision f922f1cb (git): error.c: remove deprecated internal features
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:07 AM Revision f4c2b33e (git): complex.c: remove deprecated functions
* complex.c (rb_complex_set_real, rb_complex_set_imag): remove
functions deprecated at 2.2.
git-svn-id: svn+ssh://...
nobu (Nobuyoshi Nakada)
05:17 AM Revision 556a1352 (git): backward.h: 2.2 deprecated features
* include/ruby/backward.h (DECLARE_DEPRECATED_FEATURE): move
features deprecated at 2.2.
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
05:16 AM Revision bd26c796 (git): internal.h: removed function declaration
* internal.h (rb_compile_error_str): remove declaration of removed
internal function at r54189.
git-svn-id: svn+ss...
nobu (Nobuyoshi Nakada)
01:49 AM Bug #13225 (Assigned): [DOC] expand docs for Date shifting
to Matz
He is the main maintainer of www.r-l.o and sends a lot of patches to ruby core.
I will recommend him to t...
hsbt (Hiroshi SHIBATA)
01:28 AM Revision a9c15229 (git): variable.c: noreturn in GCC
* variable.c (rb_generic_ivar_table): declare as noreturn only in
GCC, which does not err on different attributes.
...
nobu (Nobuyoshi Nakada)

02/20/2017

11:50 PM Bug #13238 (Closed): string.c assertion fails after attempting to modify singleton class of a frozen string
Hi,
The following code causes an assertion failure in 2.3.3. Create two files, `bug.rb` and `not_frozen.rb`:
bu...
owst (Owen Stephens)
08:56 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Here's the README.md writeup on the general integer roots algorithm.
At the cpu level, all these bit operations ...
jzakiya (Jabari Zakiya)
07:02 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
No, no, I didn't take it as a negative comment per se,
I just hadn't tried to use **BigDecimal** before, so I just w...
jzakiya (Jabari Zakiya)
04:49 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
@Jabari Note that my comments were not meant as arguments against your feature request, I only wanted to point out th... stomar (Marcus Stollsteimer)
05:04 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
```ruby
class Integer
def irootn(n)
return nil if self < 0 && n.even?
raise "root n is < 2 or not an In...
jzakiya (Jabari Zakiya)
04:27 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
One if the really nice things about Ruby is its intent to make users/programmers happy,
and to adhere to the "princi...
jzakiya (Jabari Zakiya)
08:52 PM Bug #13237 (Closed): Behavior for #dup and #clone on Rational/Complex/BigDecimal differs from Integer/Float
Since the implementation of feature #12979, #dup and #clone on Integer and Float do not raise a `TypeError` anymore, ... stomar (Marcus Stollsteimer)
07:12 PM Revision 9291d3d3 (git): * 2017-02-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:12 PM Revision 56c38a64 (git): remove harmful declaration.
* variable.c (gen_ivtbl_get): declaration conflict on VC++.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57667...
ko1 (Koichi Sasada)
07:00 PM Bug #13236: Ruby segfault
Some bugs are just like that - they exist somewhere out there but they are hard
to find or reproduce. Almost real he...
shevegen (Robert A. Heiler)
05:20 PM Bug #13236: Ruby segfault
Damien Robert wrote:
> The code is in https://github.com/DamienRobert/drain
> You can run 'rake test' to (sometime,...
Gondolin (Damien Robert)
05:11 PM Bug #13236 (Closed): Ruby segfault
I have a program that segfault under certain conditions. It does not happen often, so it is hard to get the segfault.... Gondolin (Damien Robert)
04:43 PM Bug #13234: Infinite recursion (stack overflow) in parse_char_class()
Shyouhei Urabe wrote:
> Kamil Frankowicz wrote:
> > After some fuzz testing I found a crashing test case.
>
> Gr...
fumfel (Kamil Frankowicz)
09:46 AM Bug #13234 (Closed): Infinite recursion (stack overflow) in parse_char_class()
Applied in changeset r57660.
----------
regparse.c: initialize return values
* regparse.c (parse_char_class): initi...
nobu (Nobuyoshi Nakada)
08:55 AM Bug #13234: Infinite recursion (stack overflow) in parse_char_class()
Kamil Frankowicz wrote:
> After some fuzz testing I found a crashing test case.
Great... I can reproduce this. ...
shyouhei (Shyouhei Urabe)
07:38 AM Bug #13234 (Closed): Infinite recursion (stack overflow) in parse_char_class()
After some fuzz testing I found a crashing test case.
Git HEAD: fbd5cda6aad6db01bbca3d893a9970314a1bd52c
To rep...
fumfel (Kamil Frankowicz)
03:43 PM Bug #13229: [DOC] Add document title for extension.rdoc
Thanks for the translation, kazu! stomar (Marcus Stollsteimer)
12:20 PM Bug #13229 (Closed): [DOC] Add document title for extension.rdoc
Applied in changeset r57665.
----------
extension.rdoc: add document title
* doc/extension.rdoc, doc/extension.ja.r...
Anonymous
02:44 PM Bug #13235 (Closed): [BUG] Segmentation fault at 0x00000000000038
-- Control frame information -----------------------------------------------
c:0129 p:0045 s:0826 e:000823 METHOD /U...
derickhoganpimenta (Dérick Hogan PImenta)
02:40 PM Revision 2235695c (git): compile.c: Fix a typo
* compile.c (compile_branch_condition): NODE_LIT is
always true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
yui-knk (Kaneko Yuichiro)
12:20 PM Revision 7010dc6f (git): extension.rdoc: add document title
* doc/extension.rdoc, doc/extension.ja.rdoc: [DOC]
add title and adapt subheading levels.
* doc/extension.rdoc: [D...
znz (Kazuhiro NISHIYAMA)
10:59 AM Revision 11eba07b (git): Supress warning: function might be candidate for attribute 'noreturn'
GCC7 shows it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:59 AM Revision c022a097 (git): Cast as VALUE to suppress type warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:59 AM Revision 1220638f (git): They are enum yytokentype, need cast
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:10 AM Revision a9925e22 (git): assertions.rb: ignore exit in child
* test/lib/test/unit/assertions.rb (assert_separately): ignore
SystemExit. unsuccessful exit still fails an assert...
nobu (Nobuyoshi Nakada)
09:46 AM Revision ea940cc4 (git): regparse.c: initialize return values
* regparse.c (parse_char_class): initialize return values before
depth limit check. returned values will be freed ...
nobu (Nobuyoshi Nakada)
05:35 AM Revision f28de8c0 (git): parse.y: new_qcall
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:35 AM Revision 35ac7cc0 (git): parse.y: ID2VAL
* parse.y (ID2VAL): split from TOKEN2VAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57658 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
05:35 AM Misc #13230: Better Do ... while structure
Probably it equals:
```cpp
unsigned b=0;
do {
cout<<a[b];
if (!(++b<10)) break;
...
nobu (Nobuyoshi Nakada)
05:11 AM Misc #13230 (Feedback): Better Do ... while structure
I'm sorry but I have to say I don't understand how the construct works. Looking at the original site there is an exa... shyouhei (Shyouhei Urabe)
05:08 AM Bug #13233: [DOC] Fix rdoc for Rational
Sorry, forgot the attachment. stomar (Marcus Stollsteimer)
02:53 AM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
Hiroshi SHIBATA wrote:
> I have no opinion this.
>
> >nalsh, shugo
>
> How do you think this?
I'm neutral,...
shugo (Shugo Maeda)
12:13 AM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
I have no opinion this.
>nalsh, shugo
How do you think this?
hsbt (Hiroshi SHIBATA)
02:16 AM Revision 6649e4c5 (git): * 2017-02-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:16 AM Revision fca3cf66 (git): envutil.rb: diagnostic_reports for ruby-runner
* test/lib/envutil.rb (EnvUtil.diagnostic_reports): ruby-runner
execs "RUBY_INSTALL_NAME" file, so search by that n...
nobu (Nobuyoshi Nakada)

02/19/2017

11:41 PM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
> I'm concerned about the increasing tendency to unbundle core functionality (`curses`, `tcl/tk`, ...; and possibly ... subtileos (Daniel Ferreira)
11:19 PM Bug #13233 (Feedback): [DOC] Fix rdoc for Rational
No patch? nobu (Nobuyoshi Nakada)
07:38 PM Bug #13233 (Closed): [DOC] Fix rdoc for Rational
```
rational.c: fix rdoc
* rational.c: [DOC] fix wrong indentations and comment out some lines
in code example...
stomar (Marcus Stollsteimer)
08:34 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
To clarify further the limitations of using Float here:
``` ruby
n = 10**35
Math.sqrt(n).to_i # =...
stomar (Marcus Stollsteimer)
07:30 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
After further testing I found the same errors when using **`Math.sqrt(n).to_i`** with
large number when using `(n**(...
jzakiya (Jabari Zakiya)
01:05 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
To be clear, I am not saying **`Math.sqrt`** has a bug in it.
As stated, it produces a floating point result, which ...
jzakiya (Jabari Zakiya)
09:42 AM Bug #13232 (Assigned): Comparing BigDecimal to float or Rational fails sometimes
Seems correct to me. nobu (Nobuyoshi Nakada)
03:51 AM Bug #13232 (Closed): Comparing BigDecimal to float or Rational fails sometimes
Under very special cases trying to compare a BigDecimal to a float or Rational will give an unexpected result:
...
romuloceccon (Rômulo Ceccon)
01:52 AM Bug #13231 (Closed): DateTime.strftime("%Z") does not return time zone abbreviation, returns hour and minute offset from UTC with colon
First time here; hope I capture everything.
It appears to me that either the documentation is incorrect or the exp...
thornomad (Damon Timm)
01:29 AM Misc #13230 (Rejected): Better Do ... while structure
I just saw this, and thought I'd pass it along.
http://ncomputers.org/suggestions/do%20while.cpp
```
Do ... wh...
jzakiya (Jabari Zakiya)
01:27 AM Bug #13227 (Closed): Crash when refine subclass method and call super
Applied in changeset r57655.
----------
vm_insnhelper.c: super to module in refinement
* vm_insnhelper.c (vm_call_z...
nobu (Nobuyoshi Nakada)
01:27 AM Revision 4d47e8d9 (git): vm_insnhelper.c: super to module in refinement
* vm_insnhelper.c (vm_call_zsuper): method defined in module in
refinement is not callable as-is. dispatch again.
...
nobu (Nobuyoshi Nakada)
01:12 AM Bug #13228: s[i]=c(assigning a character) for String is slower than Array on Linux
`perf` shows that ruby spent most of the time in `search_nonascii()`.
```
$ perf record ruby -ve 'n=100000; s = "...
wanabe (_ wanabe)

02/18/2017

10:38 PM Revision 7e5140e2 (git): * 2017-02-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:38 PM Revision 9cbe4553 (git): COPYING: expand tabs
* COPYING: expand tabs like as the rest lines. [Fix GH-1526]
Author: Philippe Ombredanne <[email protected]>
g...
nobu (Nobuyoshi Nakada)
10:34 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Robert A. Heiler wrote:
> If it would be a bug, as behaviour, why should `Math.sqrt()` itself not be able
> to deal...
nobu (Nobuyoshi Nakada)
05:06 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I can not evaluate whether the above is correct or not (not saying that it is not,
I just simply do not know), but I...
shevegen (Robert A. Heiler)
07:05 PM Misc #13072: Current state of date standard library
> date library will be separeted from Ruby repository (stdlib) to date.gem
I think the concept of date (without ti...
stomar (Marcus Stollsteimer)
06:40 PM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
_PS. A quote from a recent post (not by me) in ruby-talk:_
> I do not use Ruby anymore when I develop GUI applicat...
stomar (Marcus Stollsteimer)
06:26 PM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
I'm concerned about the increasing tendency to unbundle core functionality (`curses`, `tcl/tk`, ...; and possibly soo... stomar (Marcus Stollsteimer)
05:16 PM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
Here is the link to when curses was removed:
https://bugs.ruby-lang.org/issues/8584
I guess this is where two...
shevegen (Robert A. Heiler)
05:07 PM Bug #13229: [DOC] Add document title for extension.rdoc
I guess there is no shortage on developers who are able to use written japanese AND written
english. :)
shevegen (Robert A. Heiler)
03:02 PM Bug #13229: [DOC] Add document title for extension.rdoc
The current "title" of the extensions guide is "Basic Knowledge"...
Note that a contribution from a Japanese speak...
stomar (Marcus Stollsteimer)
03:01 PM Bug #13229 (Closed): [DOC] Add document title for extension.rdoc
```
extension.rdoc: add document title
* doc/extension.rdoc, doc/extension.ja.rdoc: [DOC]
add title and adapt ...
stomar (Marcus Stollsteimer)
03:27 PM Bug #13220: Enhance support of Unicode strings manipulation
I tested all cases with normalized strings and they works except this examples:
"١".to_f and other to numeric conv...
r.smitala (Radovan Smitala)
02:59 PM Bug #13220: Enhance support of Unicode strings manipulation
Shyouhei Urabe wrote:
> Radovan Smitala wrote:
> > It's not my blog post. But when i tried some testing cases they ...
r.smitala (Radovan Smitala)
02:37 PM Bug #13228 (Rejected): s[i]=c(assigning a character) for String is slower than Array on Linux
`s[i]=c`(assigning a character) for `String` is slower than for `Array` on Linux.
If I split the `String` to `Arra...
yoshiokatsuneo (Tsuneo Yoshioka)
12:29 PM Bug #13227 (Closed): Crash when refine subclass method and call super
Test script:
test.rb
~~~ ruby
class Parent
end
class Child < Parent
end
module FooBar
refine Paren...
chloerei (Rei Huang)
12:27 PM Bug #13226 (Closed): SIDEKIQ WORKER GETS KILLED
More likely [Bug #12292]. Please reopen if upgrading to Ruby 2.3.3 does not fix.
[Bug #12993] was an issue specifi...
rhenium (Kazuki Yamaguchi)
11:30 AM Bug #13226: SIDEKIQ WORKER GETS KILLED
Maybe [Bug #12993]? nobu (Nobuyoshi Nakada)
11:02 AM Bug #13226 (Closed): SIDEKIQ WORKER GETS KILLED
```
/home/deployer/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/openssl/buffering.rb:322: [BUG] Segmentation fault at 0x007...
thepraveen0207 (Praveen Sah)
08:50 AM Bug #13225 (Closed): [DOC] expand docs for Date shifting
```
ext/date/date_core.c: [DOC] expand docs for Date shifting
* add examples for Date#>> and Date#<< that clarify...
stomar (Marcus Stollsteimer)
05:52 AM Revision fbd5cda6 (git): {lib,test}/cgi: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:23 AM Bug #13222 (Closed): Array#sum inconsistency when init value is non-numeric
Applied in changeset r57651.
----------
array.c: check if numeric
* array.c (finish_exact_sum): add 0 and the initi...
nobu (Nobuyoshi Nakada)
04:23 AM Revision 3203ae53 (git): array.c: check if numeric
* array.c (finish_exact_sum): add 0 and the initial value to check
if the latter is numeric. [ruby-core:79572] [Bu...
nobu (Nobuyoshi Nakada)
03:42 AM Revision ca820606 (git): * 2017-02-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:42 AM Revision 7dccda43 (git): array.c: finish_exact_sum
* array.c (finish_exact_sum): extract duplicate code from
rb_ary_sum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nobu (Nobuyoshi Nakada)
01:55 AM Bug #13223: `File.join` will segv if File::SEPARATOR and File::Separator are set.
@nobu I went by what the documentation says:
~~~
/*
* call-seq:
* File.join(string, ...) -> string
*...
tenderlovemaking (Aaron Patterson)
01:48 AM Bug #13223: `File.join` will segv if File::SEPARATOR and File::Separator are set.
I doubt that the tests are expected results.
And a similar pattern:
```ruby
$; = " "
$a = nil
alias $; $a
a...
nobu (Nobuyoshi Nakada)

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... jeremyevans0 (Jeremy Evans)
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 s...
jzakiya (Jabari Zakiya)
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...
jzakiya (Jabari Zakiya)
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 ...
jzakiya (Jabari Zakiya)
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 ...
jzakiya (Jabari Zakiya)
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 ...
jzakiya (Jabari Zakiya)
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...
jzakiya (Jabari Zakiya)
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, ...
tenderlovemaking (Aaron Patterson)
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-M... sos4nt (Stefan Schüßler)
03:34 PM Bug #13102: Confusing method name: Set#delete?
Stefan Schüßler wrote:
> Not really, `Set#delete` also modifies the receiver.
>
> The actual difference is that `...
kaikuchn (Kai Kuchenbecker)
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...
nobu (Nobuyoshi Nakada)
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 t...
nobu (Nobuyoshi Nakada)
11:56 AM Feature #13172: Method that yields object to block and returns result
.patch file Nondv (Dmitry Non)
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/iss...
shevegen (Robert A. Heiler)
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.
nobu (Nobuyoshi Nakada)
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 unexp...
shyouhei (Shyouhei Urabe)
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 b...
r.smitala (Radovan Smitala)
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. I... shyouhei (Shyouhei Urabe)
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:
...
nh_cham (Michael Specht)
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 ... matsuda (Akira Matsuda)
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-...
nobu (Nobuyoshi Nakada)
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
a...
nobu (Nobuyoshi Nakada)
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 svn[bot]
05:45 AM Revision 6877de73 (git): DEPRECATED_INTERNAL_FEATURE
* error.c (ruby_deprecated_internal_feature): renamed, to
explicitly represent deprecation.
* internal.h (DEPRECAT...
nobu (Nobuyoshi Nakada)
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 stand...
normalperson (Eric Wong)

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....
r.smitala (Radovan Smitala)
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 notici...
jzakiya (Jabari Zakiya)
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 rkeene (Roy Keene)
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 cros...
nobu (Nobuyoshi Nakada)
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 b2d...
nobu (Nobuyoshi Nakada)
01:34 PM Bug #13218 (Feedback): testing
Please post the whole message.
And 2.3.0p0 is outdated, try 2.3.3.
nobu (Nobuyoshi Nakada)
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, w... donchev1 (Aleks Donchev)
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 http...
7stud (7 stud)
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... duerst (Martin Dürst)
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(js...
7stud (7 stud)
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 ko1 (Koichi Sasada)
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 n...
nobu (Nobuyoshi Nakada)
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 wit...
nobu (Nobuyoshi Nakada)
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 ko1 (Koichi Sasada)
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")'
> > ï
>
> Th...
nobu (Nobuyoshi Nakada)
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'
> 239
> 187
>...
shyouhei (Shyouhei Urabe)
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 svn[bot]
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): ditt...
nobu (Nobuyoshi Nakada)
02:33 AM Feature #7792: Make symbols and strings the same thing
> result = some.rpc_method(foo:123, bar:"baz")
>
> I find that i like the syntax enough, that I'll put up with h...
subtileos (Daniel Ferreira)
02:21 AM Feature #7792: Make symbols and strings the same thing
Hi Daniel,
Daniel Ferreira wrote:
>
> > (If not for the garbage collection problem, I would have designed
> > ...
spatulasnout (B Kelly)
01:22 AM Feature #7792: Make symbols and strings the same thing
Hi Bill
> One example:
>
> Since symbols aren't garbage collected, my Ruby-based RPC system
> is designed ...
subtileos (Daniel Ferreira)
 

Also available in: Atom