76563-79505 subjects 76990-78775

A different Version of Enumerable#inject
76768 [bob.news@gm ] Apparently the other post got overlooked - and it had an error in the
+ 76772 [batsman.geo@] I tend to dislike #inject cause it's almost always more complex than
| 76786 [bob.news@gm ] "Mauricio Fern?ndez" <batsman.geo@yahoo.com> schrieb im Newsbeitrag
| 76889 [batsman.geo@] The former is more readable for me.  Possibly because I don't use
+ 76832 [pit@ca it in] I think you'll have problems with this approach if you use it with
| 76853 [bob.news@gm ] "Pit Capitain" <pit@capitain.de> schrieb im Newsbeitrag
+ 76895 [wsdng@on in ] [ inject with variable num args block ]
  76899 [bob.news@gm ] "Sascha D?rdelmann" <wsdng@onlinehome.de> schrieb im Newsbeitrag
  76952 [wsdng@on in ] That was loud thinking which lead to a pro, yes!

IRC down?
76769 [bob.news@gm ] is there a problem with irc.freenode.net or is it just our firewall?
+ 76771 [dsafari@pa a] Hmm...works fine for me.
+ 76773 [batsman.geo@] -lilo- [Global Notice] Hi all.  This is a first announcement.  We're
+ 76830 [seth@cq .c m] works here.

Embedding problem - SEGV
76783 [B.Candler@po] I have a problem with embedding Ruby, which hopefully someone can shed some
+ 76784 [decoux@mo lo] Use rb_protect() to run your code.
| 76798 [B.Candler@po] That's pretty icky. I'm happy for Ruby to generate an exception report and
| 76801 [decoux@mo lo] Something like this
| 76805 [B.Candler@po] ... etc
| + 76809 [decoux@mo lo] rb_gv_get("$!") to retrieve $!, then rb_inspect() or what you want
| + 76812 [B.Candler@po] (Partially answering own question) error_print is private, but ruby_stop()
|   76813 [0bz63fz3m1qt] I don't know if this can be useful to you ?
|   76814 [B.Candler@po] Thanks for that. I'm writing C not C++, but I guess writing
+ 76785 [B.Candler@po] Spoke too soon - requiring a .so also causes it to segfault.
  76788 [decoux@mo lo] How do you link your .out ?
  76794 [B.Candler@po] I gave the compile/link command in the previous post, and adding -ldl makes
  76796 [decoux@mo lo] svg% ruby -rrbconfig -e 'p Config::CONFIG["LIBS"], Config::CONFIG["LDFLAGS"]'
  + 76803 [B.Candler@po] Cheers,
  + 76804 [0bz63fz3m1qt] # ruby 1.8.0
    76806 [B.Candler@po] If you look at my previous post, you'll see that's what I did.

i need your help
76793 [mohammed55@z] Mohammed Abacha.

[ANN] IO-Reactor 0.04
76799 [ged@Fa ri MU] I'd like to announce version 0.04 of the 'IO-Reactor' module, which

URGENT: Ruby 1.8 in IBM PowerPC
76815 [drak@na el g] any help is really appreciated!
+ 76817 [decoux@mo lo] Verify the value of stacksize with the command `ulimit', or `limit' and
| 76893 [drak@na el g] # ulimit -a
+ 76978 [ gm@na el gr] ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o

[Ann] OpenSSL for Ruby 1.0.0
76828 [m.rokos@sh c] It's my pleasure to announce that 'OpenSSL for Ruby' reached release
+ 76858 [buggs-ruby@s] Thanks a lot!
+ 76873 [nahi@ke na t] Congratulations on your great project to be included in 1.8.0.
  76888 [nakahiro@sa ] Sorry, my slides does not include any code but Gotoyuzo's does.
  76897 [m.rokos@sh c] Do you have any code that we can test?
  76902 [buggs-ruby@s] Indeed i just narrowed it down just before i saw the announcement.

Congratulations, You Have Won !!!
76833 [fountainlott] ...

[OT] subversion, was [ANN] RubyForge.org
76834 [brett_willia] I've been following subversion development for two years, and we finally
+ 76841 [Patrick.Benn] Actually, Perforce is free for open-source projects, and to say it's
| 76842 [Peter.Booth@] I recently did a brief comparative review of Subversion, Perforce, and
| 76843 [Patrick.Benn] Hmm, the linuxworld article didn't really say anything useful about
| + 76845 [0bz63fz3m1qt] Please keep it online.. I am following your discussion.
| | 76847 [ben@th ng ag] Actually, so am I.  Where I'm working we have recently decided to move some
| | + 76852 [0bz63fz3m1qt] My current repository-snapshot takes up 4.2 Mbytes!!
| | | + 76855 [Patrick.Benn] Personally, I think the concept of a changelist is critical (or
| | | | 76856 [ben@th ng ag] Licensing
| | | | 76859 [Patrick.Benn] Not true.  Like Bitkeeper, it's free for open-source hosting.
| | | + 76877 [tom@in oe he] and upload the tar file after you've tweaked your directory structure as
| | + 76861 [brett_willia] It is quite off-topic and I hope keeping it online doesn't annoy others.
| |   + 76869 [nathaniel@ta] Well, I used Perforce at a client's site for a while, and it usually just
| |   | + 76870 [Peter.Booth@] For me, the deciding moment was after installed a demo version of Bitkeeper
| |   | | 76926 [wsc9tt@ya oo] Well I am one of the primary BitKeeper developers and I think Ruby is
| |   | | 76927 [ben@th ng ag] I'm guessing "release it as open source", or "give it away for any use
| |   | + 76879 [djkea2@mu ca] Why is it that nobody ever mentions Aegis when this topic comes up?
| |   |   76900 [Patrick.Benn] Well, for one, it only runs on Unix.  That's a pretty big problem for
| |   |   76938 [ jupp@gm .d ] Saluton!
| |   |   76940 [rasputin@id ] <nods>
| |   |   77022 [ jupp@gm .d ] Saluton!
| |   |   77134 [austin@ha os] Sorry, I disagree on both. I have and use Cygwin (and I've used MKS in the
| |   + 76932 [tcfelker@mt ] You'd have to be very careful about the licensing.  For example, if you
| |     76934 [gfb@to es ft] McVoy's
| |     77012 [tcfelker@mt ] <http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&threadm=aJyH.3dH.11%40gated-at.bofh.it&rnum=1&prev=/groups%3Fq%3Dgroup:linux.kernel%2Bauthor:stallman%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26safe%3Doff%26selm%3DaJyH.3dH.11%2540gated-at.bofh.it%26rnum%3D1>
| + 76872 [gsinclair@so] I'll make one comment on this off-topic thread.  It would be nice to have
+ 76864 [mailinglists] Yes this is unacceptable and that this happens after a few years of
+ 76947 [drosih@rp .e] Did you fly any of these database problems by the subversion
| 76949 [brett_willia] We didn't, as the problems are documented there as known.
| 76950 [brett_willia] Hmm... upon a reread you are saying more than I first thought.
| 76951 [drosih@rp .e] Yes, that is what he told me.  Well, "more DB corruption", such
+ 76967 [bolzer@in or] At my place ( informatic dept @ univ ) we have been using Subversion for
  76982 [brett_willia] We used the same source for both platforms so the versions should have

"regex literal in condition"
76846 [dcarrera@ma ] I'm getting an erorr that I don't understand.
+ 76850 [wkb@ai ma l.] Daniel,
| 76865 [dcarrera@ma ] Funny thing is...
+ 76857 [kentda@st d.] A literal is something written directly into the source.
  76866 [dcarrera@ma ] Thanks for the explanation, but I'm not quite following.
  76876 [flgr@cc n. e] Moin!

Can't login for cvs
76848 [doug.hendric] I'm trying to login for anonymous cvs.
76878 [doug.hendric] Our sysadmin has traced it and says it's our firewall.

Build crash of preview3 on alpha/osf5.1 AND POSSIBLE FIX
76885 [doug.hendric] I'm running Tru64 (osf1) 5.1 on an HP/Compaq/DEC alpha, and the ruby
76887 [matz@ru y- a] I will check this fix in preview4, which is going out several hours
76944 [doug.hendric] Preview4 works for me!  With no changes!  Many thanks, matz.  I still

ruby 1.8.0 preview4
76892 [matz@ru y- a] I just put preview4 archive on the ftp server.
+ 76894 [decoux@mo lo] This change is normal (in mkmf.rb)
| 76909 [matz@ru y- a] I believe this change was made by Nobu, and was intentional.  Sorry
| + 76910 [djberge@qw s] I get gobs of warnings when I build with gcc -Wall.  I tried to send them to
| | 76946 [doug.hendric] I'm posting here because I can't see the root message.
| | 76953 [matz@ru y- a] They are harmless.  I think I can pacify them.
| | + 76977 [B.Candler@po] Here are what IMO are the important warnings from FreeBSD-4.8, gcc version
| | | 77008 [matz@ru y- a] Fixed.
| | | + 77019 [ruby-talk@wh] As we speak... Thanks for fixing the sprintf one, matz.
| | | + 77044 [B.Candler@po] #ifdef HAVE_UNISTD_H
| | |   + 77054 [drosih@rp .e] FreeBSD does spend some effort to minimize namespace pollution,
| | |   + 77055 [matz@ru y- a] Aha!  Thanks a lot.
| | + 77309 [doug.hendric] [Much snipped]
| + 77297 [cyclists@nc ] Maybe I missed the answer to this, but what am I supposed to use
|   77396 [nobu.nokada@] It was because that DLDFLAGS includes LDFLAGS for ruby itself
|   77419 [cyclists@nc ] Thanks for your help, Nobu.
+ 76898 [B.Candler@po] I notice code is compiled with -g and not stripped. Looking at 1.6.8 it
| 76907 [matz@ru y- a] Strange.  It has not changed since 1.6.8; it should be compiled with
| 76941 [B.Candler@po] It is. That's what I meant... that debugging symbols are included. It gets a
| 76954 [matz@ru y- a] Packager can easily choose that, by modifying Makefile, or supplying
+ 76903 [jonnypichler] cool - this now compiles/builds with no errors from scratch on winxp/cygwin
+ 76904 [chrismo@cl b] I'm guessing this is known, but any script I've got that loads rexml
| 76908 [matz@ru y- a] We already fixed them before preview4.  Perhaps you need to re-install
| 76912 [chrismo@cl b] Yeup - I guess the mswin32 distribution had older rexml in it.
| 76948 [usa@os .a t.] Ah, my mswin32 distribution doesn't include site_ruby/1.8/rexml :-)
+ 76905 [aredridel@nb] I'll have PLD RPMs available via HTTP and the Poldek this afternoon,
| 76918 [aredridel@nb] ...
+ 76911 [lyle@us rs s] Compiling on Red Hat Linux 8.0, I get this error when it tries to link
+ 76915 [kero@ch ll .] Find below the results of building preview4 on HP-UX;
| 76916 [matz@ru y- a] Hmm, it seems HP-UX compiler does not provide sane definition of
| 76935 [kero@ch ll .] It does define it. But somehow it doesn't get through to sha2.c
+ 76922 [ben@th ng ag] gcc -fPIC -g -O2 -I. -I/usr/local/ruby-1.8.0 -I/usr/local/ruby-1.8.0
| + 76925 [colinml1@ex ] This is basically RedHat's screwup, as far as I'm concerned. Pretty well
| + 76937 [ian@ca ib n.] [errors snipped]
| + 76968 [nobu.nokada@] CVS HEAD uses pkg-config if available.
+ 76923 [mccallister@] ossl_config.c:147: bad macro argument list
| 76924 [mccallister@] $gcc -v
| 77013 [mccallister@] Updating to gcc 3.3 solves this problem on OS X (via Apple's gcc 3.3
+ 76980 [wybo@se va y] ruby -vwe "require 'tk'"
| 77010 [nagai@ai ky ] Thanks. I fixed on CVS.
+ 76986 [dfayra00@um ] Mac OS X 10.3 Developer Preview has the following issue during build of
  + 76987 [djberge@qw s] Solaris 9
  | 77003 [matz@ru y- a] Hmm, where can I find proctable.c, which is definitely not in the Ruby
  | 77026 [djberge@qw s] It's caused by the inclusion of the header file, not my source.  My
  + 77009 [matz@ru y- a] Fixed in the latest CVS.  Wait for preview5, or you can always try the

Running a Ruby installation off a CD (under Windows)
76896 [harryo@qi so] I've written some stuff I'd like to show to someone who doesn't already have Ruby installed.
+ 76906 [djberge@qw s] The closest thing I can think of is the Live Demo CD that Steven Gibson
| 76933 [harryo@zi .c] Thanks Dan.  However, the big selling point of that CD seems to be that it's a
| 76966 [harryo@qi so] Well, I was able to get it going.  At least, I can run console Ruby scripts and FOX GUI applications.
+ 76969 [nobu.nokada@] You don't have to do it.  Since 1.6, ruby.exe sets $LOAD_PATH
| 76972 [harryo@qi so] That's pretty much what I discovered.  I did set the TCL environment variables, though.  Maybe I don't even need those, but I haven't tried running anything that used TK yet, so I'm not sure.
+ 76979 [xlucid@us rs] How many problems there are depends on the version of Windows
+ 129754 [georgesawyer] have Ruby installed ... [on] Windows. Before I start hacking at it, has
  129817 [google@er kv] I think you're looking for AllInOneRuby [1]. It's made for

76901 [a_dadah4@zw ] My Dear,

Re: ruby 1.8.0 preview4 - c in debug doesn't work?
76913 [chrismo@cl b] ruby 1.8.0 (2003-07-24) [i386-mswin32]
76914 [matz@ru y- a] It's a bug.  I fixed.  Wait until Monday, or apply the following

SWIG and char * parameters
76928 [ben@th ng ag] I've just started to try to use SWIG to wrap a bunch of C functions so I can
+ 76929 [ben@th ng ag] ben% ruby -v
+ 76930 [brett_willia] Looks like it does exactly what you told it to.  You passed in Bob.

SWIG and "connect"? [Was: SWIG and char * parameters]
76936 [ben@th ng ag] D'OH!  Now that Brett has pointed out why my oversimplified example was
76973 [kjana@dm la ] Maybe missing the point but....

"The VMs are designed for statically typed languages..."...
76939 [emeza@de ia ] I would like to see Ruby in the Mono Project, what do you think (matz)?

Data.new dosnt work
76955 [maillist@be ] How do I create an instance of the Data class. I am using ruby
76958 [nobu.nokada@] Data is the abstract class for extension libraries.  You can

Packaging pure ruby files when using extconf.rb
76957 [webmaster@st] I am writing a C extension but I want to include some classes written in
+ 76959 [decoux@mo lo] Create a directory lib, and put the pure ruby files in this directory
| 76961 [maillist@be ] How would I do that?
| 76963 [decoux@mo lo] svg% ls -R
| 76964 [maillist@be ] Guy, Thanks VERY much for all your help and examples.
+ 76960 [batsman.geo@] You can use Minero Aoki's install.rb
  76962 [maillist@be ] Where do I get install.rb?
  76970 [batsman.geo@] _           _
  76971 [maillist@be ] Thanks very much for your kind help.

Add debug to help info
76965 [rc@va ca er ] Is it just me or is how to debug a ruby script unnecessarily hidden?
76974 [vxbrw58s02@s] I'd like to second this. I was trying to debug something last night, and I
+ 76975 [nobu.nokada@] It changes two behaviors.
| 77049 [rc@va ca er ] That's interesting.
| 77113 [nobu.nokada@] I have no particular idea about this.  NaHi may do something.
| 77291 [surrender_it] sligthly related: I've been thinking if could be possibe a
| 77292 [surrender_it] I meant -w not -v, sorry
+ 77017 [ben@th ng ag] tk.rb:      p 'create_self has no arg' if $DEBUG
  77323 [kapheine@hy ] I think this would be absolutely great to have included. A nice,
  77369 [nahi@ke na t] I use [RAA:devel-logger]. (disclaimer from its author)

irb --readline
76981 [wybo@se va y] irb --readline
77002 [matz@ru y- a] You've failed to compile readline extension library, which is required
77041 [wybo@se va y] It's probably stupid, but... how do I do that?
77053 [matz@ru y- a] You need to install libreadline on your machine first.  What's your
77063 [wybo@se va y] /lib/libreadline.so.4
77066 [decoux@mo lo] Verify if you have a package readline-devel and if it's installed
77088 [wybo@se va y] That did it! Thank you very much!

Re: ruby 1.8.0 preview4 (Bug in ext/openssl/extconf.rb)
76983 [mghall@en er] Hey, I recognize that!  Saw it just last night!
76985 [markjreed@ma] That's backwards, yes?  Didn't you add the call to FOO rather than removing it?
76988 [mghall@en er] Depends; "<" is new, ">" is old.   Yes, I added a call to FOO.
+ 76989 [markjreed@ma] Context is always a good idea, but wouldn't make a difference
+ 77004 [nobu.nokada@] Unified diff (and with -p option) is recommended.

Patches to 1.8.0p4 to add Bessel functions for those that have 'em
76984 [mghall@en er] Here's some simple patches to configure.in, configure and math.c
+ 77006 [matz@ru y- a] I want Ruby to be as portable as possible among platforms, so that I
| + 77037 [ jupp@gm .d ] Saluton!
| | 77826 [comp.lang.ru] - - There are two problems with this.
| + 77039 [Ephaeton@gm ] Why not simply use those of BSD ? Okay, the originate from Sun (due
| | + 77057 [matz@ru y- a] They are OK.  But I am not the right person to work on them, just
| | + 77097 [ jupp@gm .d ] Saluton!
| |   77117 [Ephaeton@gm ] E.g. in the netbsd source tree, e.g. j0 in src/lib/libm/src/ej0.c.
| + 77077 [mghall@en er] I understand; that's why I #ifdef'ed it all over.
| + 77250 [ jupp@gm .d ] Saluton!
|   77422 [guslist@fr e] Isn't GSL GPL licensed? And that could cause problem to include it into
|   77458 [ jupp@gm .d ] Saluton!
|   77768 [emschwar@ld ] Every interpretation I've seen says that linking a GPL'd library
+ 77756 [mghall@en er] I reworked the patches for the Bessel et.al. math functions into an extension.
  + 77764 [hal9000@hy e] 'em
  + 77773 [ jupp@gm .d ] Saluton!
    77831 [comp.lang.ru] - - There is nothing "scary" about this. What's scary is when you
    77972 [jcarbaut@sa ] I don't understand the reason why you show such vanity, or why you
    + 78245 [comp.lang.ru] _ I guess the smiley was missing. I don't mean to offend, but
    + 82321 [comp.lang.ru] _ I guess the smiley was missing. I don't mean to offend, but
      82335 [michael_s_ca] And on most others as well relating to programming.