»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:08 kyan joined, thou left 00:09 thou joined, cdg joined 00:13 cdg left 00:18 mcmillhj joined
thou Probably a FAQ but I can't seem to find the answer to this: is it possible to stream results of MyGrammar.parse() asynchronously as a Seq or something? So I can, say, `for gather MyGrammar.parsefile($*IN, …) { ... }`? Or is making repeated .subparse() calls the only way to do this? gist.github.com/softmoth/99ec805b2...904b562bed 00:19
00:23 mcmillhj left, Cabanossi left
AlexDaniel thou: well, yeah, .parse can't do it because it can fail at the end of the input. So it simply cannot give you a meaningful intermediate result 00:25
thou: you can either use subparse, or maybe you can also try Actions
thou: but subparse is probably what you need
00:26 Cabanossi joined
AlexDaniel oh yeah, you already know about actions 00:27
00:31 R0b0t1_ left 00:33 R0b0t1_ joined 00:34 mcmillhj joined, Xal joined 00:36 ryn1x joined, headcase left 00:38 headcase joined, mcmillhj left 00:42 headcase left
thou Yeah, OK. Thanks. 00:47
00:48 headcase joined 00:49 Herby__ left 00:50 mcmillhj joined 00:54 mcmillhj left 00:56 Cabanossi left, Cabanossi joined 00:57 headcase left 00:59 headcase joined 01:00 ryn1x left 01:03 skids left 01:05 mcmillhj joined 01:08 headcase left, headcase_ joined 01:11 mcmillhj left 01:12 piojo joined 01:22 ryn1x joined 01:24 piojo left 01:25 Cabanossi left 01:26 Cabanossi joined, ryn1x left 01:37 mcmillhj joined, wamba joined 01:41 mcmillhj left 01:43 wamba left 01:45 ilbot3 left 01:49 headcase_ left 01:50 ryn1x joined 01:51 headcase joined 01:55 ilbot3 joined, ChanServ sets mode: +v ilbot3, Cabanossi left 01:56 kurahaupo_ joined, wamba joined, headcase left, Cabanossi joined 01:58 ryn1x left, kurahaupo left 01:59 llfourn joined, darkmorph left 02:09 headcase joined 02:12 raiph joined 02:14 skids joined 02:28 epony left 02:34 cdg joined 02:37 headcase left 02:39 cdg left 02:49 noganex_ joined, kyan left 02:50 headcase joined 02:52 noganex left 02:54 headcase left 02:55 headcase joined 02:59 headcase left 03:02 Ven`` joined 03:04 headcase joined 03:06 headcase_ joined 03:07 eliasr left 03:09 headcase left, ryn1x joined 03:15 zakharyas joined 03:23 Cabanossi left 03:24 ryn1x left 03:25 Cabanossi joined 03:27 headcase_ left, headcase joined 03:30 headcase_ joined 03:32 headcase left 03:34 headcase_ left 03:36 headcase joined 03:40 Ven`` left 03:44 jeek joined 03:48 zakharyas left 04:04 BenGoldberg left 04:05 thou left 04:06 thou joined 04:07 thou left, thou joined 04:08 headcase left 04:09 headcase joined 04:10 Cabanossi left, thou left 04:11 Cabanossi joined, thou joined 04:12 thou left
moritz good morning 04:23
yoleaux 28 Sep 2017 22:24Z <Zoffix> moritz: reminder that you're listed as steakholder for github.com/perl6/6.d-prep/blob/mas...ls-imply-d
04:23 grondilu joined
grondilu m: module A { sub f is export { say "ok" } }; module B { import A; sub EXPORT { A::EXPORT() } }; import B; f; 04:23
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
f used at line 1
moritz can we please go back to calling our language #perl6, pretty please, until we've reached a consensus on what to name it?
grondilu how do I re-export?
04:23 headcase left
moritz am I supposed to explain to people that Perl 6, we we (or some of us) called "Rakudo" for some time, now uses #6lang as a twitter hashtag, but until we decide yet something else? 04:24
it's a freaking PR disaster right now
04:25 bisectable6 left, khw left 04:29 ryn1x joined
geekosaur grondilu, I think you have to do more work than that, there's a discussion somewhere in the docs about the namespaces involved 04:29
and iirc much of the intended machinery for automating that kind of thing doesn't exist or doesn't work yet
04:30 headcase joined
geekosaur docs.perl6.org/language/modules#in...sub_EXPORT but it's the sections above you'll likely need to work around it 04:31
04:34 ryn1x left, Mrofnet joined 04:38 Morfent left 04:40 wamba left 04:48 aborazmeh joined, aborazmeh left, aborazmeh joined
TEttinger moritz: you didn't hear? 6lang is leetspeak for blang, which is what all the 90s kids are calling a new synthetic drug that induces heavy nostalgia. it's a mix of buzzfeed and slang 04:51
04:52 committable6 left 04:54 kerframil left 04:55 benchable6 left, squashable6 left, coverable6 left, bloatable6 left, evalable6 left, releasable6 left, statisfiable6 left, quotable6 left, nativecallable6 left, greppable6 left 04:58 skids left, nadim joined 05:00 thou joined
AlexDaniel the real disaster is when somebody asks me what language do I use, I answer “perl 6”, and they say “ah, perl…” 05:01
thou m: grammar G { regex TOP { \d } }; my $str = '123'; my $g = G.new; for ^3 { $g.subparse($str, :c).say }
camelia 「1」
「1」
「1」
AlexDaniel so people are actively against different names and are calling for a consensus. Do I have any other choice than going with something I can use today? 05:02
thou Is this a known issue? Or am I calling it wrong? :continue() adverb not working with .parse / .subparse 05:03
05:03 Todd joined 05:04 headcase left
thou Trying to avoid this: $str .= substr: $/.pos; # Remove previously matched portion 05:04
05:05 headcase joined
Todd Hi. I am trying to come up with a non system call that will tell me if a file exists. So far I have `perl6 -e 'my $x="eraseme.txt".IO.f;say $x'` which will give me a "True" if it exists, but it will crash and wag the finger at me if not. Is there any method to just get a "False" back? 05:05
AlexDaniel thou: I think it should be :pos($/.to) 05:06
weabot Todd "file".IO.e
AlexDaniel m: grammar G { regex TOP { \d } }; my $str = ‘123’; my $g = G.new; for ^3 { $g.subparse($str, :pos($/.to // 0)).say }
camelia 「1」
「2」
「3」
AlexDaniel thou: like this ↑. Where did you find :c named arg?
thou AlexDaniel, very cool. Docs are wrong apparently. 05:07
geekosaur shouldn't a Filire treated as a Bool produce False instead of throwing?
Todd Perfect! Thank you!
geekosaur er, Failure...
TEttinger AlexDaniel: camelian? the logo is camelia perched on a chameleon made of carnelian?
geekosaur oh, apparently you have to explicitly .Bool it? that seems kinda unfortunate 05:08
05:08 Cabanossi left
thou AlexDaniel, p6doc -f Grammar.parse 05:08
05:09 ChoHag left
thou (And my memory from a couple years back. :-) 05:09
05:09 abraxxa joined 05:10 Cabanossi joined
AlexDaniel thou: I filed an issue here: github.com/perl6/doc/issues/1583 05:11
thou: feel free to edit it or to comment on it… or whatever you feel appropriate
thou AlexDaniel, cheers 05:12
AlexDaniel geekosaur: what do you mean by “treated as a Bool”? 05:13
05:13 abraxxa left
geekosaur hm, I guess that is ambiguous in the context I used it... 05:14
AlexDaniel geekosaur: for example, prefix ? calls Bool and it works, $f ?? … !! … works too
geekosaur in some sense, I am expecting .f to produce a Bool
05:14 troys_ is now known as troys
geekosaur but I have to be explicit here in certain cases (like .say) or it throws 05:14
AlexDaniel but that's a method call on a Failure! :)
or is it 05:15
geekosaur I am expecting a Bool
if it is a Failure, I expect it to coerce to Bool
the point of .f is explciitly testing, that is why it is docced as Bool
AlexDaniel hmm
geekosaur this is pedantically right but is also a bomb laid at a conscientious programmer who tries to test before using and then gets burned by a Bool suddenly blowing up as an exception. This is LTA 05:16
05:16 ChoHag joined
geekosaur that said, having a Bool return type silently act like a coercer might also be LTA... 05:17
DWIM, WAT 05:18
and on the third hand there is the revelation that .e *does* behave like this 05:19
which is, at best, inconsistent
AlexDaniel sounds like some material for a ticket 05:20
05:23 headcase left
Todd the "e' comes back True for bth fiels an direcories. 05:23
This comes back for only files: $ perl6 -e 'my $x="p6-OS-Clipboard".IO.f.Bool;say $x' False [tony@rn4 linuxutil]$ perl6 -e 'my $x="eraseme.txt".IO.f.Bool;say $x' True
maybe the "e" option has a booboo in it too? 05:24
05:25 xtreak joined 05:26 headcase joined, aborazmeh left 05:27 araujo left, araujo joined, araujo left, araujo joined
geekosaur we were just discussing that 05:27
theres an argument that could be made that it makes sense insofar as -e is a different operation internally. but that argument doesn't work unless that operation is exposed, whereas tests .e .f etc. do not expose it 05:28
(perl 5 half-exposes it with the magic _ parameter, but that's an even worse solution imo)
I will probably write it up as a bug, with additional discussion of the various possibilities 05:29
meanwhile, if you saw my latest, prefix ? operator acts like the .Bool but is shorter 05:30
m: say ?"blurfl".IO.f
camelia False
geekosaur we also discussed the autocoerce thing that I had expected, which is also a bit more complex than it looks at first blush :/ 05:31
(basically, amking a Bool return type autocoerce is probably the right thing here, but not necessarily always. ALthough if there's some clever way to specify it as a coercion type in a signature, that might also work)
05:35 nadim left 05:51 ryn1x joined 05:52 pilne left
Todd Any chance of yo guys checking if I capitolized "If" with this strnage error message? 05:53
SmtpIni
perl6 -c CheckRaid.pl6 ===SORRY!=== Error while compiling /home/linuxutil/CheckRaid.pl6 Unexpected block in infix position (missing statement control word before the expression?) at /home/linuxutil/CheckRaid.pl6:61 ------> If not "$SmtpIniFileName".IO.f.Bool⏏ { CreateSmtpIni() }; expecting any of: infix infix stopper postfix
05:55 domidumont joined, ryn1x left
Todd The compiler -c option missed teh single =, but the run time caught it. Any chance of making the -c catchi it too? 05:58
for %SmtpIni.kv -> $key, $value { if ( $key = "to" )
05:59 domidumont left 06:03 domidumont joined, ngaywood joined 06:07 thou left 06:08 thou joined
geekosaur suddenly feels like it's 2007 again 06:08
and of course it has to be the file tests...
(just realized what is bothering me about autocoercing Failure to Bool in all cases... and it reveals an edge case in the autocoercion in other circumstances as well) 06:09
06:09 domidumont left 06:10 domidumont joined
geekosaur anyway the edge case here: speaking in unix terms, ENOENT should be a Failure that autocoerces to Bool. What of EIO? Non-autocoercing Failure? Hard exception? It's kinda a different level of failure than 'file not found'. 06:14
geekosaur added that to his notes... which is why he didn't just go ahead and file the bug immediately
06:14 ryn1x joined
geekosaur still thinking through the edge cases and such 06:14
06:15 thou left
Todd I am stumped. What is "write bytes requires an object with REPR MVMOSHandle (got VMNull with REPR Null)"??? vpaste.net/KKpDY Line 52 is "else { $SmtpHandle.print( "$key=\n" ); }" 06:19
geekosaur that is an internal error 06:20
and I just got a different internal error while poking at it 06:21
06:21 ryn1x left
geekosaur pyanfar Z$ 6 'my $key; $*OUT.write: "$key=\n"' 06:21
Use of uninitialized value $key of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in block <unit> at -e line 1
Type check failed in binding to parameter '$buf'; expected Blob but got Str ("=\n")
in block <unit> at -e line 1
06:21 ChoHag_ joined
geekosaur the last part is the internal error; wtf is $buf? 06:21
06:22 ChoHag left
geekosaur anyway I think what happened is that it thinks the "=" is part of the variable expansion 06:22
and sure enough: 06:23
pyanfar Z$ 6 'my $key = "y"; $*OUT.write: "$key=\n"'
Type check failed in binding to parameter '$buf'; expected Blob but got Str ("y=\n")
in block <unit> at -e line 1
hm, no, more complex than that; I changed to brace and still get the error. write method is doing something screwy
and I missed that the Str now has the y in it... 06:24
06:24 headcase left
geekosaur so, anyway: not a problem with your code, someone broke the write method 06:24
huggable, rakudobug
huggable geekosaur, Report bugs by emailing to [email@hidden.address] See also: github.com/rakudo/rakudo/wiki/rt-introduction
Todd "$key\=\n" did not work; neither did `$key ~ "=\n"`
any work around? 06:25
ad an idea. Will check
geekosaur .print however seems to work for me. which suggests what is broken in your case is $SmtpHandle is a VMNull... but that should never happen, or at least never show up at perl 6 level 06:26
(VMNull is a moarvm internal thing that should never, ever leak out to rakudo) 06:27
Todd preassigning everything to a valiable did not work. how do I use .print? 06:28
06:28 abraxxa joined
geekosaur again, you need to doublecheck that $SmtpHandle is what you think it is 06:29
somehow it is making it into perl 6's guts as a moarvm undefined value 06:30
I would have expected it to be caught if it weren't an IO::Handle, so apparently something is wrong with the IO::Handle that is not being caught until far too late 06:31
Todd else { "$key=\n".$SmtpHandle.print } gives me a missing block.
06:33 eliv joined 06:34 eliv left, eliv joined 06:35 cdg joined 06:37 headcase joined, rindolf joined 06:39 cdg left
Todd How do I check $SmtpHandle? 06:42
This is weird as it only goofs up inside the for loop. 06:43
This even goofs up: $SmtpHandle.print( "key\n" ); All the rest is commented out 06:44
06:45 headcase left 06:46 headcase joined
Todd I will post on the mailing list. 06:48
06:51 troys left 06:54 espadrine left 06:55 lowbro joined, lowbro left, lowbro joined
geekosaur that thing you tried earlier is extremely confued. you still think foo.bar and bar(foo) are exactly the same thing, right? 06:58
they are only exactly the same thing in javascript and lua 06:59
they are *almost* the same thing in perl 5.
07:00 Ven joined
Todd another much simpler question. How do I get the first character in a string? This does not work: $ perl6 -e 'my $x="xabc"; say $x[0];' 07:00
geekosaur they are different in perl 6, and that is why you had the problem before on the mailing list where I pointed out that you needed to use a colon instead of a comma
this is not just because we felt like it. they are different things
07:00 Ven is now known as Guest55182
geekosaur substr 07:00
a string is not simply a list of characters 07:01
Todd $ perl6 -e 'my $x="xabc"; say substr $x, 0..0;'
07:01 setty1 joined, ryn1x joined
Todd Works. Thank you! 07:01
07:01 wamba joined 07:02 knobo joined 07:06 ryn1x left, Guest55182 left 07:13 Mrofnet left, xtreak_ joined 07:14 xtreak left 07:18 robertle left, Todd left 07:21 headcase left 07:23 Cabanossi left 07:25 Cabanossi joined 07:35 SHODAN left 07:39 ShalokShalom joined 07:41 Ven`` joined 07:44 rgrau joined 07:46 headcase joined 07:50 headcase left 07:54 nativecallable6 joined, ChanServ sets mode: +v nativecallable6, quotable6 joined, ChanServ sets mode: +v quotable6, greppable6 joined, ChanServ sets mode: +v greppable6, releasable6 joined, coverable6 joined, benchable6 joined, unicodable6 joined, ChanServ sets mode: +v unicodable6, evalable6 joined, ChanServ sets mode: +v evalable6, ChanServ sets mode: +v benchable6, bisectable6 joined, committable6 joined, ChanServ sets mode: +v committable6, squashable6 joined, bloatable6 joined, ChanServ sets mode: +v bloatable6, statisfiable6 joined 07:59 headcase joined 08:03 headcase left 08:05 dakkar joined 08:08 parv joined 08:11 Ven`` left 08:12 sproctor joined 08:17 headcase joined 08:20 robertle joined 08:24 headcase left 08:25 Ven joined 08:26 Ven is now known as Guest7163 08:27 darutoko joined, japhdc joined 08:29 headcase joined 08:30 xtreak_ left
japhdc I am trying to use whenever IO::Socket::Async.listen... The -> $conn { whenever $conn { part works fine... But can I continue executing other parts of my script and effectively leave the listener in the background? 08:32
08:35 headcase left 08:37 japhdc left 08:42 araujo left 08:55 headcase joined 09:00 headcase left 09:02 Guest7163 left 09:04 Ven joined 09:05 Ven is now known as Guest95458 09:06 headcase joined 09:09 Aaronepower left 09:10 headcase left 09:11 araujo joined, araujo left, araujo joined 09:15 xtreak joined 09:17 headcase joined 09:18 setty1 left 09:20 Aaronepower joined 09:25 Guest95458 left 09:26 headcase left 09:27 headcase joined 09:32 headcase left 09:36 Zoffix joined, |oLa| left 09:37 |oLa| joined
Zoffix moritz: TBH, I'm with AlexDaniel on this. You're asking us to go back to being the butt end of jokes until a concensus is reached on something that was claimed to be unalterable and unconsensuable 2 years ago. If two people calling the language something else to get a feel for an alternate name is causing a "PR nightmare" then we got bigger problems than naming. 09:42
09:43 preaction left, preaction joined
Zoffix japhdc: yeah, you can. 09:44
09:44 Ven_ joined 09:45 Ven_ left
moritz Zoffix: ok, PR nightmare is too strongly worded, but it does sow confusion 09:46
Zoffix m: my $x="xabc"; say $x.comb.head
camelia x
stmuk I think things are confusing enough with perl 6 v rakudo v rakudo star without throwing a new name into the muddle
moritz Zoffix: also, I'm picking up mixed messages from you. I thought you wrote that others convinced you that we should *add* something to the "Perl 6" name, yet you don't seem to practice that either with "Rakudo" or with "6lang" 09:47
seems like you offer a compromise without actually offering a compromise 09:48
Zoffix Sure, it does, but no one's forcing you to use it. As I've said, so far I've seen just one other person use the name. How much confusion does that cause exactly? Sounds like observation bias.
moritz well, also depends on the visibility 09:49
if we make fanfare around the squashaton for example, and that uses 6lang or rakudo as the language name, that spreads it
I don't really know what to do, except ignore everything that isn't at least "Perl 6 $something" branded 09:50
Zoffix moritz: I don't recall writing that someone convinced me of anything. I did state that enough people opposed *an entire name change* that we won't do it, but extending the official name will let people who don't want to sow confusion with "perl" in the name to use just the extension on its own and those who feel "perl" brings something to the table can still use it. The conf video suggested instead of an 09:52
extension, a *second name* can be invented and users will use whichever of the two the find more palatable
09:52 gregf_ left
DrForr The "second name" is probably what I'd use for marketing courses, because as much as I truly hate to say it, emphasizing a break from the old Perl style does help attendance and encourages people with the "new language" vibe. 09:54
Zoffix If there's anything I'm convinced about is that "perl" in the name is a bad idea. The amount of people that were just following along with the name but after the first blog came out they came forward and shared their experiences and how they always have to start with preamble that it's not "perl" but a different language and people still crack jokes even after that.
El_Che The cyclical new discussions make me think that the older name discussions weren't really resolved and that any name with "Perl 6" in it isn't really a solution or a rebranding. I would say keep "Perl 6" and accept the reputation breakage for Perl 5 and 6, or pick something new. All the "compromises" sound way worse to me
stmuk I've no problem with increased use of "rakudo" but "6lang" I don't like 09:55
robertle the people that react negative to the word "perl" do that for a (perceived, personal) reason. I guess that reason is still valid with perl 6, whatever it is called. so renaming it doesn't help, and perhaps the "Problem" does not need solving? it's just horses for courses... 09:58
El_Che Also, all the lang-implementation thing sound like an early optimazation about hypothetical implementations (if this would block the Rakudo-name use)
robertle: the problem is the 6, not perl 09:59
Zoffix El_Che: There won't be a concensus. I'm looking at an 8-page bikeshed of just about whether .flatmap is confusing. And language name is something that's a lot easier to have an opinion on
El_Che Zoffix: I am not optimistic eather
Zoffix: hence, option 1 10:00
Zoffix robertle: the main negatives I hear: (a) it's outdated (b) it's got too many special cases. I see neither as true in 6lang
El_Che: that's why the name never changed in the past. People just give up without solving the problem.
El_Che well, I don't believe the boat has sailed has liz puts it 10:01
Zoffix El_Che: and now AlexDaniel and I said, screw that. But people are telling us: give up
stmuk ignore the naysayers on reddit
El_Che yes, perl6 exists from 2000, but for most people it's a new language
Zoffix stmuk: what about naysayers on Twitter?
El_Che so, the breakage, imho, would be in the head of the people on this channel (or probably #perl6-dev)
and not on the outside world 10:02
Zoffix stmuk: what about a teacher who said they don't want to teach 6lang because they don't want their students to be subjected to ridicule? Ignore too?
teatime stmuk: I invariably get "huhhaw, *perl*" any time I mention perl5 or perl6. has been that way forever. no matter where I am. it makes me sad, it's stupid, but it's true.
stmuk Zoffix: that sounds like nonsense to me .. no sensible teacher judges a book by its cover 10:03
10:03 ryn1x joined
Zoffix stmuk: what book? 10:03
El_Che stmuk: you should be surprised (talking about university level)
stmuk Zoffix: I mean the content of a language is more important than its name
Zoffix stmuk: the teacher in this case knows and loves the language, but they know their students will be made fun of for learning "perl" and they told me the don't want to have that happen 10:04
stmuk El_Che: probably not since many teachers are far from sensible
El_Che stmuk: of course, for someone that knows the language
stmuk: someone that left perl in 2005 won't look "back" to Perl 6
Zoffix: there are indeed different problems based on expectation. 10:05
1. People don't look at Perl 6 because of the unjust bad perl 5 rep
stmuk Zoffix: students often complain about languages they are taught. on my course many asked for C++ rather than the functional language Miranda they were taught. Any sensible teacher would ignore that.
El_Che 2. People look at Perl 6 expecting a new Perl 5 and are disappointed (speed, libs) 10:06
3. People that don't care about Perl 5 at all (no negative bias), but do not look at Perl 6 because they don't see it as new
(or modern)
DrForr I keep forgetting to mention Inline::Perl5, but even when I do, it's like "So perl 6 can't exist without perl 5? Why should I use Perl 6 then?" Which is unfair, but if you're of a conservative bent it's an argument. 10:07
El_Che 4. Pissed of Perl 5 programmers that don't like the 6 making the 5 obsolete
(that's the case I can think of right now)
stmuk "perl" in the name is a double edged sword. Many will laugh (as they laugh about PHP, Rust whatever) but others will have happy memories of perl and be more positive 10:08
El_Che DrForr: on French they use the term "usine à gaz" (gasworks company)
10:08 jcallen_ left
El_Che You don't want your code to depend on 2 runtimes IRL 10:08
10:08 jcallen joined, llfourn left
El_Che stmuk: certainly! 10:08
stmuk: the nostalgia is useful, but we also need the new car smell 10:09
different users, different expetactions
stmuk rakudo is the new car smell
Zoffix stmuk: I feel I'm not explaining it right. It's not students complaining. It's not the teacher dismissing the language. It's the teacher not wishing to teach the language because their students will be told they're learning a dead, unwanted language, despite them learning a new language with a bad name
El_Che stmuk: if it was the name of lang/implementation, sure
10:09 Cabanossi left
stmuk Zoffix: I understand exactly that you mean. 10:10
Zoffix "No true Scottsman would do X"
10:11 Cabanossi joined
Zoffix So ignore it. No true Scottsman would use reddit. So ignore it. No true Scottsman would claim Perl is dead. So ignore it. So ignore everyone who is confused about the name :/ 10:11
stmuk I think this whole renaming debate (which has been going on for years) is just a total dead end
El_Che so in short, I value (and like) Zoffix's naming efforts, but his hands are tied by the "compromise" making the benefit of the bother small
DrForr El_Che: I agree, the thing is that all of CPAN didn't spring fully-formed from the head of Larry, and people these days seem to expect a fully-formed ecosysten out of the box. Now, truty be told the people in this channel are the ones developing that ecosyste, and there aren't as many people as the perl5 crew working on it.
stmuk if you want a new name use "rakudo" don't invent yet another
El_Che DrForr: yes. Hammer + nail + head :) 10:12
DrForr: the thing is that a random dev would expect CPAN when he hears "Perl 6"
Zoffix stmuk: you can't ignore everything and everyone. There are people opposed to "rakudo" because it blurs the distinction between language and implementation.,
DrForr Okay, here's a wack idea. 10:13
El_Che DrForr: but that wouldn't be the case for 6lang, Rakudo, or a random new lang
stmuk Zoffix: there is only one implementation now
Zoffix DrForr: let's hear it :)
stmuk: no, there are two. There's also fanlang
El_Che DrForr: eg. a lot of golang modules are crap
but noone complains because it's "new"
stmuk Zoffix: there is only one open source implementation now
Zoffix heh
stmuk: and if I'm to give you a link to a third implementation right now, will you say "there's only one working open source implentation right now"? :P 10:14
10:14 headcase joined
El_Che moritz: could run a 2nd edition of his book with some search and replace :) 10:14
Zoffix stmuk: I'm also not bluffing :) Though it'd take me a while to find the link 10:15
stmuk Zoffix: does it pass roast :P
10:15 Exodist left
Zoffix probably not 10:16
stmuk El_Che: he could sell two books. double the profit!
El_Che :)
DrForr Shim zef so that when a requested perl6 module isn't available it reports "falling back to perl 5" (with language appropriate to not piss off people that are pissed that 6 "took over" perl5) and either wraps or adds something to the doco to indicate :from<Perl5> if they actually have Inline::Perl5 on their system. Gives us more modules to work with in the ecosystem, but would be nightmarish for migration... Maybe there's the germ of an idea in th 10:17
Zoffix DrForr: wouldn't a person find the module first before installing it by typing arbitrary module names with zef? 10:18
El_Che DrForr: twitter needs to upgrade your irc char limit, it seems :)
robertle Zoffix: sorry, was away from the keyboard for a moment. My experience is that neitehr the outdated nor the "6" is the problem, but that perl (both 5 and 6) are "big" languages, and that there are many different ways to achieve the same goal. compare that to java or python, and you can see why some people have problems with perl: it's just incredibly hard to train people up to a given and common standard.
if you are running a large development team with some churn and people who do this for a living rather than for love, then this is a concern... and I think that is why some people react badly when they hear "perl". renaming it does not change that at all
Zoffix Yeah, got cut off at "gem of an idea in th"
10:19 Exodist joined
DrForr I haven't tried zef beyond installing the perl6 modules I need; if this behavior is already there... 10:19
robertle if that is the problem however, then there is no solution...
arguably that isn't even a problem
DrForr "Maybe there's the germ of an idea somewhere." is all I really said.
El_Che DrForr: Inline Perl and similar solutions are great in a get-shit-done setup. However, if the hat you wear is not one as dev but admin or architect, less great 10:20
Zoffix robertle: sure, but that's not the only negative and a unique name does address other problems. Not to mention it also addresses the conflict with Perl 5 community.
El_Che robertle: that's not a perl thing, but a small -vs- big lang discussion 10:21
for some things golang is fantastic
for other stuff you're creating the same function again and again to do something to a list
it all depends on what you do and what you want to minimize
DrForr I know. I'm looking at it as more of a bridge until we can actually get proper 6 modules in the ecosystem. At least the modules are marked with a :from<Perl5> so they'll be easier to spot when migrating, but OTOH the 5 modules are pretty stable so there's not as much concern about upgrading those. 10:22
10:23 headcase left
El_Che My point is that the brigde will collapse and burn at the same time and give your perl 6 project a terrible name 10:23
Zoffix DrForr: IMO that bridge will hinder getting proper 6 modules in ecosystem. If someone's lacking a module right now, they're told to use Perl's module via Inline::Perl5. If they didn't have that option, the pain would be more severe to make more people write 6 modules
El_Che best case scenario is that everything work as expected, but it take a collocal effort to setup and maintain
s/collocal/collosal/ 10:24
Zoffix Well, not that bridge, but rather the fact that we have options other than having modules in ecosystem is what stunts it
Well this was fun :) 10:25
DrForr Then the issue in my mind resolves to having time and people to implement what needs to be done from 5 in 6 and do it the right way.
10:25 noobie_ joined
Zoffix crawls back into #perl6-dev hole to hack on 6.d o/ 10:25
10:25 Zoffix left
DrForr And I'm late for lunch. 10:25
El_Che He left before I told him I liked his dronkenChicken nick 10:26
and that it would be a *great* lang name
(I would certainly buy the t-shirt)
DrForr Incidentally I'm starting to build out the pure-perl6 parser thus making Perl6::Parser live up to its name.
El_Che nice 10:27
El_Che lunch
stmuk we should give it a unicode name that will go down well with the people on twitter and reddit
(warning not serious suggestion)
DrForr And as a consequence I need a good grammar debugger, so I intend to take thorough notes. I've got an idea on a split-horizon debugger setup for later.
lizmat
.oO( TPLFKAP6 )
10:32
10:33 margeas joined, Ven joined 10:34 Ven is now known as Guest2731 10:35 cdg joined
stmuk "Symbol" 10:35
10:37 ryn1x left 10:39 Cabanossi left 10:40 cdg left, Cabanossi joined, Guest2731 left 10:48 xtreak left 10:50 eliasr joined 10:51 xtreak joined
Xliff OK. Why would I get "Cannot find method 'sink': no method cache and no .^find_method" when doing the foillowing: try { CATCH { when X::HTTP::Response { .resume; # Error occurs here; }; }; ... }; 10:55
lizmat++ says this happens when nqp calls are made in sink context, but why would that happen on .resume? 10:56
Is there something missing from the Exception declaration?
lizmat I assume it's subclassed from Exception ? 10:58
10:58 headcase joined
Xliff Yep. Checked that. 10:59
11:00 eliv7 joined
lizmat could you do something like "say .resume.^name" 11:01
Xliff Sure
11:01 ChoHag_ left
lizmat the resume is not supposed to return: but if it does, what is it then? 11:01
11:02 ChoHag joined, eliv left 11:03 eliv joined, eliv left
Xliff lizmat: Looks like .resume doesn't exist in the context at all. 11:04
11:04 eliv7 left
Xliff Any kind of access to it drops the error. 11:04
Including "say .resume.^name"
11:04 eliv joined
lizmat weird 11:04
Xliff !_!
11:06 lizmat left, lizmat joined 11:07 eliv7 joined, headcase left
Xliff lizmat: If you want context, you can find the actual code, here: github.com/Xliff/p6-webservice-eve...SO.pm6#L99 11:08
lizmat Xliff: why try *and* a CATCH ? 11:09
Xliff That's the way the docs had it written when I first wrote that code. What would you suggest to replace it?
(Said code was originally written over a year ago)
11:10 eliv left, eliv joined 11:12 eliv7 left, headcase joined 11:13 epony joined
Xliff lizmat: Error occurs when try is removed. 11:16
11:17 headcase left
lizmat sorry, out of ideas :-( 11:20
perhaps rakudobug it
preferably with a golfed example :-)
Xliff I know. Trying to find one is the problem.
I will work on it. Thanks for the help.
11:22 headcase joined 11:26 headcase left 11:31 parv left 11:37 setty1 joined 11:52 evalable6 left, evalable6 joined 12:05 xtreak left, xtreak joined 12:08 xtreak_ joined, xtreak left 12:12 headcase joined 12:16 japhdc joined, headcase left 12:17 ChoHag_ joined, ChoHag left 12:19 buggable left 12:20 buggable joined, ChanServ sets mode: +v buggable 12:24 Cabanossi left 12:25 ChoHag_ left, Aaronepower left, astj left, Cabanossi joined 12:27 astj joined, buggable left, buggable joined, ChanServ sets mode: +v buggable 12:29 virtualsue joined, headcase joined 12:30 xtreak_ left 12:31 raiph left
Geth ecosystem/robertlemmen-patch-1: b013b2f346 | (Robert Lemmen)++ (committed using GitHub Web editor) | META.list
Add CucumisSextus to ecosystem

CucumisSextus is a Cucumber-like BDD test framework
see github.com/robertlemmen/perl6-cucumis-sextus
12:31
12:34 headcase left 12:35 ryn1x joined 12:40 japhdc left, headcase joined 12:44 ShalokShalom_ joined 12:47 ShalokShalom left 12:48 mcmillhj joined 12:52 headcase left 12:59 cognominal left 13:01 cdg joined, headcase joined 13:03 khw joined 13:07 ryn1x left 13:08 headcase left 13:11 AnotherNick joined, cdg_ joined 13:13 astj left 13:15 cdg left
Geth ecosystem: robertlemmen++ created pull request #368:
Add CucumisSextus to ecosystem
13:19
[Coke] moritz++
Xliff Well, fixed my problem, but it was more a workaround. 13:21
13:21 cognominal joined
Xliff Instead of "when X::HTTP::Response { .resume }" I can do "when X::HTTP::Response { $response = .response }", which is what I really want. 13:22
jdv79 lizmat: should i bug that pos attr thing? 13:26
13:26 lucasb joined 13:30 headcase joined 13:32 Ven joined, Ven is now known as Guest65998 13:34 headcase left 13:39 Cabanossi left 13:40 Guest65998 left, Cabanossi joined 13:43 astj joined, lucasb left 13:46 bdmatatu joined 13:48 headcase joined 13:49 astj left 13:50 skids joined 13:51 mcmillhj left 13:53 ShalokShalom_ is now known as ShalokShalom, mcmillhj joined, epony left 13:54 Ven_ joined 13:57 headcase left 13:59 headcase joined 14:02 ChoHag joined 14:03 headcase_ joined 14:04 headcase left, ryn1x joined 14:05 abraxxa left 14:08 headcase_ left 14:09 ryn1x left
Geth ecosystem: b013b2f346 | (Robert Lemmen)++ (committed using GitHub Web editor) | META.list
Add CucumisSextus to ecosystem

CucumisSextus is a Cucumber-like BDD test framework
see github.com/robertlemmen/perl6-cucumis-sextus
14:10
ecosystem: e0e61cd9c1 | (Robert Lemmen)++ (committed using GitHub Web editor) | META.list
Merge pull request #368 from perl6/robertlemmen-patch-1

Add CucumisSextus to ecosystem
14:16 wamba left
timotimo robertle: the readme contains the background scenarios section twice and the tables section is missing some `` for preformatting 14:17
14:18 headcase joined
robertle timotimo: thanks! 14:20
timotimo np :) 14:22
14:23 headcase left 14:25 astj joined 14:30 astj left 14:31 ChoHag left 14:32 ChoHag joined 14:40 epony joined 14:43 yht joined 14:45 headcase joined 14:48 headcase_ joined
Xliff Whooo! 14:50
\o\
/o/
\o\
14:50 headcase left
Xliff fixed code and finally got API working. 14:50
14:53 Ven joined, Ven is now known as Guest32422, domidumont left 14:54 Ven_ left 15:07 andrzejku left 15:13 Guest32422 left 15:22 astj joined 15:27 kerframil joined, astj left 15:30 SHODAN joined 15:34 ryn1x joined 15:36 headcase_ left 15:37 lowbro left 15:40 ryn1x left 15:41 headcase joined
ugexe DrForr: yes that is the eventual idea... zef graph all dependencies, then hand off the appropriate parts of the graph to whatever external tool handles it (cpanm/apt-getwhatever for from:<Perl5>) 15:41
15:41 robertle left
jdv79 very nice! 15:42
jdv79 approves
15:47 domidumont joined 15:50 headcase_ joined, headcase left 15:53 domidumont1 joined 15:56 domidumont left 15:58 bdmatatu left 16:01 rgrau left 16:03 camelia left, Geth left 16:04 perlpilot left 16:05 noobie_ left 16:06 statisfiable6 left, releasable6 left, evalable6 left, jnthn left, nadim joined 16:07 jnthn joined 16:08 ilbelkyr left 16:09 ilbelkyr joined 16:10 sproctor left 16:13 epony left, mcmillhj left, Herby__ joined 16:14 camelia joined
Herby__ \o 16:14
16:15 ChanServ sets mode: +v camelia 16:16 ChoHag left, Khisanth left, evalable6 joined, camelia left 16:17 releasable6 joined, ChanServ sets mode: +v releasable6, statisfiable6 joined, ChoHag joined 16:20 obergeek joined, chakli joined
timotimo yo herb 16:20
16:24 mcmillhj joined 16:25 camelia joined 16:26 ChanServ sets mode: +v camelia 16:27 robertle joined 16:29 mcmillhj left, Khisanth joined 16:30 dakkar left 16:36 camelia left 16:39 chakli left 16:41 andrzejku joined 16:42 mcmillhj joined 16:43 camelia joined 16:44 troys joined, ChanServ sets mode: +v camelia 16:47 piojo joined 16:49 Rawriful joined 16:52 lostinfog joined 16:53 camelia left 16:59 camelia joined 17:00 ChanServ sets mode: +v camelia 17:01 Herby__ left 17:05 camelia left, mcmillhj left 17:10 camelia joined 17:11 ChanServ sets mode: +v camelia 17:12 piojo left, epony joined 17:13 mcmillhj joined 17:22 epony left, epony joined 17:23 astj joined 17:24 Cabanossi left 17:26 Cabanossi joined 17:28 astj left
jnthn Heads up for anyone using IO::Socket::Async::SSL: today I some landed fixes, one for it occasionally disordering messages (actually rooted in a bug in Supply.schedule-on in Rakudo; now using something else to avoid that) and another that could very occasionally cause deadlocks under load. Version bumped, uprading suggested. 17:29
17:34 avar left, avar joined 17:35 lostinfog left 17:36 ryn1x joined 17:37 Pilu joined 17:38 noganex_ left 17:39 noganex joined 17:44 headcase joined 17:47 kerframil left, headcase_ left 17:48 kerframil joined 17:49 kerframil left, kerframil joined 17:53 Cabanossi left 17:56 Cabanossi joined 18:10 ryn1x left 18:12 ryn1x joined 18:18 domidumont1 left 18:21 cdg joined
tony-o jnthn++ 18:23
18:23 |oLa| left 18:24 cdg_ left 18:25 cdg left 18:32 ryn1x left 18:34 Aaronepower joined 18:41 troys is now known as troys_, ryn1x joined 18:45 buggable left, buggable joined, ChanServ sets mode: +v buggable 18:47 darutoko left 18:50 headcase_ joined 18:52 buggable left, buggable joined, ChanServ sets mode: +v buggable, buggable left, buggable joined, ChanServ sets mode: +v buggable 18:53 buggable left, Cabanossi left, buggable joined, ChanServ sets mode: +v buggable, epony left 18:54 headcase left 18:55 Cabanossi joined, astj joined 18:58 ryn1x left, Morfent joined 18:59 ryn1x joined, ChoHag left 19:00 astj left 19:04 ryn1x left, epony joined 19:05 kerframil left 19:06 synopsebot6 joined, ChanServ sets mode: +v synopsebot6 19:08 domidumont joined 19:13 lichtkind joined, headcase_ left 19:14 domidumont left, headcase joined 19:16 headcase_ joined 19:17 andrzejku left 19:18 headcase left 19:19 lancew joined
lancew Hi all, anyone here able to invite people to the bailador slack? 19:21
19:23 Cabanossi left 19:25 Cabanossi joined 19:26 ChoHag joined, headcase joined, headcase_ left 19:29 headcase_ joined 19:30 andrzejku joined 19:32 headcase left 19:34 eliasr left 19:47 sverre_ joined, sverre_ is now known as skf 19:48 obergeek left, lancew left
geekosaur I think I have to just not respond to those list messages any more. I can't handle someone who can only handle things in complete isolation from each other, one tiny morsel at a time, no exceptions. 19:50
rindolf geekosaur: are you talking about Todd? 19:51
geekosaur And metaops are probably going to be completely opaque to them because you can't make sense of them with their components in complete isolation from each other
19:57 committable6 left 19:59 mr-fooba_ joined 20:02 mr-foobar left, itaipu joined 20:06 ChoHag left, lancew joined 20:08 domidumont joined, ChoHag joined 20:10 domidumont left 20:22 AnotherNick left 20:25 andrzejku left 20:29 HoboWithAShotgun joined
HoboWithAShotgun is there a way to find out which modules are currently installed? (in perl6). i mean i can't just look into the filesystem 20:36
with in perl6 i mean from within a perl6 program 20:37
20:38 lancew left
moritz I'm sure there's a zef command for that 20:39
zef list --installed
HoboWithAShotgun goes amd reads some source code 20:46
20:47 astj joined
geekosaur HoboWithAShotgun, if you insist on not using a tool like zef, you will have to learn about CompUnitRepos 20:51
and then you will discover that some details are per management tool, so you may *still* have to use e.g. zef
20:52 astj left, [particle]1 joined 20:53 [particle] left
geekosaur although for just this question the CUR APIs may well be enough 20:53
20:57 mcmillhj left
ugexe m: say $*REPO.repo-chain.map(*.?installed).map(*.Slip).grep(*.so).map(*.meta<name>); # for modules that are "installed". zef does some extra stuff to also list non-installed modules (anything from -Ifoo, or PERL6LIB=foo) 20:59
camelia (zef CSV::Parser Inline::Perl5 CORE)
21:00 ryn1x joined
HoboWithAShotgun apparently. i looked at zef which is a perl5 script which exec()s a perl6 script that calls CompUnit::RepositoryRegistry.run-script("zef", :dist-name<zef>, :$name, :$auth, :$ver); 21:01
timotimo HoboWithAShotgun: it's probably a perl5 script made by rakudobrew 21:02
ugexe those are wrappers installed by rakudo/CUR
yeah that too^
HoboWithAShotgun now how do i find the actual script without doing a full text search 21:03
looking at the repository at github i could
timotimo "rakudebrow which" is a thing, but that just finds the perl6 script for you
i.e. the one you're already looking at 21:04
21:05 ryn1x left
ugexe `zef locate bin/zef` BUT thats just another wrapper! the real code is in `zef locate Zef::CLI` 21:05
HoboWithAShotgun my problem is i want to create a factory for which i don't know the number of products beforehand. i want to count everything under a certain namespace to be a product
timotimo buggable: eco Pluggable 21:06
buggable timotimo, Pluggable 'Find plugin classes or modules': github.com/tony-o/perl6-pluggable
HoboWithAShotgun looks the right hammer for that nail. ty 21:07
ugexe HoboWithAShotgun: if you can accept the constraint they *must* be installed, then the code above should work
HoboWithAShotgun you mean it won't find any local libraries? 21:08
ugexe if you install to a local library yes. if its not installed (you just git clone it and -Ilib for example) then no 21:09
HoboWithAShotgun that's a bummer but no dealbreaker 21:10
but thanks for making me aware
21:13 skids left
HoboWithAShotgun should be easily patched though, github.com/tony-o/perl6-pluggable/...ggable.pm6 line 118 21:16
ugexe that will actually handle non-installed local libraries. 21:18
timotimo last change may 18th, i wonder if any major changes to CUR happened since then
HoboWithAShotgun bummer. $*REPO.repo-chain is an immutable list
21:20 mcmillhj joined
mst yes, because it's a list view onto a singly linked list 21:22
it would make no sense for it to be mutable
Xliff nqp::getlexcaller(q|$?USAGE|) <-- Doesn't work any mo.
Was it removed? 21:23
ugexe $*USAGE now
Xliff Ah! ugexe++;
21:25 mcmillhj left 21:28 troys_ is now known as troys
HoboWithAShotgun goes to feed his frog 21:28
meh, i don't know, the animal is not himself since obama turned him gay with chemicals 21:35
21:36 mcmillhj joined 21:38 Cabanossi left 21:39 ryn1x joined
AlexDaniel whateverable: 845db2e47f | (Aleks-Daniel Jakimenko-Aleksejev)++ | 3 files
I ♥ systemd

This commit resolves many long-standing problems:
  …
21:39
.tell nine Geth is down
yoleaux AlexDaniel: I'll pass your message to nine.
21:40 Cabanossi joined 21:41 mcmillhj left, HoboWithAShotgun left 21:42 HoboWithAShotgun joined 21:46 ryn1x left
AlexDaniel moritz: thanks 21:48
21:50 ryn1x joined 21:51 rindolf left 21:52 mcmillhj joined 21:53 itaipu left 21:56 mcmillhj left 21:58 ryn1x left, ryn1x joined, basket left 21:59 skf left
Xliff AlexDaniel: You need to tell me why systemd is so great. 22:00
I've had my share of problems with it.
AlexDaniel Xliff: it's awesome for creating services. Do you want virtual /tmp? That's one line. Read-only filesystem? There you go. Memory limit? One line. Your process is misbehaving a lot? Two lines to set up a watchdog. Restart automatically? Sure. With a delay? Of course. 22:02
you can do all that yourself, but I don't have a spare month of time for all this 22:03
Xliff AlexDaniel: You have examples of those?
AlexDaniel Xliff: github.com/perl6/whateverable/commit/845db2e47f
note that this commit is very tradeoff-ish and things are still not entirely (or maybe at all) secure (each perl6 execution from every bot should be seccomp-ed to get it about right). But I can take this half-solution right now 22:05
Xliff AlexDaniel: Ah! I see!
I haven't done systemd services yet, so this is new to me. The problems I've had were distro and installation related.
AlexDaniel++ 22:06
AlexDaniel Xliff: another cool thing is that you can write *user* services. There are some limits, but generally you don't need root to get this kind of stuff working
PrivateTmp doesn't work without root though, unfortunately 22:07
Xliff Yeah, that's a real plus.
22:08 mcmillhj joined, ryn1x left 22:09 ryn1x joined 22:12 mcmillhj left 22:14 mcmillhj joined, setty1 left 22:15 ryn1x left 22:16 basket joined 22:21 mcmillhj left 22:24 pecastro left 22:31 pecastro joined 22:33 mcmillhj joined 22:37 mcmillhj left 22:41 leont joined 22:49 mcmillhj joined 22:51 skids joined, kurahaupo_ is now known as kurahaupo 22:52 cdg joined 22:53 mcmillhj left 22:56 epony left 22:58 cdg left 23:02 mmcclimon joined 23:05 mcmillhj joined, leont left 23:07 epony joined, lichtkind left 23:09 mcmillhj left 23:17 wamba joined
unclechu hey guys, is there any package for dbus interface? 23:18
23:19 mmcclimon left 23:20 mcmillhj joined, ryn1x joined
timotimo buggable: eco dbus 23:22
buggable timotimo, Nothing found
23:24 mcmillhj left 23:25 ryn1x left 23:28 troys is now known as troys_ 23:31 |oLa| joined
AlexDaniel unclechu: it is marked as a wanted module here: github.com/perl6/perl6-most-wanted...les.md#ipc 23:32
23:36 mcmillhj joined 23:38 Cabanossi left 23:40 headcase joined, mcmillhj left 23:41 Cabanossi joined, committable6 joined, ChanServ sets mode: +v committable6 23:43 headcase_ left, BenGoldberg joined 23:46 Mrofnet joined 23:48 Morfent left, troys_ is now known as troys 23:51 mcmillhj joined 23:55 margeas left