104968-106709

104786-106398 subjects 105121-106305

rcrchive is down
104968 [surrender_it] see subject.

SOAP4R API question
104992 [dross@co e- ] Well.. variables and methods in soap4R have changed greatly. The examples
104994 [dross@co e- ] nm, problem solved :P
105005 [emschwar@po ] Er, how did you solve your problem?  For the rest of us who are just

mixin question
104993 [Ara.T.Howard] i have this
+ 105053 [pit@ca it in] require 'set'
+ 105054 [bob.news@gm ] "Ara.T.Howard" <Ara.T.Howard@noaa.gov> schrieb im Newsbeitrag

Simple ssl server
104996 [bigbrother@1] I want to make an klient server app, which exchangeing information throught

[ANN] SQLite-Ruby 1.2.0
104998 [jgb3@em il b] SQLite-Ruby is a module for accessing SQLite (http://www.sqlite.org)
+ 105001 [ahoward@no a] awesome!  thanks alot jamis! stay tuned for my clustering software based on
+ 105003 [ahoward@no a] jamis-
| 105004 [jgb3@em il b] Yup. Just do
| + 105008 [ahoward@no a] very cool.  my tests show about 2/3 the memusage by using arrayfields on a
| + 105014 [behrends@cs ] Shouldn't that be off by default? I don't like the idea of the SQLite
|   105015 [jgb3@em il b] Using arrayfields will not break your application. In fact, from a
|   105055 [relm@3t k. e] row.each {|x| }    # Array
+ 105068 [jgb3@em il b] Well, I no expert on building Ruby modules for Windows, but it looks

[ANN] arrayfields-3.3.0
105000 [Ara.T.Howard] @@ -2,6 +2,7 @@
+ 105006 [tom@in oe he] ====================
+ 105007 [sean@ce so t] It takes a bit sometimes, but it will eventually appear.  Give it a day or
  105009 [ahoward@no a] definitely on the TODO list sean!

Re: SOAP4R API question - INSTRUCTIONS
105010 [dross@co e- ] I will be creating very good documents for all of you to use later on.

Another Ruby/OpenSSL Patch
105013 [jgb3@em il b] ...
105049 [gotoyuzo@no ] I think these methods can be written with existing library.
105067 [jgb3@em il b] Thank-you! That works wonderfully. Now... could I bother you for an

[OT] Re: [ANN] SQLite-Ruby 1.2.0
105036 [ahoward@no a] ArrayFields is a Module used to extend only those Array instances that use the

[ANN]   Arachno Ruby IDE  0.2.3
105038 [mailinglists] This is the inital announcements for Arachno Ruby on this newsgroup.
105481 [mailinglists] I just uploaded a new minor release. This one fixed a lot of bugs.

Full Lifecyle Prototypes
105045 [nick@ac iv h] If Ruby is 2-6X more productive then Java, wouldn't it make sense for

curious behavior with StringValuePtr()
105046 [djberg96@ho ] Ruby 1.8.2 RC2
105048 [quixoticsyco] I had the same experience.  Unfortunately StringValue*() is not a

My Current Ruby Concern
105047 [nick@ac iv h] I get the impression that the J2EE world is starting to go ballastic
+ 105061 [michael.camp] Take a look also at "Groovy".  Much more ruby-ish.
+ 105096 [surrender_it] I believe Groovy had a greater acceptance than Jython beetween

XMLRPC::CGIServer nuby
105050 [djberg96@ho ] I'm familiar with how to setup a standalone XMLRPC server, but I'm
105064 [ksibilev@be ] I think that XMLRPC:CGIServer is just another way to setup your XMLRPC
105085 [jamesUNDERBA] This is some untested code assembled from some other code I've used in

Spam on Rubygarden
105056 [mneumann@nt ] There are some spam links at the top of the page.

ruby-dev summary 23763-23840
105057 [aamine@lo er] This is a summary of ruby-dev ML in these days.
+ 105072 [ahoward@no a] why not
| 105157 [akr@m1 n. rg] Because URI() can be used with other instance methods on URI.
+ 105078 [bg-rubytalk@] I like the idea of a simple way to deal with URIs, but I agree with all
| 105083 [matz@ru y- a] We already have a factory method, "parse", that is shorter than
+ 105097 [surrender_it] Why not override IO.read ?
| 105156 [akr@m1 n. rg] Sometimes IO.read is used as File.read.  I feel File.xxx means an
+ 105116 [pbrannan@at ] I'm not sure I agree.  I don't think it should ever be possible to
| 105158 [matz@ru y- a] Define "malicious" before saying "shouldn't". ;-)
| 105160 [pbrannan@at ] I guess I meant "potentially malicious" as a synonym for "untrusted".
| 105164 [matz@ru y- a] There's no way to turn off $SAFE in mod_ruby programs, for example.
| 105179 [pbrannan@at ] I suppose before I can answer that I would need to know why mod_ruby
+ 105176 [martindemell] I like the idea of Class() being used as a constructor - it's a neat,

Exceptions list - Unix ENOENT not the name of the exception - what is?
105058 [graham@ro kc] I'm trying to open a file, and if the user hasn't given an extension, adding
105060 [halostatue@g] Try rescuing Errno::ENOENT.
105062 [graham@ro kc] Doh!
105065 [rasputnik@he] Out of interest, is there anyway of knowing what exceptions a given
+ 105066 [halostatue@g] As far as I know, no. However, I have also read that the "promised"
| 105074 [bob.news@gm ] "Austin Ziegler" <halostatue@gmail.com> schrieb im Newsbeitrag
| 105152 [rcoder@gm il] This will work, but catch-all rescue blocks like that can be
| 105260 [bob.news@gm ] "Lennon Day-Reynolds" <rcoder@gmail.com> schrieb im Newsbeitrag
| 105274 [kjana@dm la ] -e:1:in `initialize': No such file or directory - no_such_file (Errno::ENOENT)
+ 105076 [ahoward@no a] ~/build/ruby > grep 'VALUE rb_e' *c

Build problems
105059 [Meino.Cramer] I am using the stable snapshot of ruby, which I downloaded today

RCRchive back up
105063 [dblack@wo bl] I was away for ten days, not reading email (wonderful feeling -- I
105075 [jim@we ri hh] Welcome back!
105114 [dblack@wo bl] Thanks :-)
105115 [surrender_it] seem to work fine for me (many dns away)

Re: [ANN] **RC3** Ruby Installer for Windows 1.8.2-14 Release Candidate
105069 [curt@hi bs c] RC3 adds back the missing support for OpenGL. There were no other changes,
105426 [horacio.lope] Are you thinking of including wxRuby in the Rubyinstaller as well ?
105430 [mailinglists] Yes please - if you think it is stable enough. "0.3" was not stable

Registry Entries [was  [ANN] Ruby Installer for Windows 1.8.2-14 Release Candidate]
105071 [curt@hi bs c] This is fine with me. When there are multiple versions installed, there also
105077 [mailinglists] I vote against it because it assumes that your installer is the only
105148 [curt@hi bs c] This sounds reasonable to me, and it doesn't look like anyone else (besides

Extending The File Class
105073 [BCoish@Dy ax] I'm currently working on the OpenVMS platform and would like to
105079 [bob.news@gm ] "Brad" <BCoish@Dymaxion.com> schrieb im Newsbeitrag
+ 105082 [BCoish@Dy ax] Thanks for the quick reply!
+ 105099 [surrender_it] -e:1:in `readlink': The readlink() function is unimplemented on this

Functional Ruby (Re: Why I don't use Ruby.)
105080 [jamesUNDERBA] Um, I don't see this as true.  Certainly one can write all the
105385 [ser@ge ma e-] "Functional code" is a rather broad term, but one popular feature of
105401 [phubuh@ph bu] Lots of functional languages lack pattern matching.  Scheme, for
+ 105402 [vjoel@PA H. ] Ruby doesn't optimize this tail recursion, but Scheme does. That's one
| + 105403 [phubuh@ph bu] There's no tail recursion in that function, but you have a point.  TCO
| | 105405 [vjoel@PA H. ] Oops. Quite right. The (+ ...) prevents that. I think sum can be written
| | 105406 [phubuh@ph bu] It doesn't _look_ very functional, but it is.  The same concepts are
| + 105410 [martindemell] suggests that no language should be called properly OO unless it does
|   105412 [hal9000@hy e] Heh. I hereby pronounce that no language is truly OO unless its name
|   105416 [phubuh@ph bu] A noble initiative, but Felleisen's is slightly less arbitrary.  He
+ 105594 [ser@ge ma e-] In this, and following posts, you make the claim (directly and
| + 105603 [jamesUNDERBA] Interesting. Paul Graham, author of a few books on Lisp, has a new book
| | + 105606 [jamesUNDERBA] Duh.
| | + 105607 [hal9000@hy e] We're OT now, but my ignorance of FP is such that I can't imagine
| | | + 105611 [sean@ce so t] You can have variables in a functional language, but what you can't have are
| | | | + 105700 [flgr@cc n. e] As far as I know LISP does indeed have closures -- and I can emulate
| | | | | 105747 [sean@ce so t] I don't remember closures from my LISP days, but perhaps that's a memory
| | | | | 105817 [phubuh@ph bu] Ancient Lisps, such as Emacs Lisp, lack closures.  They have anonymous
| | | | + 105814 [ser@ge ma e-] Technically, in a purely functional language, you also shouldn't be
| | | |   + 105818 [sean.zuzu@gm] how are variables in ruby "mutable" then?  ruby assignment merely
| | | |   | + 105819 [rcoder@gm il] a = []
| | | |   | | + 105825 [sean@ce so t] You can modify values, as long as the value isn't a global (stateful data).
| | | |   | | | 105918 [ser@ge ma e-] Sean, scope has nothing to do with this.  It has to do with state,
| | | |   | | | 105925 [sean@ce so t] You're right, not in the strictest sense of the term.  But there are two
| | | |   | | | 106280 [flgr@cc n. e] It depends. Functional languages implemented in functional languages
| | | |   | | | + 106283 [sean@ce so t] But how are they usually implemented?  In ASM, C, ... ?
| | | |   | | | | + 106287 [flgr@cc n. e] What are ASM interpreters implemented in? What are lambda calculus
| | | |   | | | | + 106291 [phubuh@ph bu] GHC, the most popular compiler for Haskell, is written in Haskell.
| | | |   | | | | + 106476 [cpine@he lo ] All right, I swore I wasn't going to, but no one else seems to be saying it, so...
| | | |   | | | + 106313 [nick@ac iv h] In University, I worked with a language called Turing that had both
| | | |   | | |   + 106333 [surrender_it] not the most common, but I can think of some languages like this ,
| | | |   | | |   | 106459 [nick@ac iv h] With all the discussion of what makes a functional programming language,
| | | |   | | |   | 106465 [surrender_it] oh, I see. I don't know how to do this, anyway, but seem  possible to
| | | |   | | |   + 106336 [martindemell] BBC Basic (and, I believe, several other BASIC dialects) had this - I
| | | |   | | + 105826 [sean.zuzu@gm] hmm...  on the surface i understand and agree.
| | | |   | + 105850 [surrender_it] ruby is not a pure functional language, and actually allows this.
| | | |   | + 105917 [ser@ge ma e-] a = "immutable string"
| | | |   + 105824 [sean@ce so t] I think that's an implementation feature, not a fundamental property of a
| | | |   | 105852 [surrender_it] no, referential transparency seem to be at the core of the definition
| | | |   + 105838 [jamesUNDERBA] Indeed.  People learning XSLT are often bit by the use of the word
| | | + 105612 [halostatue@g] Well, it's certainly possible to write a Ruby program that does no
| | | + 105632 [jamesUNDERBA] That was my motivation to buy the book; even though I've probably
| | | + 106115 [onurb@xi ud ] "without assignment" should in fact read "without re-binding". Binding a
| | |   106121 [sean@ce so t] I don't understand how assignment, or even just re-binding, effects the nature
| | |   106268 [onurb@xi ud ] If you can rebind a symbol then you have states and side-effects...
| | |   106278 [sean@ce so t] If the symbol is local to a function, what side-effect could there be?
| | |   + 106281 [jim@we ri hh] One of the benefits of functional languages is the ability to do
| | |   | 106284 [sean@ce so t] But this is more of an implementation feature.  Tail recursion optimization
| | |   | 106308 [jim@we ri hh] I see elsewhere in this thread you found a functional primer that may
| | |   + 106282 [flgr@cc n. e] Most of those operators are exactly like functions. = isn't if its an
| | |     106286 [sean@ce so t] I know, but I was trying to illustrate how some people seem to get the rule
| | |     + 106288 [flgr@cc n. e] I'm not sure we're that rule is coming from -- do you remember any
| | |     | 106289 [sean@ce so t] I just found a great primer on FP, and I think I have either forgotten a lot
| | |     | + 106290 [phubuh@ph bu] Do you realize that paper disproves both of your claims?  It uses
| | |     | + 106292 [flgr@cc n. e] Heh, I actually meant to say what's written there on the first page with
| | |     | | 106295 [sean@ce so t] Well, I was talking about variables, but I realized after looking at that
| | |     | | + 106304 [sean.zuzu@gm] also, assignment in ruby is much improved over von neumann C-style
| | |     | | | 106326 [rcoder@gm il] Ruby variables are indeed different from standard "procedural" ones,
| | |     | | + 106335 [martindemell] Take a look at Haskell - it's well worth the time and effort.
| | |     | + 106375 [joswig@co po] how should the PROD function mentioned in that authoritative ;-) explanation
| | |     |   106420 [rcoder@gm il] Tail-call elimination -- the recursive function will be optimized into
| | |     |   106482 [joswig@co po] Hmm
| | |     + 106298 [surrender_it] not necessarily.
| | + 105793 [ser@ge ma e-] Actually, I'm going to backtrack.  By the definition of FP that I
| + 105613 [surrender_it] well, I agree with the Mikael, if you consider that an Object is some
| | 105829 [ser@ge ma e-] Once again, if you remove the semantic difference between a "method"
| | 105880 [martindemell] I'd say that the difference between a function and a method is that a
| | + 105882 [phubuh@ph bu] At least one standard's committee disagrees with you; ANSI Common Lisp's
| | + 105919 [ser@ge ma e-] I'd agree with this, although this is usually more of an
| + 105619 [phubuh@ph bu] No.  I claim that it's possible to write functional code in any
| | 105835 [ser@ge ma e-] I cede this point.  You can write functional code in Ruby by simply
| | 105849 [phubuh@ph bu] To resist succumbing to Layne's law, I'll accept your definition.
| | + 105920 [ser@ge ma e-] Wow.  That was a reference I had to look up.
| | | + 105964 [keith_hodges] All,
| | | + 105997 [phubuh@ph bu] I agree that it's difficult to program functionally in Ruby according to
| | |   106104 [ser@ge ma e-] There is quite a debate about how much of a functional language Scheme
| | |   + 106107 [tom@in oe he] Very nicely put.  I find the same thing happening - first I'll be
| | |   + 106109 [phubuh@ph bu] I agree.  Haskell makes it easier to write purely functional programs.
| | |   | 106128 [ser@ge ma e-] in
| | |   + 106126 [gsinclair@so] Indeed, there are (theoretically) serious optimisation gains to be
| | + 105983 [ser@ge ma e-] Hey, I got to thinking about this... is it an example of Layne's law
| + 106112 [onurb@xi ud ] Scheme, Common Lisp and Caml -- three major fpl's -- allow assignement.
+ 105596 [ser@ge ma e-] "Functional programming is a style of programming that emphasizes the
| + 105599 [vjoel@PA H. ] Well, ruby _is_ based on evaluation of expressions. Even control
| + 105610 [sean@ce so t] May I add: there is "functional programming style" and "functional programming
|   105621 [sean.zuzu@gm] i find this thread very iteresting, and conducted a similar
|   105631 [sean@ce so t] Procedural programming is a style, which a language may or may not support.
|   + 105640 [sean.zuzu@gm] out of curiousity, why?
|   | 105645 [sean@ce so t] I think of an application as the point at which a group of related
|   | 105662 [sean.zuzu@gm] the sensors in functional programming would be the lack of stateful
|   | 105669 [sean@ce so t] For developers using CORBA or XML-RPC, it's pretty simple.  You have to use
|   | 105678 [sean.zuzu@gm] ok, but could you easily figure out or write those libraries yourself
|   + 105652 [mortonda@dg ] Well said.  Anyone that says OO|Functional|Flow-Based|Procedural  is the
|     105653 [sean.zuzu@gm] but some ways are better than others, and no code is an island unto itself.
|     105668 [sean@ce so t] Just make sure both are in your toolbox, because you may need both.
+ 106708 [chain_lube@h] Not quite true. Scheme itself lacks any "pattern matching" facility,
+ 106709 [chain_lube@h] (define (sum xs)

Help with one-liner
105081 [pmateescu@no] I'm having problems with an one-liner (ruby 1.6.8 (2003-02-25)
+ 105084 [halostatue@g] ping localhost | ruby -e "$<.readlines.each { |line| puts
| + 105087 [pmateescu@no] Thanks.
| + 105094 [martindemell] Yes, I found that one out the hard way too (totally mystified me).
+ 105086 [g@in er ec -] Probably line endings - windows line endings are "\r\n" - and chomp!
+ 105088 [aredridel@nb] You're one windows, so the line ending coming out of ping is \r\n, not
| 105089 [pmateescu@no] $ ping localhost | ruby -e '$<.each_line { |line| chomp1 = line.chomp();
| + 105090 [aredridel@nb] Looks like the third one was close...
| | 105092 [pmateescu@no] ... but no cigar :)
| | 105098 [aredridel@nb] Wow. I'd be curious to know. Perhaps Ruby doing some misinterpretation?
| | 105146 [angus@qu va ] [Aredridel <aredridel@nbtsc.org>, 2004-07-02 19.17 CEST]
| + 105095 [sean@ce so t] Just remember what \r does.  In your original code, if \r appeared at the end
+ 105117 [drbrain@se m] The real reason has been adequately addressed in the rest of this

Status of Interbase/Firebird interface
105091 [peter_jacobi] Can someone please clarify the situatiuon regarding
105181 [mental@gm il] All fb related listed packages require fb1.5, so you should be ok. I

bug in String#to_f in 1.9 (was Re: ruby-dev summary 23690-23762)
105100 [pbrannan@at ] I think it's a good idea to print NaN and Inf uniformly across all
105159 [ocean@m2 cc ] I think this patch works...
105161 [pbrannan@at ] Right, I forgot strtod was a macro.

How to detect if variable has been defined yet?
105102 [jm@zz zz zz ] I'd like to detect if a variable has been defined yet.  Is this possible
+ 105101 [surrender_it] if variable
| + 105104 [dblack@wo bl] Have you tried it? :-)
| | + 105106 [dblack@wo bl] x ||= -1
| | + 105111 [surrender_it] oops, sorry for disinforming :)
| | + 105118 [drbrain@se m] Use conditional assignment over defined?.
| | + 105143 [g_ogata@op u] x = (x || 0) + 1
| + 105105 [ahoward@no a] unless variable == nil has semantics.
+ 105107 [sean@ce so t] if defined?($total)
  105113 [jm@zz zz zz ] Thanks! This was exactly what was needed and it works.
  105259 [bob.news@gm ] "Randy Lawrence" <jm@zzzzzzzzzzzz.com> schrieb im Newsbeitrag
threads.html
top