[#2617] irb for 1.5.x — Andrew Hunt <Andy@...>
5 messages
2000/05/03
[#2639] OT: Japanese names — Dave Thomas <Dave@...>
4 messages
2000/05/09
[#2643] Ruby Toplevel — Dave Thomas <Dave@...>
7 messages
2000/05/09
[#2656] Re: Append alias for Array.append? — Aleksi Niemel<aleksi.niemela@...>
Hideto ISHIBASHI:
5 messages
2000/05/09
[#2660] win OLE / eRuby — Andrew Hunt <Andy@...>
8 messages
2000/05/09
[#2663] Re: win OLE / eRuby — Aleksi Niemel<aleksi.niemela@...>
>At Tue, 9 May 2000 09:14:51 -0400,
4 messages
2000/05/09
[#2667] The reference manual is now online — Dave Thomas <Dave@...>
6 messages
2000/05/09
[#2668] Re: The reference manual is now online — schneik@...
4 messages
2000/05/09
[#2702] Re: Append alias for Array.append? — Andrew Hunt <andy@...>
>From: Aleksi Niemel<aleksi.niemela@cinnober.com>
7 messages
2000/05/10
[#2752] RE: Array.pop and documentation [was: Append al ias for Array.append?] — Aleksi Niemel<aleksi.niemela@...>
6 messages
2000/05/11
[#2758] Re: irb install — Andrew Hunt <andy@...>
>|Excellent! Will you consider adding mod_ruby to install_app as
7 messages
2000/05/11
[#2777] Re: irb install
— "NAKAMURA, Hiroshi" <nakahiro@...>
2000/05/12
Hi,
[#2764] More code browsing questions — Albert Wagner <alwagner@...>
I see some class definitions contain "include" and "extend" statements.
6 messages
2000/05/12
[#2843] Re: editors for ruby — "Conrad Schneiker" <schneiker@...>
(Posted on comp.lang.ruby and ruby-talk ML.)
6 messages
2000/05/17
[#2874] RE: simple httpd for local use — Aleksi Niemel<aleksi.niemela@...>
> I personally use it for access to full-text indexed linux
6 messages
2000/05/18
[#2875] Re: simple httpd for local use
— hipster <hipster@...4all.nl>
2000/05/18
On Thu, 18 May 2000 09:10:28 +0200, Aleksi Niemelwrote:
[#2920] SWIG: virtual variable? — Yasushi Shoji <yashi@...>
hello,
4 messages
2000/05/22
[#2928] FYI: What our Python friends are up to. — "Conrad Schneiker" <schneiker@...>
Hi,
8 messages
2000/05/22
[#2964] Thank you — h.fulton@...
Thanks, Matz (and others) for your replies to
4 messages
2000/05/24
[#2973] Re: Socket.getnameinfo — ts <decoux@...>
>>>>> "D" == Dave Thomas <Dave@thomases.com> writes:
10 messages
2000/05/25
[#3016] rbconfig.rb — Dave Thomas <Dave@...>
5 messages
2000/05/28
[#3039] Re: Final for World Series: Python vs Ruby — "Dat Nguyen" <thucdat@...>
1 message
2000/05/30
[#3058] FailureClass? — Aleksi Niemel<aleksi.niemela@...>
Question arising from the FAQ:
7 messages
2000/05/31
[ruby-talk:02834] Re: file.size, OS dependency and Ruby look killer?
From:
Aleksi Niemel<aleksi.niemela@...>
Date:
2000-05-16 13:44:09 UTC
List:
ruby-talk #2834
Dave:
> > # this is what I expect to work
> > # file.print "\00" * (1023 - (file.size-1) % 1024)
>
> Did you try file#tell?
No, didn't feel intuitive (so I didn't find it), but it seems to work
(without need to flush) so that solves the problem. It seems File.size is
meant to be used with physical files which are located in the disk already.
Thanks!
For OS dependency:
> > NEEDS_BINMODE = true if /WIN/ni === RUBY_PLATFORM
> > PATH_SEPARATOR = {'UNIX'=>'/', 'WINDOWS'=>'\\', 'MACINTOSH'=>':'}
> There _is_ absolutely no need for code like this in libraries, which
> is why you'll discover that the libraries use neither value. A Ruby
You're totally right. Should have checked the real usage first. Well, it's
time for small polishing :).
Even when my original point missed target regrettably I'd like to discuss
about this a little bit more.
I like the idea to be able to 'select' without any preparations, but even
then I can't help to think this is just a feature provided by OS. Ruby's
providing the functionality as it's granted, pretending that real
functionality for select exists for sure. Everything is ok while there
really is such thing. But what happens to the guy wanting to use Ruby in a
environment where TCP/IP is not supported or to the guy wanting to use
totally other network protocol.
Of course both of these cases can be worked out (one can overwrite current
functionality with own versions, or simply create own libraries), but I
think Ruby is not promoting easiness of such thing by well thought,
organized and implemented interfaces for system, OS or platform dependent
feature importation.
Current code for IO is quite handy working by default even with IPv6
(doesn't it?). Even so, it might be better to have real IPv4 and IPv6
libraries around and having common IO to use those libraries (or maybe
hardcoding something for performance).
Maybe I should just shut up on these issues, since I don't know them, can't
propose anything really useful, nor implement it right-away. I'm just
promoting my feel (or fear) for something I don't know, nor understand, and
if you don't feel it's useful I'd stop here.
And what it comes to beautifulness of Java style constructor:
> > # This is how I made Ruby to eat more beautiful "obj = new Class".
> If you find this more beautiful, then I suspect you haven't yet had
> that moment of revelation when you realize how Ruby's classes,
> metaclasses, and objects all interact in harmony.
This last one was a little bit kind of provocation. I'm not happy you didn't
chew and swallow it until it explodes B-). Thanks, for the correction,
anyway.
- Aleksi