»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋 Set by Zoffix on 25 July 2018. |
|||
buggable | 🎺🎺🎺 It's time for the monthly Accidental /win Lottery 😍😍😍 We have 0 ballots submitted by 0 users! DRUM ROLL PLEASE!... | 00:00 | |
timotimo | can you have a look if it's better now? | ||
buggable | And the winning number is 42! Congratulations to Zoffix! You win a roll of duck tape! | ||
timotimo | buggable: rigged! | ||
tbrowder | fake winner! | ||
timotimo | i should probably do some more work on my advent calendar post, too ... you know, before it's supposed to go up on the blog ... | 00:01 | |
loops | what topic are you covering timotimo | ||
mornfall | as a punishment, Zoffix should add POD to WWW :p | 00:02 | |
timotimo | i'm hoping to do one on cellular automata | ||
loops | ala Wolfram NKS? | 00:03 | |
tbrowder | timotimo: ref wordpress, i still see 12:01 AM for my blog schedule | ||
timotimo | i.imgur.com/uy3Kves.gifv | 00:05 | |
yeah, i read that book when i was already working for someone at uni about that whole topic | |||
00:06
qiqi joined,
p6bannerbot sets mode: +v qiqi
|
|||
timotimo | tbrowder: i totally set it to be "23:59" :( | 00:08 | |
00:08
daxim joined,
clarkema left
|
|||
mornfall | also... can i precompile a script? | 00:09 | |
loops | mesmerizing image. | ||
AlexDaniel | loops: yeah o_o | ||
00:09
p6bannerbot sets mode: +v daxim
00:10
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke
|
|||
timotimo | mornfall: yes, but only by turning it into a module and invoking an empty script and -M-ing the module, or by having a script that just "use TheModuleThatIsActuallyAScript" | 00:10 | |
00:11
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
|
|||
tbrowder | timotimo: hm, schedule time looks good in the actual time window setting, but the summary time shows in a different format!! still think wordpress is crappy and we need another solution. | 00:12 | |
mornfall | okay i'll give it a try some other day :) also, perl6 on an empty script takes anywhere between 200 and 300ms :\ | ||
timotimo | perhaps need to flush some caches or something | ||
tbrowder | my church went to wordpress some years ago and our website is crappy, too! | ||
timotimo | mornfall: on my machine it's always "0:00.10 elapsed" | 00:13 | |
00:13
w_richard_w joined
|
|||
MasterDuke | mornfall: more of a style than a performance thing, but it looks like $commit is only used for it's boolean value. i might write it as `my $commit = @*ARGS.elems > 0 and @*ARGS[0] eq '--commit';` (and the `> 0` could probably even be removed) | 00:14 | |
00:14
p6bannerbot sets mode: +v w_richard_w,
Cabanossi left
|
|||
mornfall | MasterDuke: that whole thing is getting ditched :p it's just a safety measure since i was sort-of debugging the script on live data :p | 00:14 | |
MasterDuke | heh, the best way to debug | 00:15 | |
mornfall | i'll do a getopt thing when i need something real | ||
00:15
Cabanossi joined
|
|||
tbrowder | our docs site looks good. should be "easy" to add an advent display and authors could write in pod6! | 00:15 | |
timotimo | no need to reach for getopt | ||
look up sub MAIN :) :) | |||
mornfall | yeah i mean %*options something something | ||
00:16
p6bannerbot sets mode: +v Cabanossi
|
|||
mornfall | timotimo: i'll read it right away if you can come up with a p6doc incantation that shows me the docs ;) | 00:16 | |
MasterDuke | mornfall: i'm not following the code very well, what are you using Algorithm::Diff for? | 00:17 | |
mornfall | MasterDuke: well, the thing reads in data from a filesystem, then it reads the live (student-visible) copy of that data, then it shows me what changed and perhaps lets me sync up the live data to my copy of it | 00:18 | |
loops | Saw there was a bug hunting drive for perl6/doc, tried "make html" in there but it died trying to process a "defn" directive in one of the pods | 00:20 | |
mornfall | the first part collects and formats various bits of info and sorts it into a per-student text file (which then gets diffed to the text file the student currently sees) | ||
loops | Haven't made much progress :-/ | ||
mornfall | where did the moarvm blog go... i remember reading something about startup times | 00:21 | |
it's been a while tho (easily a year or more) | |||
MasterDuke | ah, so are actually diffing a whole file, not just a single text string | ||
mornfall | MasterDuke: the files don't exist on disk, they are just strings | 00:22 | |
00:23
majensen joined
|
|||
MasterDuke | ok, but you're not really looking for an edit difference, correct? | 00:23 | |
loops | mornfall: maybe 6guts.wordpress.com/ | ||
00:24
p6bannerbot sets mode: +v majensen
|
|||
mornfall | loops: i'm paging through that right now, yeah | 00:24 | |
MasterDuke | loops: does it tell you which file/directive? i don't know pod very well, but it looks like tbrowder is on now and he does | ||
mornfall | MasterDuke: i just want to see what changed in the approximately 1/4 MiB of text :) | 00:26 | |
loops | MasterDuke: doc/Language/pod.pod6 has a couple "defn" lines. I deleted them and the html build is proceeding at least. | ||
tbrowder | loops: some of the pod renderers are not quite current with the defn block, but so far i don’t think it is a rakudo pod issue from what i’ve seen. | 00:28 | |
loops | i'm only building the html to run checklink on them, thought i might be able to nibble away at github.com/perl6/doc/issues/561 | ||
tbrowder: okay, I figured as much, which is why I just deleted those lines. | |||
00:29
w_richard_w left
00:30
majensen left
|
|||
tbrowder | loops: that issue you referenced i think is part of a massive effort by jjmerelo and finanalyst to improve the docs tooling—i’m not sure that issue should be worked in this hackathon, but i would ask jj. | 00:31 | |
00:31
graphene left
00:33
graphene joined
|
|||
loops | Yeah, it is marked "big" and doesn't have "good first issue" tag | 00:33 | |
00:33
p6bannerbot sets mode: +v graphene
00:40
qiqi left,
leont joined
00:41
p6bannerbot sets mode: +v leont
00:47
pecastro left
01:14
MasterDuke left
|
|||
buggable | New CPAN upload: Algorithm-LDA-0.0.3.tar.gz by TITSUKI modules.perl6.org/dist/Algorithm::L...an:TITSUKI | 01:17 | |
sacomo | hi all | 01:20 | |
01:21
ryn1x left
01:24
qiqi joined
01:25
p6bannerbot sets mode: +v qiqi
01:35
jtperreault21 joined,
w_richard_w joined,
jtperreault21 left
01:36
p6bannerbot sets mode: +v w_richard_w
01:37
someuser_ joined,
p6bannerbot sets mode: +v someuser_
01:39
lizmat left
01:40
someuser left
01:47
lichtkind joined
01:48
p6bannerbot sets mode: +v lichtkind
01:49
leont left
|
|||
AlexDaniel | loops: actually it is part of this squashathon, and I think everyone should be able to contribute a little bit | 01:50 | |
loops: most warnings there are due to incorrect html that is produced, and that can and should be fixed | 01:51 | ||
but maybe that's not very easy, I'm not sure | |||
loops: however, if you somehow ignore all the warnings from checklink that are related to incorrect html, there are probably still some 404s and other issues | |||
that can be resolved with relatively simple PRs :) | |||
so judge yourself! | 01:52 | ||
lichtkind | cheers | 01:58 | |
does anybody know whats wrong with appvayor? | |||
pastebin.com/6dnCxYKX | 02:05 | ||
i think im not only one with that issue , that seems on strawberry side | |||
tbrowder | AlexDaniel: you’re right, i shouldn’t have made such a sweeping judgement of the situation | 02:25 | |
AlexDaniel | tbrowder: you're right also, it's a difficult issue | 02:26 | |
but it's docs&tools, and IIRC a lot of checklink errors come from issues with tools :) | |||
tbrowder | roger! | ||
02:31
Hotkeys joined,
p6bannerbot sets mode: +v Hotkeys
|
|||
SmokeMachine | .tell pmurias this is the error message on safari's console: [Error] SyntaxError: No identifiers allowed directly after numeric literal (função anônima) (eval_code.js:147) | 02:32 | |
yoleaux | SmokeMachine: I'll pass your message to pmurias. | ||
02:33
molaf left
|
|||
SmokeMachine | .tell pmurias: usercontent.irccloud-cdn.com/file/.../error.png | 02:34 | |
yoleaux | SmokeMachine: What kind of a name is "pmurias:"?! | ||
SmokeMachine | .tell pmurias same error on safari technology preview | 02:37 | |
yoleaux | SmokeMachine: I'll pass your message to pmurias. | ||
02:43
kurahaupo left
02:44
Hotkeys left
02:46
molaf joined
02:47
p6bannerbot sets mode: +v molaf
02:52
kurahaupo joined
02:53
p6bannerbot sets mode: +v kurahaupo
02:59
ChoHag left
03:21
ufobat_ joined
03:22
p6bannerbot sets mode: +v ufobat_
03:25
ufobat left
03:30
w_richard_w left
03:38
movl left
03:47
ryn1x joined
03:48
p6bannerbot sets mode: +v ryn1x
04:05
qiqi left
04:15
qiqi joined,
p6bannerbot sets mode: +v qiqi
04:52
Cabanoss- joined,
Cabanossi left
04:53
p6bannerbot sets mode: +v Cabanoss-
05:01
kurahaupo left
05:08
qiqi left
05:13
SCHAPiE joined,
p6bannerbot sets mode: +v SCHAPiE
06:00
vike left
06:04
lichtkind left
06:06
vike joined,
p6bannerbot sets mode: +v vike,
ryn1x left
06:08
pmmm joined,
p6bannerbot sets mode: +v pmmm
|
|||
Summertime | could the following error occur during OOM situation? | 06:10 | |
moar: src/unix/core.c:539: uv__close: Assertion `fd > STDERR_FILENO' failed. | |||
Aborted (core dumped) | |||
06:11
benjikun joined,
p6bannerbot sets mode: +v benjikun
|
|||
Summertime | I'd assume that like, fd exaustion approaching (since that could be fd wrapping around to negatives?) ... I dunno | 06:12 | |
input is: for |($*ARGFILES.lines) xx * { last if $been{$position += $_}++; } | 06:13 | ||
with the input being AoC 2018/01 | |||
(spoilers) | |||
nope, memory doesn't creep high enough at all... | 06:22 | ||
06:28
kurahaupo joined
|
|||
Summertime | hm, its just due to container size I guess... | 06:28 | |
06:29
p6bannerbot sets mode: +v kurahaupo
06:39
kurahaupo left
06:40
kurahaupo joined
06:41
p6bannerbot sets mode: +v kurahaupo
06:43
jmerelo joined
06:44
p6bannerbot sets mode: +v jmerelo
|
|||
squashable6 | 🍕 JJ++ submitted a review on pull request “Added test for consisten header capitalization”: github.com/perl6/doc/pull/2485#pul...-180514477 | 06:47 | |
06:54
robertle joined
06:55
p6bannerbot sets mode: +v robertle,
kurahaupo left,
AlexDaniel left,
movl joined
06:56
p6bannerbot sets mode: +v movl
06:57
kurahaupo joined
|
|||
jmerelo panics a little bit since the first Perl6 Advent calendar article has not been published | 06:57 | ||
06:57
p6bannerbot sets mode: +v kurahaupo
|
|||
Xliff | m: my @a = <1 2 3 4 5 e>; @a.sort; @a.say | 07:06 | |
camelia | [1 2 3 4 5 e] | ||
Xliff | m: my @a = <1 2 3 4 5 e>; @a .= sort; @a.say | 07:07 | |
camelia | [1 2 3 4 5 e] | ||
Xliff | m: my @a = </ 1 2 3 4 5 e>; @a .= sort; @a.say | ||
camelia | [/ 1 2 3 4 5 e] | ||
Xliff | m: my @a = </ 1 2 3 4 5 e>; @a.sort; @a.say | ||
camelia | [/ 1 2 3 4 5 e] | ||
Xliff | m: my @a = </ 1 2 4 3 5 e>; @a.sort; @a.say | ||
camelia | [/ 1 2 4 3 5 e] | ||
07:11
kurahaupo left
07:12
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
07:24
kurahaupo left,
kurahaupo joined
07:25
p6bannerbot sets mode: +v kurahaupo
07:28
rindolf joined
07:29
p6bannerbot sets mode: +v rindolf
|
|||
Geth | doc: 5057eb4cd8 | (JJ Merelo)++ | doc/Type/Cool.pod6 Minor rephrasing for EVAL |
07:32 | |
synopsebot_ | Link: doc.perl6.org/type/Cool | ||
07:35
kurahaupo left,
kurahaupo joined
07:36
p6bannerbot sets mode: +v kurahaupo
07:44
AlexDaniel joined,
p6bannerbot sets mode: +v AlexDaniel
07:46
kurahaupo left
07:47
kurahaupo joined
|
|||
buggable | New CPAN upload: Algorithm-LDA-0.0.4.tar.gz by TITSUKI modules.perl6.org/dist/Algorithm::L...an:TITSUKI | 07:47 | |
07:47
p6bannerbot sets mode: +v kurahaupo
07:57
kurahaupo left
07:58
hami joined,
p6bannerbot sets mode: +v hami,
kurahaupo joined
07:59
p6bannerbot sets mode: +v kurahaupo
|
|||
squashable6 | 🍕 JJ++ wrote a comment on “Searching Str should poi…”: github.com/perl6/doc/issues/2484#i...-443408368 | 08:01 | |
🍕 JJ++ labeled issue “Searching Str should poi…” (search): github.com/perl6/doc/issues/2484 | 08:02 | ||
🍕 JJ++ labeled issue “Searching Str should poi…” (big): github.com/perl6/doc/issues/2484 | |||
moritz | good morning | ||
does anybody know what's up with the advent calendar? | 08:03 | ||
tbrowder: can you jump in with your article please? | |||
oh, the designated author for day 1 just accepted the wordpress invitation | |||
squashable6 | 🍕 kensanata++ wrote a comment on “Added test for consisten header capitalization”: github.com/perl6/doc/pull/2485#iss...-443408786 | 08:08 | |
08:13
kurahaupo left
|
|||
squashable6 | 🍕 JJ++ wrote a comment on “Added test for consisten header capitalization”: github.com/perl6/doc/pull/2485#iss...-443409148 | 08:16 | |
🍕 JJ++ closed issue “Inconsistent capitalization for doc headers”: github.com/perl6/doc/issues/1945 | |||
Geth | doc/master: 6 commits pushed by (Alex Schroeder)++, (Juan Julián Merelo Guervós)++ | ||
squashable6 | 🍕 JJ++ merged pull request “Added test for consisten header capitalization”: github.com/perl6/doc/pull/2485 | ||
jmerelo | moritz: I've pinged the first person, and he was sick | ||
moritz: he will try to get it done today. | |||
moritz: anyway, it would be good to have at least a couple of articles ready to publish, maybe temporarily | 08:17 | ||
There are 5 drafts there. Can we maybe use one of them? They're from yesteryear, but maybe we could email the authors and ask for permission to publish in a pinch | |||
08:19
kurahaupo joined
08:20
p6bannerbot sets mode: +v kurahaupo
08:21
hami left
|
|||
jmerelo | moritz: the draft is already there. | 08:29 | |
08:30
kurahaupo left,
lizmat joined,
p6bannerbot sets mode: +v lizmat,
kurahaupo joined
08:31
p6bannerbot sets mode: +v kurahaupo
08:44
domidumont joined,
p6bannerbot sets mode: +v domidumont
08:45
kurahaupo left
08:50
kurahaupo joined
08:51
p6bannerbot sets mode: +v kurahaupo
|
|||
jmerelo announces my advent calendar entry is ready as a draft, just in case anyone wants to have a look | 09:01 | ||
09:02
kurahaupo left,
kurahaupo joined
09:03
p6bannerbot sets mode: +v kurahaupo
|
|||
moritz | jmerelo: I had actually considered writing a reserve article as well, but I was sick as well :( | 09:07 | |
09:13
kurahaupo left
|
|||
lizmat | morning! | 09:16 | |
yoleaux | 30 Nov 2018 21:20Z <AlexDaniel> lizmat: you win the bet, btw :D | ||
09:18
kurahaupo joined
09:19
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | morning :-) | 09:25 | |
09:26
kurahaupo_ joined
|
|||
jmerelo | moritz: get well soon... | 09:27 | |
mornfall, lizmat morning! | |||
09:27
p6bannerbot sets mode: +v kurahaupo_
09:30
kurahaupo left
|
|||
mornfall | do i understand correctly that every time i run a perl6 script, the entire compiler starts out as unoptimized (unspecialised) bytecode? i haven't read too much yet, just ran through the 6guts blog very quickly so my understanding is rather incomplete at this point | 09:30 | |
jmerelo | mornfall: I would say so, yes. .precomp caches do not store runtime information, far as I understand it. | 09:31 | |
Geth | doc: 6f1d0e81d7 | (JJ Merelo)++ | xt/headings.t Fixes typo |
09:32 | |
09:33
jmerelo left
10:09
qiqi joined
10:10
p6bannerbot sets mode: +v qiqi
10:12
dct joined,
p6bannerbot sets mode: +v dct
|
|||
mornfall | hmm... what would be the best way to have a bunch of modules and scripts that are part of a project which i run from its source directory? something like PERL5LIB would probably suffice, i already tweak PATH | 10:13 | |
lizmat | there's PERL6LIB: docs.perl6.org/language/5to6-nutsh...B-PERL6LIB | 10:14 | |
mornfall | i see thanks (i was looking at 5to6 variables for whatever reason) | 10:15 | |
lizmat | also, see the caveat: Note that PERL6LIB is more of a developer convenience in Perl 6 (as opposed to the equivalent usage of PERL5LIB in Perl5) and shouldn't be used by module consumers as it could be removed in the future. This is because Perl 6's module loading isn't directly compatible with operating system paths. | ||
mornfall | could i perhaps use lib $*PROGRAM? *tries* | 10:19 | |
almost | 10:20 | ||
.parent, \o/ | 10:21 | ||
lizmat | yup... also .sibling("name") also be useful | ||
if the code happens to be in a subdir | |||
mornfall | it looks a bit like something that'd be discouraged though... is it? | ||
lizmat | you mean, using "use lib" in a module ? | 10:22 | |
mornfall | in a script | ||
especially with the $*PROGRAM.parent magic | |||
lizmat | personally I don't care too much about that: I'm more of the "whatever works, works" side of the fence | 10:23 | |
mornfall | :-) | ||
lizmat | but please don't take my opinion to carry any value, please | ||
10:24
qiqi left
|
|||
lizmat | I'm well aware that programming should be fun, but that there is always a reason for doing it that is not "l'art pour l'art" | 10:24 | |
mornfall | i'm not saying that it would stop me from using it, but i'm still curious, i didn't find that much info in the docs so far | 10:25 | |
the canonical solution seems to be put your modules in cpan and/or at least install them | |||
lizmat | that's because I guess we haven't got "well established" practices in that area yet | ||
mornfall: yeah, if you can do that, that's the easiest | |||
let zef and rakudo do the work for you | |||
and this will also help you run code with different versions of the same module easier | 10:26 | ||
mornfall | but i like the immediacy of edit-run cycle, without installing anything inbetween | ||
lizmat | true, and that's why there is -I and use lib | ||
but you should realize that in Perl 6 they're not necessarily production tools | |||
mornfall | yeah, that's fine, this is not production code either (at least for now; it's just personal-use automation) | 10:27 | |
if the time comes, i'll make it a proper package and all | |||
lizmat | if that works for you, go for it :-) | 10:28 | |
but remember: TIMTOWTSYITF | |||
(There Is More Than One Way To Shoot Yourself In The Foot) | |||
mornfall | i parsed the last f as face for whatever reason :p | ||
okay i'm a bit stumped... how do i call a sub that 'is export' in a module, but not :DEFAULT? neither MyMod.mysub nor MyMod::mysub DWIM | 10:37 | ||
lizmat | you can not call subs from outside a package unless they're marked "our" | 10:38 | |
jnthn | You'd have to mark it `our` scoped, and then the latter will work | ||
10:38
qiqi joined
10:39
p6bannerbot sets mode: +v qiqi
|
|||
mornfall | that's odd i was looking at WWW.pm6 for examples but there's no 'our' anywhere in that module (is the :DEFAULT a substitute for that?) | 10:39 | |
10:39
dct left
10:40
pecastro joined,
p6bannerbot sets mode: +v pecastro
10:41
ChoHag joined
|
|||
jnthn | It's quite common to make the subs lexical and only available through export. | 10:41 | |
10:41
p6bannerbot sets mode: +v ChoHag
|
|||
lizmat | mornfall: you should also realize that imports of external subs are also lexical | 10:42 | |
so if you only need the subs of a module inside another sub, or only inside another class | |||
mornfall | i'm confused. so i have lexical sub: sub fetch() is export { yada yada }; but I can't use that when i use MyMod? | 10:43 | |
lizmat | you can put the use inside the sub / class and have the imported subs only be visible there | ||
m: { use Test; pass "foo" }; pass "bar" | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: pass used at line 1 |
||
lizmat | Test::pass is marked as "is export", but "use Test" will only make that visible inside the scope in which the "use" occurs | 10:44 | |
so in Perl 6 we worry a lot less about what is getting exported / imported | 10:45 | ||
mornfall | oh! so 'is export' lets me use the sub unqualified, and 'our' lets me use it qualified... that's the bit of info i was missing | 10:46 | |
lizmat | also: when you use "our", it is also put on the default export list (so the "is export" is redundant in that case) | 10:47 | |
mornfall | is there a way to export something for qualified-use-only? | ||
lizmat | hmmm... maybe I was wrong about "our" putting it on the export list | 10:49 | |
mornfall | yeah, 'our' seems to achieve what i want afterall | 10:50 | |
lizmat | hmmm... jnthn: "our" is implicit on class / module and that makes them be exported | 10:51 | |
jnthn: but "our" on a sub inside a module / class doesn't export them | 10:52 | ||
jnthn: so I guess they need to be at the top level to have "our" export them? Is that intentional? | |||
mornfall | actually making the module a 'unit class' instead of 'unit module' allows me to use MyMod.fetch which i kinda like better than MyMod::fetch | 10:53 | |
jnthn | lizmat: How does it "make them be xported"? | ||
mornfall | but i guess :: is more customary | ||
10:53
qiqi left
|
|||
jnthn | lizmat: They're just visible as globals | 10:54 | |
mornfall | okay, completely unrelated question | ||
lizmat | if I have a module file that only consists of "our sub foo() { ... }", loading that module will put &foo in the MY:: of the scope where I use it | 10:55 | |
mornfall | is 'return %_' somehow magic and does something else than i expect? this is what i have: my %rv; given %rv { .<foo> = 'bar'; return %rv; } # this works, but changing it to return %_ gives me an empty hash | ||
lizmat | jnthn: are you saying that all the globals of a module are always exported ? | 10:56 | |
mornfall | yes because it should be return $_ /o\ | ||
silly me | |||
jnthn | lizmat: Well, at least the original mechanism was not export, just global merging. | 10:57 | |
mornfall | is there a better way to write this? sprunge.us/1GCIJi | 10:58 | |
10:58
qiqi joined,
sena_kun joined
|
|||
jnthn | lizmat: They're two separate mechanisms (or at least were; I think it got somehow refined at some point) | 10:58 | |
10:59
p6bannerbot sets mode: +v qiqi,
p6bannerbot sets mode: +v sena_kun
|
|||
lizmat | ok, I guess I need to look at that in more depth when I get to write that particular article | 10:59 | |
jnthn | mornfall: The return $_ could be just `.return`, but it's also possible to do `%args<klic fakulta kod operace zkratka> = $key, 1433, $subj, $op, $subj;` | 11:00 | |
sena_kun | tobs, ping? | 11:02 | |
11:04
movl left
11:09
kurahaupo joined,
kurahaupo_ left
11:10
p6bannerbot sets mode: +v kurahaupo
11:13
kensanata joined,
p6bannerbot sets mode: +v kensanata
|
|||
tobs | sena_kun: pong | 11:30 | |
sena_kun | tobs, hi! | ||
tobs | good morning | ||
(on a saturday noon :/) | |||
sena_kun | it's about Advent. the thing is that my single post... has grown and I have claimed another spot, which is a bit far away from first one, so what do you think about possibility of us switching posting days? 15th and 19th. | 11:31 | |
lizmat | afk& | 11:32 | |
tobs | sena_kun: yeah, no problem | ||
sena_kun | tobs, I'll send a PR then. Thanks! | 11:33 | |
Geth | advent: Altai-man++ created pull request #6: Switch days and specify topics |
11:35 | |
11:37
lichtkind joined,
p6bannerbot sets mode: +v lichtkind
|
|||
buggable | New CPAN upload: Object-Delayed-0.0.5.tar.gz by ELIZABETH modules.perl6.org/dist/Object::Dela...:ELIZABETH | 11:37 | |
mornfall | i guess there isn't a neat way to tell a program 'please die at your earliest convenience, but not before the current react block ends'? | 11:43 | |
11:44
graphene left
11:46
graphene joined,
kurahaupo left,
kurahaupo joined,
p6bannerbot sets mode: +v graphene
|
|||
sena_kun | neat - don't think so, but you can e.g. prepare a setup Promise "flag" that can be updated at the end of react block and it will be like "if $bad-conditions { await $promise.then({ die }) }" | 11:46 | |
11:47
p6bannerbot sets mode: +v kurahaupo
11:50
Praise joined,
Praise left,
Praise joined,
p6bannerbot sets mode: +v Praise
|
|||
Juerd | mornfall: Just have a simple boolean flag. my Bool $exit; react { whenever ... { $exit = 1 if ...; }; ... }; die ... if $exit; | 11:51 | |
s/= 1/= True/ | |||
11:51
p6bannerbot sets mode: +v Praise
|
|||
Juerd | "Do something at a specific point in the linear execution of the program" is typically not done with "neat ways", but with primitive imperative things. | 11:52 | |
11:52
araraloren joined
11:53
p6bannerbot sets mode: +v araraloren
|
|||
mornfall | it's what i have, but it's not very composable | 11:55 | |
lichtkind | anyone else with the strawberry perl issue in appveyor? | ||
Juerd | mornfall: What problem are you running into? | 11:56 | |
11:57
lizmat left
11:58
qiqi left
|
|||
mornfall | Juerd: well, basically what I want is to propagate failures in a way that doesn't exit the react block immediately, because I have a captive Proc::Async for which I absolutely need to get all the output even if things failed | 11:58 | |
11:58
yqt joined
|
|||
mornfall | so the only way out of the react should be whenever $proc.start { ...; done } | 11:59 | |
11:59
p6bannerbot sets mode: +v yqt
|
|||
Juerd | Maybe you can CATCH the failures and .resume them? | 11:59 | |
I don't know if that works with react | |||
araraloren | Handle it in QUIT phaser ? | 12:01 | |
mornfall | araraloren: handle what exactly? | ||
araraloren | The exception what you got | 12:02 | |
lichtkind | Juerd looks like strawberryperl.com is down | 12:07 | |
Juerd | lichtkind: I can't help you with that | 12:08 | |
araraloren | Why you ask the question about Perl 5 in Perl 6 channel :) | 12:09 | |
lichtkind | Juerd, sure but i m curious if anyone has info about it | ||
Geth | advent: ash++ created pull request #7: Update schedule |
||
lichtkind | araraloren, becasue the perl6 build process in the CI depends on perl 5 | ||
araraloren | oh, right | 12:10 | |
tobs | is it just me (my browser) or did something go wrong with the code blocks in today's advent post? i.imgur.com/nDHaR2N.png | 12:12 | |
my suggestion would be fixed-width font and smaller size, maybe a bit of color | 12:13 | ||
Geth | advent: 8e413611cf | Altai-man++ (committed using GitHub Web editor) | perl6advent-2018/schedule Switch days and specify topics Agreed on colabti.org/irclogger/irclogger_lo...12-01#l371 |
||
advent: bbced61338 | (Tom Browder)++ (committed using GitHub Web editor) | perl6advent-2018/schedule Merge pull request #6 from Altai-man/patch-1 Switch days and specify topics |
|||
12:13
tmtvl joined
|
|||
araraloren | tobs Me too, on firefox | 12:14 | |
Geth | advent: 6c15564afb | (Andrew Shitov)++ (committed using GitHub Web editor) | perl6advent-2018/schedule Update schedule |
||
advent: 9a1ecb289b | (Tom Browder)++ (committed using GitHub Web editor) | perl6advent-2018/schedule Merge pull request #7 from ash/patch-1 Update schedule |
|||
12:14
p6bannerbot sets mode: +v tmtvl
|
|||
tobs | tmtvl: are you clairvoyant? :) | 12:15 | |
tmtvl | No, I just jumped on here when I got the e-mail from WordPress. | 12:16 | |
yoleaux | 30 Nov 2018 20:24Z <tbrowder> tmtvl: are you going to be able to publish on time? | ||
tmtvl | perl6advent.wordpress.com/2018/12/...dard-tools | 12:17 | |
tobs | oh | ||
12:17
lizmat joined,
p6bannerbot sets mode: +v lizmat
|
|||
tobs | I was just saying | 12:17 | |
tbrowder | moot now after success | ||
tobs | is it just me (my browser) or did something go wrong with the code blocks in today's advent post? i.imgur.com/nDHaR2N.png | ||
my suggestion would be fixed-width font and smaller size, maybe a bit of color | |||
tbrowder | they looked a bit off to me, too. | 12:18 | |
tmtvl: thnx for the link. did you use one of the tools we show in the instructions for md to html? | 12:19 | ||
tmtvl | Yes, I used the advent highlighter from zoffix. | 12:20 | |
Original md: gist.github.com/tmtvl/5339094bf5a6...2f11c7be50 | |||
tbrowder | that’s right, you had no probs but i and jjmerelo did...hm | 12:21 | |
tmtvl | When using standard markup from the tool the code highlighting broke on WP. | ||
As I was pressed for time I just put all the code in blockquotes. | 12:22 | ||
12:23
movl joined
|
|||
tbrowder | so you manually edited the final html? | 12:24 | |
12:24
p6bannerbot sets mode: +v movl
|
|||
tmtvl | Yes. | 12:27 | |
nextcloud.tmtvl.info/s/2rEFtxLLiKHr4nL snapshot of the code probs | 12:30 | ||
12:31
tobs` joined
12:32
p6bannerbot sets mode: +v tobs`
12:40
qiqi joined
|
|||
tbrowder | ok, that’s probably part of it. if you don’t mind experimenting, we can try to improve the process and then edit your original advent entry to prettify it if we can show improvement on a temp file. | 12:41 | |
12:41
p6bannerbot sets mode: +v qiqi
|
|||
tbrowder | in fact, i can do that on my own for the most part—i’ll keep you posted. | 12:42 | |
12:52
kensanata left
13:12
coet joined,
p6bannerbot sets mode: +v coet
13:13
coet is now known as coet|CAD
13:17
coet|CAD is now known as coet
|
|||
mornfall | can i un-tap a supply? | 13:24 | |
13:25
qiqi left
|
|||
sena_kun | `tap` returns Tap and you can call `done` on it, iirc. | 13:25 | |
docs.perl6.org/type/Tap <- first example | 13:26 | ||
araraloren | or close ? I think | 13:27 | |
mornfall | you mean .close right? sounds perfect | ||
sena_kun | yeah | ||
mornfall | thanks for the tip | ||
sena_kun | sorry, a bit busy right now. :) | ||
13:33
Sgeo joined,
Sgeo_ left,
p6bannerbot sets mode: +v Sgeo
|
|||
tbrowder | tmtvl: i used the other tool with your source (unedited) and back-published it to 2018-11-01--looks much better,l check it out--i'll trash it if there are complaints, but i would like to leave there for a while (or put it in a better place) | 13:45 | |
moritz: can we get an advent practice url? or at least enable sharing the theme settings so users can get a true preview on their personal wordpress site? | 13:47 | ||
sena_kun | tbrowder, new one looks a lot better. | ||
tmtvl | 2018-11-01, eh... | ||
tbrowder | yep, there is some problem with Zoffix's module 'cause i used his original script before his module was created to get the results you see | 13:48 | |
tmtvl | Seems fine, the first line of every code block is misaligned, but aside from that I see no problem. | ||
tbrowder | yes, i saw that too in my scheduled post. i made a lame attempt to manually edit but didn't persevere--i'll see if i can fix the script and redo. | 13:51 | |
sena_kun | tbrowder, if you are re-doing, please note that you can get syntax highlighting if code blocks will be done not using indent, but inside of "```perl6" and "```" pair(with zero indentation!). | 13:54 | |
tbrowder | see the example again. i manually added a newline immediately after each <code> entry and that removed the extra leading space. is that good enough? if so, i think i can fix the md->html script | 14:00 | |
sena_kun: ? | 14:03 | ||
sena_kun | tbrowder, should I check November's entry? It still has a newline if you ask me. That's odd, I have used your script and it went a bit better. I still think we have to do a repost though. | 14:04 | |
tbrowder | refresh the 1 nov entry, i missed some places and did several updates--be sure an refresh the page | 14:05 | |
i am working on the script now and think i see the solution... | |||
sena_kun | still seeing a newline | 14:06 | |
domm | if anybody is bored: what about coming up with nice, ideomatic Perl6 solutions to adventofcode.com/, and collecting/posting them somewhere? (and no (sorry!), I'm not volunteering...) | ||
tbrowder | where do you see the extra newline? at the top of each code block? | 14:08 | |
sena_kun | yeah | ||
my post doesn't have that | |||
though I have used your script | |||
tbrowder | so what was your solution in your md source? | 14:09 | |
sena_kun | well, I hadn't this from the start... My code blocks were wrapped in "```perl6" and "```" pairs, no indentation. | ||
tbrowder | i'm not grokking the whole picture. can you show a one-line code example? | 14:11 | |
sena_kun | one-liner: no. Give me a second... | ||
14:11
wbn_ joined
|
|||
tbrowder | in md of course | 14:11 | |
14:12
p6bannerbot sets mode: +v wbn_
|
|||
sena_kun | tbrowder, gist.github.com/Altai-man/d4ef89ac...d1a148f89d <- here. You can get non-rendered code using "Raw" button. | 14:12 | |
tbrowder | oh, i see! all you did was add the "perl6" after the opening "```", correct? | 14:13 | |
sena_kun | well, I don't know if it is related to a newline, but it 1)adds a syntax highlighting, which makes things 10x better; 2)it works for me without newlines too. | 14:14 | |
*works for me and newlines are not added | |||
tbrowder | ok, let me do it all again!! give me a few minutes... | 14:15 | |
sena_kun | thanks for working on this! | ||
tbrowder | my pleasure--posting the last two years was painful and i hope our little lab work will help the situation | 14:16 | |
14:16
daxim left
|
|||
tmtvl | I just noticed that the <md5sum> and <filename> in the last code block of the command line options will need to be fixed by changing to < and >. | 14:17 | |
14:19
daxim joined,
p6bannerbot sets mode: +v daxim
|
|||
tbrowder | sena_kun: see the 1 nov now!! excellent imho! | 14:21 | |
sena_kun | yup, that's great better! | ||
tbrowder | tmtvl: tmtvl: check the last version of 1 nov (refresh). problem still there? | 14:25 | |
tobs` | tbrowder: I'm a bit late but here is my shot at MD -> HTML: github.com/taboege/advent-md2html | 14:26 | |
not without a bunch of dependencies, but it also looks nice: taboege.de/~tobs/advent-test/ | |||
tmtvl | No it isn't, and it looks amazing. | ||
If it's okay with you I'd like to replace my article with your version. | 14:28 | ||
moritz | tbrowder: I get a real preview, but I'm using the older editor at perl6advent.wordpress.com/wp-admin/edit.php | 14:29 | |
tbrowder | tmtvl: great! if you update your md source to add the "perl6" after each beginning "```" for a code block, you should be able to redo your html and update your blog. thanks to sena_kun, that's all that's needed to fix it | ||
14:30
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
tbrowder | tobs`: thanks for the input but have you tested it on wordpress? looks like some dependencies the current tool doesn't have. | 14:31 | |
pmurias | SmokeMachine: turns out I forgot to push the bigint removal to 6pad | ||
yoleaux | 02:32Z <SmokeMachine> pmurias: this is the error message on safari's console: [Error] SyntaxError: No identifiers allowed directly after numeric literal (função anônima) (eval_code.js:147) | ||
02:37Z <SmokeMachine> pmurias: same error on safari technology preview | |||
tobs | tbrowder: I never used wordpress, but soon I will have to :-) | ||
tmtvl | tbrowder, where can I grab the script you use? | ||
tbrowder | what is your scheduled post date? | ||
tobs | tbrowder: 19th now | 14:32 | |
my script has some dependencies, but the HTML it outputs only needs an external "highlight.css", if that's what breaks for you | |||
tbrowder | ok, plenty of time. we're getting some issues worked out and i hope to have detailed examples and instruction soon. | ||
tobs | and there is a sample highlight.css in the repo | ||
tbrowder | tmtvl: script is referenced and linlked here github.com/perl6/advent/blob/maste...IBUTING.md | 14:37 | |
14:37
clarkema joined
14:38
p6bannerbot sets mode: +v clarkema,
clarkema_ joined,
ryn1x joined
|
|||
tbrowder | tobs: i would prefer a canned solution for consistency. the p6 wordpress has non-standard themes and styles that us non-admin users don't have access to. Zoffix's script takes care of all that. | 14:39 | |
14:39
clarkema_ left,
p6bannerbot sets mode: +v ryn1x
|
|||
tobs | ah, I see | 14:39 | |
clarkema | Is it possible to terminate a reduction early, but with what would be the new value of the accumulator rather than the previous value? | 14:40 | |
using 'last' in the reduce block works, but gives me the previous value | |||
tbrowder | the only downside is that, for now, you have to manually insert your source md file in a github gist. when he gets back and fixes his module, it will be much easier as you can use a local md file as long as you can provide a github access token. | 14:41 | |
tmtvl: after your replace yr p6 wordpress html with the new code, all you have to do is click the "UPDATE" button | 14:45 | ||
tmtvl | kk | 14:46 | |
14:46
domidumont left
|
|||
tbrowder | .ask moritz can we get a wordpress sandbox site (duplicating the "real" site) for the current advent process? | 14:47 | |
yoleaux | tbrowder: I'll pass your message to moritz. | ||
tbrowder | tmtvl: update looks good! i appreciate the kudo but it’s sena_kun who really solved the formatting problem 🙂 | 15:05 | |
sena_kun | tbrowder, we also have to remove post on November, I think. | 15:09 | |
15:09
pmurias left
15:10
ryn1x left,
ryn1x joined
15:11
p6bannerbot sets mode: +v ryn1x
|
|||
Geth | perl6.org: d9c65b9537 | (Tom Browder)++ (committed using GitHub Web editor) | source/resources/index.html add link to instructions |
15:19 | |
tbrowder | sena_kun: i’ll do that now... | 15:20 | |
15:21
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
hahainternet | so re: day1 of AOC, does perl6 have an equiv to ruby's 'cycle' or similar? | 15:23 | |
turning a finite list into an infinite seq with repetition? | |||
clarkema | I used |@digits xx * | 15:24 | |
that's a pipe in front of the @ | |||
hahainternet | interesting, i didn't think of xx | ||
i just wrote a traditional seq incorporating the addition | |||
thx clarkema | 15:25 | ||
clarkema | i'm still trying to find a clean way of returning a value early from a reduction though | ||
it would be nice if 'succeed' worked in that context | |||
hahainternet | List.produce ? | 15:26 | |
believe it's lazy? | |||
i'll give it a try in a min | 15:27 | ||
clarkema | ah, didn't know about that one | ||
that plus 'repeated' should do the trick | |||
15:28
ufobat_ left
|
|||
hahainternet | possibly, let me know what you come up with | 15:28 | |
clarkema | yup | 15:29 | |
say (|@words xx *).produce(&[+]).repeated.first; # <-- does the trick | |||
hahainternet | prly could golf with [\+] ? | 15:30 | |
clarkema | yup, that works too | 15:34 | |
although it ends up being pretty dense | |||
it also means that the entire solution for today's challenge fits in under half a tweet ;) | 15:35 | ||
tbrowder | sena_kun: so done | 15:36 | |
sena_kun | tbrowder++ | 15:37 | |
hahainternet | []J: you should participate too, | 15:40 | |
oh wrong channel, my mistake | |||
15:42
vike left
|
|||
hahainternet | clarkema: i quite like ([\+] |@l xx *).repeated | 15:43 | |
which is my result | |||
15:43
Khisanth left
|
|||
clarkema | Yeah, I've got say "Part 2: ", ([\+] |@drift xx *).repeated.first; | 15:44 | |
15:45
Bombo11 joined,
p6bannerbot sets mode: +v Bombo11
15:46
leont joined
15:47
p6bannerbot sets mode: +v leont
15:49
Bombo11 left
15:56
Khisanth joined
15:57
p6bannerbot sets mode: +v Khisanth
|
|||
hahainternet | clarkema: oh sorry i didn't see you replied, yeah and given the first part is [+] @l then it's a nice bit of.. not quite symmetry but there's a lovely similarity between the two parts | 16:00 | |
16:02
araraloren left
16:05
rindolf left
|
|||
SmokeMachine | pmurias: now it's working!!! usercontent.irccloud-cdn.com/file/...G_3611.PNG | 16:05 | |
pmurias: but it still warns that the browser does not support bigint | 16:07 | ||
16:09
pmurias left
|
|||
SmokeMachine | .tell pmurias sorry, I just reloaded and that haven’t warn again... | 16:10 | |
yoleaux | SmokeMachine: I'll pass your message to pmurias. | ||
16:10
ryn1x left
16:11
rindolf joined
16:12
p6bannerbot sets mode: +v rindolf
16:14
ryn1x joined,
pmurias joined,
p6bannerbot sets mode: +v pmurias,
p6bannerbot sets mode: +v ryn1x
16:15
beeman left
16:19
pmurias left
16:24
pmurias joined,
p6bannerbot sets mode: +v pmurias
16:25
domidumont joined,
pmurias left,
p6bannerbot sets mode: +v domidumont
16:29
ryn1x left
16:30
pmurias joined,
p6bannerbot sets mode: +v pmurias
16:32
pmurias left
16:36
leont left
16:37
pmurias joined,
p6bannerbot sets mode: +v pmurias
16:39
pmurias left
16:44
pmurias joined,
p6bannerbot sets mode: +v pmurias
16:47
pmurias left,
atweiden-air joined
16:48
p6bannerbot sets mode: +v atweiden-air
16:49
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
hahainternet | ouch, the profile for that solution posted before is quite somethign, 52% of time in GC | 16:50 | |
Geth | perl6.org: d08a3b69c4 | (Tom Browder)++ (committed using GitHub Web editor) | source/resources/index.html use html entities for square brackets |
16:51 | |
clarkema | hahainternet: yeah, the speed on part 2 is faily horrendous | 16:53 | |
hahainternet | clarkema: use native ints | 16:54 | |
16:54
pmurias left
|
|||
hahainternet | brings it down to 21.3% | 16:54 | |
still, a fair bit higher than it 'should' be | 16:55 | ||
clarkema | i'm just playing with a solution in rust at the moment | ||
hahainternet | well, pretty solid chance that'll be faster :D | ||
clarkema | quite a bit ;) OTOH, the imports list is longer than the perl solution | 16:56 | |
hahainternet | yeah, the comments and tests for mine are literally more than 10x larger than the implementation | ||
17:06
pmurias joined,
p6bannerbot sets mode: +v pmurias
17:08
pmurias left
17:12
pmurias joined,
p6bannerbot sets mode: +v pmurias
17:13
sjoshi joined,
p6bannerbot sets mode: +v sjoshi
17:18
pmurias left
|
|||
clarkema | wow, just .map: *.Int when reading the words from the, rather than relying on cool magic later on, _halves_ my runtime | 17:19 | |
17:22
domidumont left,
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
sena_kun | m: ("1", "2", "3")>>.Int.say | 17:23 | |
camelia | (1 2 3) | ||
17:23
dylanwh joined
17:24
p6bannerbot sets mode: +v dylanwh
|
|||
clarkema | sena_kun: thanks! | 17:24 | |
sena_kun | :] | ||
17:25
domidumont joined
17:26
p6bannerbot sets mode: +v domidumont
17:27
pmurias left
17:28
pmurias joined,
p6bannerbot sets mode: +v pmurias,
cpage_ joined
17:29
p6bannerbot sets mode: +v cpage_
17:30
cpage_ is now known as cpage
|
|||
Xliff | sena_kun: Oooh! Nice! I too waws doing map(.Int) | 17:33 | |
17:33
pmurias left
|
|||
Xliff | *.Int, actually | 17:33 | |
sena_kun | hehe | 17:34 | |
Xliff | Would that work for any method call? | ||
sena_kun | I resort to map when have to do some complex things, like one method on ??, but another for !!. | ||
yes, I think. You can do routine too with &foo, likely. | |||
it is called "hyper operator". | 17:35 | ||
Xliff | ($a, $b, $c)»."method"() is the equivalent of ($a, $b, $c).map( *."method"() ) | ||
sena_kun | yup, this one | ||
Xliff | :) | ||
sena_kun | and `»` is even shorter, but I can't write it, so `>>`. | ||
17:35
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
Xliff | sena_kun: Whenever you have spare time can you take a look at github.com/p6-GtkPlus/ and tell me what you think? | 17:36 | |
sena_kun is surprised | |||
Xliff | Why? | ||
Actually... | |||
sena_kun | also, link misses user name, I think. | ||
Xliff | github.com/Xliff/p6-GtkPlus/ | ||
Yes. :) | |||
sena_kun | :) | ||
moritz | PSA to all advent authors: it's 2018! :-) | 17:37 | |
yoleaux | 14:47Z <tbrowder> moritz: can we get a wordpress sandbox site (duplicating the "real" site) for the current advent process? | ||
Xliff | sena_kun: Why surprised? | ||
moritz | (lots of new posts / drafts tagged with 2017 and one even tagged with 2019) | ||
sena_kun | "take a look" as in "try to play with it locally and maybe suggest something"? | ||
as in, I am not a NativeCall wizard(...or it will be sorcerer). | 17:38 | ||
Xliff | 8-) .oO( He catches on quickly! ) | ||
Oh, no! I don't expect you to go any farther than running ./build.sh and looking at things in the t/ directory. | |||
I would like to know how to improve that process though. Standard ./build.sh times on my 10-core VM is about 20 minutes. | 17:39 | ||
sena_kun | A-a-a-ah. That makes things easier, I think. | ||
yikes | |||
Xliff | :) | ||
Yes. That's offputting. | |||
sena_kun | there is no way to ship pre-built ones? maybe with some choosing code added. | 17:40 | |
Xliff | I know I can cut that down by just running Perl6, but during precompile there is no output emitted. I'd like to introduce a switch in rakudo that will tell you what modules are being precompiled. | ||
There is also that. | |||
I think I can use CURI and staging, but I am not to that point, yet. | 17:41 | ||
17:41
pmurias left
|
|||
Xliff | Oh! And. New module. github.com/Xliff/p6-RandomColor | 17:41 | |
sena_kun | Could not find Cairo... Installing. | ||
Xliff | That should be a dependency. | 17:42 | |
Yeah. It's in META6:depends | |||
sena_kun | well, I run `./build.sh` first thing, so haven't installed any deps yet. :) | 17:43 | |
Xliff | Oh, LOL! | ||
:) | |||
Thanks, sena_kun | |||
tbrowder | moritz: we have been experimenting, but i don't see any new posts except for announcements--as chief admin maybe you can clean house before tomorrow! | 17:44 | |
17:47
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
moritz | tbrowder: I have cleaned a bit. I've also given you the "Editor" role, which should allow you to see and edit other author's drafts | 17:50 | |
sena_kun | Xliff, `Data::Dump::Tree` is also missing, and not listed in META, so I think it worth a fix. | 17:52 | |
17:56
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
|
|||
Xliff | sena_kun: Ouch! I forgot about those. DDT is only used for debugging purposes, which is why it is not listed in META. | 17:58 | |
Every place it is mentioned will be gone when I release. | 17:59 | ||
sena_kun | roger | ||
Xliff | Hmm... Maybe I will mention in META and just remove. | ||
Done. Thanks :) | |||
tbrowder | moritz: thanks! have you thought about a sandbox? i know it's a pain but maybe worth it to prevent advents publishes in the wild? | 18:11 | |
*published | 18:12 | ||
18:25
clarkema left
18:27
ryn1x joined
18:28
p6bannerbot sets mode: +v ryn1x
18:32
zakharyas joined,
p6bannerbot sets mode: +v zakharyas
|
|||
sena_kun | Xliff, running tests right now, 1-8 were quite nice, `09-notebook` has thrown some errors, should I post a log? | 18:35 | |
18:35
SyrupThinker joined
18:36
p6bannerbot sets mode: +v SyrupThinker
|
|||
Xliff | Yes, please! | 18:37 | |
I just checked that one and it worked fine on my end. Can you try running it again? I've noticed that there can be bouncing crashes when using GTK | |||
sena_kun | gist.github.com/Altai-man/b01ea064...9e7aaa0eb6 | 18:39 | |
Xliff | Yeah. That one definitely bounces. I've noted it. Can you create an issue for that? | ||
sena_kun | I guess. | 18:40 | |
It also segfaults sometimes. | |||
Xliff | LOL! Don't worry about it. I can do it. ;) | ||
sena_kun | :) | ||
Xliff | Yes. The segfaults are what bounce. | ||
They occur probably 40-50% of the time, which makes no sense. If there is a segfault, then it should be consistent. | 18:41 | ||
sena_kun | You are a real hero for working on this, by the way. | ||
Xliff | I'm pretty sure it's something silly I'm doing, but I haven't had much luck tracing it. | ||
sena_kun: Seriously? | |||
jnthn started me on this. | |||
Well.... his talk slides did. | 18:42 | ||
18:42
MasterDuke left
|
|||
sena_kun | Why not? I am too bad with low-level code. | 18:42 | |
Xliff | .oO( If I knew what I was getting into... ) |
||
:) | |||
I like NativeCall. That and grammars were the two reasons that got me started. Then I found more (a lot more) to keep me here | 18:43 | ||
So.... I plug along, doing what I can. :) | |||
Also, it might be better if you ran the code from the root directory, directly. | |||
perl6 -Ilib t/<name> | |||
sena_kun | is there anything I can post besides plain log? | 18:44 | |
Xliff | Using prove will work, but this suite will move to examples/ when I'm ready to distribute. I will have | ||
sena_kun | a kernel, gtk version, what can help in debug? | ||
Xliff | CLI-based tests and whatever tests I can automate from the GUI end. Tests should NOT require user intereraction. | ||
sena_kun | Yes, agreed. | 18:45 | |
Xliff | Nope. Just having someone go through the examples and letting me know what they think is good enough, right now. | ||
Also, anything that's clearly broken deserves an issue on github. | |||
So just having you run the tests is a BIG help. | 18:46 | ||
sena_kun | ok, now I need to install `libgdk-3.so` for my system... | 18:47 | |
18:47
kurahaupo_ joined,
kurahaupo left
18:48
p6bannerbot sets mode: +v kurahaupo_,
kurahaupo_ is now known as kurahaupo
|
|||
Xliff | That should have been installed with gtk!! | 18:49 | |
sena_kun | I am not sure I have gtk3 installed in system. :) | 18:50 | |
mornfall | Xliff: on some (many?) systems the .so comes in the -dev package and the normal package only has so.<version> | ||
sena_kun | no, I have, actually. but yes, it was in `-devel` package. It is quite common, by the way. | 18:51 | |
Xliff | mornfall: Ah! Thanks for the info, but I do have version objects to pass to 'is native'. Can't track that by distro, but shouldn't 'gdk',v0 be right? | 18:52 | |
OOPS! No, I did not. I had "constant gdk is export = 'gdk-3', v0"; LOL! | |||
The space after the comma is NOT supposed to be there. | 18:53 | ||
18:53
AlexDaniel left
|
|||
mornfall | Xliff: don't know, *but* DBDish::SQlite uses something something ,v0 and it then goes looking for libsqlite3.so.0 which certainly does not exist on my system | 18:53 | |
18:53
pmurias left
|
|||
mornfall | *but* it might be something platform-specific in rakudo is borked (i'm on openbsd) | 18:54 | |
the gdk on my system is /usr/local/lib/libgdk-3.so.2200.2 fwiw | 18:55 | ||
sena_kun | Xliff, I am creating an issue for every new warning I see. | 18:56 | |
mornfall | is the build.sh essential in some sense? (I'm trying zef install . for now) | 18:57 | |
the .so loader is definitely busted | 18:58 | ||
18:58
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
mornfall | wants libcairo.so.2 though I only have libcairo.so.12.3 | 18:58 | |
p6doc NativeCall → No Pod found in /home/mornfall/prog/rakudo/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 *sadness* | 18:59 | ||
Xliff | mornfall: For now, if in doubt, please post an issue. | ||
19:00
pmurias left
|
|||
Xliff | We can always close them, later. | 19:00 | |
mornfall | it's not an issue with p6-GtkPlus | ||
everything that wants to load shared libraries is borky | |||
Xliff | mornfall: The situations with the .so files are distribution specific. Those are issues a competent distro should handle. | ||
19:00
graphene left
|
|||
Xliff | I should be able to check the Perl6 environment for the type of distro, correct? | 19:01 | |
19:02
graphene joined
|
|||
Xliff | Each distro will have a minimum version that will need to be set, so it's just a matter of getting it all right on a per-distro basis. | 19:02 | |
19:02
ufobat_ joined
|
|||
Xliff | That info should be available at compile time, so... CHECK block! ;) | 19:02 | |
19:02
p6bannerbot sets mode: +v graphene
19:03
pmurias joined,
p6bannerbot sets mode: +v pmurias,
p6bannerbot sets mode: +v ufobat_
|
|||
mornfall | Xliff: apparently openbsd keeps its own .so versions (did not find out why yet) ... this might be a bit of a maintenance nightmare | 19:08 | |
19:13
pmurias left
19:14
pmurias joined,
p6bannerbot sets mode: +v pmurias
19:15
domidumont left
|
|||
Xliff | mornfall: Yes. That's why issue trackers exist. ;) | 19:16 | |
Once this is released, I will have to stay on top of stuff like that. | |||
19:16
pmurias left
|
|||
mornfall | Xliff: i disagree... this should be automated | 19:18 | |
it is automated for C programs, anyway | |||
sena_kun | Xliff, I think I have checked all examples and created issues for those where I saw warnings or too much of debug output or some Perl 6 errors. | 19:19 | |
Xliff | mornfall: Usually that was done by lb_config | 19:20 | |
Er... ld_config | |||
Don't know why, but they've moved that to -dev packages. | |||
This could be because that all programs need to be linked specifically to the lib they compile with. That makes lib changes decoupled from app functionality. | 19:22 | ||
Think about myapp that depends on libsomething.so.1.47. Why link to libsomething.so when you don't know what the libsomething developers are going to do? | 19:23 | ||
So libsomething.so.48 might introduce a bug that crashes myapp. | |||
If libsomething.so.48 was symlinked to libsomething.so it would break myapp. | |||
19:23
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
Xliff | With modern package managers, all of those versions of libsomething can be tracked. Once a package updates, the unused versions can be "GC"'d by the package manager. | 19:24 | |
19:24
jjmerelo joined,
p6bannerbot sets mode: +v jjmerelo
|
|||
Xliff | sena_kun: Thank you VERY much! | 19:25 | |
I appreciate it! | |||
Now if you find some uses for it, please let me know! :) | 19:26 | ||
sena_kun | Xliff, no problem. You can ping me if something is needed. Not really sure if I can help with code though, for this month, likely, not so. :/ | ||
Xliff | No worries! This was a big help! | ||
mornfall | Xliff: I don't have any .so symlinks -- the system linker takes care of selecting (presumably the latest) version at build time, and the program will stick to that version at runtime | 19:28 | |
Xliff: also, this is not a linux distro, it's a different operating system | 19:29 | ||
(still unix though) | |||
Xliff | :) | ||
Still wanna have it supported. :) | |||
It wants to run on all the *nixes | 19:30 | ||
mornfall | well, if you want to go the 'manual' route, you will have to add a line to all the packages that use NativeCall every six months just for OpenBSD :P presumably similar things happen in other operating systems | 19:31 | |
i'd much rather patch NativeCall to deal with this in an appropriate platform-specific way | |||
Xliff | mornfall: Actually, "is native" can take a function. That's probably the best way to handle it, although that means a run-time penalty for every call. | 19:32 | |
mornfall | there are already functions named 'guess_library_name' in NativeCall | ||
let me see what can be done | 19:33 | ||
Xliff | Thanks! | 19:34 | |
mornfall: Um. If "is native" only specifies a str, search for latest file matching lib<libname>.so.\d+ ?? | 19:35 | ||
I've always been told to put the ,v<num> specifier into nativecall code. I'm assuming this is for the reason I noted, above. | 19:36 | ||
mornfall | Xliff: it's not because of bugs, it's because the SONAME specifies the ABI revision (and that way, also an API revision) | 19:39 | |
Xliff: if you remove functions from a library, or change their meaning, you are expected to bump the SONAME | |||
Xliff | Ah. Technically, that's kinda the same thing I said (that's my story and I'm sticking to it!!!) =-) | 19:41 | |
mornfall | no, it's really quite different | ||
bugs happen all the time, and SONAME changes don't prevent that | |||
19:41
clarkema joined
|
|||
Xliff | I'm kinda kidding. But if a program expects a specific ABI, then if that changes you do NOT want to lose the old one, yes? | 19:42 | |
mornfall | specifying you want v2 of cairo can give you any number of versions of the code -- you only specify the ABI | ||
19:42
p6bannerbot sets mode: +v clarkema
|
|||
mornfall | cairo has been v2 for many years now :) | 19:42 | |
Xliff | :) | ||
mornfall | on Linux, anyway | ||
i'm pretty sure bugs have come and gone | 19:43 | ||
Xliff | Yes. You are correct in that reason. However I still stand by my statement that if an app expects a certain A[PB]I, then it wants to stick with that one because that's what it expects. | ||
mornfall | the point is, the absolute SONAME is not a significant piece of information and I think rakudo is in the wrong here to recommend using it | ||
Xliff | A change in A[PB]I almost certainly means a change in the app. | 19:44 | |
mornfall: On that topic.... we can agree, | |||
mornfall | A change in ABI can mean a recompile, a change in API might need some other changes. | ||
also there's absolutely no way to ask for API versions with shared objects | 19:45 | ||
if you build a C program, you only get to specify -lcairo | |||
that's where your choices end | |||
everything else is the responsibility of the platform (linker, runtime linker, platform conventions) to ensure that your program, after it was linked with -lcairo, will continue to get the same ABI it was built against | 19:46 | ||
Xliff | Some distros are going far enough as to specify the version in the lib name. | ||
So '-l cairo' becomes '-l cairo_3.14' | |||
But that might touch on what you just said. | |||
tmtvl | Perl 6 GTK, huh. Neat. I've been thinking about binding Qt, but it seems like a giant job. | 19:47 | |
mornfall | i have never seen that (other than upstreams going for things like libgtk3.so vs libgtk2.so, which leads to -lgtk2 and -lgtk3) | ||
Xliff | tmtvl: Ooh! Want some help? I'm yo huckleberreh! | ||
mornfall | anyway, these calls drill all the way down to $*VM.something... so the relevant bit of code is probably in MoarVM | 19:48 | |
Xliff | Although my dance card is currently taken up with GTK, it was an idea that I would move on to Qt after that. Depends on the nature of rakudo's C++ support in NativeCall. | ||
tmtvl | Xliff, so far I've only just started wrapping my head around yowcow's slides/modules. | 19:49 | |
mornfall | okay maybe not moar, $*VM is still set up by rakudo | 19:51 | |
tmtvl | But I'll make sure to put my stuff on gh when I get things off the ground. | 19:52 | |
Xliff | tmtvl: Link, please? | 19:53 | |
mornfall | are you kidding me CORE.setting is 2.2MiB (yeah, it has the function I was looking for) | ||
surely that's generated | |||
tmtvl | Xliff, Link to? | ||
Xliff | yowcow's slides? | ||
mornfall | yeah found it, don't mind me | 19:54 | |
tmtvl | speakerdeck.com/yowcow/introductio...ative-call | ||
There's also perl6advent.wordpress.com/2015/12/...-beyond-c/ although some of that may be outdated. | 19:56 | ||
19:56
ufobat_ left
19:57
silug left
20:01
jjmerelo left
|
|||
mornfall | I'm pretty sure you want to use smokeqt or somesuch to bind qt, not C++ NativeCall | 20:03 | |
clarkema | Anyone else playing with interesting AoC solutions? | 20:07 | |
Xliff | tmtvl: Thanks! | ||
20:08
silug joined,
p6bannerbot sets mode: +v silug
|
|||
tmtvl | mornfall: smoke doesn't work with Qt 5, and Qt 4 has been EOL-ed. | 20:11 | |
mornfall | tmtvl: well, chrisburel has done some work in that regard (see their github) | 20:12 | |
20:14
sjoshi left,
tobs` left
|
|||
mornfall | i'm reasonably sure it's the right way to go about it (yes, it might need to be finished up and it needs a lot of C++ knowledge) | 20:15 | |
but Qt is *huge* and the introspection provided by smoke is a substantial headstart | 20:16 | ||
20:16
sushi-roll joined,
p6bannerbot sets mode: +v sushi-roll
|
|||
mornfall | i would also consider doing it the other way around... qt has a javascript interpreter in it, and you can kinda compile raku into js? | 20:16 | |
20:17
sushi-roll left
|
|||
pmurias | mornfall: what sort of js does qt have? | 20:17 | |
yoleaux | 16:10Z <SmokeMachine> pmurias: sorry, I just reloaded and that haven’t warn again... | ||
mornfall | modern qt apps tend to be written in javascript anyway, on top of QML | ||
Xliff | Ew. | ||
Does smokeqt generate it's own CPP files? I can't find much on its proper installation or usage. | 20:18 | ||
mornfall | Xliff: as for p6-GtkPlus -- it might be a *really* good idea to use something like NETWORK_TESTING for the interactive tests :p | 20:19 | |
Xliff | Why NETWORK_TESTING? | ||
mornfall | (I patched rakudo to ignore the version on openbsd locally, so the thing runs now) | ||
Xliff: 'something like' | |||
SmokeMachine | I'm moving my post's draft to wordpress... its not complete, but could someone take a look at it? | ||
mornfall | i really don't expect 'zef install' to start popping up weird windows :p | ||
unless i perhaps ask for that? | 20:20 | ||
===> Testing: HTTP::UserAgent:ver<1.1.46>:auth<github:sergot> | |||
# NETWORK_TESTING was not set | |||
Xliff | mornfall: OK, the thing is that all of the 't/' files are interactive. They cannot be for use in Perl6 tests. The serious current non-interractive tests have not been developed, yet. | ||
mornfall | ^^ this is a good way to do it (with a different var, presumably) | ||
Xliff | For non-interractive, I mean things like... checking that CStruct classes and GTK/GDK classes match sizes, that you can use all modules OK, and other such things. | 20:21 | |
This includeds non-interactive tests that may pop up windows, but will not require a user to sit in front of them and click something to make the test pass (GTK does have some automation functions that can be used for this)' | 20:22 | ||
mornfall | i guess i can't create pull requests from the git cli, huh? :p | ||
Xliff | Those are a LONG way from being developed. I'm only 5.5 months in. | ||
20:22
pecastro left
|
|||
mornfall | Xliff: you have 5.4 months on me :P | 20:22 | |
Xliff | The files currently in t/ will be moved to examples/ or demo/ and run like the gtk-demo folder in the gtk source suite. | 20:23 | |
mornfall: So let's combine forces! :P | |||
mornfall | started looking at perl6 last Thursday | ||
Xliff | (and no.. this does not mean "combine" in the anime sense. Let's leave the gattai out of this. Thanks) | ||
20:24
pecastro joined
|
|||
mornfall | well, i sorta moved on from GUI stuff, sorry about that | 20:24 | |
20:24
p6bannerbot sets mode: +v pecastro
|
|||
mornfall | turns out I like commandline interfaces a lot more than pointing and clicking | 20:25 | |
Xliff | :) no worries | ||
Actually... I kinda agree with you, but as I age (and my fingers grow fatter), I appreciate the GUI aspectg. | |||
s/aspectg/aspect/ # See whut I mean? | 20:26 | ||
pmurias | mornfall: rakudo.js depends on some modern js features so running it on some old crusty js engine might be hard | ||
tmtvl | I'm kind of playing around with Sass, but if I see something useful I can do in the GTK repo I'll give it a try. | 20:28 | |
mornfall | pmurias: JavaScriptCore, apparently | ||
Geth | doc: c3f22187f9 | (JJ Merelo)++ | doc/Programs/01-debugging.pod6 Converts items to head2 closes #2483 |
20:30 | |
squashable6 | 🍕 JJ++ closed issue “Change page structure of the Debugging page”: github.com/perl6/doc/issues/2483 | ||
mornfall | pmurias: also from 2011 :\ | ||
at least if the copyright notice is to be believed | |||
20:31
kurahaupo left
20:33
kurahaupo joined
|
|||
mornfall | pmurias: or maybe an in-house JITter called V4 at this point? dunno, it's a mess | 20:34 | |
20:34
p6bannerbot sets mode: +v kurahaupo
|
|||
squashable6 | 🍕 JJ++ edited issue “doc/Type/X/Syntax/Commen…”: github.com/perl6/doc/issues/2480 | 20:40 | |
20:43
leont joined
20:44
p6bannerbot sets mode: +v leont
|
|||
squashable6 | 🍕 JJ++ wrote a comment on “doc/Type/X/Syntax/Commen…”: github.com/perl6/doc/issues/2480#i...-443457434 | 20:49 | |
🍕 JJ++ labeled issue “doc/Type/X/Syntax/Commen…” (external): github.com/perl6/doc/issues/2480 | |||
Geth | perl6.org: 3d791c0223 | (Tom Browder)++ (committed using GitHub Web editor) | source/resources/index.html remove duplicate left square brackey |
20:55 | |
perl6.org: 5c0fa93b6a | (Tom Browder)++ (committed using GitHub Web editor) | source/resources/index.html change words in help link ref |
20:57 | ||
21:00
sauvin left
21:03
Cabanoss- left
21:04
Cabanossi joined,
p6bannerbot sets mode: +v Cabanossi
21:05
sauvin joined,
p6bannerbot sets mode: +v sauvin
21:09
ribasushi joined
21:10
p6bannerbot sets mode: +v ribasushi
|
|||
Geth | doc: 2d3d9a6f68 | (JJ Merelo)++ | 2 files Fixed unduly generated line The hack is that it's only generated if it's in the first 5 lines of a file. However, it would be much better if we looked at the file as a whole. Closes #2455 |
21:10 | |
squashable6 | 🍕 JJ++ closed issue “"# THIS FILE IS AUTO-GEN…”: github.com/perl6/doc/issues/2455 | ||
21:11
ryn1x left
21:13
kurahaupo_ joined,
kurahaupo left
|
|||
pmurias | mornfall: seems to crazy to bother :/ | 21:13 | |
21:13
p6bannerbot sets mode: +v kurahaupo_
|
|||
pmurias | s/to/too | 21:13 | |
21:14
ryn1x joined,
p6bannerbot sets mode: +v ryn1x
|
|||
mornfall | to be fair, for UI design, QML is an order of magnitude or so saner than HTML5/CSS | 21:15 | |
21:23
kurahaupo_ left
21:24
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
|
|||
pmurias | mornfall: I haven't ever used QML so I don't have an informed opinion on it, porting rakudo.js to some old JS VM seems super crazy tho | 21:25 | |
mornfall | i'm not saying it's a good idea, or even useful... but it may still be less work than trying to bind via C++ | 21:27 | |
pmurias | there is www.npmjs.com/package/shimmy-shimmy-yam-qt for using qt from node.js | 21:29 | |
mornfall: maybe I can't tell you how hard the C++ bindings are, I don't plan to do the port as it wouldn't be fun for sure and I'm not particularly interested in learning/using qt/gtk+ (I'm not convinced native desktop guis really have a future) | 21:33 | ||
21:33
clarkema_ joined
|
|||
mornfall | pmurias: Qt is mainly a phone/tablet toolkit at this point | 21:34 | |
21:34
p6bannerbot sets mode: +v clarkema_
|
|||
mornfall | but i don't really have any interest in it either | 21:34 | |
21:35
clarkema left,
clarkema_ is now known as clarkema,
kurahaupo left
21:36
kurahaupo joined
21:37
p6bannerbot sets mode: +v kurahaupo
|
|||
pmurias | mornfall: I hope to play around with react.native for rakudo.js at some point | 21:37 | |
21:42
coet left
21:46
kurahaupo left
21:47
kurahaupo joined
21:48
p6bannerbot sets mode: +v kurahaupo
|
|||
Geth | advent: df071a9ad7 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md fix typo |
21:49 | |
21:50
robertle left
22:02
kurahaupo left
22:03
kurahaupo joined
22:04
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | well, as i said above, i left GUI stuff behind a long time ago (10 years? maybe more...) | 22:13 | |
i don't particularly miss it | |||
22:15
Cabanossi left
22:16
Cabanossi joined,
p6bannerbot sets mode: +v Cabanossi
22:17
kensanata joined,
p6bannerbot sets mode: +v kensanata,
kurahaupo left
22:18
kurahaupo joined
22:19
p6bannerbot sets mode: +v kurahaupo
22:32
kurahaupo left
22:33
kurahaupo joined
22:34
rindolf left,
p6bannerbot sets mode: +v kurahaupo
22:44
movl left
|
|||
Geth | advent: 9687128e7b | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md add help info |
22:46 | |
22:48
kurahaupo left,
kurahaupo joined,
|oLa| joined,
|oLa| left
22:49
p6bannerbot sets mode: +v kurahaupo
22:50
movl joined,
zakharyas left
22:51
p6bannerbot sets mode: +v movl
22:52
kurahaupo left
22:58
coet joined,
p6bannerbot sets mode: +v coet,
zapwai joined,
p6bannerbot sets mode: +v zapwai
23:07
kurahaupo joined
23:08
p6bannerbot sets mode: +v kurahaupo
23:09
yqt left
23:17
clarkema left
23:19
kerframil joined,
p6bannerbot sets mode: +v kerframil
23:22
kurahaupo left,
kurahaupo joined
23:23
p6bannerbot sets mode: +v kurahaupo
23:27
kurahaupo left
23:31
ChoHag_ joined,
ChoHag left,
p6bannerbot sets mode: +v ChoHag_
23:39
pmurias left
|
|||
tbrowder | .tell moritz: i don’t see how to get in editing mode. am i supposed to be able to modify date/time formatting? | 23:41 | |
yoleaux | tbrowder: What kind of a name is "moritz:"?! | ||
tbrowder | .tell moritz i don’t see how to get into wp admin editing mode. | 23:43 | |
in my site i see tools/general, but not in p6 site. | |||
.tell moritz ^^^ | 23:44 | ||
yoleaux | tbrowder: I'll pass your message to moritz. |