@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28



Comments:

<0> it depends on the 'magic' setting and the presence of \v \V \m \M in the pattern
<1> f3ew: was just matching any single character.
<0> PerlJam: but vim can do variable-width look behind
<1> perl5 could too if someone would hack it in.
<1> perl6 can do it and it's not even a real language yet! ;)
<1> pjo: that's funny ... "has to happen"
<0> I'm not sure how it's supposed to work
<2> PerlJam: hi.
<2> PerlJam: you're welcome to join #lisp-il
<1> rindolf: why on earth would I do that?
<2> PerlJam: don't know.
<1> rindolf: I've enough trouble on all of the #perls :)
<2> PerlJam: it's a nice channel.
<0> what should "1234:" =~ /(?<=(\d+)(\d+)):/ do?
<2> PerlJam: I'm designing a new dialect of Lisp now.



<1> rindolf: lots of pythoners there? (there seems to be this weird relationship between python and lisp/scheme)
<1> mauke: fail.
<3> eval: "1234:" =~ /(?<=(\d+)(\d+)):/ ; print $1,$2
<4> pjo: Error: Variable length lookbehind not implemented in regex; marked by <-- HERE in m/(?<=(\d+)(\d+)): <-- HERE / at (eval 129) line 2.
<2> PerlJam: http://www.shlomifish.org/park-lisp-fooware/
<0> PerlJam: why?
<2> PerlJam: some Perlers too.
<3> mauke: see buubot's complaint
<2> PerlJam: Perl is a bit like Lisp except it's infix-notation.
<0> pjo: I know it's not implemented; < PerlJam> perl5 could too if someone would hack it in.
<2> PerlJam: do you know Lisp?
<2> PerlJam: some stuff are easy in Lisp and in Perl (even 5) but very hard in python.
<1> rindolf: I've touched it with a ten-foot pole before in order to shove it further away.
<5> 'llo folks
<2> PerlJam: (I (see)).
<3> lol
<2> PerlJam: have you read SICP?
<1> for some reason I like scheme even though I find I'm still allergic to too many parentheses
<6> Does bc or perl support bitshift operations?
<3> last time i saw a lisp script i thought it was encrypted or something
<1> AI_coder: yes
<2> AI_coder: sure. >> and <<
<2> AI_coder: see perldoc perlop
<4> perlop - Perl operators and precedence. To access this perldoc please type, at a command line, 'perldoc perlop'. You may also find it at http://perldoc.perl.org/perlop.html
<2> PerlJam: anyway, we don't discuss LISP there most of the time.
<1> rindolf: I've meandered through the only version of SICP
<1> s/only/online/
<1> weird braino
<2> PerlJam: what's meandered?
<0> pjo: dude, only perl is like that!
<1> rindolf: wandered. random walk. etc.
<2> mauke: Lisp can be even less readable than Perl.
<2> PerlJam: I see.
<7> ople are registering constantly - that page doesn't update when they do
<0> and it often is!
<2> PerlJam: I read it cover to cover.
<2> The last two chapters (out of 5) are a bit disappointing.
<2> My main problem with Scheme is that it feels like you cannot do anything practical with it.
<2> At least not on a POSIX system.
<0> (the latest piece of lisp I've written is http://mauke.ath.cx/stuff/lisp/implinest.lisp )
<2> Which is one thing I intend to rememdy in Park. (that's the name of my dialect.)
<2> mauke: wgetting.
<2> mauke: Common Lisp?
<2> I wonder if someone will make an Eclisp plugin for Eclipse.
<2> Most Lisp programmers use Emacs for serious code.
<0> yes
<2> mauke: hey! You're also using C-indentations for the parenthesis.
<8> it's the only reason lisp survives
<2> mauke: so do I.
<2> mauke: let's start a conspiracy.
<0> rindolf: you sound almost sane
<2> mauke: I'm not sane at all.
<3> Supaplex: didn't catch the reason
<0> I don't get why I'm supposed to put all ))))) in one line
<1> Ask Paul Graham
<0> why?
<3> mauke: err.. hat does that script do?
<0> pjo: it adds implicit nesting to lisp
<0> i.e. instead of (foo (bar (baz))) you can just write (foo #$ bar #$ baz)
<3> ahh



<1> that so reminds me of haskell
<0> huhu
<2> mauke: OK, I don't understand your macro.
<0> why not?
<2> mauke: at least not at first glance.
<9> hi, anyone know how to detect if not enough arguments were p***ed to a perl script? (using Getopt::Long)
<9> the return value from Getopt::Long is 1 even when no arguments are p***ed
<9> 1 is supposed to signal success
<2> mauke: is unwind-protect some kind of macro-protection function? (Or macro)
<10> znoG: yes, it successfully decoded nothing
<0> rindolf: more like try-finally
<9> hobbs: i was hoping to show usage info if mandatory arguments are not p***ed to it
<10> znoG: so check whether your mandatory options are set
<0> rindolf: temp is pretty much local() in perl
<9> hobbs: right, how so?
<10> znoG: you just used getopt to get the options. check them.
<2> znoG: you can.
<2> znoG: what hobbs said.
<2> mauke: is it self-contained?
<2> mauke: your code I mean.
<0> rindolf: I think so
<9> hobbs: ok so basically if I have an option called $site, I could check if $site is blank or not in which case show usage info.
<2> mauke: hmmm...
<0> rindolf: do you see any external dependencies?
<2> mauke: it seems to have some infix stuff.
<11> znoG: You can always check @ARGV before getopting
<2> mauke: where are the for, while, etc defined?
<9> buu: ARGV seems to be empty when you use -options (with a dash in front)
<0> rindolf: they're part of the LOOP minilanguage
<2> mauke: I see.
<11> znoG: Uh.,.
<11> znoG: No.
<0> rindolf: http://www.gigamonkeys.com/book/loop-for-black-belts.html
<12> eval: $self
<4> amnesiac: Out of memory!
<9> buu: actually, hang on.. might be Getopt blanking it
<8> it's a good idea to steal a copy of @ARGV soon rather then late
<2> mauke: so it's an interpreter of sorts?
<12> eval: $arg
<4> amnesiac: eval: $arg
<2> I know what a mini-language is.
<0> what is "it"?
<2> mauke: your program.
<12> eval: $self->{session}
<4> amnesiac: Out of memory!
<12> eval: $self->{kernel}
<4> Out of memory! amnesiac:
<11> amnesiac: Yeah, dude, what is your point?
<9> buu: ah, it was too. :)
<13> znoG: <program> -help -- '-help' would be in $ARGV[0].
<0> rindolf: it just installs another macro-character, i.e. when the reader sees #$ it calls my function
<2> mauke: I see.
<3> see what i mean about encrypted scripts?
<2> pjo: more like obfuscated.
<14> Who wants to put me up in Midtown until I find a place! Thanks.
<2> jsn: hi.
<14> being nice to me is definitely not going to turn me into an Objectivist :op
<2> jsn: I'm no trying to turn you into an Objectivist.
<10> jsn: where did that come from? ;)
<3> rindolf: yeah. and considering that was a *well indented* script (imho) wait till you see the ones with ))))) on one line $#$#%#!@
<2> pjo: I saw them.
<14> hobbs: The internets are teeming with them!
<10> jsn: besides, nothing wrong with objectivism so long as it's got an 'o' and not an 'O' ;)
<15> Does anyone know if there is a way to use a Debian unstable package on stable?
<14> Yaakov, a couple ways
<2> Yaakov: can't you install without deps?
<14> Yaakov, is there a backport available? Adrian Bunk used to manage them
<10> Yaakov: sure. But it's likely to bring in libraries along the way, so you get more than you asked for
<15> What is the EASIEST one.
<14> a backport is easiest
<16> Yaakov: backports maybe
<10> yeah, backports first if they're there. I always forget that because I don't generally do stable.
<2> Yaakov: In FC5/Mandriva/etc. it would be rpm -Uvh --nodeps
<10> rindolf: That's a good way to break a system, not accomplish something useful.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

#suse
pclinux + vncserver
cn700 etch
Traceback (most recent call last): File /usr/bin/yum, line 8, in ? yummain
#css
#perl
sed dirname
fedora dircolor
deleted portage
#ldap



Home  |  disclaimer  |  contact  |  submit quotes