49800-51862

47053-48836 subjects 49873-50907

^ Re: RubyInline 1.0.4 Released! (fwd)
49800 [tom linuxbri] So looking at this example, I guess on the second "nonslow" run it found
49801 [pate red-bea] iirc, the code looks at the mod time of the .so compiled from the inlined
+ 49805 [tsondergaard] I love it! So far, I only tried the example, but I can't wait to try it
| 49806 [ryand ZenSpi] Um. Yes. Absolutely. I'll get that in ASAP.
| 49809 [ryand ZenSpi] def fastfact(*args)
| + 49811 [ptkwt shell1] I was shown this example last night at our PDX.rb meeting... I found it
| | + 49812 [ryand ZenSpi] You are absolutely terribly right! This was a known problem, but I
| | | + 49813 [james jamesb] Very neat.
| | | + 49857 [comp.lang.ru] - - Putting things in /tmp is just asking for race condition bugs.
| | |   49884 [ryand zenspi] I was planning on doing this for 1.0.5 today.
| | |   49935 [comp.lang.ru] - - Well, sendmail has fits about it, but that's a setuid program.
| | |   49938 [michael.d.he] Assume that the executable is in /home/foo/bar/boof and I have write
| | |   50036 [comp.lang.ru] - - That part I get.
| | |   50166 [tom linuxbri] * bbense+comp.lang.ruby.Sep.12.02@telemark.stanford.edu (bbense+comp.lang.r=
| | + 49843 [mike stok.co] .... especially if "legacy Perl code" includes CPAN ;-)
| |   + 49844 [jim freeze.o] ./example.rb
| |   | + 49845 [decoux moulo] Can you try with 1.6.7
| |   | | 49847 [jim freeze.o] Oops, I did not notice that we were using 1.6.6.
| |   | + 49885 [ryand zenspi] ts totally nailed this one. Please get back to me/us if 1.6.7 doesn't
| |   + 49889 [ryand zenspi] Well, the current RubyInline is ~50x smaller than the code involved for
| |   + 50154 [avdi avdi.or] Heretic!  Don't you know that every wheel must be completely
| |     50171 [billtj z.glu] Hmmmm, I think you basically have the right idea.
| + 49842 [ADATE kc.rr.] Ryan I downloaded RubyInline and tried it on my  Windows XP (Home Edition).
|   49887 [ryand zenspi] Well... I don't have a windoze box to test out on at all, so you'll
|   + 49908 [n1k0 rogers.] According to my autoexec.bat file (this is available under win9x/me.. not sure
|   | + 49912 [jim freeze.o] I understand that RubyInline can be a security risk,
|   | + 49949 [ADATE kc.rr.] I could not see any "HOME" system variable. But it can be defined if
|   |   49974 [bilotta78 ho] Are you using WinXP Home? WinXP Pro has %TEMP% pointing to a user-
|   + 49944 [nobu.nokada ] Win2k(=NT5.0) defines HOMEDRIVE and HOMEPATH but not HOME, and
+ 49834 [tom linuxbri] So it's totally insecure then =P

^ Re: Addition on appropriate fields...
49802 [romstad math] Really?  I have been doing abstract algebra and algebraic geometry for

^ Re: Larry Wall's comments on Ruby
49803 [gsinclair so] In addition to the other useful counterexamples, I'll point out that
49804 [gsinclair so] The >/gt dichotomy prevented me from ever grokking Perl.  *That* was unnatural!
49815 [michael_s_ca] The mnemonic there was to use the "stringish" comparitors to compare
49818 [gsinclair so] Yes, I'm aware of that.  But I kept getting errors in my code that were
49827 [frido q-soft] Sorry I do  not like this smarter than anyone else stuff. even with a
+ 49835 [matz ruby-la] There are two kind of people who use MI.  A part is really smart
| + 49836 [decoux moulo] See [ruby-talk:49835]
| + 49840 [pit capitain] You could say that of almost every feature of Ruby. I'm sure many
|   + 49841 [decoux moulo] Well, my comments given in the the message [ruby-talk:26914]
|   + 51862 [mikkelfj-ant] ...
|     51861 [mikkelfj-ant] I never really understood what OO is, and probably never will. I really
+ 49854 [gsinclair so] A language cannot offer every programming construct under the sun.  Ruby
| + 49862 [mike stok.co] Take a look at the relevant slides in
| + 49865 [michael_s_ca] Wasn't this one of the big problems with PL/1?  It offered SO MANY
| + 49960 [frido q-soft] I agree. Anyway other choose C because of pointer artithmetic can
+ 49864 [matz ruby-la] I'm sorry if you are bothered by my "smarter than" stuff.  It was only
  + 49967 [frido q-soft] Sorry for TOFU, but I send the reply to matz via mail. I'm sorry for
  | 49973 [matz ruby-la] I said "machine instruction" that is a sequence of bytes.  No syntax,
  | 50155 [billtj z.glu] I believe what is considered "simple" and/or "easy" really depends on the
  | 50168 [gsinclair so] - it's like the mathematical representation (upside down A)
  | 51020 [stesch no-sp] It's a bit more than syntax sugar. Watch the scope of the local
  | 51140 [gsinclair so] IMO, is
  | 51144 [vjoel PATH.B] (1..3).each {|x|}
  + 49996 [billtj z.glu] I think everything that you said is true.  I guess people who are not
    50096 [chr_news gmx] If my memory serves me right, the author of a introductory
    50123 [gsinclair so] Pardon my ignorance, but I don't see what the alternative to Match.cos(x) is,
    50153 [billtj z.glu] I think in Ruby, if you are sure that in your script there are no others
    50161 [gsinclair so] I suppose that most math calculations would be isolated to a couple of classes.
    50245 [chr_news gmx] Well it is very reasonable (I personally I try to avoid this

^ Re: call for commentary: review of Ruby for a magazine (long, sorry!)
49807 [vjoel PATH.B] 8K and growing, not counting comments, blanks.
49820 [jim freeze.o] Hmm, if I have 10 2-3K projects that interact, is that 20-30K of code?

^ Re: Ruby aesthetics
49808 [gsinclair so] No, we stop programming in C because it doesn't have "unless".
+ 49810 [gsinclair so] I'm not sure why I bother, but "statement unless condition" is more readable
| 49814 [s_grazzini h] do forever
| 49817 [dblack candl] I dunno... I was wondering which was more genuine.  As David S. said,
| 49825 [hal9000 hype] Sorry, Ruby doesn't have a
+ 49846 [billtj z.glu] Come on, Gavin, my previous point is that you can have "unless" in C if
| 49855 [gsinclair so] Sorry, dry humour ;)
| 49866 [billtj z.glu] Totally agree.  When I started to convert my network simulator from the
| 49920 [list NOSPAMc] So using something nice we can find in each and every Ruby
| 49994 [billtj z.glu] The answer is bureaucracy and establishment.  C is stardardized by formal
| 50133 [list NOSPAMc] Thank you for also expressing so clearly why we don't use `unless' in
+ 49853 [pabs pablotr] #define unless(a) if (!(a))
  49859 [gsinclair so] ;)

^ [FXRuby] windows walking down the screen
49816 [vjoel PATH.B] I though it was just my app, but the examples/imageviewer.rb reappears
49826 [hal9000 hype] I've seen that happen, but I'm not sure how

^ Ruby for the Jornada 720
49819 [cheselka lin] What is the status of this port?  Is anyone owrking on it anymore?

^ (no subject)
49821 [Diamand39 ao] IF  RUBY   HAVE  A  E-MAIL  NEWS  LETTER    SEND  IT  ME LETTER ,

^ Tips for lightweight db app?
49822 [coma_killen ] I need to build a small "db" app where registered users can submit and
49828 [hal9000 hype] Karsten,

^ Re: JRuby (was Re: OS-independent build of ruby)
49823 [austin halos] Well, no, because gcc explicitly states that output is simply that,

^ DOS 16bit Ruby
49824 [rack1 myreal] This is an 8086.
49829 [hal9000 hype] That's a fascinating idea... at first I thought

^ [FXRuby] marshalling objects to the fox registry
49830 [vjoel PATH.B] The Fox registry lets you save strings between app invocations. I tried
+ 49839 [pit capitain] I don't know about Fox and its registry but you could try to avoid
| 49894 [vjoel PATH.B] Thanks, Pit. What I did was to simply use '\1' and '\2' as entry and row
+ 49876 [lyle users.s] Correct, FOX strings can't have embedded nulls. See Pit Capitain's

^ Missing library cygwin-ruby16
49831 [gsinclair so] To build a Ruby package involving C code under Cygwin, you need to link

^ Re: DOS 16bit Ruby (OT - HP 200lx)
49832 [rack1 myreal] Btw, if this mailing list is hostile to OT chatter, I'm fine with taking

^ Re: RubyConf 2002
49833 [dan sidhe.or] There's nothing online yet, but there should be soon. (The CPF will
49870 [1032190121.4] Cool.  Thanks.

^ how to make proxy objects
49837 [transami tra] looking for some tips on the best way to create a transparent proxy
+ 49838 [transami tra] oops...ignore the '(peer, oid)' that's what i'm using to know what
+ 49869 [pbrannan atd] I think this belongs in the body of the class definition, and not

^ Full Screen Editor
49848 [mark.firesto] Has anyone written a ansi full screen console text editor in Ruby?  Please
+ 49872 [alan digikat] No but both emacs and vi support ruby.
| 49874 [mark.firesto] users on the other end of a telnet connection can use it to edit their
| + 49883 [mgushee have] If the main requirement is exchanging text over telnet, then shouldn't
| | + 49891 [mgushee have] Uh, scratch that. I wasn't thinking clearly. But I think I see what you
| | | 49924 [dossy panopt] The issue is security.  To shackle down something as powerful as emacs
| | | 49925 [mark.firesto] This is true.  I have written a line editor (it didn't take all that long)
| | | + 49926 [mark.firesto] Absolutely!  It has to be simple and easy to use and server side.  Custom
| | | | 49927 [mark.firesto] The main reason to have it written in Ruby was for ease of integration into
| | | | 49933 [mgushee have] I see ... well, Emacs lisp has library functions for sockets, I'm pretty
| | | | 50001 [mark.firesto] Bongs?
| | | | 50019 [messju lammf] not actually :) more the ones found at
| | | + 49929 [dossy panopt] Pipes.
| | + 49901 [michael_s_ca] I'm guessing here, but I think he wants/needs some sort of editor-ish
| + 49923 [dossy panopt] I'd be happy to write one for you in my spare time, if you're not in a
+ 49879 [transami tra] if there was a suitable gui i would. maybe after gutopia is farily

^ private variables
49849 [decoux moulo] Why I always write stupid things ? See the effect of attr_accessor with
+ 49863 [pbrannan atd] This is exactly what I would expect to happen.  I'm not sure why I'd
| 49867 [decoux moulo] perhaps hard to understand what do the code in this case.
+ 49880 [matz ruby-la] Do you mean you've implemented private instance variable, even if it's
| 49882 [decoux moulo] Well, here a quick diff (*WARNING* old 1.6.7 : you can see it with
| 49902 [chr_news gmx] Wouldn't the
| + 49906 [pbrannan atd] I doubt there are many people who begin their instance variable names
| | 49916 [chr_news gmx] Are you sure?   I like @_vars and never associated the use of
| | 49917 [pbrannan atd] I'm not sure there's much value in secret attributes/accessors.  I can
| | 49940 [chr_news gmx] Actually I am fairly neutral about ``private_variables''  ...
| | 49962 [decoux moulo] attr_reader (or attr_accessor) is not a problem : you can always check if
| + 49958 [decoux moulo] Yes, because you've introduced a new type of variable but this is not a
|   50005 [chr_news gmx] which means one more set of scoping rules to keep mind?  (Probably
|   + 50010 [decoux moulo] If I've well understood, the variable is accessible only in the class
|   + 50012 [Dave Pragmat] Actually, that raises an interesting point.
|     + 50020 [jfh cise.ufl] How about an attr_private directive?
|     + 50021 [decoux moulo] This is easy
|     | 50097 [chr_news gmx] Neato! -- Actually I sort of like Dave's idea - it is probably
|     | 50150 [transami tra] is that colon there on purpose?
|     | 50157 [dblack candl] I think Christoph's point (with the colon and the rest of the
|     | 50170 [decoux moulo] No, no see [ruby-talk:12555]
|     + 50160 [pbrannan atd] Interesting idea.
|     | 50176 [alan digikat] Wasn't there some talk about using symbols?  It's not symmetric, but for
|     | + 50181 [michael_s_ca] I might note that any variable name which isn't palindromic is
|     | + 50186 [billtj z.glu] Well, I am proposing 2 alternatives that I think is more consistent with
|     |   + 50197 [transami tra] private variables being differnt from local ones how? further can a
|     |   | 50201 [billtj z.glu] I haven't really read the parser yet, but I imagine that after the
|     |   | 50207 [transami tra] i see. thanks.
|     |   | 50209 [kentda stud.] They are object private, but not class private. (Puritans and C++
|     |   | 50212 [billtj z.glu] Wait, wait, wait... I think someone should really have defined what
|     |   | 50214 [gotoken notw] Maybe the subject "private variable" is confusing.  In Ruby, the
|     |   | + 50215 [gotoken notw] oops, typo
|     |   | + 50216 [transami tra] what do you mean by nested local variable? is that suppose to be the
|     |   | | 50217 [gotoken notw] I meant change name. Not introducing other kind of variable.
|     |   | | 50242 [chr_news gmx] I tend to agree with Guy - ``block local variable'' is a more
|     |   | | 50252 [gotoken notw] I would prefer Guy's ``block local variable'' too.
|     |   | + 50238 [decoux moulo] Well, personnaly I'll call it "block local variable". For this reason
|     |   + 50200 [kentda stud.] private_variables :some, :privvy, :vars, :listed, :here
|     |     + 50203 [dblack candl] %q__ = "some private thing"
|     |     | 50210 [billtj z.glu] I think you are right that "%X" sometimes is already special in Ruby (such
|     |     | 50222 [dblack candl] Oh, I know -- I wouldn't really advocate it.  Actually I'm keeping my
|     |     + 50205 [billtj z.glu] I am not an expert in Ruby parser/interpreter at all (let alone computer
|     |     | 50333 [szegedy nosp] I think this is a matter of taste, but for me a naming convention
|     |     + 50475 [qrczak knm.o] Well, the meaning of 'foo % bar' depends on whether foo has been
|     |       + 50478 [billtj z.glu] Oh, yes, yes, but the distinction between 'foo % bar' and 'foo %bar' is
|     |       + 50649 [qrczak knm.o] No, both can mean either foo(%bar) or foo() % bar(), depending on
|     + 50334 [szegedy nosp] it is convenient and easy to remeber.
|       50348 [billtj y.glu] Well, will these localized/private variables make it into the next Ruby
|       + 50350 [dblack candl] Ultimately Matz will decide on it, whether there's a vote or not :-)
|       | + 50351 [decoux moulo] In this case where do you store class local variables (i.e. what you call
|       | | 50353 [dblack candl] Whoops, I have reintroduced deprecated terminology into the discussion
|       | | + 50359 [decoux moulo] and if someone define an instance variable @_var, this instance variable
|       | | + 50361 [billtj y.glu] Can't we just add something like "local_iv_table" in addition to
|       | | + 50362 [chr_news gmx] Regard yourself as a first time offender  - third strike and you will be
|       | + 50358 [szegedy nosp] Private methods and class-local instance variables are quite different.
|       |   + 50360 [szegedy nosp] If you don't like underscores (because it could break
|       |   + 50372 [pbrannan atd] If you try to use a class-local instance variable and it has not yet
|       |     50391 [szegedy nosp] I often initialize instance variables conditionally. (That is, on first use).
|       + 50354 [matz ruby-la] I will.  Somewhere around "@_x" and "@__x".  I don't care about the
|       | + 50363 [rich infoeth] Well, the double-underscore (@__x) variables would be less likely in
|       | + 50367 [chr_news gmx] or being my repetitive self
|       |   + 50376 [dblack candl] This also makes sense to me because it reads from left to
|       |   + 50378 [matz ruby-la] This will not break anything, but too ugly.
|       |   | 50380 [jfh cise.ufl] Are we dead set against "attr_private" ?
|       |   | 50384 [matz ruby-la] I'm not going to choose attr_private (unless someone put some idea in
|       |   | + 50395 [transami tra] a private instance variable is one that is not inheritable. is that the
|       |   | + 51222 [sean chitten] Hrm, this thread has been so huge that I've been in skim mode. I
|       |   |   51227 [billtj y.glu] I think Matz is already deciding between "@_xxx" and "@__xxx".
|       |   + 50383 [kentda stud.] <ironic>
|       + 50364 [transami tra] uh-oh, looks like Ruby is headed the way of perl. can anyone say,
+ 49890 [matz ruby-la] Oh, I forget to mention that private instance variables should not be
| 49985 [szegedy nosp] I wonder why. Could you give some concrete reason for it?
| 50106 [matz ruby-la] Yes.  Hence it should not be exported as an attribute method, which
| 50130 [kentda stud.] There is a (narrow) use here, where one might like to have a private
| 50136 [matz ruby-la] def foo
+ 49896 [duemoko bigf] <code snipped>

^ Re: Is there a "get" function for words and dwords?
49850 [khabibiuf ho] The sysread returns a string... I want the actual binary value.
+ 49856 [mike stok.co] [Sorry if this is a duplicate, I fat fingered something...]
+ 49861 [nobu.nokada ] If you mean 2 byte data by "word" and 4 byte data by "dword",

^ Re: Ruby Based App Server
49851 [comp.lang.ru] - - caulk board, now there's a design metaphor. Writing out your

^ Question: What Is "Ruby": Core and Interface
49852 [billtj z.glu] I have the following question.
+ 49858 [dblack candl] I brought up a similar question in [ruby-talk:45694] -- namely, what
+ 49860 [ndrsbngtssn ] In one way, these changes are done all the time, when people are

^ Multimethods (was Re: Larry Wall's comments on Ruby)
49868 [dan sidhe.or] Multimethod dispatch is reasonably simple. It's when you have
+ 49871 [chr_news gmx] Thanks Dan, for making such an eloquent case for multimethods.
| 49966 [dan sidhe.or] Their big problem is that they introduce methods that don't live in
| 49984 [frido q-soft] sorry any from the above has nothing to do with this one.
| 49993 [dan sidhe.or] Sorry, I wasn't being clear--foo would have been an int, a num, or a
+ 49875 [hal9000 hype] multimethods
| + 49881 [behrends cse] That is one problem (though optional type annotations can be used, as in
| + 49888 [pbrannan atd] Variables in Ruby definitely have types (e.g. "foo" is a String).
| | + 49900 [hal9000 hype] No, "foo" is obviously not a variable. Variables in Ruby
| | | + 49910 [pbrannan atd] My mistake.  "foo" is an object.
| | | | 49914 [hal9000 hype] Oh, OK, I see.
| | | | + 49915 [pbrannan atd] What's Blub?
| | | | | 49918 [hal9000 hype] Had to go and look it up again... turns out the term
| | | | + 49961 [frido q-soft] Well you can see them in action in Common Lisp and CLOS goes way
| | | + 49959 [mlucius aol.] I think two concepts are getting confused here.  Multimethod dispatch
| | |   50015 [pbrannan atd] With C++ function overloading the function to call is picked at
| | |   50119 [mlucius aol.] Yes, you're right. OO Polymorphism is a limited way of doing safe
| | |   50162 [pbrannan atd] The advantage of extending C++ is that you get backward-compatibility
| | + 49904 [justinj mobi] "foo" is a string object.
| |   49911 [chr_news gmx] Well the following is commonly used  (Matz does not like it
| |   49913 [vjoel PATH.B] module Physics
| |   49919 [chr_news gmx] Nice!  ... additionally one could also explicitly specify the
| |   49922 [vjoel PATH.B] I was assuming that the gf would always dispatch on the non-* arguments,
| + 49907 [chr_news gmx] What you are talking about is called symmetric
| + 49970 [dan sidhe.or] Yup, that's it. Kinda like continuations. They seem all mysterious
+ 49939 [matz ruby-la] In my definition, this is not multi-method, because a method still
  + 49964 [frido q-soft] I think you're right with your definition. And you are right with
  | 50132 [list NOSPAMc] Isn't this (conceptually if not technically) what happens with methods
  + 49969 [dan sidhe.or] Fair enough. I use the terms Damian used as he was the person who
    49972 [matz ruby-la] I guess CLOS people think a method is a particular implementation of a
    49976 [dan sidhe.or] Wouldn't surprise me, but the CLOS people scare me rather a lot and I
threads.html
top