| |
| |
| |
|
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 29 30 31 32 33 34
Comments:
<0> Quiznos: there's no good way to do that. <1> i know c <2> the C semantics don't map well to Perl. <1> i doesnt need to be perfect <1> just the grunt work <3> merlyn: any experience with EVDO under Linux? <2> as in, your entire program would be just library calls <2> so there's not much point <1> no, lib calls are no good <2> C doesn't have a native $scalar type <0> Quiznos: yo might attempt to use the perl compiler and output C. But I suspect you'll be very disapointed in the output. <2> so to add two scalars, you'd have to call a lib <1> cfedde k <2> that's why we're saying - doesn't map well. <2> the entire program would be Perl bytecodes as lib calls <2> perlcc does that sort of thing
<0> Quiznos: you can probably pick up enough perl in a few hours to eirhter fix the code you have, or translate it to a different programming environment. <0> Quiznos: start with perldoc perlintro <4> perlintro - Perl introduction for beginners. To access this perldoc please type, at a command line, 'perldoc perlintro'. You may also find it at http://perldoc.perl.org/perlintro.html <2> The best Perl 2 C translator is a human being. <1> cfedde the script is >200k of perl code <2> 200k *lines*? <1> and IMO it's twisted spghetti code <2> that's not a script. that's a disaster <1> oops, that's file size <3> yeah no kidding <2> the C program would be even worse. <1> not lines <2> ides - I don't use linux <3> merlyn: ah ok, that's right you're a Mac guy if I recall <2> this card works fine with OSX :) <0> Quiznos: I feel your pain. <2> I use OSX and OpenBSD <1> cfedde wanna share in it? :) <2> Quiznos - use B::Xref <2> to get a view of where things are defined and used <1> merlyn what does that accomplish? <0> Quiznos: I have plenty of my own pain. <2> but otherwise, you're just in trouble <3> merlyn: ah used to be a FreeBSD myself before I ended up having to run all Linux servers a few years ago <1> cfedde k <2> sometimes, it's better to start over <5> Hi <1> merlyn true <2> 200K code is probably 20K code + some good CPAN modules <0> I'm trying to convince myself that I can understand CGI::Prototype. <2> it's pretty rare to have 200K of *unique* stuff these days <1> merlyn there are no modules; it's self-contained <3> ouch yeah run screaming <2> Right - that's probably a sign that some CPAN modules would have saved a huge amount of code <2> lots of reinventing of the wheel <1> possibly <2> what does it accomplish? <0> Quiznos: sounds like the developer of that was paid by the line. <1> it is a FOSS <2> probably has a few sections that would fit thedailywtf.com <2> what is "FOSS" <1> heh <1> foss=free open software stuff <1> <Stuff> <2> Oh - what does it *do*? <2> I guess you didn't answer that. <0> Quiznos: that does not arrow down things much. <1> it's the toast package manager, www.toastball.net/toast <0> narrow <2> FOSS covers a lot of ground <2> 200K of code for that? <1> cfedde it's free gpl s/w <2> I imagine my original claim is true <6> you mean free open-source software? :o <0> Quiznos: that's what I mean <2> 20K of original code, and CPAN modules, would have done the whole thing <1> merlyn it sings, it dances, it does the occasional dishwashing <2> where is the source?: <1> merlyn the url is above <2> and what's yoru goal?
<0> Quiznos: Um.. what is it you want to do with this? <2> trying to figure out how to fix it? <1> merlyn to possibly make it more usable; i think it's difficult to optimise perl code <1> also to make it faster <2> It's not difficult to optimize *good* perl code <0> seems like Jacques Frechet is actively working on it. Maybe you should contact him. <1> or simpler <2> use Devel::DProf <2> find the hot spots <1> cfedde i'll check, thanks <2> concentrate tehre <2> are there tests? <1> no tests afaik <2> Ugh <7> hey all, I've been teaching myself perl for a few days now, and I'm looking for a url that might help me with a little problem. I know how to use perl to capture information from a form, but this is only if the form is static. I'm trying to do this with a dynamic form, anyone know of a url that would explain for to capture the values from a html form as an array or hash? <2> it's *uselss* as FOSS then <3> merlyn: source is at http://toastball.net/toast/toast <2> it's basically 1995 crapware <1> merlyn when it works it works VERY WELL <1> when it doesnt, it's 200k of urecoverable blocks <2> ANything can work well some of the time <2> it's not good unless it works well *all* the time <1> yea i know <3> heh just browsed the source, about 10 pages in I found the first comment :) <1> heh <2> ... use 5; # oldest version that actually works might be 5.003; not sure.... <0> It does not 'look' too bad: http://www.toastball.net/toast/toast-1.433 <1> how about perl2awk? <2> ... &the_correct_line_number_for_this_line_is(23); # perl thinks this is line 2.. <2> got this is scary <1> lol <2> ... # allow script to run even in the absence of strict.pm, etc. <2> EEEEEEEEEK! <1> that's why i called spaghetti code <2> DANGER WILL ROBISON <1> :)~ <1> yea <2> Ugh - uses prototypes everywhere <1> woop woop ERROR EQUITNOW_ALL_WHO_ENTER_HERE!!! <1> lol <2> ok - this is getting more and more scary <1> you're very welcome <1> glad to brighten your day! <8> bnovc: adv_windowlist (formerly wlstat) <0> sub false() { "" } <1> basically, i cant make heads, tails or backs of that code <1> or fronts <2> heh - cperlmode breaks on it <1> lol <1> what about perl2awk? <9> ironpig: try $cgi->param(). It will return an array of all the CGI parameters. <9> ironpig: my @params = $cgi->param() <0> Quiznos: some how you think translating it to awk will make it better? <3> Quiznos: I'd just find another software package that does what toast does <1> cfedde lighter weight at least <0> Quiznos: um.. probably not. <1> ides yea, i know, but i'm a romantically hopefully <2> What's your goal? <1> cfedde k <2> with this crap? <2> are you now the maintainer? <1> make is smaller, leaner, faster, ***ier <1> god no rofl <3> Quiznos: well if I opened up my wife and found code like this, I'd be grounds for divorce ;) <10> rm -f $crap <0> Quiznos: even if such a tool exists you'd have the overhead of emulating perl datastrucures in a less powerful language <1> i already confessed to not knowing perl <1> cfedde that's why i said awk <9> Hi cfedde, kitchen, merlyn <0> rindolf: howdy! <1> a developer doesnt call his lang of choice nor his tool "spaghetti code" <2> why are you taking this on? <2> No - I mean, are you *now* the maintainer? <1> i have a few spare cycles
Return to
#perl or Go to some related
logs:
linux Import WSX netfilter LOCAL_OUT #iptables vim7 perl can't access tty xubuntu install aadnesgaard spinrite.zip #linux #perl cartoon effect gimp
|
|