[#5999] Re: Custom installation (1.6.1) — ts <decoux@...>
>>>>> "D" == David Suarez de Lis <excalibor@demasiado.com> writes:
[#6019] Time.local bug? — hal9000@...
Please tell me this is a bug, not a feature.
[#6028] Ref.: Re: Time.local bug? — David Suarez de Lis <excalibor@...>
Hi,
[#6042] Re: Time.local bug? — ts <decoux@...>
>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
[#6074] Re: Cygwin conflicts — "Conrad Schneiker/Austin/Contr/IBM" <schneik@...>
Conrad Schneiker wrote:
[#6078] Programming Ruby ranking — Aleksi Niemel<aleksi.niemela@...>
Just a small note how the Ruby book sells:
[#6083] ANN: Single step Ruby installation for Windows — Dave Thomas <Dave@...>
[#6092] Re: detect:ifNone: in Ruby — Aleksi Niemel<aleksi.niemela@...>
> I like it. You can also mess around with the built in classes to get
[#6097] Re: detect:ifNone: in Ruby — Aleksi Niemel<aleksi.niemela@...>
matz queries:
[#6102] What would a Ruby browser look like? — Dave Thomas <Dave@...>
[#6106] Re: What would a Ruby browser look like? — "Conrad Schneiker/Austin/Contr/IBM" <schneik@...>
Stephen White writes:
People are already talking about using Tk to do this, or doing it as a WWW
[#6121] More Date/Time inconsistencies — David Suarez de Lis <excalibor@...>
Hi all,
[#6122] Ruby Book, Eng. tl, 6.1 -- aimai ? — Jon Babcock <jon@...>
[#6138] Thoughts on a Ruby browser — hal9000@...
I have to issue a disclaimer first, that I am not a code browser user,
[#6143] Re: What would a Ruby browser look like? — "Conrad Schneiker/Austin/Contr/IBM" <schneik@...>
Matz writes:
[#6149] Ruby hi(gh), and pointer to Jotto program — David Alan Black <dblack@...>
Hello --
David Alan Black <dblack@candle.superlink.net> writes:
[#6181] Minimal but practically useful Ruby browser? — "Conrad Schneiker/Austin/Contr/IBM" <schneik@...>
Hi,
[#6206] Re: marshal.dump again — ts <decoux@...>
>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
[#6220] ruby-lang.org — Dave Thomas <Dave@...>
[#6246] Re: quiz of the week — "Brian F. Feldman" <green@...>
"Brian F. Feldman" <green@FreeBSD.org> wrote:
> In case anyone wants something else to try an example of how fun
[#6288] lchown()/etc. and Unix syscall completeness — "Brian F. Feldman" <green@...>
Ruby as it is now isn't very consistent with the system calls it provides.
[#6346] Re: Another Smalltalk control structure idea — "Conrad Schneiker/Austin/Contr/IBM" <schneik@...>
Matz writes:
On Tue, 14 Nov 2000 15:29:31 +0900, Conrad Schneiker/Austin/Contr/IBM wrote:
[#6363] Re: rescue clause affecting IO loop behavior — ts <decoux@...>
>>>>> "D" == David Alan Black <dblack@candle.superlink.net> writes:
Hello again --
matz@zetabits.com (Yukihiro Matsumoto) writes:
[#6383] 1.6.x documentation. — Hugh Sasse Staff Elec Eng <hgs@...>
On Tue, 14 Nov 2000, Yukihiro Matsumoto wrote:
[#6386] lots of Threads — Hugh Sasse Staff Elec Eng <hgs@...>
If I have an array to be filled with computationally heavy stuff,
Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
On Thu, 16 Nov 2000, Dave Thomas wrote:
On Thu, 16 Nov 2000 19:59:07 +0900, Hugh Sasse Staff Elec Eng wrote:
[#6412] clas << a & Pascal's with <record> do...end — Hugh Sasse Staff Elec Eng <hgs@...>
I was thinking that when a lot of work must be done on an object
[#6417] Where is T_RANGE? — Robert Feldt <feldt@...>
Hi,
[#6444] Ruby tokenizer for Ruby — Charles Hixson <charleshixson@...>
Does anyone know of a Ruby tokenizer for Ruby? In particular, I am bother
[#6461] Is there a FITS_IN_UINT(v)? — Robert Feldt <feldt@...>
Hi,
Robert Feldt <feldt@ce.chalmers.se> writes:
[#6476] %x{...} and ` not working? — Niklas Backlund <d99-nba@...>
Hi,
[#6485] Re: GUI in ruby — "Conrad Schneiker" <schneik@...>
Hi,
[#6491] comp.lang.tcl -- The "Batteries Included" Distribution [LONG] — "Conrad Schneiker" <schneik@...>
Hi,
On Tue, 21 Nov 2000 16:58:30 +0900, Conrad Schneiker wrote:
[#6503] redefining methods in a hierarchy. — Hugh Sasse Staff Elec Eng <hgs@...>
If I have an object which I know to be a subclass of a subclass (at lease)
[#6518] Re: Question about the behavior of write att ributes in blocks — Aleksi Niemel<aleksi.niemela@...>
> Is it at all possible to write an iterator, which allows assignments
Thank you for explanation - the output of "x".inspect() is
"Christoph Rippel" <chr@subdimension.com> writes:
I lifted the following two lines from your (great) book - Page 285
[#6521] Time Trouble — Niklas Backlund <d99-nba@...>
Hi,
Niklas Backlund <d99-nba@nada.kth.se> writes:
[#6523] alias_method and > and < — Hugh Sasse Staff Elec Eng <hgs@...>
The operators > and < don't seem to be in the list of things one cannot
[#6550] Note on docs for Array#reverse! — Robert Feldt <feldt@...>
[#6571] Re: Ruby/C extension build question — Arjen Laarhoven <arjen@...>
Oops:
[#6579] ANN: Ruby/GDChart 0.0.1 available — Arjen Laarhoven <arjen@...>
Hi all,
[#6582] best way to interleaf arrays? — David Alan Black <dblack@...>
Hello --
David Alan Black <dblack@candle.superlink.net> wrote:
David Alan Black <dblack@candle.superlink.net> writes:
David Alan Black <dblack@candle.superlink.net> writes:
On Tue, 28 Nov 2000, Dave Thomas wrote:
[#6597] Question on sort! — Dave Thomas <Dave@...>
matz@zetabits.com (Yukihiro Matsumoto) writes:
Hi,
> The latter can be avoided if one follows the no-bang-method-chain
[#6642] Hash with a key of nil ? — rpmohn@... (Ross Mohn)
While reading data in from a file and populating a hash, I accidentally
[#6646] RE: Array Intersect (&) question — Aleksi Niemel<aleksi.niemela@...>
Ross asked something about widely known and largely ignored language (on
aleksi.niemela@cinnober.com (Aleksi Niemel) wrote in
> >Use a hash. Here's code to do both and more. It assumes that
Hi,
----- Original Message -----
[#6656] printing/accessing arrays and hashes — raja@... (Raja S.)
I'm coming to Ruby with a Python & Common Lisp background.
matz@zetabits.com (Yukihiro Matsumoto) writes:
[#6666] Suggestion for addition to Begin/End syntax — drew@... (Andrew D. McDowell)
Hi all.
Hi,
[ruby-talk:6496] ANN: BitVector 0.1.5
Hi,
I've been posing dumb question on ruby-talk for so long now that I think
its about time I contribute something; here is a fairly extensive
BitVector extension. I know a lot of you has submitted similar extensions
but IMHO this one is more "complete" so I hope someone finds it
useful. You can find the README below and download it from RAA.
If you try it out then I'd be esepcially interested in any violations to
the "principle of Least Surprise" you might encounter. One main goal with
the extension is that it should be truly Ruby-ish...
Note that its an alpha release so there will likely be bugs. Please read
the README and the TODO to see what is missing or not fully implemented.
Documentation is thin as of now but please take a look at the unit tests
since they give a good picture of how to use the extension.
Regards,
Robert
=============================================================
= BitVector - Effecient bit vector class extension for Ruby =
= version 0.1.5 (This is an alpha release) =
=============================================================
Release date: 2000-11-21
Available
from: http://www.ce.chalmers.se/~feldt/ruby/extensions/bitvector/
Author: Robert Feldt, feldt@ce.chalmers.se
What is it?
-----------
A fairly extensive and fast BitVector class for Ruby. Handles sequences of
up to 2**32-1 bits (about 500 Mb)[FOOTNOTE 1]. Implemented as a wrapper
around Bit::Vector version 6.0 by Steffen Beyer. Bit::Vector is a C
library
of fast routines for handling bit vectors. See
steffen_beyers_bit_vector/README.txt for Steffen's intro to Bit::Vector.
Installation?
-------------
1. unpack tarball (if you haven't already)
2. ruby extconf.rb
3. make
4. ruby tests/unittest_bitvector.rb runs the tests (OPTIONAL)
5. ruby install.rb
Example of use?
---------------
require 'bitvector'
b = BitVector.new(100000).randomize # 1e5 random bits
a = BitVector.new(100000).randomize # another 1e5 random bits
c = a^b # exclusive or of 2*1e5 rand bits
File.open("mybits", "w") {|f| # Dump bit vector to file
f.write Marshal.dump(c)
}
BitVector.new(8, "10011011").ones # => [0,1,3,4,7]
puts c.to_i # Print *large* number...
Requirements?
-------------
None known, but hey there are no garantuees here (see LICENSE).
I've successfully compiled and used BitVector with Ruby 1.6.2
(2000-11-16) and
cygwin 1.1.4 on Windows 2000 Professional Workstation and Windows NT 4.0
Workstation. If it works for you on other platforms/setups I'd appreciate
if you drop me a note. However, it should work on most Ruby-enabled
platforms.
NOTE THAT THIS IS AN ALPHA RELEASE SO THERE WILL LIKELY BE BUGS. I've only
used a small subset of all the methods in my own projects...
Documentation?
--------------
No Ruby-specific documentation yet but Ruby class very similar to the
Perl class Bit:Vector, see
http://www.engelschall.com/u/sb/download/Bit-Vector/ for more info.
Also take a look in the unit tests which give examples of use, see
file tests/unittest_bitvector.rb.
License?
--------
Same as the underlying Bit::Vector ie. LGPL. See LICENSE.
If this is too strict then please contact me and we can work something
out with Steffen Beyer.
Special things to note?
-----------------------
Methods
randomize,
* (multiply),
/ (divide),
to_uint,
to_i
are *SLOW* and calling them for large bit vectors can take
prohibitively *LONG* time.
Run 'ruby tests/perftest_bitvector.rb' to get some timing data.
Note: randomize is much faster if you use a probability of 0.5, ie. the
default value.
Plans for the future?
---------------------
See TODO. This is an alpha release so there might be (some) changes
to the interface.
What is bitvector_extra.rb?
---------------------------
Ruby file adding some lesser used methods to BitVector class. Might
migrate
to "main" class in the future or might be moved away. It is installed when
you do "ruby install.rb". See tests/unittests_bitvector_extra.rb for some
examples of use.
Do you have comments or questions?
----------------------------------
I'd appreciate if you drop me a note if you're successfully using
BitVector. If there are some known users I'll be more motivated to
packing up additions / new versions and post them to RAA.
Happy coding!
Robert Feldt, feldt@ce.chalmers.se
FOOTNOTE 1. The limit is actually the largest number that can be
represented
in an "unsigned long" in C. If you have a 64-bit machine the BitVectors
are
limited to >2e5 TeraByte so that'll probably be enough... ;-)