#perl
19 October 2007
Total 39 pages. You are browsing page 4/39.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
02:00 <****> richiefrich: if it can't find a compiler it'll build without weaken
02:00 <****> it is built
02:00 <****> the app gives me this error
02:00 <****> on running it
02:01 <****> you've got managed to rebuild it with weaken in such a way that urxvt can find it
02:01 <****> hmm
02:02 <****> i rebuilt perl with multithreading
02:02 <****> would that matter?
02:02 <****> i'm not too impressed with typeface so far. the installation has taken me several hours already.
02:02 <****> falcon78: oh, you're still attempting to manually parse XS, nevermind then
02:02 <****> er, CSV
02:03 <****> richiefrich: hm, are you building urxvt with some sort of Perl support?
02:04 <****> urxvt++
02:04 <****> or have you built it, I should ask
02:04 <****> especially with the 256 color patch
02:05 <****> 256 color patch?
02:05 <****> what is this patch of which you speak?
02:05 <****> Somni: yeah i am
02:06 <****> or it is built with perl support
02:07 <****> AssociateX: yo yo
02:07 <****> AssociateX: you chill in here
02:07 <****> yes
02:08 <****> this is the smart chat room on freenode
02:08 <****> I could ask how to make a meatloaf and get the perfect answer here.
02:08 <****> ooh then fixx my perl issue good sir
02:08 <****> richiefrich: what version of Perl did you build it against? from within your urxvt.pm printf "%vd, %s\n", $^V, $INC{"Scalar/Util.pm"};
02:08 <****> so you take some ground beef right
02:08 <****> s/smart/smartest
02:08 <****> then you add some spices and oatmeal
02:09 <****> Somni: ahh 5.8.8
02:09 <****> see see!!
02:09 <****> toss in an egg and mix that shit up
02:09 <****> lol
02:09 <****> lol
02:09 <****> richiefrich: printf "%vd, %s, %s\n", $^V, $INC{"Scalar/Util.pm"}, $Scalar::Util::VERSION;
02:10 <****> I'm guessing you can see stdout output
02:10 <****> yeah
02:11 <****> i've never thought of a use for built-in perl interp in urxvt
02:11 <****> Somni: 5.8.8, ,
02:12 <****> richiefrich: you need to do that -after- something's loaded Scalar::Util
02:12 <****> richiefrich: you do need to use Scalar::Util
02:12 <****> hmm
02:13 <****> richiefrich, seriously, once I had to spell swaree but I couldn't find the right spelling so I asked here and some one says "you mean 'soiree'"?
02:13 <****> SOMNI
02:13 <****> hi
02:13 <****> how does the saga fare, Yaakov?
02:13 <****> Somni: but how do i load that .. im sorry i really dont know perl
02:14 <****> 90071 visitors.
02:14 <****> richiefrich: 'use Scalar::Util;'
02:14 <****> Currently 100 per minute.
02:14 <****> richiefrich: why are you trying to use Perl if you don't know it?
02:14 <****> its compiles in as extentions
02:14 <****> Yaakov: hah, your digg link is killing you
02:15 <****> Somni: so i can use features in my terminal
02:15 <****> pravus: yes
02:15 <****> richiefrich: then perhaps you should learn Perl
02:15 <****> perlbot, beginning perl
02:15 <****> http://www.perl.org/books/beginning-perl/
02:15 <****> So far I am holding up.
02:15 <****> boo, my urxvt doesn't have perl support
02:15 <****> pravus: sorry I was trying to fix something on one server
02:16 <****> afk
02:19 <****> Somni: the idea was to replace that non-perl-code from a few days ago with something more perl-like. primarily just for my peace of mind. (i hope i learned how to use regexp since then.) but then, already having that code, i think it's nice to do some structural checks on-the-fly while parsing the input instead of first building bloated structures using the csv_xs module which i have to slice to my needs after it
02:20 <****> falcon78: I think you're insane
02:20 <****> falcon78: CSV_XS already handles an incredible number of edge cases
02:20 <****> falcon78: all you'll achieve by not using it is introducing into your program all the bugs it's already fixed
02:20 <****> falcon78: and I don't understand what you mean by "bloated structures". used correctly it's incredibly fast and lightweight.
02:23 <****> Text::CSV_XS takes strings and returns lists ... if that is bloated then you have a very fucked up definition of bloated
02:23 <****> mst: i knew that "bloated" is the wrong word, but nothing better came to my mind. and for the being insane, i wouldn't do that when writing code for a job, but i'm doing this in my free time, so why not have a bit of fun and learning something too respectively
02:23 <****> Khisanth: shouldn't have used that word ...
02:25 <****> Khisanth: i just don't want to build list parts i don't need
02:25 <****> falcon78: that's pointless. You need to parse the data out anyway.
02:26 <****> hobbs: but i can throw it away before adding it to the list if i know i don't need it
02:26 <****> falcon78: right, but that doesn't save you anything over throwing it away a millisecond later.
02:27 <****> falcon78: besides making your code harder to read :)
02:29 <****> a list slice is trivial!
02:29 <****> falcon78: you're spending your spare time doing something that's not only pointless in and of itself but due to the technique isn't even going to applicable to something with a point later
02:29 <****> hobbs: it saves me the work to allocate memory and expand a list which doesn't have to be expanded
02:29 <****> falcon78: I'd find something more interesting to hack on :)
02:29 <****> falcon78: not really :)
02:30 <****> falcon78: You're already writing it in Perl instead of C! :)
02:30 <****> falcon78: yeah, a tiny bit. Maybe even a percent or two. Nothing that will affect your life unless you're processing over ten million rows. :)
02:30 <****> mst: might be, but i'm still learning perl and enjoyed to go that deep into regular expressions
02:31 <****> oh yeah, and there's that
02:31 <****> anything you saved by not allocating memory, you wasted a thousand times over by starting up the regex engine :)
02:32 <****> hobbs: quite sure ;)
02:32 <****> falcon78: I can think of a fair few other things to do with the re engine for fun, but fair enough
02:32 <****> falcon78: I think I'd separate it out into chunks though -and- use -X
02:33 <****> -X?
02:33 <****> /x sorry
02:33 <****> Somni: and mst thanks i fixed it .. i just recompiled perl without multithreading and thats what did it .. idk why it screwed that up but its fixed now .. cheers
02:34 <****> :D
02:34 <****> l8r
02:40 <****> dam you YAML!!
02:40 <****> oh, good to see that noone wasted much time on the pattern i pasted about an hour ago. the $ at the end of a /.../g match didn't make much sense *g*
02:40 <****> is there a package or function etc for taking a string that contains a full path listing and filename and splits it into the path, filename, and extension? eg $strTemp = "C:\dir1\dir2\dir2\myfile.abc" splits out into "C:\dir1\dir2" and "myfile" and "abc". Thanks
02:42 <****> iFatman: File::Spec
02:42 <****> actually, File::Basename
02:42 <****> (but Spec is quite useful too)
02:42 <****>cwd("/pub") or &sub_routine; ?
Total 39 pages. You are browsing page 4/39.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
