Re: Your Regex Brain

2012-03-26 Thread sln
!\s*[\'"]) \s* (?[^\s>]*) (?=\s|>) ) ) ) (?= (?:[^>"\']|"[^"]*"|\'[^\']*\')*? (?<=\s) alt \s*= (?: (?> \s* ([\'"]) \s* (?.*?) \s* \g{-2} ) | (?> (?!\s*[\'"]) \s* (?[^\s>]*) (?=\s|>) ) ) ) (?> \s+ (?:".*?"|\'.*?\'|[^>]*?)+ > ) (?) ' -sln -- http://mail.python.org/mailman/listinfo/python-list

Re: a little parsing challenge ?

2011-07-18 Thread sln
t; [snip] >i hope you'll participate. Just post solution here. Thanks. > I have to hunt for a job so I'm not writing a solution for you. Here is a thin regex framework that may get you started. -sln - use strict; use warnings; my @samples = qw( A98(y[(np)r]x)tp

Re: toy list processing problem: collect similar terms

2010-10-07 Thread sln
joining like labeled sublists, >without going into >the runtime guts of internalizing the data itself. Internally, this is too >simple. > If not preprocessor, then ... The too simple, order independent, id independent, Perl approach. -sln - use strict; use warnings

Re: toy list processing problem: collect similar terms

2010-10-06 Thread sln
) is not ok. the below does simple text manipulation, joining like labeled sublists, without going into the runtime guts of internalizing the data itself. Internally, this is too simple. -sln - Alternate input: ( ( (0 a b) (1 c d) (2 e f ) ) (3 g h) (1 i j) (2

Re: OT: regular expression matching multiple occurrences of one group

2009-11-09 Thread sln
t;group match for each occurrence of "-c"? Is this a ludicrous question, or is it meant for the python group? use strict; use warnings; my @matches = "-c-c-c-c-c" =~ /(-c)/g; print "\...@matches\n"; @matches = (); "-c-a-c-c-c" =~ /(?:(-c)(?{

Re: Ban Xah Lee

2009-03-09 Thread sln
you we must be telemarketers, does my body odor bother you?" -sln -- http://mail.python.org/mailman/listinfo/python-list

Re: Function Application is not Currying

2009-01-28 Thread sln
rrying > >A curried function is a function which returns a function as its >result. > Curry, is that like chicken soup or some Indian mash? Why ? How about returning an index number into an array of function pointers as handlers from packet data? Oh, thats network communications.

Re: Why not Ruby?

2008-12-31 Thread sln
u a whole lot >> more about computer science, features of language semantics, etc. >> >> Q: Do you condemn Ruby? >> >> No. I think it's reasonably elegant, but today there are too many >> languages, so Ruby don't particularly standout for me. Many of th

Re: Mathematica 7 compares to other languages

2008-12-25 Thread sln
< dim; ++i) a[i] = x[i]/divisor; >>> >>> >> } >> >> Due to the low level of C, this C example should perhaps then accept a >> sequence of numbers separated by space... > >In other words, you want a REPL. > >Why don't we have anoth

Re: Mathematica 7 compares to other languages

2008-12-09 Thread sln
On Tue, 9 Dec 2008 15:01:11 -0800 (PST), Xah Lee <[EMAIL PROTECTED]> wrote: > >On Dec 8, 4:56 pm, Jon Harrop <[EMAIL PROTECTED]> wrote: >> Xah Lee wrote: >> > A moron, wrote: >> > > You failed the challenge that you were given. >> >> > you didn't give me a challenge. >> >> Thomas gave you the chal

Re: Mathematica 7 compares to other languages

2008-12-09 Thread sln
On Tue, 9 Dec 2008 15:19:47 -0800 (PST), Xah Lee <[EMAIL PROTECTED]> wrote: >On Dec 8, 4:07 am, Jon Harrop <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > Well, its past 'tonight' and 6 hours to go till past 'tomorrow'. >> > Where the hell is it Zah Zah? >> >> Note that this program ta

Re: Mathematica 7 compares to other languages

2008-12-04 Thread sln
On Wed, 3 Dec 2008 16:32:57 -0800 (PST), Xah Lee <[EMAIL PROTECTED]> wrote: >On Dec 3, 4:22 pm, "Thomas M. Hermann" <[EMAIL PROTECTED]> wrote: >> On Dec 3, 5:26 pm, Xah Lee <[EMAIL PROTECTED]> wrote: >> >> >> >> > Agreed. My paypal address is “xah @@@ xahlee.org”. (replace the triple >> > @ to sin

Re: The Importance of Terminology's Quality

2008-08-22 Thread sln
On Fri, 22 Aug 2008 23:23:57 + (UTC), Martin Gregorie <[EMAIL PROTECTED]> wrote: >On Fri, 22 Aug 2008 22:56:09 +, sln wrote: > >> On Thu, 21 Aug 2008 09:11:48 -0500, [EMAIL PROTECTED] (Rob Warnock) wrote: >> >>>[EMAIL PROTECTED]> wrote: >&

Re: The Importance of Terminology's Quality

2008-08-22 Thread sln
;switch panel again. Then came CP/M and all the initial pain was >forgotten (replaced by CP/M pain 8-). > > >>I'm not talking assembly language. Don't you know that there are routines >>that program machine code? Yes, burned in, bitwise encodings that enable >>ma

Re: The Importance of Terminology's Quality

2008-08-22 Thread sln
(for the convenience of the user). > >+--- >| Don't you know that there are routines that program machine code? >+--- > >What do you mean "routines"?!? For the above two machines, you can >enter machine code with *no* programs ("routines?") running; that is, >no boot ROM is required (or even available, as it happened). > [snip all the bullshit] Each op is a routine in microcode. That is machine code. Those op routines use machine cycles. You hit the wall of understanding along time ago, a wall you never looked past. sln -- http://mail.python.org/mailman/listinfo/python-list

Re: The Importance of Terminology's Quality

2008-08-20 Thread sln
tc. >> >>- >>Rob Warnock <[EMAIL PROTECTED]> >>627 26th Avenue http://rpw3.org/> >>San Mateo, CA 94403 (650)572-2607 > > >Whats os interresting about all this hullabaloo is that nobody has >coded

Re: The Importance of Terminology's Quality

2008-08-20 Thread sln
g about all this hullabaloo is that nobody has coded machine code here, and know's squat about it. I'm not talking assembly language. Don't you know that there are routines that program machine code? Yes, burned in, bitwise encodings that enable machine instructions? Nothing below that. There is nobody here, who ever visited/replied with any thought relavence that can be brought foward to any degree, meaning anything, nobody sln -- http://mail.python.org/mailman/listinfo/python-list

Re: blogs, longbets.org, and education of sociology

2008-05-25 Thread sln
Your opinion of yourself is only surpased by your monumental display of mastery of the English language. sln On Sun, 25 May 2008 16:25:33 -0700 (PDT), "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >For about the past 10 years, i have been concerned in the programing &g

Re: I am giving up perl because of assholes on clpm -- switching to Python

2007-08-03 Thread sln
here you go again, always twisting things around. A little hatred is good for the world, grow some balls, if it hurts that much, cut your throat, not somebody elses. Sln -- http://mail.python.org/mailman/listinfo/python-list