| |
| |
| |
|
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
Comments:
<0> thrig: Well, yeah. <0> infi: Perl arrays are C arrays. <1> buu: explain splice? <0> infi: Why? <0> Or more specifically, what about it? <1> well, admittedly I haven't looked into the implementation, but I had ***umed that removing items from the middle of an @array would be similar to freeing a linked list entry, and rearranging pointers <0> infi: Nope. <0> infi: Then $a[n] becomes O(n) <0> And that's uncool. <2> I can no longer read O(n) without thinking BIG OOOOOO aka, the anime. <0> ew73: that's because you're a homo***ual hippy. <2> die <1> well, they seem to be somewhat larger, as each array node seems to have 20 bytes of overhead (I remember looking into that a while back) <1> anyway, I'm talking out my ***, I'll go pore through the code and see how they're actually done <0> infi: They're arrays of SV* <0> infi: With other magic wrapped around that.
<0> For example truncating it just sets the length to 0 without affecting anything else <1> pointers to scalar value <1> so, that seems more like a key->value list behind the scenes <0> infi: .. what? <1> I see what you mean. do you know the extra fields for the SV nodes? <0> infi: For the SVs ? <1> array[n] of SV*; the SV* would be pointers elsewhere in memory where the actual SV is kept <0> The usual things.. length, type, value, magic, ties.. <1> ok, then that would explain the overhead I was thinking about :) <1> is this in perlguts? <0> Yep <1> k <0> Hrm. I guess I can get away without using a linked list <1> buu: glib has one: http://developer.gnome.org/doc/API/2.0/glib/index.html <3> omfg, someone slap me.... <1> many people in ##C seem to link to glib for advanced memory allocation and string support, as well. <1> but it is an obnoxious requirement for some applications for what should be a very simple linked list implementation ;) <0> infi: How do I declare a struct with a name again? struct { } foo; ? <4> buu: wtf? <0> =[ <0> imMute: I've forgotten, it's sadness. <4> buu: your kidding right? <5> I have an itchy ear. <6> perlbot karma CIOS <7> Karma for CIOS: -1 <6> huhu <0> imMute: About what? <4> < buu> infi: How do I declare a struct with a name again? struct { } foo; ? <4> or are you not talking about Perl? <0> ... <0> No, I'm not talking about perl. <4> okay, that makes sense then, nevermind the blind fool :) <5> imMute - you're silly for thinking buu would be discussing perl in #perl. <1> buu: struct foo { }; or typedef struct { } foo; to set it as a type without having to p*** all args as void foo(struct meow *peck) {} <4> dec_: i would have known that regarding #perl@magnet but not here :/ <0> dec_: Yeah, duh. <1> buu: Where's your C book? <0> infi: I only have c++ books <1> :( <8> google doesn't know C? <1> buu: C_Dreamer is working on a decent tutorial on the ##c wiki <0> thrig: Thanks. <9> now go buy the white book. <0> jpeg: Nothx. <10> I havn't coded C for so long. <10> hi simcop2387 <0> Hrm. C makes this tricky. <11> I am very cool <11> and I eat 3 times a day <11> and sleep in a bed <11> at night <12> i feel soo krad <13> net::ssh::perl is really really slow, can someone recommend a faster module? <14> Net::SSH? <15> perlbot: karma substack <7> Karma for substack: 3 <15> hooray! <15> perlbot: karma perlmonks
<7> Karma for perlmonks: 1 <15> perlmonks++ <15> anyhow <15> back to idling <16> s0crates, take a look at Net::SSH2 <16> s0crates, it's based on libssh2 rather than a pile of other perl modules <0> Gah. C-- <17> sup fools <13> tobeya: thanks again <18> is there a way to comment out multiple lines of code in perl? <18> kind of like /* and */ in cpp or java? <19> yes <18> nacredata : are you talking to me? <20> you can use POD if you'd like. otherwise, not exactly <19> yes - it involves using the syntax for in-line documentation -- <19> POD, yeah, that's what I was trying to say <18> what is POD? <20> plain old documentation <20> perldoc perlpod <21> Type 'perldoc perlpod' in your shell or go to http://perldoc.perl.org/perlpod.html <19> start a line with an equal sign and a word, then end with equal sign and "cut" - no spaces in either case <19> =for comment on blah <19> blah blah <19> =cut <18> cool...thanks guys <19> ps crack is not the preferred state of mind for effective programming <22> Real quicl question. How do I get non-parsed headers support on my webserver ? <22> This is on a linux computer <22> gentoo + non-parsed headers <2> Um. <2> Yes! <14> What the hell are non-parsed headers? <0> Something from like 10 years ago <2> Headers! That haven't been parsed! <22> Hehehe.. Yes Im trying to run the cgi proxy on my server, but I need non-parsed headers support <0> revdiablo: By default apache parses cgi header output <9> Raistlfiren: nph scripts are ugly stupid awful hacks, but you can use them with apache by prefixing the filename with nph- <9> or use mod_asis: http://httpd.apache.org/docs-2.0/mod/mod_asis.html <2> DING DING DING, Thank you for comming to #perl with your $apache question! <9> he didn't say he was using apache, though <2> Where $apache is true for all values of webserver. <9> you never know with gentoo users <22> Yes im using apache <2> I use khttpd in a production environment! <0> ew73: YOU SICK PIG. <2> Pigs have like 30-minute long orgasms. <0> I've heard rumours of this. <23> your ideas intrigue and astound me <2> I don't think I care for that. <9> boars or sows, ew73? <2> jpeg: I have no idea. <9> well that won't do. <24> http://www.RnB-Tunes.dl.am << new RnB, Hip Hop, Dancehall Tracks!!! free Download... CHECK IT!!!! <25> am i the only one here who writes down consecutive numbers with the .. notation like in perl? <0> Sigh. <23> simcop2387: you should ... ! <25> bpalmer: i do it all the time <2> Ah, all praise the internet. <25> perlbot .a <25> perlbot .am <7> .am is Armenia <25> hmm <2> On the Zoophillia forum, I find that the average boar orgasm is 10 - 30 minutes, and comes in Parts, with teh last part being a "plug". <23> I realize I don't even know where armenia is :( <2> (they also suggest that sows make good "zoos") <22> jpeg, So that module will allow me to do it ? <25> ew73: either say that to GumbyBRAIN or its just plain sick <9> Raistlfiren: so they say. <2> GumbyBRAIN: On the Zoophillia forum, I find that the average boar orgasm is 10 - 30 minutes, and comes in Parts, with teh last part being a "plug". <26> And on the forum. <9> GumbyBRAIN: plug ew73. <26> Ew73 is a bug. <2> :(
Return to
#perl or Go to some related
logs:
g++ disable warning #qemu freenode /vhost do you have a license for your minkiy? fedora desktop sharing config :0 konverter fc5 linux-chan ubuntu wlan0 does not exist gentoo playboy proxypass invalid governor powersave
|
|