24666-25191 subjects 24960-25758
^ inverse of String#hex ?
24875 [henning ikso] What is the inverse of String#hex ?
24878 [matz ruby-la] sprintf("%x", n)
^ project proposal - Regexp
24879 [markus.lado ] The RubyInRuby project: Is there somebody willing to do a complete Regexp
24888 [billk cts.co] Sounds like a fun task, but, I'm trying to guess as to what practical
24895 [markus.lado ] It will be faster than an optimized one!
24899 [billk cts.co] Yeah, I'll buy that - and that oceanfront property in Switzerland
^ Design Question: Module -vs- Class Methods
24881 [1008088018.4] Say I have some functions that deliver mail to various kinds of
^ Ruby-Postgres extension runtime error
24890 [mrchameleon ] I have successfully built and installed the ruby-postgres extension,
24892 [neumann s-di] No, it doesn't find the libpq.so file.
24897 [mps discomsy] "libpq.so" is part of the PostgreSQL package. You need to make sure you
+ 24951 [sean chitten] The other thing that we could do that would be a more permanent fix
+ 24954 [mrchameleon ] And, hey presto!
^ Ruby/DBI: DBD for SQLRelay
24891 [neumann s-di] myself, so please if anyone is interested in having this one,
24902 [ ser efn.org] Why not? Superficially, they appear to do the same thing. I don't know if
+ 24907 [Dave Pragmat] The support of Windows and Alpha users, perhaps.
+ 24910 [neumann s-di] Sure they do the same, but differently. It may be an alternative, of
+ 24912 [mjais web.de] I agree with you here.
+ 24915 [ ser efn.org] Ah. I didn't catch that. Yes, multi-platform support is important for
^ scintilla ruby support
24893 [ralph.mason ] ...
^ Locale in Ruby
24913 [mikkel.bruun] What I really miss in ruby is the out of the box localization of java.
^ blank line at the top of English.rb
24914 [gotoken notw] Are there any reason why a blank line exists at the top of English.rb?
24970 [matz ruby-la] I don't think so. I will remove the line.
^ Can someone comment on Ruby IMAP support?
24917 [donotspam-je] ...
+ 24918 [tobiasreif p] [...]I don't suppose their's a tourists' guide
+ 24922 [chadfowler y] As far as *I* know, these problems are still present i
+ 24945 [lists.ruby-t] What IMAP server are you using?
^ XML support in the standard lib
24926 [tobiasreif p] could the following be of help for reaching conformance?
24928 [hutch xampl.] This is the way to go I think.
^ Exercises in dynamism ;-)
24927 [list chromat] I'm a newcomer to dynamic languages and have found quite an incredible
+ 24929 [decoux moulo] ...
| 24938 [list chromat] Thank you. I was also and mostly looking for comments on
+ 24930 [dblack candl] You're looking for String#intern.
^ XML support in the standard lib; what exactly?
24931 [tobiasreif p] What exactly to include in the standard lib?
+ 24932 [mikkel.bruun] just my two cents...
+ 24933 [tobiasreif p] ... all implemented in Ruby ;)
+ 25006 [pc000 passth] I personally dont see conformance to the various formal W3C APIs (DOM
25011 [tobiasreif p] "Personally, I'd be happy to see the alternative tree parser + API
+ 25013 [neumann s-di] Anyone volunteer to create an entry at RubyGarden's Wiki ?
| 25015 [tobiasreif p] I thought about that; there's a risk that contrary views stack up, just
+ 25014 [tobiasreif p] P.S.
| + 25018 [nat.pryce b1] The DOM is a pretty awkward API to both use and implement. An API based on
| | + 25019 [tobiasreif p] we agree :)
| | | 25039 [nat.pryce b1] What do you mean by the DOM data model? Do you mean the data model as
| | | 25040 [tobiasreif p] The likings seem to gravitate toward Infosets' or XPaths' data model.
| | | 25044 [hutch xampl.] What's the difference between them?
| | + 25020 [feldt ce.cha] I agree and IMHO REXML is the closest one. But my XML experience is
| | | + 25059 [ser germane-] No, but it should be pretty easy to extract it from the spec. That's what
| | | | 25078 [feldt ce.cha] You could try a trick with Regexps, the "zero width negative
| | | | + 25080 [tobiasreif p] check
| | | | | 25102 [dblack candl] Can you put this on the RubyGarden Wiki?
| | | | | + 25103 [tobiasreif p] do you mean
| | | | | | 25112 [dblack candl] I added a link from your note in LibraryModules, too.
| | | | | + 25111 [tobiasreif p] Tobi
| | | | | 25113 [Dave Pragmat] Is this the final change request, or is there still discussion to be
| | | | | + 25114 [Dave Pragmat] Sorry, what I meant was - could we move the document you _referenced_
| | | | | | 25116 [tobiasreif p] The link? Sure.
| | | | | | 25122 [Dave Pragmat] In order to seed the discussion, would it be OK if I copied the
| | | | | | 25157 [tobiasreif p] There might be a lot of outdated statements. People probably came to new
| | | | | | + 25158 [tobiasreif p] ouch; sorry, just got up... I somehow thought you wanted to copy the RCR
| | | | | | + 25170 [chadfowler y] To me, it doesn't make sense to have a static,
| | | | | | + 25172 [james rubyxm] Aye.
| | | | | | + 25174 [tobiasreif p] Anyone can contribute to the document by discussing the issues @ the
| | | | | | | 25176 [dblack candl] By seeing what people say, and then working toward a consensus :-)
| | | | | | + 25177 [tobiasreif p] In an earlier
| | | | | | | + 25181 [Dave Pragmat] But the reality is, they don't. Have a look at other things that are
| | | | | | | + 25186 [ jimm io.com] Real-life experience shows that Wiki's don't work that way. People add
| | | | | | | + 25194 [nat.pryce b1] I think you should have more faith in the Ruby community. As long as I have
| | | | | | | + 25198 [tobiasreif p] Tobi
| | | | | | | + 25201 [dblack candl] David
| | | | | | + 25196 [tobiasreif p] Sorry, but I don't really know what to do now.
| | | | | | + 25197 [tobiasreif p] new header of
| | | | | | + 25200 [Dave Pragmat] I've copied it across and wiki-fied it a bit. I suspect at some point
| | | | | + 25115 [tobiasreif p] Dave,
| | | | + 25147 [ ser efn.org] Wow. Thanks. I've been having a hard time figuring this one out. I'll
| | | | 25150 [hal9000 hype] exactly?
| | | | 25153 [billk cts.co] Bah. :)
| | | + 25060 [dblack candl] The spec includes EBNF notation for the formal grammar of XML. Also it's
| | + 25126 [james rubyxm] While this is true, people coming to Ruby with prior XML experience will likley expect a DOM API, plus whatever else Ruby offers.
| | + 25129 [alan digikat] Not to mention that some of us are playing with porting libraries
| | + 25138 [simonstl sim] I don't know about that. I came to Ruby in February, thinking that it
| | + 25151 [james rubyxm] OK, let me rephrase that: many people lured to Ruby by the mention of XML will likley expect a DOM API. Certainly, if you're
| | | + 25192 [simonstl sim] People coming from Java may expect DOM, but even Java has JDOM and
| | | | 25202 [nat.pryce b1] DOM is really designed to support scripts that are written to manipulate an
| | | | + 25215 [john.carter ] Right! In fact that is the reason for DOM. If you have something like
| | | | | + 25218 [alan digikat] How about porting of libraries and components expecting to access XML
| | | | | | + 25230 [john.carter ] I can't say I'm grabbed by this as a counter example.
| | | | | | + 25233 [james rubyxm] Exactly. If there were a ranking of XML APIs in Ruby, I sure wouldn't put the DOM first, but some of the comments so far suggest
| | | | | + 25232 [james rubyxm] That's not an very compelling reason to halt a discussion. ;)
| | | | + 25231 [james rubyxm] I'm not sure I understand your point. While some scriptable applications provide a DOM API, the API itself not specifically
| | | | + 25236 [nat.pryce b1] execution
| | | | | + 25243 [james rubyxm] <snip/>
| | | | | + 25252 [tobiasreif p] avoid the DOM API and instead provide a standard Ruby XML API
| | | | | 25256 [nat.pryce b1] That's a working draft. It is not a finished reccomendation (W3C-speak for
| | | | | 25262 [neumann s-di] Yes, that's exactly what I do in XSLT4R ;-). I parse the XSLT style and
| | | | + 25250 [tobiasreif p] that integrates well with Ruby, over a DOM API. Many think SAX and DOM
| | | | + 25251 [feldt ce.cha] Depends on how much experience you have with XML. If you're just a Ruby
| | | | | 25254 [tobiasreif p] Yet another good point for RubyWay APIs :)
| | | | | 25368 [james rubyxm] I don't think there have been *any* points *against* a "Ruby way" API; some of the threads, though, seem to suggest that it would be
| | | | | + 25398 [tobiasreif p] (since you replied to my post,)
| | | | | + 25408 [nat.pryce b1] some of the threads, though, seem to suggest that it would be
| | | | | + 25409 [feldt ce.cha] IMHO, this was an important clarification. Thanks Nat.
| | | | | | 25413 [dblack candl] Now, now -- the "S" in SAX stands for Simple :-) Nothing inhuman
| | | | | | + 25414 [feldt ce.cha] Sounds good. Then I'm back on track... ;-)
| | | | | | + 25425 [hutch xampl.] So did the "S" in SOAP, once upon a time :-)
| | | | | + 25411 [dblack candl] True, though at the same time, if someone wants to write something
| | | | | | 25419 [nat.pryce b1] I agree totally. That's what I meant by "streaming parser". Any XML API
| | | | | + 25455 [alan digikat] If you're writing a library on top of a standard interface, why would
| | | | + 25260 [james rubyxm] PoLS?
| | | | | 25265 [armin approx] principle of least surprise.
| | | | | 25315 [ser germane-] Except that DOM is anything but PoLS. In fact, it is rather convoluted and
| | | | + 25264 [james rubyxm] I haven't been counting, but the sense I get is many people on this list think a Ruby-way is personally/aesthetically better than
| | | | + 25267 [tobiasreif p] please do do.
| | | | + 25269 [dblack candl] I agree. I think it's probably because this discussion has been
| | | | + 25280 [billk cts.co] Or, perhaps, HabitualWikiForm ? :-)
| | | | + 25369 [james rubyxm] Ah, that would go a long way in explaining why, at 6:30 a.m., pre-coffee, I couldn't think of where I could find one ...
| | | | 25370 [dblack candl] I think one thing also that we've lost sight of in some of this
| | | | 25372 [maki inac.co] I've already been tring it :-) (but not finished)
| | | | 25374 [dblack candl] Oh well, I'll have to wait and write a parser :-)
| | | + 25204 [maki open-ne] What kind of unicode support do you want?
| | + 25163 [tobiasreif p] [...] I came to Ruby in February, thinking that it
| + 25023 [hutch xampl.] This is referring to the attributes like 'xmlns' and 'xmlns:xx'. They are in
| + 25027 [tobiasreif p] Where is that specified in the XML spec?
| | + 25032 [dblack candl] ...Note that the order of attribute specifications in a start-tag
| | + 25035 [kentda stud.] "Note that the order of attribute specifications in a start-tag
| | | + 25091 [dblack candl] That's pretty explicit, isn't it? :-)
| | | + 25130 [james rubyxm] That seems pretty explicit, since attributes may only appear in the start tag or an empty-element tag.
| | + 25037 [hutch xampl.] How would you specify their order? Anyways, your quote from the infoset
| | + 25054 [bobgus mcs.c] I have worked on some SGML parsers in the past. We had a 'canonical form'
| | | + 25075 [hutch xampl.] 0) parse an XML document and generate SAX-like events without having to have
| | | | + 25077 [hutch xampl.] Once again making no sense, let me complete my thoughts... Which may or may
| | | | + 25084 [bobgus mcs.c] ... snip
| | | | | 25144 [hutch xampl.] Sorry, somehow I missed this earlier.
| | | | + 25110 [ser germane-] REXML does this; I suspect NQXML does this, but Jim will have to comment on
| | | + 25076 [tobiasreif p] ... and more ;)
| | + 25062 [ser germane-] AFAIK, all of the XML parsers available have event-based parsing. NQXML
| | + 25070 [ jimm io.com] See NQXML::Dispatcher by David Alan Black, distributed with NAXML, for a
| | | 25108 [ser germane-] This is cool. I may steal this.
| | + 25071 [hutch xampl.] Thanks for clarifying this. Just to be sure though, they don't require the
| | 25109 [ser germane-] I know REXML doesn't. It just reads the file in (about 100 bytes at a
| | 25132 [ jimm io.com] NQXML reads the file into a string and parses the string. I fooled around
| | + 25140 [hutch xampl.] This is better than making a DOM tree, but not ideal from my point-of-view.
| | + 25148 [ ser efn.org] Jim,
| | 25179 [ jimm io.com] Thank you, I will definitely look at it.
| + 25128 [james rubyxm] The a document's infoset may also depend on a DTD or Schema, as default and implied values may be added.
| 25137 [hutch xampl.] Yes, for DTD at least. I don't know about the schema though. Does the W3C
| 25161 [tobiasreif p] read.
| 25164 [dblack candl] But if anyone wants to write a validating XML parser in Ruby *now*, please
| 25165 [tobiasreif p] Sure, why not.
| 25185 [ ser efn.org] Oh, I don't know about that. Many successful OpenSource projects have
+ 25021 [hutch xampl.] It is also important that DTDs are handled correctly. DTDs are not just for
+ 25024 [tobiasreif p] yep.
+ 25127 [james rubyxm] Validation is part of the XML 1.0 spec. A Ruby parser would need to be able to provide validation at the request of the user.
+ 25133 [dblack candl] Actually non-validating parsers are provided for in the spec. (If
| 25139 [james rubyxm] Sorry, my mistake. The larger point, though, is that validation is something many people will want.
| 25141 [dblack candl] Absolutely. I actually *am* still using SGML :-)
+ 25136 [hutch xampl.] Parsers don't *have* to be validating (though I certainly will not argue
| 25143 [james rubyxm] Exactly. The spec describes the concept of validation. A parser can skip this part, and simply check for well-formedness, but many
+ 25142 [simonstl sim] Not necessarily. There are lots of non-validating parsers in other
+ 25156 [tobiasreif p] The XML spec allows for two kinds of parsers: validating and
24934 [pbrannan atd] Has anyone successfully used ruby/python with Python 2.1? I'm getting the
^ Naming conventions
24936 [Peter.Hachen] I am trying to create an class, which handles arithmetic operations on
+ 24937 [anany ece.vi] Peter,
| 24939 [erik bagfors] I don't think it's that easy.
+ 24940 [pbrannan atd] A = 1 #=> 1
24944 [gotoken notw] On the other hand, Ruby also has Array(), Float(), Integer(), and
^ From aliasing to aliased
24941 [list chromat] Still playing. :-)
24993 [nobu.nokada ] No.
24994 [decoux moulo] ...
25002 [nobu.nokada ] Hmm, I've not considered such case, you're right. Also, it's
^ Newspaper interview
24943 [Dave Pragmat] Andy got interviewed by the Raleigh News and Observer, his regional
24946 [ljohnson res] ...
24947 [Dave Pragmat] Yeah - Andy's grinding his teeth about some of it. Still, it's a
24953 [ljohnson res] ...
^ Refactoring tool for Ruby...
24948 [Stephan.Kaem] Just being curious if someone has worked on a refactoring tool for
24949 [jjthrash pob] Seems to me that once these Ruby-in-Ruby projects become usable, especially
25303 [wys helbling] ....although this will allow implementing nice refactoring methods, we
+ 25302 [mips cybersp] very
| 25313 [dlwhiteman N] ...
| 25316 [jpetersen un] Im Artikel <email@example.com> schrieb "David Whiteman"
+ 25344 [alan digikat] Is that really true? The core refactoring capability doesn't have
| 25429 [jjthrash pob] I agree, except that it might be hard to API-ify it.
| + 25760 [benoit.cerri] ...
| + 26245 [ned bike-nom] Take a look at the Smalltalk Refactoring Browser; they have completely
+ 25759 [benoit.cerri] ...
+ 26213 [pdcawley bof] The approach I've taken with preface, the Perl REFACtoring Engine is
^ top story on www.perl.com
24952 [joe vpop.net] I don't know if this has been mentioned, but the top item on perl.com
^ Teach your kid math w/ruby
24955 [pete narya.P] ...
24983 [jweirich one] My son is in High School and often comes to me with math questions
25041 [pete narya.P] ...
^ Linux Magazine article
24958 [Dave Pragmat] Andy & I've been asked to write a feature article about Ruby for Linux
+ 24959 [tobiasreif p] 1.
+ 24961 [ptkwt shell1] ...
+ 24963 [list chromat] As apparent from my recent posts, dynamism rock. :-)
| 24979 [ ser efn.org] 1) Mixins. A very, very cool feature, and the thing that set Ruby apart
+ 24964 [1008203077.e] Thinking back to not-that-long-ago when I first checked Ruby out, the
| 24977 [chrismo home] Blocks, iterators & yield. Not just taking advantage of built-in iterators,
+ 24965 [hal9000 hype] The concept of an iterator is my personal favorite.
| 24988 [wys helbling] Smalltalk does it (blocks , iterators), too ;-)
| 25063 [schuerig acm] I take this to mean that one can add new methods to existing Ruby
| 26173 [paulp Active] What if one of your co-workers is using the same class and adds a
| 26174 [ralph.mason ] You can also do Instance Methods. So you only affect the one class you are
+ 24968 [dblack candl] * Cleanness of code. I love looking at a screen and thinking
+ 24969 [rich infoeth] Think of your audience. There will be Perl people and Java people, and sysadmin types that may not be developers in the "professional" sense. Stress the differences (not to replace their current language, but extend their way of thinking ;-) I don't know much Perl so most of my views come from the Java perspective.
| 24985 [lists.ruby-t] Indeed.
+ 24971 [james rubyxm] What I like about Ruby, and what piqued my interest, was that it could do all of the things I came to like in other languages (OO,
| 24992 [tobiasreif p] Good advice IMHO; the article that got me excited talked about Ruby a
+ 24980 [joe vpop.net] Call me peevy, and this does bring up another language's weakness, but
+ 24982 [W.L.Kleb LaR] the difference between a single thread Ruby code and multi-threaded one is
+ 24984 [ned bike-nom] Depends on where they're coming from. I'm a Smalltalker, but I've also dealt
+ 24986 [j.keiser air] - Many familiar things from perl, e.g. text handling.
+ 24989 [niklas kagi.] [Dave Thomas]
| + 25012 [ ser efn.org] Wow. This is really cool. I'm *always* learning new ways of doing things
| + 25118 [josb cncdsl.] This sounds interesting. Can you give an example please?
| 25183 [harryo zipwo] I didn't know about it, either, but took a guess and tried this ...
| + 25203 [niklas kagi.] [Niklas Frykholm]
| + 26102 [josb cncdsl.] But what if you need to anchor the string?
| 26103 [billk cts.co] Might need the "zero width pos/neg look_behind_ assertion" for
| 26116 [josb cncdsl.] Yeah, I came up with
| 26117 [decoux moulo] ...
| 26118 [josb cncdsl.] Yes, thanks Guy, but this looks worse than the Perl code :) What would be a
| 26120 [decoux moulo] ...
| 26182 [josb cncdsl.] Perhaps, but it would still be very helpful for people coming from Perl
+ 24999 [jim freeze.o] I was just asked yesterday to make a local mirror of specification
+ 25009 [Stephan.Kaem] I was impressed by
+ 25016 [tony perforc] 1. Clean syntax (thank you Matz!!)
+ 25034 [jason jvoege] Everyone else has already mentioned all of my favorite specific
+ 25043 [pete narya.P] ...
+ 25051 [petemcbreen ] ...
+ 25227 [maksa sezamp] On Behalf Of Dave Thomas