Perl 6 - the future is here, just unevenly distributed

IRC log for #askriba, 2017-07-05

| Channels | #askriba index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
16:16 frew ribasushi: do you care to review some system code?  Not yet tested
16:16 ribasushi frew: in about an hour: sure!
16:17 frew I'll share it and you can do what you will
16:17 frew ribasushi: https://gist.github.com/frioux/8c42dc6e9fc6f43985fa4762c7333673
17:18 * ribasushi reads...
17:26 ribasushi frew: the only odd thing I see is that you are ignoring the $? after wait()
17:26 ribasushi other than that it seems legit-ish ( too little context )
17:27 frew I Can explain if you want
17:27 frew but it's general enough that you *almost* don't need any context
17:27 frew have you watched my talk yet?
17:27 ribasushi sure - I mean I am confused why you asked to have it looked over
17:27 ribasushi sorry didn't have a chance yet :/
17:27 frew lol no need to apologize
17:27 frew just that that would explain th9is
17:28 frew I don't do enough system programming to feel confident enough, and the missing $? is exactly the kind of thing I'm asking about
17:29 frew ribasushi: reasonable?     warn "wait: $?\n" if $? && $? != -1;
17:30 ribasushi it's never -1 after a wait ( or iirc never -1 to start with )
17:30 ribasushi also I'd unpack it ( ...>> 8, ... & 127 ) otherwise you'll be cursing "what is 52322"
17:31 ribasushi frew: also it is fork-bomb-prone if get_read_follower_list() returns too many things
17:32 frew can you link to a reference re $?
17:33 frew also good call re forkbomb; I can be sure that if it returns more than 16 things something is wrong
17:33 ribasushi https://metacpan.org/pod/distribution/perl/pod/perlvar.pod#$?
17:33 ribasushi 1st paragraph
17:34 frew oh
17:34 frew I dind't know it was the same as system
17:34 frew duh
17:34 frew I know this.
17:34 frew this is unix
17:34 frew </trex>
17:34 frew (presuambly becauase systme just calls this)
17:34 frew sorry / thanks
17:34 ribasushi also https://github.com/dbsrgits/dbix-class/blob/master/maint/getstatus#L22-L24
17:34 frew yeah I recall
17:35 ribasushi note further down regarding END - there it is *just* the 8-bit number
17:35 ribasushi maybe this is what is confusing you ( it is silly )
18:53 frew nah I'm not confused; I just thought $? was like $! in that it can be different htings in different contexts
18:53 frew but I guess $? is just from wait

| Channels | #askriba index | Today | | Search | Google Search | Plain-Text | summary