[#25430] 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org>

1.8 に以下の変更を行いたいんですが、どうでしょうか?

29 messages 2005/01/08
[#25445] Re: 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org> 2005/01/09

In article <20050109063005.3048a4ba.tommy@tmtm.org>,

[#25479] some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

44 messages 2005/01/15
[#25488] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/22

永井@知能.九工大です.

[#25489] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/22

山本です。

[#25490] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/22

永井@知能.九工大です.

[#25517] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25519] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/25

永井@知能.九工大です.

[#25521] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25523] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/25

永井@知能.九工大です.

[#25530] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25537] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25545] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25546] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25547] Re: some problems on ext/tk/sample/**/*.rb — "U.Nakamura" <usa@...> 2005/01/26

こんにちは、なかむら(う)です。

[#25548] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25550] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25553] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25556] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25567] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25569] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/27

山本です。

[#25578] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/28

永井@知能.九工大です.

[#25585] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/28

永井@知能.九工大です.

[#25605] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/31

永井@知能.九工大です.

[#25609] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/02/01

山本です。

[#25500] priority between commandline option and RUBYOPT env variable — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

13 messages 2005/01/25

[#25522] merge tcltklib and tk — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

32 messages 2005/01/25
[#25552] Re: merge tcltklib and tk — nobu@... 2005/01/26

なかだです。

[#25555] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25557] Re: merge tcltklib and tk — nobu@... 2005/01/26

なかだです。

[#25561] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25566] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25590] Can I copy doc/irb/irb.rd.ja to the reference Wiki? — sheepman <sheepman@...>

こんばんは、sheepman です。

16 messages 2005/01/29
[#25591] Re: Can I copy doc/irb/irb.rd.ja to the reference Wiki? — keiju@... (石塚圭樹) 2005/01/29

けいじゅ@いしつかです.

[#25592] irb history saving feature is not in ruby 1.8 — sheepman <sheepman@...> 2005/01/30

こんにちは、sheepman です。

[#25593] Re: irb history saving feature is not in ruby 1.8 — keiju@... (石塚圭樹) 2005/01/30

けいじゅ@いしつかです.

[#25594] Re: irb history saving feature is not in ruby 1.8 — sheepman <sheepman@...> 2005/01/30

こんにちは、sheepman です。

[#25595] Re: irb history saving feature is not in ruby 1.8 — keiju@... (石塚圭樹) 2005/01/30

けいじゅ@いしつかです.

[ruby-dev:25408] Re: 1.9.0でbcc版がコンパイルできない

From: "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date: 2005-01-05 07:38:18 UTC
List: ruby-dev #25408
山本です。

>普通のコンパイラはそのくらいなら最適化で消すでしょうから、影響
>はないと思います。

では、とりあえずそうしておきます。

# 個人的には、昔のバグとはいえこんなの(http://personal.sirma.bg/Jogy/bc5.html)
# もあったみたいで怖いのですが > __int64

ところで、色々試すうちに、下のようにして64bit整数のない環境にすると、
test/digest/test_digest.rb が正しく実行されないことに気づきました。

Index: Makefile.sub
===================================================================
RCS file: /src/ruby/bcc32/Makefile.sub,v
retrieving revision 1.67
diff -u -w -b -r1.67 Makefile.sub
--- Makefile.sub	17 Sep 2004 11:38:49 -0000	1.67
+++ Makefile.sub	5 Jan 2005 02:16:02 -0000
@@ -213,7 +213,7 @@
 \#define SIZEOF_SHORT 2
 \#define SIZEOF_LONG 4
 \#define SIZEOF_LONG_LONG 0
-\#define SIZEOF___INT64 8
+\#define SIZEOF___INT64 0
 \#define SIZEOF_OFF_T 4
 \#define SIZEOF_VOIDP 4
 \#define SIZEOF_FLOAT 4

これは digest/sha2 がコンパイルされないためですが、
digest/md5 や digest/sha1 などはコンパイルされるので、digest/sha2 用のテストだけ
スキップすべきだと思います。

E:\ruby-cvs\temp>test19 digest
..\ruby\test\digest/test_digest.rb:11:in `require': No such file to load -- dige
st/sha2 (LoadError)
        from ..\ruby\test\digest/test_digest.rb:11
        from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:84:in `require'
        from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:84:in `collect_file
'
        from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:66:in `recursive_co
llect'
        from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:51:in `each'
        from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:51:in `recursive_co
llect'
        from E:/ruby-cvs/ruby/lib/test/unit/collector/dir.rb:26:in `collect'
        from E:/ruby-cvs/ruby/lib/test/unit/autorunner.rb:61
        from E:/ruby-cvs/ruby/lib/test/unit/autorunner.rb:55:in `[]'
        from E:/ruby-cvs/ruby/lib/test/unit/autorunner.rb:192:in `run'
        from ../ruby/bin/testrb:5


また、新しいテスト test/ruby/test_rand.rb も 64bit整数のない環境で失敗するようです。

Index: random.c
===================================================================
RCS file: /src/ruby/random.c,v
retrieving revision 1.35
diff -u -w -b -p -r1.35 random.c
--- random.c	4 Jan 2005 17:38:23 -0000	1.35
+++ random.c	5 Jan 2005 02:08:19 -0000
@@ -375,7 +375,7 @@ limited_big_rand(struct RBignum *limit)
     val->sign = 1;
 #if SIZEOF_BDIGITS == 2
 # define BIG_GET32(big,i) (((BDIGIT *)(big)->digits)[(i)/2] | \
-                           ((i)/2+1 < (big)->len ? (((BDIGIT *)(big)->digits)[(i)/2+1] << 16)
+                           ((i)/2+1 < (big)->len ? (((BDIGIT *)(big)->digits)[(i)/2+1] << 16) \
                                                  : 0))
 # define BIG_SET32(big,i,d) ((((BDIGIT *)(big)->digits)[(i)/2] = (d) & 0xffff), \
                              ((i)/2+1 < (big)->len ? (((BDIGIT *)(big)->digits)[(i)/2+1] = (d) >> 16) \

E:\ruby-cvs\no-int64>test19 ruby/test_rand.rb
Loaded suite test_rand.rb
Started
test_0x100000000(TestRand): .
test_0x1000000000000(TestRand): F
test_0x1000000000001(TestRand): F
test_0x100000001(TestRand): F
test_0x3fffffff(TestRand): .
test_0x3fffffffffffffff(TestRand): F
test_0x40000000(TestRand): .
test_0x4000000000000000(TestRand): F
test_0x4000000000000001(TestRand): F
test_0x40000001(TestRand): .
test_0xffffffff(TestRand): .
test_mt(TestRand): .
test_neg_0x10000(TestRand): .
test_neg_0x10000000000(TestRand): F

Finished in 0.161 seconds.

  1) Failure:
test_0x1000000000000(TestRand)
    [..\ruby\test\ruby/test_rand.rb:60:in `test_0x1000000000000'
     ..\ruby\test\ruby/test_rand.rb:56:in `each'
     ..\ruby\test\ruby/test_rand.rb:56:in `test_0x1000000000000']:
<11736396900911> expected but was
<281473227991599>.

  2) Failure:
test_0x1000000000001(TestRand)
    [..\ruby\test\ruby/test_rand.rb:71:in `test_0x1000000000001'
     ..\ruby\test\ruby/test_rand.rb:67:in `each'
     ..\ruby\test\ruby/test_rand.rb:67:in `test_0x1000000000001']:
<187121911899765> expected but was
<281474976710656>.

  3) Failure:
test_0x100000001(TestRand)
    [..\ruby\test\ruby/test_rand.rb:49:in `test_0x100000001'
     ..\ruby\test\ruby/test_rand.rb:48:in `each'
     ..\ruby\test\ruby/test_rand.rb:48:in `test_0x100000001']:
<2546248239> expected but was
<4294967296>.

  4) Failure:
test_0x3fffffffffffffff(TestRand)
    [..\ruby\test\ruby/test_rand.rb:82:in `test_0x3fffffffffffffff'
     ..\ruby\test\ruby/test_rand.rb:78:in `each'
     ..\ruby\test\ruby/test_rand.rb:78:in `test_0x3fffffffffffffff']:
<900450186894289455> expected but was
<4611686016678668847>.

  5) Failure:
test_0x4000000000000000(TestRand)
    [..\ruby\test\ruby/test_rand.rb:93:in `test_0x4000000000000000'
     ..\ruby\test\ruby/test_rand.rb:89:in `each'
     ..\ruby\test\ruby/test_rand.rb:89:in `test_0x4000000000000000']:
<900450186894289455> expected but was
<4611686016678668847>.

  6) Failure:
test_0x4000000000000001(TestRand)
    [..\ruby\test\ruby/test_rand.rb:104:in `test_0x4000000000000001'
     ..\ruby\test\ruby/test_rand.rb:100:in `each'
     ..\ruby\test\ruby/test_rand.rb:100:in `test_0x4000000000000001']:
<900450186894289455> expected but was
<4611686018427387904>.

  7) Failure:
test_neg_0x10000000000(TestRand)
    [..\ruby\test\ruby/test_rand.rb:111:in `test_neg_0x10000000000'
     ..\ruby\test\ruby/test_rand.rb:111:in `each'
     ..\ruby\test\ruby/test_rand.rb:111:in `test_neg_0x10000000000']:
<455570294424> expected but was
<1095520421528>.

14 tests, 47 assertions, 7 failures, 0 errors


In This Thread