IRCloggy #perl6 2018-07-27

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2018-07-27

benjiikun https://github.com/ijneb/telegram-bot00:02
My bot is kind of a half-butted way of doing it00:02
with just returning a tap00:02
but cro does some clever signature constraint stuff to pass a single block00:02
I'm making a mockup of that for you now00:02
Qwerasd Thanks a ton!00:03
Alchemy joined00:08
AlchemyGuest7741300:08
Guest77413 left00:11
Guest77413 joined00:11
Guest77413daemon00:11
benjiikun Qwerasd: https://gist.github.com/ijneb/ddd7ebe6a35b12a6ef1d1c7ceb311cc500:15
This is how cro gets the `route { get -> '/' { #do stuff } }` form for reacting to changes00:16
mcmillhj joined00:16
Qwerasd Interesting.00:17
benjiikun And then it passes the `handlers { get '/' { }; get '/home' { }; ... }` for internal usage00:19
I think it's a neat form for a library's purpose00:19
So if you call $h() in that example, it will extract the 'hello' parameter as a constraint00:20
fsdfsdfsdfsdfdsf left00:20
mcmillhj left00:20
Khisanth left00:23
Sgeo_ joined00:26
Sgeo left00:27
roguelazer left00:28
benjiikun I just realized I typod my nick to have two `i`s lol00:29
benjiikunbenjikun00:29
mcmillhj joined00:32
mcmillhj left00:36
MilkmanDan left00:38
MilkmanDan joined00:39
daemon left00:39
daemon joined00:39
daemon left00:40
daemon joined00:40
Qwerasd Is it possible to dynamically assemble a grammar? If so how?00:40
timotimo well, EVAL can do it00:40
Qwerasd True but I00:41
Oops enter too soon.00:41
timotimo otherwise, a grammar is "just a class", and you can create that during runtime through the MOP00:41
Qwerasd True but I'm apt to shy away from EVAL00:41
timotimo regexes/rules etc inside a grammar are also "just methods", so they can be added at runtime as well00:41
Qwerasd Basically I want to assemble my TOP based on a function signature I'm iterating through. How can I do that?00:42
timotimo right, i don't think that can be done without either EVAL or the compiler in general00:42
Qwerasd Well, guess I'll have to use EVAL :\00:43
Khisanth joined00:43
benjikun Based on what about the function signature Qwerasd?00:44
Qwerasd The type of each argument etc.00:45
stmuk joined00:45
benjikun Couldn't you just iterate through the signature in the TOP method of the grammar and decide what rules to use from there?00:46
Qwerasd You can do that?00:46
benjikun https://docs.perl6.org/language/grammars#Methods_in_Grammar00:47
Qwerasd Oh neat. That works then :p00:47
benjikun :)00:47
stmuk_ left00:47
Qwerasd Thanks00:48
benjikun anytime00:48
Qwerasd How would I return tokens though, exactly?00:49
Would returning a string work?00:49
like return "<token1> <token2>"00:49
I don't feel like it would.00:49
timotimo you can use strings interpolated as regex, which is more or less equivalent to EVAL00:50
Qwerasd Oh nice that would work? That makes me happy.00:51
timotimo has to be like regex use-the-string { <$my-string-which-is-a-regex> }00:51
Qwerasd Err can you show what my example would be like as a return statement then?00:52
timotimo won't work with just a return, i'm afraid00:52
Qwerasd Oh?00:52
I'm confused now.00:52
If I'm in the TOP method how do I turn my string in to the used regex.00:53
timotimo hmm00:53
you could probably have an attribute that has the string-to-be-used in it00:53
Qwerasd I... don't understand.00:54
timotimo and then TOP would just look like regex TOP { <{ $!string-to-be-used }> }00:54
Qwerasd Oh?00:54
So I don't iterate inside of the TOP method?00:54
timotimo if $!string-to-be-used is already the whole thing, then no, that should be fine00:55
Qwerasd OK thanks. I think I get it.00:55
lizmat left00:57
mcmillhj joined01:01
mcmillhj left01:06
Qwerasd I keep getting this error with no stacktrace, (It's being caught in a try/catch) is there a way I could force a stacktrace?01:06
lookatme ... can do this01:07
Qwerasd Err, how? Basically what should my CATCH block look like?01:07
lookatme CATCH { when foo { }; when bar { }; default { }; }01:08
Qwerasd I want to resume the error after it happens.01:08
How can I get the stacktrace of an error?01:08
lookatme oh, you mean get the stack trace ?01:09
timotimo check the methods that Exception has01:09
m: .name.say for Exception.^methods01:09
camelia rakudo-moar 08b449e1a: OUTPUT: «backtrace␤vault-backtrace␤reset-backtrace␤throw␤rethrow␤resume␤die␤fail␤is-compile-time␤Str␤gist␤BUILDALL␤»01:09
lookatme https://docs.perl6.org/type/Exception01:09
Qwerasd Probably .backtrace, right?01:09
lookatme yeah, you better read the documents01:09
MasterDuke Qwerasd: also, you know about --ll-exception ?01:15
benjikun I think he wants for it to continue working after it fails01:15
mcmillhj joined01:15
geekosaur that doesn't make it stop, it just includes parts of the backtrace that go into the setting01:18
benjikun oh, woops01:19
geekosaur as such, probably not useful here unless you're debugging rakudo internals01:19
timotimo all you have to do to make it not rethrow (which is what stops the program) is to match the type with a "when" block, or by having a "default" block01:19
inside the CATCH01:19
mcmillhj left01:20
Qwerasd Cannot resolve caller Str(Mu: Command::Parser); none of these signatures match: (Mu:U \v: *%_) (Mu:D $: *%_)01:22
I did something wrong with a grammar I think. I'm getting this.01:22
lookatme Can you paste your code to somewhere01:24
Qwerasd I'll try to recreate it out of the context of my gigantic module.01:24
https://hastebin.com/ebudoheqoc.p601:27
geekosaur hm. wonder if it's calling the wrong Str01:30
Qwerasd So it may be a problem with the name I gave to the token?01:30
geekosaur conceivably01:30
Qwerasd yuuup01:31
That was the problem01:31
geekosaur you'll get the same with Int, then01:31
Qwerasd Mhm, gonna lowercase em all01:31
geekosaur that type exists too01:31
(native string, for NativeCall)01:31
Qwerasd Does it? Cause lowercasing it fixed it.01:31
I guess maybe... _Str? I want to make it similar because I'm directly shoving type names in.01:32
timotimo nativecall isn't exactly what str is for01:32
Kaiepi aren't native strings NativeCall::CStr?01:35
geekosaur maybe01:35
Qwerasd Now how do I typecast things parsed by a grammar?01:35
Using grammar actions I assume?01:37
Kaiepi yeah01:38
m: grammar Foo::Grammar { token TOP { <a> }; token a { a } }; class Foo::Actions { method TOP($/ --> Int) { make $<a>.ast }; method a($/ --> Int) { make ~$/.ord } }; say Foo::Grammar.parse('a', actions => Foo::Actions.new)01:39
camelia rakudo-moar 08b449e1a: OUTPUT: «Type check failed for return value; expected Int but got Str ("97")␤ in method a at <tmp> line 1␤ in regex a at <tmp> line 1␤ in regex TOP at <tmp> line 1␤ in block <unit> at <tmp> line 1␤␤»01:39
Kaiepi m: grammar Foo::Grammar { token TOP { <a> }; token a { a } }; class Foo::Actions { method TOP($/ --> Int) { make $<a>.ast }; method a($/ --> Int) { make $/.ord } }; say Foo::Grammar.parse('a', actions => Foo::Actions.new)01:39
camelia rakudo-moar 08b449e1a: OUTPUT: «「a」␤ a => 「a」␤»01:39
Kaiepi m: grammar Foo::Grammar { token TOP { <a> }; token a { a } }; class Foo::Actions { method TOP($/ --> Int) { make $<a>.ast }; method a($/ --> Int) { make $/.ord } }; say Foo::Grammar.parse('a', actions => Foo::Actions.new).ast01:40
camelia rakudo-moar 08b449e1a: OUTPUT: «97␤»01:40
Kaiepi there we go01:40
stmuk_ joined01:40
stmuk__ joined01:42
stmuk left01:42
warriors left01:43
Qwerasd Hmm this function is saying too many positionals when passed 2 arguments but it has a signature of Str $foo, Int $bar = 101:44
stmuk_ left01:45
Qwerasd Oh wait I think I see the issue.01:46
mcmillhj joined01:48
mcmillhj left01:54
Geth ¦ perl6-most-wanted: aa0d01730b | (Ben Davies)++ (committed using GitHub Web editor) | most-wanted/modules.md01:55
¦ perl6-most-wanted: Add WIP link for Net::Telnet 01:55
¦ perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/aa0d01730b01:55
molaf left02:01
raschipi joined02:02
mcmillhj joined02:04
mcmillhj left02:10
Qwerasd_ joined02:10
Qwerasd left02:12
molaf joined02:14
Qwerasd_ left02:14
Qwerasd joined02:15
skids left02:18
raschipi .tell moritz What do you think about putting the content from perl6book.com into perl6.org/resources/ and then you pull the content from there. I think it would solve all the problems. Fell free to ignore if you think it's a silly idea because your content doesn't fit in the Perl6 site.02:23
yoleaux raschipi: I'll pass your message to moritz.02:23
AlexDaniel left02:28
AlexDaniel joined02:29
AlexDaniel left02:30
AlexDaniel joined02:30
Qwerasd I cannot for the life of me figure out why this grammar.parse is returning nil.02:34
Cloning the code out of context and setting the values makes it not do so so I'm very confused.02:34
stmuk joined02:35
benjikun Qwerasd: can you make a gist of it02:36
Qwerasd No because in context it's 16 files, a network connection, and an API key. Out of context I can't reproduce the issue.02:37
stmuk__ left02:37
mcmillhj joined02:39
Zoffix joined02:39
Zoffix eco: Grammar::Debugger02:39
yoleaux 26 Jul 2018 20:12Z <brrt> Zoffix: - repsectfully, and given the heat with the intent of not letting annoyance grow bigger, that is not what I said02:39
buggable Zoffix, Grammar::Debugger 'Simple tracing and debugging support for Perl 6 grammars': http://modules.perl6.org/dist/Grammar::Debugger:github:N'A 02:39
yoleaux 26 Jul 2018 20:13Z <brrt> Zoffix: what I said was, since there is an intent to release a version, and there is a blocking bug that is hard to fix, we may circumvent it for now, and do a point release later02:39
Zoffix Qwerasd: ^ you can install that module and it comes with a debugger that'll let you see why it's returning Nil as well as with Grammar::Tracer that is similar, but just does the trace of the matching process02:40
Qwerasd Ok thanks.02:40
Zoffix Just `use` one of those modules and it'll enable the mode: https://tpm-regex.perl6.party/#/5002:40
And here's how the trace looks like: https://tpm-regex.perl6.party/#/5102:41
Me joined02:43
Me Hello02:43
mcmillhj left02:44
Me left02:44
Zoffix :(02:44
Qwerasd Grammar::Tracer is spitting out this error at me (Without it enabled the grammar in question works fine): Cannot invoke this object (REPR: Null; VMNull)02:45
Zoffix :( bummer02:46
What version of Perl 6 are you using?02:46
Qwerasd Rakudo Star version 2018.04.102:46
Zoffix no idea :/02:47
Qwerasd Is there a way to get a grammar to return an array of each token from TOP? (ex. TOP { <a> ' ' <b> ', ' <c> } -> [a, b, c])02:51
Zoffix You'd have to make TOP a method and make it parse with something and then make an Array. Or have the Actions class make the array for you02:55
m: grammar { rule TOP { <a> <b> <c> }; token a { "a" }; token b { "b" }; token c { "c" } }.parse("a b c", actions => class { method TOP ($/) { make $<a b c>».Str.Array } }).made.say02:55
camelia rakudo-moar 08b449e1a: OUTPUT: «[a b c]␤»02:55
Zoffix Qwerasd: BTW, you could try changing a bunch of tokens from rules/tokens to `regex` (or use :!ratchet adverb in them). Lack of backtracing in token/rule is a pretty common cause of a failed parse02:56
Also, I assume you know it has to parse the string from very start to very end, otherwise it'll fail the parse (it'02:56
Qwerasd Yes I know.02:57
Zoffix ok02:57
fbynite joined02:57
benjikun Zoffix: when are your presentations02:59
Zoffix In the past :)03:00
vrurg left03:03
benjikun oof03:03
where can I find them?03:03
Zoffix Eventually they'll be posted here, I'm assuming: https://www.youtube.com/channel/UC3xi2HEaL9W9v2fNfW61Zdg03:05
Slides are at https://tpm-regex.perl6.party/ and https://tpm-perf.perl6.party/03:08
Qwerasd Oh god this is a headache.03:09
Zoffix Qwerasd: :) sounds like a good time to take a break :)03:09
Qwerasd Yeah, and a good time to sleep. It's 11 PM. Sleep will probably help. (Fingers crossed)03:10
mcmillhj joined03:10
benjikun I went to sleep at 6am03:10
Qwerasd gn03:11
Qwerasd left03:11
benjikun night03:11
mcmillhj left03:15
raschipi Zoffix: Very nice slides, I'm eager to see the presentations.03:30
benjikun https://www.youtube.com/watch?v=paa3niF72Nw03:35
raschipi: found it!03:35
raschipi I already watched that one a long time ago, it's from 2016.03:36
Zoffix left03:38
benjikun oh03:43
oof03:43
didnt look at the time posted03:43
mcmillhj joined03:45
mcmillhj left03:49
mcmillhj joined04:15
mcmillhj left04:19
molaf left04:26
mcmillhj joined04:45
mcmillhj left04:50
jmerelo joined04:50
curan joined04:51
raschipi left04:52
Geth ¦ doc: 965c2f4633 | (Ben Davies)++ | doc/Language/grammars.pod604:54
¦ doc: Document grammar attributes 04:54
¦ doc: review: https://github.com/perl6/doc/commit/965c2f463304:54
¦ doc: afd5944dd5 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/grammars.pod604:54
¦ doc: Merge pull request #2219 from Kaiepi/grammars 04:54
synopsebot Link: https://doc.perl6.org/language/grammars04:54
Geth ¦ doc:04:54
¦ doc: Document grammar attributes04:54
¦ doc: Thanks a lot!04:54
¦ doc: review: https://github.com/perl6/doc/commit/afd5944dd504:54
¦ doc: be4208a8cd | (JJ Merelo)++ | 2 files05:00
¦ doc: Decapitalize and rewrite a bit 05:00
¦ doc: review: https://github.com/perl6/doc/commit/be4208a8cd05:00
spycrab0 joined05:01
mcmillhj joined05:06
rindolf joined05:07
moritz \o05:09
yoleaux 02:23Z <raschipi> moritz: What do you think about putting the content from perl6book.com into perl6.org/resources/ and then you pull the content from there. I think it would solve all the problems. Fell free to ignore if you think it's a silly idea because your content doesn't fit in the Perl6 site.05:09
moritz .tell rashipi you are welcome to reuse the contents of perl6book.com on perl6.org. When perl6.org has all the relevant information (and book covers), I'll consider making perl6book.com a redirect05:10
yoleaux moritz: I'll pass your message to rashipi.05:10
mcmillhj left05:10
benjikun o/05:11
m: -> --> 1 { }()05:11
camelia rakudo-moar 08b449e1a: ( no output )05:11
benjikun m: say -> --> 1 { }();05:11
camelia rakudo-moar 08b449e1a: OUTPUT: «1␤»05:11
fbynite left05:14
benjikun m: ->-->0{}()05:17
camelia rakudo-moar 08b449e1a: ( no output )05:17
benjikun interesting looking05:17
Geth ¦ doc: e03987d63d | (JJ Merelo)++ | doc/Language/operators.pod605:18
¦ doc: Checking around postfix calls 05:18
¦ doc:05:18
¦ doc: Rephrased `.:` which used *colonpair* (which is clearly05:18
¦ doc: not). Eliminated index entry "postfix call" which didn't make a lot of05:18
synopsebot Link: https://doc.perl6.org/language/operators05:18
Geth ¦ doc: sense. And closes #1346, although that had been solved before.05:18
¦ doc: review: https://github.com/perl6/doc/commit/e03987d63d05:18
benjikun m: my \say = 1; say.say.say.say;05:24
camelia rakudo-moar 08b449e1a: OUTPUT: «1␤True␤True␤»05:24
mcmillhj joined05:33
mcmillhj left05:37
sauvin joined05:40
Geth ¦ doc: 5a4d7cf20b | (JJ Merelo)++ | doc/Language/grammars.pod605:54
¦ doc: Fixes categories refs #1410 05:54
¦ doc: review: https://github.com/perl6/doc/commit/5a4d7cf20b05:54
synopsebot Link: https://doc.perl6.org/language/grammars05:54
jmerelo benjikun: yep, say returns True05:55
benjikun: and say method is different from say sigilless variable, I guess...05:56
benjikun mhm05:57
m: my \say = 1; say say say say;05:57
camelia rakudo-moar 08b449e1a: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> my \say = 1; say say say say; ␤ expecting any of:␤ infix␤ infix stopper␤ statement end␤ statement modifier␤ …»05:57
benjikun only knows because I was using it as a method05:57
abraxxa joined05:59
jmerelo Warning: bumpy road ahead.05:59
There's something wrong with docs.perl6.org06:00
benjikun again?06:00
what's up with it now06:00
jmerelo the search.js file is out of sync, and it's not being generated06:00
benjikun: let me see if I found out what's the problem...06:00
mcmillhj joined06:07
jmerelo OK, it's synced now. I don't know what's happened, but it's OK now.06:09
benjikun woo06:11
mcmillhj left06:11
Geth ¦ doc: e85d8d1948 | (JJ Merelo)++ | doc/Language/exceptions.pod606:18
¦ doc: General revision of the Exceptions page 06:18
¦ doc:06:18
¦ doc: Reflow, elimination of capitals and stuff, but also eliminates the Try06:18
¦ doc: category (refs #1410) and the incorrect indexing of Try. This would06:18
synopsebot Link: https://doc.perl6.org/language/exceptions06:18
Geth ¦ doc: close the nicely numbered 2222 issue: closes #222206:18
¦ doc: review: https://github.com/perl6/doc/commit/e85d8d194806:18
epony joined06:22
wamba joined06:23
mcmillhj joined06:26
mcmillhj left06:31
psychoslave joined06:42
mcmillhj joined06:44
mcmillhj left06:49
lizmat joined06:54
jmerelo lizmat: hi07:01
lizmat: there was something I wanted to ask you. But I forgot what.07:01
lizmat: let me see if I find it again...07:01
domidumont joined07:02
mcmillhj joined07:02
jmerelo lizmat: I should have opened an issue...07:05
mcmillhj left07:07
domidumont left07:09
domidumont joined07:10
jmerelo lizmat: OK, after some digging among recently edited files and visited pages, here it is.07:19
lizmat: is this true? https://docs.perl6.org/language/faq.html#Can_I_use_Perl_5_modules_from_Perl_6? I seem to remember you mentioned something about that in your talk in Arnhem07:20
mcmillhj joined07:23
El_Che jmerelo: you mean Inline::Perl5 ?07:26
mcmillhj left07:27
jmerelo El_Che: right07:28
El_Che: does it work?07:30
stmuk yes why wouldn't it?07:31
El_Che yes, nine keeps making it better all the time: https://github.com/niner/Inline-Perl507:31
jmerelo stmuk: dunno.07:31
El_Che, stmuk: many issues, one-year-old pull requests, CI badge in gray...07:32
El_Che, stmuk: but the thing is that I seem to remember lizmat mentioned something about it in the Netherlands Perl workshop. I might be wrong, however...07:33
El_Che jmerelo: I don't use it myself (I don't like the idea of managing 2 stacks), but I am under the impression that it works very well from the people that use it07:33
We'll get more info from lizmat and nine if they survived the heat07:34
jmerelo El_Che, stmuk: also it says "most Perl 6 modules". Don't know what "most" means...07:34
El_Che: OK. If that FAQ is true, then I'm OK with that.07:35
stmuk I don't see any problems with "most"07:35
jmerelo stmuk: well, it's a catch all. It's useful when your particular module does not run, you can always say "Well, we said most"07:36
El_Che I think nine is going for "all"07:36
from his doc07:36
something not working is a bug in that cas07:37
e07:37
jmerelo stmuk: but my main issue with that is how does that carry through time. Most for perl 5.24 perl6 2017.07 might become "a bunch" in perl 5.28 perl6 2018.0607:37
stmuk yes it's a particularly hard module to maintain but nine does a good job and I don't see any problems with the FAQ answer which seems perfectly clear to me07:38
jmerelo stmuk: I mean, I would need a bit of qualification for that. "Most modules that have these features, for these versions of Perl and Perl6, and none of the modules that have these features"07:38
stmuk: OK. No problem then.07:39
El_Che jmerelo: let's wait to what nine has to say. He could qualify the statement probably07:40
jmerelo El_Che: I mean, right now, this seems to be a problem https://travis-ci.org/niner/Inline-Perl5/jobs/39316162307:41
El_Che: that's probably only a change of perlbrew interface...07:41
I'll create an issue for that.07:41
stmuk my guess is its a network error or something transient like that07:45
jmerelo stmuk: looks like a perlbrew error...07:48
andrzejku joined07:49
stmuk yes maybe the perlbrew author pushed a version which didn't work for a few mins or the script couldn't contact the server or something ... it worked for me just now07:49
jmerelo stmuk: it did here when I upgraded.07:50
stmuk: anyway, thanks for the clarification07:51
mcmillhj joined08:02
jmerelo stmuk: I patched and it seems to be working now https://travis-ci.com/JJ/Inline-Perl5/jobs/136754408. Apparently, the default installation procedure for perlbrew was not serving the last version...08:03
scimon joined08:05
blackberry9900 joined08:06
mcmillhj left08:07
mcmillhj joined08:20
zakharyas joined08:22
mcmillhj left08:25
pecastro joined08:25
jmerelo I'm checking out the number of commits this month, and it's the third highest ever. Could be the second, we're not done yet... Also it's the month with the second-highest number of contributors.08:27
[particle] left08:28
[particle]1 joined08:28
lizmat jmerelo: yes, that is true08:28
jmerelo lizmat: what?08:30
lizmat " is this true? https://docs.perl6.org/language/faq.html#Can_I_use_Perl_5_modules_from_Perl_6? I seem to remember you mentioned something about that in your talk in Arnhem"08:30
jmerelo lizmat: OK, the FAQ.08:30
lizmat: thanks.08:30
lizmat: did you mention something about Inline::Perl6 in your talk? Or is it a fake memory?08:31
lizmat: sorry, Perl608:31
lizmat: sorry, Perl508:31
My fingers go directly to type 6 after Perl...08:31
stmuk jmerelo++ # fixing travis perlbrew08:31
jmerelo stmuk: it's still broken for MacOSx... And that I can't fix.08:32
lizmat jmerelo: it's not in the slides, perhaps I did mention Inline::Perl5 but my memory fails me if I did or not08:33
psychoslave left08:33
Ven`` joined08:34
mcmillhj joined08:52
mcmillhj left08:56
rindolf left09:09
rindolf joined09:16
mcmillhj joined09:19
mcmillhj left09:25
psychoslave joined09:25
Geth ¦ doc: 423c007ce0 | (JJ Merelo)++ | 2 files09:41
¦ doc: Some reflow and corrections 09:41
¦ doc: review: https://github.com/perl6/doc/commit/423c007ce009:41
sarna joined09:42
kerframil joined09:49
jmerelo m: say $*IN09:49
camelia rakudo-moar 08b449e1a: OUTPUT: «IO::Handle<IO::Special.new("<STDIN>")>(opened)␤»09:49
japhb joined09:50
mcmillhj joined09:51
mcmillhj left09:56
tbrowder_ \o10:06
jmerelo: search messed up earlier i see. how did you fix it? make it an issue?10:07
i’m still working on doc reorg—early am i think i hsve some new insight after dreaming about htmlify.p6 and friends.10:09
mcmillhj joined10:09
tbrowder_ *have10:09
psychoslave left10:09
mcmillhj left10:14
stmuk lizmat: just watching your talk starting with discussion of Plato and wondered if you had seen this https://www.irata.online/10:17
El_Che (I thought we would discuss philosophy. Mildy disappointed)10:19
daemon left10:22
daemon joined10:22
daemonGuest5205610:22
Ven`` left10:24
Guest52056 left10:25
Guest52056 joined10:25
curan left10:26
stmuk the underlying plato-like system is "cyber1"10:26
Guest52056daemon10:27
jmerelo tbrowder_: I really have no idea.10:28
tbrowder_: checked the logs, and everything seemed to be OK.10:28
tbrowder_: that's what I call a bad dream10:29
tbrowder_ ok, thanks.10:29
more of a nightmare!10:29
jmerelo tbrowder_: the problem was that there was a difference between what was on the site and what was searched10:31
tbrowder_ yep, sounds like a build problem. i don’t understand yet how the actual site is published. caching may be a factor.10:33
jmerelo tbrowder_: I kinda understand it a bit.10:34
robertle joined10:34
jmerelo tbrowder_: in a nutshell, you clean up everything, then it's your script to generate stuff, then htmlify.p6, which generates search.js among other things, then it's rsynced to the actual place where it's published, and then the mojo-based web generates more stuff10:35
tbrowder_ thnx10:36
jmerelo So there are like 3 build steps: your script, then htmlify.p6, then make run. Two before deployment, one after deployment10:36
I wonder if we should use Sparrowdo or some other serious deployment tool. Maybe Sake, I don't know.10:36
tbrowder_ does the rsync have the options set to delete old stuff? that can cause weird things to happen10:37
jmerelo But one fine day we should take htmlify.p6 (and related modules) and rewrite it from scratch. We could call it htmlify-6.p610:37
tbrowder_: right, it deletes stuff rsync -az --delete html/* html/.ht* [email@hidden.address]10:38
but more weird stuff could happen if you don't delete.10:38
mcmillhj joined10:38
jmerelo tbrowder_: I don't know if you have seen this: http://colabti.org/irclogger/irclogger_log/perl6?date=2018-07-27#l362, which is to a large extent your fault :-) Kudos10:40
tbrowder_ hm, i guess it’s like throwing thumb tacks on the dance floor10:42
mcmillhj left10:43
tbrowder_ lots more movement for painful reasons10:44
sergot joined11:03
blackberry9900 left11:09
lizmat left11:11
[particle] joined11:22
zakharyas left11:22
[particle]1 left11:23
HaraldJoerg joined11:25
robertle left11:34
[particle]1 joined11:37
[particle] left11:39
jmerelo tbrowder_: that's a good one. But no, it's only natural.11:47
tbrowder_: more like the sandpile. You drop one grain, nothing happens, you drop the next, avalanche.11:47
pmurias joined11:48
[particle] joined11:51
[particle]1 left11:53
molaf joined12:02
tbrowder_ good12:11
good analogy!12:11
git question: has anyone had any problems rsyncing a git repo between two locations (one fixed at home, one mobile)? i use the two hosts regularly and would like to work on my favorite git repos on both of them, changing beween them often as we travel to/from nearby relatives.12:19
*between12:19
jmerelo tbrowder_: yep. All kind of problems. It's better to just use git to sync...12:20
pmurias left12:20
jnthn 1I also move between different hosts quite a bit, but just push up a Work In Progress commit in a branch when I need to move.12:21
tbrowder_ ok, how do you handle cleaning up accumulated commits to submit a PR? squashing seems to be too easy to mess up.12:25
and i get enough complaints about my commits as it is...12:27
abraxxa left12:29
pmurias joined12:32
jnthn tbrowder_: Depends, but `git add ...` for the files I changed since and `git commit --amend` in simple cases12:32
Or interactive rebase if I want to do something more involved12:32
diakopter left12:32
tbrowder_ thanks. i need to study more in-depth git use.12:35
MilkmanDan left12:40
raschipi joined12:41
raschipi .12:42
raschipirashipi12:42
rashipi .12:42
yoleaux 05:10Z <moritz> rashipi: you are welcome to reuse the contents of perl6book.com on perl6.org. When perl6.org has all the relevant information (and book covers), I'll consider making perl6book.com a redirect12:42
rashipiraschipi12:42
diakopter joined12:42
moritz sorry, did I mis-type your nick?12:43
raschipi No problem.12:53
sena_kun joined12:59
SyrupThinker joined13:01
Ulti tbrowder_ I dont use it myself but someone stepped me through the stuff you can do with an interactive rebase and its kind of amazing13:02
timotimo i use it every now and then to merge together commits or change commit messages13:03
Ulti yeah I always wondered why commits were hideous compared to other people on my team and they pointed out I was just a lot more lazy than them :'(13:03
timotimo hahaha13:04
Ulti I've not seen a nice GUI for doing that stuff though13:04
timotimo i hear emacs has something extremely good13:04
Ulti oh really13:04
timotimo i've never used emacs, though13:05
zakharyas joined13:05
timotimo i mean, never longer than a few minutes13:05
vrurg joined13:13
sarna I've found a typo in the docs, what do I do?13:25
yoleaux 26 Jul 2018 18:25Z <AlexDaniel> sarna: squashathon discussion http://colabti.org/irclogger/irclogger_log/perl6?date=2018-07-26#l90013:25
tbrowder_ smartgit may have something, usable on linux and windows (maybe mac, too), java based.13:25
AlexDaniel sarna: just fix it? https://github.com/perl6/doc/13:25
sarna AlexDaniel: ok :)13:26
tbrowder_ i use it on windows mostly, debian rarely cause i mostly13:26
am using ssh13:26
maettu joined13:27
jmerelo AlexDaniel: perl6 river, v0.1 ready https://github.com/JJ/p6-river/releases/tag/v0.113:28
maettu jnthn has completed his grant http://news.perlfoundation.org/2018/07/perl-6-performance-and-reliabi-5.html13:28
and requested another 200h. Please leave your comments. http://news.perlfoundation.org/2018/07/grant-extension-request-perl-6-2.html13:29
jmerelo AlexDaniel: I would have to do stuff a bit more finely, but basically big name tagas are the ones with the most dependencies downriver. Download the PDF or the SVG from the repo13:29
AlexDaniel jmerelo: what about having a top-down placement?13:29
El_Che the pdf is a tease13:30
AlexDaniel or left to right13:30
El_Che it doesn't show anything :)13:30
jmerelo AlexDaniel: I tried that, but then it's not so clear. Download and check out sankey.html from that repo13:30
El_Che: let me see...13:30
El_Che 51 KB13:31
river.pdf13:31
the image was resized to death by the pdf creator soft, I suppose13:31
jmerelo El_Che: well, it shows... something13:31
El_Che a teaser13:31
jmerelo El_Che: if you bump it up to 400% you can see a bit13:32
and the gephi files are in the same repo, or the .net, use them with your favorite software...13:32
AlexDaniel jmerelo: what can I use with dot?13:32
MilkmanDan joined13:32
jmerelo AlexDaniel: let me export it to that format13:33
AlexDaniel ok now we're talking :)13:33
araraloren joined13:34
tbrowder_ i just saw syntevo (German co i think) has deepgit too. samartgit and deepgit are free for non-commercial use.13:34
sarna AlexDaniel: I've just read the squashaton discussion thingy. I haven't written any scripts dealing with github yet13:35
jmerelo AlexDaniel: Gephi does not work with that. I've added you to the repo, and exported it to graphml. Either that or Pajek's .net should be convertible to anything...13:36
jmerelo left13:37
El_Che ff kan show the svg fine13:38
araraloren_ joined13:44
AlexDaniel uh but that's from perl6-all-modules… not gonna work :S13:47
robertle joined13:47
araraloren left13:47
mcmillhj joined13:51
Geth ¦ doc: sarna++ created pull request #2224: Fixes some small typos in "Ruby to Perl 6" 13:53
¦ doc: review: https://github.com/perl6/doc/pull/222413:53
sarna oh hi13:53
MilkmanDan left13:57
raschipi sarna: did you see the answer to your pull request?13:58
Geth ¦ doc: be1b3d529c | sarna++ | doc/Language/rb-nutshell.pod613:58
¦ doc: typos 13:58
¦ doc: review: https://github.com/perl6/doc/commit/be1b3d529c13:58
¦ doc: da0cd0dcc2 | sarna++ | doc/Language/rb-nutshell.pod613:58
¦ doc: added a colon 13:58
synopsebot Link: https://doc.perl6.org/language/rb-nutshell13:58
Geth ¦ doc: review: https://github.com/perl6/doc/commit/da0cd0dcc213:58
¦ doc: f171ae0779 | (Bartosz Janus)++ (committed using GitHub Web editor) | doc/Language/rb-nutshell.pod613:58
¦ doc: Merge pull request #2224 from sarna/ruby-typos 13:58
¦ doc:13:58
¦ doc: Fixes some small typos in "Ruby to Perl 6"13:58
raschipi yes13:58
Geth ¦ doc: review: https://github.com/perl6/doc/commit/f171ae077913:58
MilkmanDan joined13:58
sarna raschipi: yes :) I was too excited to check IRC, sorry13:58
Zoffix joined14:06
Zoffix Must... resist... urge... to use this stock in 6.d Diwali teaser posters: https://depositphotos.com/88166820/stock-photo-goddess-lakshmi-and-lord-ganesha.html14:08
^_^14:08
diakopter yah, the ambiguity/overlap with Nazi symbols is ... suboptimal14:10
Zoffix :)14:10
timotimo yes, that would be *quite* an unfortunate look14:12
robertle these could esily be photoshopped into butterflies14:14
:)14:14
mcmillhj left14:15
raschipi robertle: then what's the point of buying the stock, just buy another one without an unfortunate association.14:16
Geth ¦ doc: 7f9915925e | (Ben Davies)++ | doc/Language/js-nutshell.pod614:20
¦ doc: Use sentence casing in JS nutshell page 14:20
¦ doc: review: https://github.com/perl6/doc/commit/7f9915925e14:20
synopsebot Link: https://doc.perl6.org/language/js-nutshell14:20
jkramer How would I go about writing a P6 version of Module::Refresh? Is it even possible?14:23
Zoffix That's such a common question it should be researched and placd into our FAQ14:25
jkramer Hmm probably not, at least not the way I want it.14:25
Is it? Sorry :)14:25
Zoffix (the "reload a module in a running program" question, I mean)14:25
jkramer: no need to be sorry, I've not heard a good answer to it yet :)14:25
squashable6: status14:25
squashable6 Zoffix, ⚠🍕 Next SQUASHathon in 6 days and ≈19 hours (2018-08-04 UTC-12⌁UTC+14). See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day14:25
mcmillhj joined14:26
mcmillhj left14:31
nebuchadnezzar joined14:40
mcmillhj joined14:42
raschipi jkramer: A related problem is the fact that modules are cached after being compiled. So even if you reload the program it won't pick up changes made to the module.14:45
mcmillhj left14:48
w_richard_w joined14:48
Geth ¦ marketing: 36c5fb493d | (Zoffix Znet)++ | 13 files14:49
¦ marketing: Add "Spec Clarifications" 6.d teaser / ID 1532698761 14:49
¦ marketing: review: https://github.com/perl6/marketing/commit/36c5fb493d14:49
jkramer I wouldn't even need to reload it from disk, I just wanted to outsource some code from long-running script to tweak it during runtime. I naively tried to just slurp and EVAL it but of course it didn't work :)14:49
timotimo you'll probably need a little indirection between the module's symbols and the actual code being run14:49
jkramer Turns out that types need to be known at compile-time of you want type checking :D14:49
benjikun left14:49
jkramer But it's not that important anyway14:50
benjikun joined14:51
timotimo actually, you can use "where" clauses :)14:53
mcmillhj joined14:54
jkramer I think I'll just dump the state of my script so I can restart it without losing progress :)14:54
timotimo that's probably better14:55
do that regularly and you're also probably relatively safe from crashes14:55
ctilmes joined14:59
raschipi We need Systemd bindings so that processes can stash their open file descriptors in systemd.14:59
scimon left15:03
mst jkramer: note that now rakudo's imports are lexical, there's perhaps tricks you can do involving reloading in a new scope15:03
troys joined15:03
ctilmes If I put this in 'test.pl': "multi MAIN('foo') {}; sub USAGE { say $*USAGE }" and run it, I get (as expected) "Usage:␤ test.pl foo"15:04
But if I change the 'say' to 'print', I get "Cannot auto-decontainerize argument␤in sub USAGE at test.pl line 1␤in block <unit> at test.pl line 115:04
domidumont left15:04
Zoffix It's possible each `use` of the same module doesn't actually load it from scatch each time, but rather caches the load.15:04
ctilmes Just seemed weird to me. 'put' works fine too.15:04
Zoffix ctilmes: would you report it as a bug, please?15:06
raschipi m: multi MAIN('foo') {}; sub USAGE { print $*USAGE }15:07
camelia rakudo-moar 08b449e1a: OUTPUT: «Cannot auto-decontainerize argument␤ in sub USAGE at <tmp> line 1␤ in block <unit> at <tmp> line 1␤␤»15:07
lucasb joined15:08
Zoffix m: my $x := Proxy.new: :FETCH{"42\n"}, :STORE(-> $, $ {}); print $x15:09
camelia rakudo-moar 08b449e1a: OUTPUT: «Cannot auto-decontainerize argument␤ in block <unit> at <tmp> line 1␤␤»15:09
raschipi bisectable6: multi MAIN('foo') {}; sub USAGE { print $*USAGE }15:10
bisectable6 raschipi, Bisecting by output (old=2015.12 new=08b449e) because on both starting points the exit code is 115:10
vrurg left15:10
bisectable6 raschipi, bisect log: https://gist.github.com/671e8ce9c39a6aa43f60815baf2d26d815:11
raschipi, (2017-06-07) https://github.com/rakudo/rakudo/commit/e538cbc5464447c4a0cf217119a9ff30bd74d76515:11
ctilmes Zoffix: Bugged: https://github.com/rakudo/rakudo/issues/213715:11
Zoffix ctilmes++15:11
wamba left15:13
Zoffix m: multi MAIN('foo') {}; sub USAGE { print $*USAGE<> }15:14
camelia rakudo-moar 08b449e1a: OUTPUT: «Usage:␤ <tmp> foo »15:14
AlexDaniel 6c: multi MAIN('foo') {}; sub USAGE { print $*USAGE }15:18
committable6 AlexDaniel, https://gist.github.com/609c434bb7e086ae4042b2b5c2a673bb15:18
AlexDaniel raschipi: ↑ typically committable is a better tool for the first query :)15:18
Zoffix m: -> int { }( Proxy.new: :FETCH{42}, :STORE(-> | {})15:19
camelia rakudo-moar 08b449e1a: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)␤at <tmp>:1␤------> ( Proxy.new: :FETCH{42}, :STORE(-> | {}) <EOL> ␤»15:19
Zoffix m: -> int { }( Proxy.new: :FETCH{42}, :STORE(-> | {}) )15:19
camelia rakudo-moar 08b449e1a: OUTPUT: «Cannot auto-decontainerize argument␤ in block <unit> at <tmp> line 1␤␤»15:19
wamba joined15:19
AlexDaniel left15:22
AlexDaniel joined15:22
andrzejku left15:26
Zoffix AlexDaniel: is there a gameplan for squashathon?15:27
I wanna advertise this month's squashthon a bit more, 'cause fixing modules is really something we should do.... What do I tell people? Like, what will be the process for squashing?15:28
AlexDaniel Zoffix: http://colabti.org/irclogger/irclogger_log/perl6?date=2018-07-14#l329 http://colabti.org/irclogger/irclogger_log/perl6?date=2018-07-26#l90015:29
jmerelo joined15:29
jmerelo releasable6: status15:29
releasable6 jmerelo, Next release will happen when it's ready. 3 blockers. 80 out of 256 commits logged (⚠ 7 warnings)15:29
jmerelo, Details: https://gist.github.com/34313630748f8d5acf00862b0256aa4b15:29
AlexDaniel Zoffix: https://github.com/JJ/p6-river15:30
and also: https://gist.github.com/AlexDaniel/a2d42affde57723229ed8ca28ee7b88c15:30
zakharyas left15:30
jmerelo AlexDaniel: cool :-)15:31
Zoffix k15:31
jmerelo AlexDaniel: what are the numbers behind the module name?15:34
AlexDaniel jmerelo: it's an attempt to untangle the ratsnest, don't look at it yet, it's not finished15:35
x[LGWs4x4i]uG2N0 left15:36
Zoffix 6.d release makes a lot of clarifications to 6.c spec. So far, it contains over 3,400 comits, made by more than 60 authors: https://raw.githubusercontent.com/perl6/marketing/master/Flyers/6.d-Teasers/T3-Spec-Clarifications--1532698761/T3-Spec-Clarifications--1532698761.jpg15:37
AlexDaniel Zoffix++15:38
x[LGWs4x4i]uG2N0 joined15:39
fake_space_whale joined15:41
wamba left15:47
Geth ¦ marketing: 7bd98fad7d | (Zoffix Znet)++ | 7 files15:48
¦ marketing: Add more stock 15:48
¦ marketing: review: https://github.com/perl6/marketing/commit/7bd98fad7d15:48
AlexDaniel jmerelo: https://gist.github.com/AlexDaniel/6cd3e4af7f600edc04ba625516cf130c https://github.com/JJ/p6-river/blob/master/dep-to-dot.p615:51
jmerelo: that's as much as I'd be doing for it today, so take it away from here :)15:51
Geth ¦ doc: e664ce4785 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/classtut.pod615:52
¦ doc: tweak grammar and text 15:52
¦ doc: review: https://github.com/perl6/doc/commit/e664ce478515:52
synopsebot Link: https://doc.perl6.org/language/classtut15:52
AlexDaniel on github do right click/view image, then you'd get proper rendering of the svg15:52
with hyperlinks and stuff15:52
jmerelo AlexDaniel: thanks!15:53
raschipi I I find it fascinating that webbrowsers consider svg to be on par with html as a rendering method.15:53
AlexDaniel yeah, you can also do css styling for svgs with stuff like onhover events15:54
hmm maybe not withing .svg itself and you'd have to wrap it in .html, I'm not sure15:55
within*15:55
Zoffix AlexDaniel: is there a way to see this magnified? https://gist.github.com/AlexDaniel/a2d42affde57723229ed8ca28ee7b88c15:55
GitHub sends it as text/plain if you try "Raw"15:56
AlexDaniel Zoffix: right click on it, then “view image”, then unzoom15:56
code for generating it is here: https://github.com/JJ/p6-river/blob/master/dep-to-dot.p615:56
vrurg joined15:57
AlexDaniel modules marked with * are shown on the graph multiple times, because otherwise it becomes completely unreadable15:57
because yeah, everything depends on JSON::Fast :)15:57
Zoffix What would be cool is to to have the data for how active the author is and when the last commit was made to the module15:58
I know I have a bunch of PRs that I sent like a year ago and they still were never accepted.15:59
vrurg left16:02
wamba joined16:02
Zoffix buggable: toast16:03
buggable Zoffix, Between 2018.06-140-g68ed6f2 and 2018.06: 50 (4.53%) modules got burnt; 73 (6.61%) got unsucced; 383 (34.69%) out of 1104 modules appear unusable. See https://toast.perl6.party/ for details. 16:03
Zoffix 34% :o16:03
AlexDaniel: wait, is this a list of all modules or just the broken ones? https://gist.github.com/AlexDaniel/a2d42affde57723229ed8ca28ee7b88c16:03
The image16:04
timotimo that's gotta be all of them16:04
Zoffix BTW, there's also a bunch of module errors in ecosystem build log: http://modules.perl6.org/update.log16:04
As well as a bunch of TODOs: http://modules.perl6.org/todo16:05
Though some of them, like missing `perl`, are already "fixed" (PR sent, but still not accepted)16:05
AlexDaniel Zoffix: lal modules16:06
Zoffix ZofBot: LAL16:07
AlexDaniel dammit what's up with my typing :)16:07
HaraldJoerg1 joined16:07
raschipi AlexDaniel: SVG itself supports scripting in Javascript, but it doesn't use CSS as far as I know. Here is an interesting SVG demo: https://tympanus.net/Tutorials/InteractiveSVG/16:09
AlexDaniel hmmmm16:09
you're probably right16:09
raschipi Oh, yes, it does use CSS, just found out.16:10
HaraldJoerg left16:10
jmerelo Zoffix: that can be added, I guess.16:11
w_richard_w left16:12
raschipi The combination of dependency graphs with the staleness of the module is interesting because a stale leaf module isn't as concerning as one that has deps.16:13
MilkmanDan left16:13
MilkmanDan joined16:13
pmurias left16:14
Geth ¦ marketing: b343a07fa5 | (Zoffix Znet)++ | 13 files16:16
¦ marketing: Add Aug. 2018 Squashathon poster / ID 1532704910 16:16
¦ marketing: review: https://github.com/perl6/marketing/commit/b343a07fa516:16
pmurias joined16:16
HaraldJoerg1HaraldJoerg16:18
Zoffix Join us next week, Saturday, August 4, 2018 for the Monthly SQUASHathon! This month we will be fixing broken ecosystem modules: https://bit.ly/2LUVRdu16:18
More info on the SQUASHathon: https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day16:20
ctilmes left16:20
Zoffix left16:25
alexghacker joined16:25
tbrowder_ if you want to see animated svg with css checkout https://psrr.info16:26
fake_space_whale left16:26
alexghacker I was looking at some unicode-related things today and I started wondering which version of the UCD my installation of perl6 was using and I can't figure out a way to tell.16:27
sftp joined16:30
lizmat joined16:31
[Coke] m: multi MAIN('foo') {}; sub USAGE { print $*USAGE.gist }16:34
camelia rakudo-moar 08b449e1a: OUTPUT: «Usage:␤ <tmp> foo »16:34
[Coke] m: say $*USAGE.^name16:35
camelia rakudo-moar 08b449e1a: OUTPUT: «Failure␤»16:35
lizmat stmuk: thanks for the link :-)16:35
[Coke] m: multi MAIN('foo') {}; sub USAGE { print $*USAGE.^name }16:35
camelia rakudo-moar 08b449e1a: OUTPUT: «Str»16:35
[Coke] interesting.16:35
donpdonp joined16:37
donpdonp my_project$ zef install . => install succeeds but I cant find my .pm6 files anywhere16:37
AlexDaniel Zoffix++ awesome poster, I love it16:37
donpdonp where should I be looking? ive searched ~/.zef and ~/.rakudobrew. is there something missing in my META6.json?16:38
[Coke] donpdonp: "zef locate <name of module>"16:38
xinming What is the correct way to get the resource files bundled with module?16:38
put the files under resources, and what API should I use to locate that file?16:39
since the file names are created with sha1sum IIRC16:39
donpdonp $ zef locate CamelPub => ===> From Distribution: CamelPub:ver<0.1.0>:auth<>:api<> (end of output).16:39
AlexDaniel squashable6: next16:39
squashable6 AlexDaniel, ⚠🍕 Next SQUASHathon in 6 days and ≈17 hours (2018-08-04 UTC-12⌁UTC+14). See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day16:39
donpdonp trying the same thing with Linenoise, it has an extra line of Linenoise => /home/donp/.rakudobrew/moar-2018.06/....16:40
[Coke] donpdonp: do you have a git repo we can examine?16:40
is your META6.json correct?16:40
donpdonp [Coke]: https://nest.pijul.com/donpdonp/camelpub16:40
[Coke] does "zef locate CamelPub::ActivityPub" work?16:41
araraloren_ they change the name of the file16:41
donpdonp [Coke]: ah yes it does.16:41
araraloren_ so you can't find them according the file or module name16:41
donpdonp apparently i need more entries in the provides section16:42
i wasnt sure if/how that part was used.16:42
[Coke] not to make him the support person, but niner can probably answer the rename question.16:42
sarna left16:42
donpdonp perl6/site/sources/189B5556FCC638ADAA39A49DF8476B133BD8C310: OS/2 REXX batch file, ASCII text16:47
is that how p6 stores installed pm6 files??16:47
araraloren_ yeah16:47
donpdonp o.O16:47
wamba left16:47
donpdonp [Coke]: things are happy with zef install now, thx for the tip.16:48
wamba joined16:49
[Coke] \o/16:51
geekosaur is afraid to ask how libmagic came to that interpretation16:51
[Coke] we might want to submit some magic info for moarvm files.16:52
vrurg joined16:52
raschipi What is the magic number for Perl 6 files?16:53
timotimo those are source files, though16:53
[Coke] I don't know if donpdonp is pointing at a moarvm bytecode file there, or perl6 source or what.16:54
araraloren_ Perl 6 not have magic number, I think16:54
timotimo precompiled moar bytecode files start with MOAR or MOARVM16:54
[Coke] it would be the bytecode files if anything. if that's source, magic is confused.16:54
timotimo++16:54
timotimo oh16:54
actually16:54
raschipi And libmagic has no problem recognizing shebangs, just gotta teach it.16:54
timotimo the bytecode files in precomp directories start with a hash sum, then a piece of perl6 code that expresses dependencies, perhaps?16:55
psychoslave joined16:55
timotimo and then comes the MOARVM, at probably a non-fixed offset16:55
araraloren_ yeah, they think my Perl 6 script is Perl script16:55
that's right, but not exactly:)16:56
lucasb I think files under perl6/site/sources/* is always Perl 6 source code16:56
raschipi Can't put the 0x4d4f4152564d at the start?16:57
araraloren_ Is Rakudo compile the source file only once ?16:58
lucasb for installed modules16:58
raschipi No, it compiles and caches any module. Causes problems if you include one from a directory with many files.16:59
araraloren_ But I modify a file of a module, the change make works, why ?16:59
raschipi It takes a snapshot of the filesystem to know if it needs to recompile a module.16:59
lizmat actually, I think it's sha1's of the files, but yeah17:00
araraloren_ oh17:00
I thought they would work as pyc17:00
lizmat so: if you make a change, it will recompile, but if you change it back, it might find the previous one and not recompile again17:00
araraloren_ if the pyc exists, you change will not make works17:01
in python module17:01
yeah, thanks the explain :)17:01
good night17:01
lizmat well, I guess we're batter than python then in that respect :-)17:02
good night!17:02
araraloren_ left17:02
vrurg left17:02
donpdonp [Coke]: i wasnt sure either, i assumed it was binary, but the first line of that hex-filename is: use CamelPub::Commands; i have no idea how file came up with OS/2. haha.17:03
vrurg joined17:03
psychoslave left17:04
domidumont joined17:04
lucasb hmm, Rexx language also uses the "say" word17:05
alexghacker donpdonp: it did recognize it as ASCII text, so probably something in the content of the file matched a pattern thought to be characteristic of the REXX language as used on OS/217:05
jmerelo .tell zoffix this is the list of non-core distros with more than 1 dependencies https://github.com/JJ/p6-river/blob/master/dependent-distros.csv17:05
yoleaux jmerelo: I'll pass your message to zoffix.17:05
vrurg left17:08
geekosaur yeh, libmagic is based on heuristics17:09
unless you have a reliable byte sequence ("magic number") to identify something17:09
timotimo it'd be easy to notice if you have a current-version precomp file, or one starting in a magic number17:09
just make sure the magic number has something in it that's beyond hexadecimal17:10
probably wants something no filesystem would like %)17:10
clarkema joined17:16
Kaiepi left17:21
Kaiepi joined17:22
jmerelo .tell zoffix I have crossed the toast db with the dependency calculation DB and here's the list of failing distros with number of deps https://github.com/JJ/p6-river/blob/master/dependent-failing-distros.csv17:25
yoleaux jmerelo: I'll pass your message to zoffix.17:25
vrurg joined17:27
buggable New CPAN upload: Net-LibIDN2-0.1.0.tar.gz by KAIEPI http://modules.perl6.org/dist/Net::LibIDN2:cpan:KAIEPI17:31
Geth ¦ marketing: eebddc43c2 | (Zoffix Znet)++ | 6 files17:32
¦ marketing: Fix typo 17:32
¦ marketing: review: https://github.com/perl6/marketing/commit/eebddc43c217:32
Zoffix joined17:34
Zoffix jmerelo: thanks. Would you just prefix your messages with "Zoffix" like if I were in the channel instaed of using .tell command? My bot gives me all the messsages anyway, so there's no need to use .tell with me17:36
yoleaux 17:25Z <jmerelo> Zoffix: I have crossed the toast db with the dependency calculation DB and here's the list of failing distros with number of deps https://github.com/JJ/p6-river/blob/master/dependent-failing-distros.csv17:36
Zoffix less spam17:36
I don't get why NativeCall is in that list. It's not an ecosystem distro17:37
jmerelo: is that against last release? Test::Notice is listed as failing in that .csv, but it's passing17:39
psychoslave joined17:40
donpdonp left17:41
jmerelo Zoffix: sure. I have downloaded the database directly from the site.17:42
domidumont left17:43
psychoslave left17:43
Zoffix Which site? toast.perl6.party?17:43
jmerelo Zoffix: correct17:43
[Coke] (virtual pizza) I would be willing to donate some cash to a PM or something for actual pizza if there was an event.17:44
Zoffix jmerelo: You probably used the data from the dev commit that was toasted rather than the last stable release column17:44
I now deleted the dev commit data. There was confusion about it on Facebook too -_-17:44
jmerelo Zoffix: I use the "status" column. What's the correct one?17:45
Zoffix: and the correct database?17:45
Zoffix jmerelo: the status just says this module worked on last release but got broken on latest dev commit.17:46
jmerelo: the correct column is the "2018.06" in current data17:46
jmerelo: in the database it's rakudo or rakudo_long column17:47
jmerelo: oh wait17:47
jmerelo: nevermind, yeah, it's the status column17:47
jmerelo: but there were data for 2018.06 *and* the latest dev commit. You need to filter it by the value of `rakudo` column17:48
Tho now all the data is just for 2018.06 in https://temp.perl6.party/toast.sqlite.db17:48
jmerelo Zoffix: which value? If it's 2018.16 it's not failing?17:48
Zoffix: something like this? select module, status from toast where rakudo == "2018.06" and status != "Succ" and module like "Test%";17:49
Zoffix Why "and module like "Test%" ?17:50
jmerelo Zoffix: to test the module you mentioned above17:50
Zoffix: and right, it's not there.17:50
Zoffix it'd be module == 'Test::Notice'17:51
timotimo except sql wants = instead of ==17:52
Zoffix sqlite> select module, status from toast where rakudo == "2018.06" and module == 'Test::Notice';17:53
Test::Notice|Succ17:53
timotimo it was probably meant to be pseudocode17:53
oh?17:53
i sit corrected17:53
Zoffix :D17:53
Looks like the two are just aliases, at least in SQLite: https://www.techonthenet.com/sqlite/comparison_operators.php17:53
moritz mysql doesn't like == iirc17:54
rindolf hi all17:54
kiwi_46 joined17:56
raschipi hi rindolf17:56
rindolf raschipi: hi. sup?17:56
kiwi_46 left17:58
Geth ¦ doc/master: 4 commits pushed by (Will "Coke" Coleda)++17:59
¦ doc/master: e55c32d331 | whitespace 17:59
¦ doc/master: 800b7eedf8 | whitespace 17:59
¦ doc/master: ebc8cb215b | pass finicky links test 17:59
¦ doc/master: dd1295ab21 | fix code typo that didn't compile. 17:59
¦ doc/master: review: https://github.com/perl6/doc/compare/e664ce478525...dd1295ab219c17:59
lucasb left18:00
raiph joined18:05
Zoffix timotimo: maybe you can offer advice on whether `constant`s can be optimized in R#2138 IIRC you wrote the original optimizations for the literals case.18:05
synopsebot R#2138 [open] : https://github.com/rakudo/rakudo/issues/2138 Constants slower than literals in range creation 18:05
jmerelo Zoffix: new version of failing modules with dependencies https://github.com/JJ/p6-river/blob/master/dependent-failing-distros.csv18:07
sarna joined18:07
sarna AlexDaniel: hey, do you by any chance know if spacemacs plays well with perl6 now?18:08
Zoffix jmerelo: cool. That's a lot more managable than the total 300+ failing modules.18:08
AlexDaniel sarna: if you use the dev version, then yes18:09
jmerelo Zoffix: this new new version includes only modules in the ecosystem https://github.com/JJ/p6-river/blob/master/dependent-failing-distros.csv18:09
sarna AlexDaniel: sweet, thanks!18:09
AlexDaniel sarna: what I mean by that is that you'd have to switch spacemacs repo to `develop` branch18:09
jmerelo Zoffix: that's what we are looking for, right? Or should I include core modules too? I mean, NativeCall is one of them...18:09
AlexDaniel sarna: last spacemacs release was in January, and perl6 layer was merged after that18:09
sarna: so the next release will come with perl6 layer, but for now you'd have to use `develop`18:10
Geth ¦ doc: 07f3c96b3e | (Will "Coke" Coleda)++ | doc/Type/Signature.pod618:10
¦ doc: remove stray char 18:10
¦ doc: review: https://github.com/perl6/doc/commit/07f3c96b3e18:10
synopsebot Link: https://doc.perl6.org/type/Signature18:10
sarna AlexDaniel: I see, I see. I wonder how stable it is18:10
AlexDaniel 🤷18:10
Zoffix jmerelo: no, since NativeCall isn't failing. In the toaster db it's listed as "Unknown". I dunno why it;'s even in the toaster list at all18:10
sarna AlexDaniel: I've been using vscode, but the highlighting breaks too often :^(18:11
anyway, thanks :)18:11
Geth ¦ doc: b75421d493 | (Will "Coke" Coleda)++ | doc/Type/Cool.pod618:11
synopsebot Link: https://doc.perl6.org/type/Cool18:11
Geth ¦ doc: pass finicky links test 18:11
¦ doc: review: https://github.com/perl6/doc/commit/b75421d49318:11
raiph hi all, has anyone here installed/used comma?18:11
[Coke] Yes.18:11
AlexDaniel I attempted to switch to spacemacs a few weeks ago (that's after years after switching back to vanilla emacs), but the biggest issue for me was the lack of a good dark theme…18:11
jmerelo Zoffix: I'm including anything that's not Succ18:11
[Coke] (comma: yes)18:11
sarna AlexDaniel: I like the default theme18:12
Zoffix jmerelo: I don't remember exactly, but I think "Unkn" status means the toaster doesn't know if the module is failing or not.18:12
sarna but yeah, I could use something less bluey18:12
Zoffix raiph: I have18:12
AlexDaniel sarna: well, uhhh… I like the default theme of emacs (the one that you get if your system is dark)18:13
sarna: but in *spacemacs* it's not supported for some random reason https://github.com/syl20bnr/spacemacs/issues/472318:13
raiph [Coke], Zoffix great, i've installed, it's not working yet, going to try again, will either of you be around in next hour or two?18:13
sarna AlexDaniel: hmm, weird18:14
fbynite joined18:14
jmerelo Zoffix: here it goes with just "Fail" and "Kill". https://github.com/JJ/p6-river/blob/master/dependent-failing-distros.csv HTTP::UserAgent takes the top18:14
raiph (in case i can't get it to work and it's cuz i'm doing something dumb that you can spot)18:14
jmerelo Zoffix: just 8 with more than 1 dep. Problem is I am not sure I have all modules, I'm using perl6-all-modules from moritz, but there are only ~300 there.18:16
Zoffix raiph: I think timotimo is one of the actual devs and can help you a lot betterer.18:16
jmerelo: ohhhh.. Yeah, there's a bug with all modules repo and it's missing a bunch.18:16
jmerelo: we have 1186 modules in the ecosystem: http://modules.perl6.org/search/?q=18:17
m: say 1189-518:17
camelia rakudo-moar 08b449e1a: OUTPUT: «1184␤»18:17
Zoffix That many18:17
[Coke] raiph: nope18:18
(I wouldn't plan on it, anyway)18:18
raiph Zoffix: thx18:18
[Coke]: thx18:18
jmerelo Zoffix: is there an API I can use?18:19
AlexDaniel jmerelo: https://github.com/JJ/p6-river/blob/master/dep-to-dot.p618:19
[Coke] wouldn't perl6-all-modules just be git-related ones anyway?18:19
AlexDaniel jmerelo: I believe it will fetch everything18:20
Zoffix [Coke]: no, it gets cpan too18:20
[Coke] (or is there a script to grab cpan-latest for those?)18:20
woot18:20
Zoffix++18:20
jmerelo AlexDaniel: OK, I'll use that18:20
sauvin left18:22
Zoffix jmerelo: there's a JSON endpoint, tho I don't think there's a way to use zero-length search query with it. You have to triplicate it: http://modules.perl6.org/s/from:cpan/.json http://modules.perl6.org/s/from:gitlab/.json http://modules.perl6.org/s/from:github/.json18:23
(or figure out some other query that gets all modules and isn't empty)18:23
lucasb joined18:25
jmerelo Zoffix: I've finally used AlexDaniel's script, and here's the result https://github.com/JJ/p6-river/blob/master/dependent-failing-distros.csv18:27
Zoffix jmerelo: figured out the endpoint for all results. It's just: http://modules.perl6.org/search.json18:27
jmerelo Zoffix: 26 with more than 1 downstream dep18:27
Is it worth the while to fix HTTP::UserAgent? Or is it better to fix whatever depends on it?18:28
Zoffix: It's a single test. We should probably fix that... Weird error, too.18:30
lucasb some issue with this line: https://github.com/ingydotnet/testml-pm6/blob/master/META6.json#L2718:31
Zoffix lucasb: 'cause protocol is git, but the URL points to a ZIP file, not a git repo.18:32
lucasb source-url should be git://github.com/ingydotnet/testml-pm6.git ? zef is capable of cloneing and checkout the correct tag/revision?18:32
Zoffix left18:33
jmerelo Zoffix, AlexDaniel: now what needs to be done? Create issues in ecosystem and point the pizzabot to all these modules?18:33
clarkema left18:35
jmerelo Zoffix: "kill" apparently means it's taking too long. Should I eliminate those too?18:35
AlexDaniel left18:36
vrurg left18:36
jmerelo Zoffix: also, in some cases it's a problem with non-perl6 dependencies, such as this one: https://toast.perl6.party/module?module=Net::ZMQ&commit=2018.0618:37
psychoslave joined18:38
Possum left18:42
Possum joined18:42
jmerelo left18:53
kybr joined19:01
sarna left19:02
psychoslave left19:07
zakharyas joined19:08
mcmillhj left19:11
mcmillhj joined19:11
mcmillhj left19:11
gfldex joined19:12
mcmillhj joined19:13
robertle_ joined19:14
raschipi left19:14
dct joined19:22
vrurg joined19:27
zakharyas left19:42
vrurg left19:55
raiph left19:59
domidumont joined20:02
molaf left20:04
lucasb left20:06
fbynite left20:09
domidumont left20:20
buggable New CPAN upload: Sparrowdo-VSTS-YAML-Cordova-0.0.1.tar.gz by MELEZHIK https://cpan.metacpan.org/authors/id/M/ME/MELEZHIK/Perl6/Sparrowdo-VSTS-YAML-Cordova-0.0.1.tar.gz20:21
domidumont joined20:21
molaf joined20:23
raiph joined20:29
raiph Does anyone know if the interactive nqp shell can be made to use up arrow for command line history? If you see this and know an answer, please .tell me. tia.20:33
vrurg joined20:35
geekosaur suspect you need to use rlwrap20:37
vrurg left20:37
domidumont left20:39
mcmillhj left20:49
x[LGWs4x4i]uG2N0 left20:51
gabiruh left20:52
gabiruh joined20:53
raiph geekosaur: thx. that helped. but no cigar for me so far. installed rlwrap. cd'd to nqp dir; rlwrap ./nqp; Unhandled exception: While looking for 'nqp.moarvm': no such file or directory. now i need to remember how to use find. dusting off linux sysadmin braincells mostly unused this century...20:54
x[LGWs4x4i]uG2N0 joined20:56
raiph ah, -iname, now i remember20:57
gb00s joined20:57
gb00s left20:57
mcmillhj joined20:58
raiph geekosaur: yay, success, thx20:59
mcmillhj left21:05
mcmillhj joined21:12
mcmillhj left21:17
AlexDaniel joined21:19
fbynite joined21:21
AlexDaniel Zoffix: btw you can also PM yoleaux to receive your messages (less spam this way)21:24
vrurg joined21:26
a3r0 joined21:27
Zoffix joined21:30
fbynite left21:30
Zoffix AlexDaniel: yes, but it's annoying useless work for me21:31
:)21:31
timotimo so automate it! :)21:31
AlexDaniel or just don't leave the channel :)21:31
Zoffix I gotta21:31
Zoffix left21:31
mcmillhj joined21:38
|oLa| left21:38
vrurg left21:39
|oLa| joined21:39
fbynite joined21:40
|oLa|1 joined21:41
mcmillhj left21:42
|oLa| left21:44
sena_kun left21:45
cpage_ joined21:48
mcmillhj joined21:49
mcmillhj left21:49
cpage left21:50
cpage_cpage21:50
rindolf left21:51
|oLa|1 left21:55
|oLa| joined21:55
|oLa| left21:55
HaraldJoerg left21:56
mcmillhj joined22:01
mcmillhj left22:06
TreyHarris left22:10
Kaiepi left22:11
Zamenhof joined22:18
Zamenhof can anyone tell me the name of the perl6 equivalent to perlbrew? Is rakudobrew the recommended application to manage multiple perl 6 installs?22:20
vrurg joined22:20
Kaiepi joined22:21
Zamenhof I have rakudo 2017.07 and wanted to keep it, but install rakudo 2018.0422:21
benjikun That's what rakudobrew is used for, yeah, but I don't know if people still use rakudobrew22:22
vrurg left22:23
Zamenhof that was my question. I recall reading that there is something new to do this, but I can't recall the name22:23
TreyHarris joined22:23
El_Che Zamenhof: what os do you run?22:23
Zamenhof Windows 1022:24
El_Che rakudo star has 2018.04 windows packages22:24
it releases every 3 months22:24
masak Zamenhof: saluton, amiko!22:24
Zamenhof saluton! my esperanto is very bad atm22:25
masak I just thought, given the name... :)22:25
'night, #perl622:25
fbynite left22:25
benjikun night night masak22:25
Zamenhof El_Che: I wanted to install the newest rakudo compiler, but keep the older version too22:26
MasterDuke there are some other tools to get/build rakudo, but i don't think they allow keeping older versions22:26
Zamenhof ah, ok. good to know22:26
MasterDuke rakudup, lonestar, etc22:26
Zamenhof I checked github and rakudobrew had a commit in October.22:27
benjikun maybe you could just compile the different versions to different directories and alias the version name in the command22:27
or make a sym link for each perl6 binary22:27
Zamenhof benjikun: I figured there was a lazier way to do it. This is the perl community after all :)22:27
skids joined22:27
benjikun ah, good :)22:28
Zamenhof I was in the perl 5 irc the other day and brought up berrybrew (a windows version of perlbrew).22:29
it is a bit rough, and some had played with the idea of a rewrite in powershell22:29
perhaps a windows version of perlbrew could incorporate various versions of perl 6 too22:30
MasterDuke https://github.com/zoffixznet/z might be another option. it's geared more toward developers of rakudo, but your usecase kind of overlaps22:30
Zamenhof thx. I did not know about that one.22:31
fbynite joined22:31
mcmillhj joined22:32
vrurg joined22:32
mcmillhj left22:36
|oLa| joined23:01
molaf left23:10
skids left23:25
fbynite left23:33
SCHAPiE left23:36
SCHAPiE joined23:37
dct left23:42
pecastro left23:43
mcmillhj joined23:52
mcmillhj left23:57
mcmillhj joined23:58
Zamenhof left23:59

Logs Search ←Prev date Next date→ Channels Documentation