»ö« 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.
00:03 synopsebot___ joined 00:04 Geth_ joined 00:09 Manifest0 left 00:12 aborazmeh joined, aborazmeh left, aborazmeh joined 00:14 Manifest0 joined 00:19 Manifest0 left 00:24 Manifest0 joined 00:27 kurahaupo left 00:28 redhands left 00:29 Manifest0 left 00:33 Manifest0 joined 00:44 Manifest0 left 00:48 Sgeo_ joined 00:49 Manifest0 joined 00:51 Sgeo__ left 00:54 Manifest0 left, netrino_ left 00:57 tyilanmenyn joined, netrino_ joined 00:58 Manifest0 joined 01:10 tyilanmenyn left 01:11 Manifest0 left 01:12 netrino_ left 01:13 synopsebot___ left, Geth_ left 01:18 Manifest0 joined 01:23 Geth__ joined, synopsebot_ joined 01:25 netrino_ joined 01:26 demond joined, demond left 01:27 synopsebot left 01:28 Geth left, skids joined 01:33 Manifest0 left 01:36 sena_kun left, skids left 01:38 Manifest0 joined 01:40 synopsebot joined, Geth joined 01:46 noisegul joined, Manifest0 left 01:49 noisegul_ left 01:52 Manifest0 joined 01:58 synopsebot left, Geth left, netrino_ left 02:00 Geth__ left, synopsebot_ left 02:01 Geth joined, molaf left 02:02 discord6 joined, tyilanmenyn joined, synopsebot joined 02:03 Manifest0 left 02:04 netrino_ joined 02:05 Manifest0 joined 02:06 aborazmeh left, tyilanmenyn left 02:07 Geth left 02:08 tyilanmenyn joined, Geth joined 02:09 tyilanmenyn is now known as tyil 02:11 cpan-p6 joined, cpan-p6 left, cpan-p6 joined
cpan-p6 New module released to CPAN! GTK::V3 (0.13.0) by 03MARTIMM 02:11
02:14 molaf joined 02:22 epony left 02:24 epony joined 02:28 Manifest0 left 02:31 epony left 02:34 Manifest0 joined 02:38 Manifest0 left 02:40 epony joined 02:41 netrino_ left 02:43 netrino_ joined 02:44 Manifest0 joined 02:45 epony left 02:51 Manifest0 left 02:56 Manifest0 joined 02:57 adu joined 03:05 MilkmanDan left 03:06 MilkmanDan joined 03:11 Manifest0 left 03:16 Manifest0 joined, netrino_ left 03:18 hythm joined 03:22 Cabanossi left, netrino_ joined 03:27 Cabanossi joined 03:29 vrurg left 03:35 hythm_ joined 03:36 hythm left, Manifest0 left 03:42 Manifest0 joined 03:47 Manifest0 left 03:54 Manifest0 joined 03:55 netrino_ left 04:01 netrino_ joined 04:09 Manifest0 left 04:15 Manifest0 joined 04:19 Manifest0 left 04:24 Manifest0 joined 04:34 netrino_ left 04:37 Manifest0 left 04:40 netrino_ joined 04:41 Manifest0 joined 04:49 Manifest0 left 04:52 jmerelo joined 04:55 Manifest0 joined 04:59 hythm_ left 05:00 hythm joined, veesh joined 05:13 netrino_ left 05:14 Manifest0 left
Geth doc: e902bec65d | (JJ Merelo)++ | doc/Language/statement-prefixes.pod6
Corrects minor errors and closes #2826
05:17
synopsebot Link: doc.perl6.org/language/statement-prefixes
05:19 Manifest0 joined, netrino_ joined
jmerelo m: my $foo = { "bar","baz" }; say $foo.^name 05:20
camelia Block
05:26 Manifest0 left 05:31 Manifest0 joined 05:36 Manifest0 left 05:39 sauvin joined 05:43 Manifest0 joined 05:48 Manifest0 left, rindolf joined 05:52 netrino_ left 05:55 Manifest0 joined 05:58 hythm left, netrino_ joined 05:59 squashable6 left 06:04 squashable6 joined, ChanServ sets mode: +v squashable6 06:05 Manifest0 left 06:07 vrurg joined 06:10 Manifest0 joined 06:12 vrurg left
jmerelo m: given 3 { my %hash = {:a}; say %hash.perl } 06:16
camelia Potential difficulties:
Useless use of hash composer on right side of hash assignment; did you mean := instead?
at <tmp>:1
------> 3given 3 { my %hash = {:a}7⏏5; say %hash.perl }
{:a}
jmerelo m: given 3 { my %hash = { :a }; say %hash.perl }
camelia Potential difficulties:
Useless use of hash composer on right side of hash assignment; did you mean := instead?
at <tmp>:1
------> 3given 3 { my %hash = { :a }7⏏5; say %hash.perl }
{:a}
jmerelo m: given 3 { my %hash = { 3 => 4 }; say %hash.perl }
camelia Potential difficulties:
Useless use of hash composer on right side of hash assignment; did you mean := instead?
at <tmp>:1
------> 3given 3 { my %hash = { 3 => 4 }7⏏5; say %hash.perl }
{"3" => 4}
jmerelo m: my %hash = { :a }; say %hash.perl 06:17
camelia Potential difficulties:
Useless use of hash composer on right side of hash assignment; did you mean := instead?
at <tmp>:1
------> 3my %hash = { :a }7⏏5; say %hash.perl
{:a}
jmerelo m: my %hash = :a ; say %hash.perl
camelia {:a}
jmerelo m: given 3 { my %hash = { 3 => 4, 3 }; say %hash.perl }
camelia Potential difficulties:
Useless use of hash composer on right side of hash assignment; did you mean := instead?
at <tmp>:1
------> 3given 3 { my %hash = { 3 => 4, 3 }7⏏5; say %hash.perl }
Odd number of elements found where ha…
06:17 Manifest0 left
jmerelo m: given 3 { my %hash = 3 => 4, 3 ; say %hash.perl } 06:18
camelia Odd number of elements found where hash initializer expected:
Found 3 (implicit) elements:
Last element seen: 3
in block <unit> at <tmp> line 1
jmerelo m: given 3 { my %hash = 3 => 4, :3 ; say %hash.perl }
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed radix number
at <tmp>:1
------> 3given 3 { my %hash = 3 => 4, :37⏏5 ; say %hash.perl }
expecting any of:
number in radix notation
jmerelo m: given 3 { my %hash = 3 => 4, :b ; say %hash.perl }
camelia {"3" => 4, :b}
06:19 antoniogamiz joined
antoniogamiz o/ 06:19
jmerelo antoniogamiz: hey 06:21
m: given 3 { say WHAT {3 => 4, :b} }
camelia (Hash)
jmerelo m: given 3 { say WHAT {3 => 4, :b($_)} }
camelia (Block)
jmerelo WAT
06:22 Manifest0 joined
jmerelo m: given 3 { say WHAT {3 => 4, :b(.Num)} } 06:22
camelia (Block)
06:22 molaf left 06:24 ravenousmoose_ joined 06:31 netrino_ left
moritz any reference to $_ automatically turns it into a block 06:36
06:37 netrino_ joined
Geth doc: c91ca1308f | (JJ Merelo)++ | doc/Type/Hash.pod6
Grammar corrections and reflow while #1380
06:40
doc: e9fe5508e6 | (JJ Merelo)++ | doc/Type/Hash.pod6
Rules for hash construction, #2113, #1380
synopsebot Link: doc.perl6.org/type/Hash
doc: 5b3166dd50 | (JJ Merelo)++ | doc/Type/Hash.pod6
Fixes examples #2113, #1380
nadim_ morning! 06:43
I guess that there is a more concise way to write: defined $_ ?? $_.join !! '' 06:44
06:46 cpan-p6 left
nadim_ hmm, $_ ?? $_.join !! '' 06:46
06:47 vrurg joined
jmerelo m: say $_ // $_.join 06:48
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.

in block <unit> at <tmp> line 1
jmerelo m: my $a; say $a // $a.join
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.

in block <unit> at <tmp> line 1
jmerelo nadim_: can't think of any.
nadim_ the Any in String context is exactly what I am getting away from 06:49
jmerelo: thanks for the try :)
jmerelo m: my $a is default =''; say $a // $a.join
camelia
nadim_ but I was thinking about in the lines $_.¿join // '' where ¿ whorks like ? except that it would check if the variable is defined rather than the method exists 06:50
jmerelo nadim_: there's such thing as overestimating the capabilities of perl6 06:51
nadim_ hahaha, wishful thinking
jmerelo .? is not an operator, it's syntax if I understand it correctly.
of course you might declare an infix .¿ with Str on the left and a method on the right. That's going to be tricky, anyway. Even more so taking into account the definedness requisite 06:53
06:53 jmerelo left
nadim_ can one create an operator that has a method name as one of the operands? 06:53
you answered before I asked
06:54 chakli joined
chakli Is there any way to iterate a list from the end? without reversing it completely? 06:55
nadim_ what if it is lazy? 06:59
the problem also exists when reversing it though 07:00
07:00 Manifest0 left
chakli ok, what if its not lazy? 07:03
07:06 Manifest0 joined
chakli btw is anyone mentoring on exercism.io? 07:09
seems desolate threre
07:10 Manifest0 left 07:11 netrino_ left, vrurg left
tyil I've never heard of that 07:12
but it looks interesting 07:14
07:16 Manifest0 joined 07:17 netrino_ joined 07:20 cpan-p6 joined, cpan-p6 left, cpan-p6 joined 07:23 ravenousmoose joined 07:24 Manifest0 left 07:31 Manifest0 joined 07:38 espadrine_ left
nadim_ chakli: it's a list, you can get the number of elements and work from the last one to the first, you'll have to write the code, maybe passing it a code block to apply 07:42
lizmat list.reverse ? 07:43
list.reverse.map ?
07:44 vrurg joined 07:47 espadrine_ joined 07:49 netrino_ left 07:55 netrino_ joined 07:56 Manifest0 left
timotimo chakli: if you're allowed to modify the list, you can just .pop() until it's empty 07:58
chakli: but .reverse works with iterators, so it doesn't create a whole new list; instead, it just gives the entries in the reverse order
moritz you can also iterate over @list.keys.reverse and then use the indexes 07:59
08:00 Manifest0 joined 08:02 espadrine_ left 08:04 vrurg left 08:10 Manifest0 left 08:15 Manifest0 joined 08:19 Manifest0 left
AlexDaniel m: say (eager 1..999999)[0]; say now - INIT now 08:23
camelia 1
0.58155159
AlexDaniel m: say (eager 1..999999).reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse[0]; say now - INIT now
camelia 1
3.95098732
AlexDaniel hmm
nadim_ chakli: if you really do notwant to see any reverse ... [@l.end...0].map:{@l[$_].say}
AlexDaniel timotimo: why is this slower then?
antoniogamiz someone can explain what this means? Parse errors: No plan found in TAP output
lizmat antoniogamiz: probably your test script died before it could output anything 08:24
08:26 Manifest0 joined
antoniogamiz mmm but all tests were successful 08:26
08:28 netrino_ left 08:29 syb joined 08:30 vrurg joined
nadim_ and you had a: plan some_number ; in your test file? 08:30
08:31 syb left, sena_kun joined, Manifest0 left, syb joined, syb left
timotimo AlexDaniel: it still has to go .pull-one through each iterator in turn :P 08:32
AlexDaniel timotimo: … 08:33
08:35 netrino_ joined 08:36 Manifest0 joined 08:38 patrickb joined
AlexDaniel timotimo: github.com/rakudo/rakudo/issues/2925 08:39
6c: say (eager 1..999999).reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse[0]; say now - INIT now 08:40
committable6 AlexDaniel, gist.github.com/fd57c9ff2ee3b1466e...e049564941 08:41
AlexDaniel c: 2017.02,2017.03 say (eager 1..999999).reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse[0]; say now - INIT now 08:42
committable6 AlexDaniel, ¦2017.02: «1␤0.5142002␤» ¦2017.03: «1␤2.0057241␤»
AlexDaniel hmmmmmmmmmmmm
bisect: 2017.02,2017.03 say (eager 1..999999).reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse[0]; say (now - INIT now) < 1.5
bisectable6 AlexDaniel, Using old=2017.02 new=2017.03 in an attempt to DWIM
AlexDaniel, Bisecting by output (old=2017.02 new=2017.03) because on both starting points the exit code is 0
AlexDaniel, bisect log: gist.github.com/20ff25233f3c1b652f...6fd6f60100 08:43
AlexDaniel, (2017-03-01) github.com/rakudo/rakudo/commit/be...d919c695d0
AlexDaniel right? Hmm…
c: 2017.02,2017.03 say (eager 1..999999).reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse.reverse[0]; say now - INIT now 08:44
committable6 AlexDaniel, ¦2017.02: «1␤0.8437588␤» ¦2017.03: «1␤5.17791500␤»
lizmat interesting... 08:49
timotimo is benchable not healthy? 08:50
AlexDaniel timotimo: just not as reliable 08:51
timotimo OK 08:52
AlexDaniel and not as quick 08:53
AlexDaniel mwuah mwuah mwuah mwuah bisectable
08:54 vrurg left 09:02 Manifest0 left 09:07 Manifest0 joined, netrino_ left 09:09 ravenousmoose left 09:10 ravenousmoose joined 09:14 netrino_ joined 09:22 vrurg joined 09:25 ravenousmoose_ left 09:27 patrickb left, antoniogamiz left 09:37 squashable6 left 09:39 squashable6 joined, ChanServ sets mode: +v squashable6, Manifest0 left 09:40 netrino__ joined 09:41 netrino_ left 09:42 squashable6 left 09:45 Manifest0 joined 09:46 squashable6 joined 09:50 vrurg left 09:52 Manifest0 left 09:57 Manifest0 joined 10:01 Manifest0 left 10:06 Manifest0 joined 10:10 chakli left 10:17 Manifest0 left 10:20 vrurg joined 10:24 Manifest0 joined 10:28 Manifest0 left 10:34 Manifest0 joined 10:36 rindolf left 10:41 dustinm` left, Manifest0 left 10:44 vrurg left, clkao joined 10:45 ravenousmoose_ joined 10:46 Manifest0 joined 10:47 [particle] left 10:48 [particle] joined 10:51 dustinm` joined 10:59 Manifest0 left 11:02 chakli joined 11:05 Manifest0 joined 11:12 Manifest0 left 11:14 daxim joined 11:15 chakli_ joined 11:16 MasterDuke left 11:17 Manifest0 joined, chakli left 11:19 vrurg joined 11:31 Sgeo_ left 11:32 epony joined, Manifest0 left, Sgeo_ joined 11:38 rindolf joined 11:39 Manifest0 joined 11:44 MasterDuke joined, MasterDuke left, MasterDuke joined 11:46 Manifest0 left 11:50 vrurg left, Manifest0 joined 11:56 natrys joined 11:57 Manifest0 left 12:02 Manifest0 joined
nadim_ lizmat: you may want to look at the example/wrap_and_highlight in the latest DDT (with Slip) it's an example of how you could have wrapped the few lines you posted yesterday 12:03
I forgot to bump the version, as always, you'll need to force the install :( 12:04
lizmat nadim_: thanks for the nudge.. :-)
nadim_ lizmat: thank you for reporting that Slip wasn't handled right, it was hell but I had fun :) 12:06
lizmat :-) you're welcome
nadim_ lizmat++
12:10 molaf joined 12:17 Manifest0 left 12:18 vrurg joined 12:23 Manifest0 joined 12:28 Manifest0 left 12:33 Manifest0 joined 12:40 vrurg left 12:42 natrys left, rindolf left 12:43 Manifest0 left, natrys joined 12:45 MilkmanDan left 12:46 Altai-man_ joined 12:47 MilkmanDan joined, Manifest0 joined 12:49 sena_kun left 12:54 clkao left 12:57 ravenousmoose_ left 13:00 rindolf joined 13:12 Manifest0 left 13:13 vrurg joined 13:18 Manifest0 joined 13:22 Manifest0 left 13:28 Manifest0 joined 13:32 chakli_ left 13:33 Manifest0 left 13:39 Manifest0 joined 13:40 vrurg left 13:46 molaf left, antoniogamiz joined 13:50 natrys left
antoniogamiz o/ 13:50
13:51 Manifest0 left
nadim_ \o/ 13:55
Altai-man_ o/
13:56 aborazmeh joined, aborazmeh left, aborazmeh joined 13:57 Manifest0 joined 14:11 netrino joined 14:14 netrino__ left 14:16 vrurg joined 14:17 MilkmanDan left, veesh left 14:19 Altai-man_ left 14:23 veesh joined
antoniogamiz if several when blocks match with the same element, which of them is executed? 14:26
the first encountered? 14:27
nadim_ Can someone enlightenme on the usage or .VAR, I get a exception and it's a bit boggling. nopaste.linux-dev.org/?1204113 14:29
jnthn antoniogamiz: Yes, they are tried in order, and by default no more are tried afterwards. If you want to try further ones, end the block with `proceed` 14:30
nadim_ Type check failed in binding to parameter '<anon>'; expected Array but got Scalar is the exception 14:31
14:31 MilkmanDan joined 14:38 ayerhart left 14:39 jeromelanteri joined 14:40 Manifest0 left 14:41 vrurg left 14:45 Manifest0 joined
antoniogamiz jnthn: ok, thanks :) 14:48
14:53 Manifest0 left 14:58 Manifest0 joined 15:02 vrurg joined, molaf joined 15:03 Manifest0 left, vrurg left 15:06 aborazmeh left 15:08 Manifest0 joined 15:26 Manifest0 left 15:29 ravenousmoose left 15:31 Manifest0 joined 15:33 espadrine_ joined 15:38 nadim_ left 15:52 ufobat_ joined 15:54 mrsolo left 15:55 sftp left, ufobat_ left, ufobat_ joined 15:56 ufobat__ left 15:57 mrsolo joined, espadrine_ left 16:00 sftp joined
Geth perl6.org: d10c2b0752 | (Timo Paulssen)++ | 4 files
move files to become index.html, fixing some urls
16:03
16:04 Manifest0 left 16:10 Manifest0 joined 16:11 antoniogamiz left 16:13 dustinm` left 16:14 dustinm` joined 16:15 BuildTheRobots left 16:17 BuildTheRobots joined 16:25 Geth left 16:26 Geth joined 16:44 Manifest0 left 16:50 Manifest0 joined 16:55 Manifest0 left 16:58 nadim_ joined 17:00 Manifest0 joined 17:07 Manifest0 left 17:09 cpan-p6 left 17:11 cpan-p6 joined, cpan-p6 left, cpan-p6 joined 17:14 Manifest0 joined 17:15 Sgeo_ left 17:16 Sgeo_ joined 17:22 Manifest0 left 17:27 Manifest0 joined 17:29 jeromelanteri left 17:40 Manifest0 left 17:45 jeromelanteri joined 17:46 jeromelanteri left, |oLa| joined 17:47 Manifest0 joined 17:49 vrurg joined 17:50 vrurg left, squashable6 left 17:54 squashable6 joined, ChanServ sets mode: +v squashable6 17:56 squashable6 left 17:57 zakharyas joined 18:01 squashable6 joined 18:03 simpleUser joined
simpleUser hello i'am testing Perl6 for a moment on windows 7 i still can't use modules, when i try to write one for test it's not found 18:05
timotimo hi simpleUser, where is the module relative to your code, and where do you run the code from? like, on the commandline, or do you have an IDE or something? 18:06
simpleUser i have created a text file with extension .pl which runs the script and another one with extension .pm or pm6 located in rakudo/share/perl6 18:08
timotimo ah, that folder is a repository that has a very specific format. if you want a module to appear there, you'll have to use a module installer. however: 18:09
you can put the module file under a folder named "lib" and either call your script with "perl6 -I lib blahscript.pl" or put a "use lib 'the/path/where/the/lib/folder/lives';" near the start of the script
18:10 vrurg joined
simpleUser ok thanks i'm trying it right now 18:10
18:11 xi- left
timotimo good luck! i'll probably be AFK soon, not sure for how long, but others in here can surely help you, too 18:11
simpleUser thank you very much i continue testing this
18:14 Sgeo__ joined 18:17 Sgeo_ left 18:19 Manifest0 left
simpleUser hello i've tried several methods to call the module but it says use v or v6.c but doesn't load the file 18:21
timotimo ok, i'm still here for a moment 18:23
simpleUser cool thanks
timotimo if you use "use lib 'blah/';" in your script (and the module lives in that blah/ folder) the blah folder has to be relative to your CWD, which you can output like this:
m: say $*CWD
camelia "/home/camelia".IO
18:24 Manifest0 joined
simpleUser ok i'm trying this 18:25
it says use prefixe for pragma use v or v6.c 18:28
timotimo i'm not sure i understand what error that is
are you sure you're running it with perl6 rather than perl? 18:29
m: v6.c; say "test"
camelia test
timotimo m: use v6.c; say "test"
camelia test
simpleUser i'm running Perl 6.d 2019.03.1 built on moarvm 2019.03 18:30
maybe i've missed something in the making of the files 18:31
timotimo perhaps 18:32
the error message doesn't seem familiar, perhaps it's just a typo
simpleUser yes i'm going to simplify it from start it's just a hello world test for the moment 18:33
trying to do this perl6advent.wordpress.com/2009/12/...exporting/ 18:34
timotimo OK, what does your "use" statement for v6 or v6.c look like, and how's the one for your module? 18:35
lizmat simpleUser: that's really outdated information, perhaps better to look at docs.perl6.org/language/modules#in...sub_EXPORT
simpleUser ok i'm looking at it to correct my two files... 18:36
timotimo BBL 18:37
simpleUser i think i have found the way to use module because now it says i made a mistake into it thanks very much for your help :-) 18:45
18:52 |oLa| left 18:54 antoniogamiz joined
Kaiepi . 19:01
o/
19:10 rindolf left 19:13 rindolf joined 19:20 Manifest0 left 19:23 JJ joined
JJ hello 19:26
19:27 Manifest0 joined 19:31 JJ left
timotimo simpleUser: i'm glad to hear you're making progress 19:36
don't hesitate to ask more questions if you get stuck
19:44 Manifest0 left
simpleUser i have re written it in a more simple way still not working but is has evolved so i continue (i'm not a dev at all) 19:46
19:49 Manifest0 joined 19:54 Manifest0 left 19:59 Manifest0 joined 20:03 kaare__ left, kaare__ joined, Xliff joined
Xliff \o 20:04
Got this when attempting to rakudobrew: Found /usr/local/home/cbwood/Projects/rakudobrew/moar-master/install/bin/moar version 2019.03-110-g081823ffc, which is too old. Wanted at least 2019.05-11-g248e298
This is on the VM. On the Linux side, I got around this by switching to moar-blead when using rakudobrew
It looks like there's an upgrade path missing.
20:09 ufobat__ joined
simpleUser yes that's it i tried it this afternoon with no effect even if i copied every files in every locations. now that i'm testing files giving the exact path it finds it but i still dont understand mechanic 20:11
even if i copy the exemples of docs.perl6.org/language/modules#use it says undeclared routine 20:12
20:13 antoniogamiz left
Xliff simpleUser: I think I'm running into your conversation. Are you talking about the compile error I just pasted? 20:13
Or something else?
20:13 ufobat_ left
simpleUser i'm trying to run modules on windows do you do the same ? 20:13
Xliff No. I run all of my Perl6 projects in Linux. Sorry. 20:14
Do you have a gist or pastebin of your problem? 20:15
simpleUser i copy paste the exemple of this page docs.perl6.org/language/modules#use 20:16
unit module MyModule; my package EXPORT::DEFAULT { for <zero one two three four>.kv -> $number, $name { for <sqrt log> -> $func { OUR::{'&' ~ $func ~ '-of-' ~ $name } := sub { $number."$func"() }; } } }
use "c:/users/name/desktop/ici/MyModule"; say sqrt-of-four; say log-of-zero;
is says undeclared routine 20:17
Xliff Did you save the block that starts with "unit module MyModule" into a file called MyModule.pm6 in the current directory?
timotimo any particular reason you're using a more complicated mechanism to get the subs in there?
Xliff timotimo: He's working from the docs. 20:18
docs.perl6.org/language/modules#use
20:18 xinming_ joined
timotimo if the line with 'use "c:/users/..."' is literally like that, i don't think it'll work with a full path like that? 20:18
simpleUser yes i have two separate files. yes first of all i was trying to install GTK::Simple to make GUI on windows but it wasn't finding it 20:19
Xliff Oh! No. That use statement will not work.
simpleUser it has been found it just says undeclared routine now
timotimo there is a way to load a module with a full path, but i forgot how to do it 20:20
ah, yeah, if it complains about the routine missing, it'll be a different problem
let me try that code locally
Xliff Why not just save it as MyModule in the current directory and just use -I.?
simpleUser yes i was sweating all the day lol
timotimo also, that path ends just in "MyModule"? like, without a ".pm6" or so? 20:21
simpleUser yes without .pm6 just the name
20:21 xinming left
timotimo huh. it works on my machine 20:22
gives 2 and -Inf
oh, but i "use"d the module differently, with perl6 -I . and "use MyModule"
simpleUser so it works on Linux but something is missing on windows 7 20:23
timotimo oh
that's how you get the error use used at line 1 (in Perl 6 please use "v" prefix for pragma (e.g., "use v6;", "use v6.c;") instead)
the important bit is the "Undeclared routines:" heading before it
you use the "use" as if it were a subroutine
so it thinks you used it with a value, like "use 6" for example
simpleUser yes that's the problem because the path is good now
timotimo in this case it's a string, though. not a number 20:24
it still says "log-of-zero used" and "sqrt-of-four used" there, too?
anyway, that error message really needs improved
simpleUser yes do you think i must change something ? 20:25
timotimo yeah, i'm not sure how you got it to stop complaining about the "use" part 20:26
but there's still something wrong with it
m: use("this doesn't exist and i have no clue what's going on"); say "test" 20:27
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
use used at line 1 (in Perl 6 please use "v" prefix for pragma (e.g., "use v6;", "use v6.c;") instead)
simpleUser yes you are right my mistake, i changed files so many times sorry
timotimo no problem 20:28
i can understand it to be super frustrating
can you try it with this:
use lib "c:/users/name/desktop/ici/"; use MyModule; say sqrt-of-two;
simpleUser well i give up for the moment, just a question do you have a way to make GUI on Linux ?
timotimo yeah, GTK::Simple can also be used on linux to make GUIs
there's also an "electron" module that allows you to build your GUI by using an embedded browser 20:29
like the atom and visual studio code editors for example
simpleUser yes it stopped complaining with use lib
20:29 Xliff left
simpleUser nice that it works on Linux, too bad they havent made it to windows it must quit time consuming 20:30
timotimo GTK::Simple also works on windows, though 20:31
not sure what problem exactly you're encountering
oh
oh, i think i know what's going wrong
it's trying to download the windows DLLs from gtk-dlls.p6c.org or something like that
that's the server that turned to dust a month ago 20:32
i totally forgot about that site and didn't restore it yet
simpleUser well i made a zef install this afternoon
timotimo ... also i don't know if we have a backup of the files?
simpleUser and it has not worked even with force install
so i tried to find where to put files
then i tried testing a simple module 20:33
timotimo yeah, it wouldn't be able to install without that website :( 20:34
simpleUser yes it made me quite angry LOL but no problemo it's nice to test things my level is very low yet but Perl6 is amazing 20:35
timotimo www.gtk.org/download/windows.php - this is how easy it is to get DLLs for gtk 20:36
in other words: not
oh wow vcpkg what's this 20:37
simpleUser yes i had tested even that method a few times ago, i pulled my hair off my head and it didn't work
timotimo vcpkg or the gtk.org thing? 20:38
simpleUser i'm curious to see that on Linux i must reinstall a HDD one day
MSYS2 packages this one
20:40 mniip left
simpleUser windows is resisting perl6 i even tried to have buttons with vbs funny but nothing serious 20:40
timotimo are you on windows 10?
simpleUser i'am on windows 7
timotimo OK, so it's not possible to use the "linux on windows" thing
simpleUser yes unfortunately unless a virtual machine maybe but clunky 20:41
20:41 mniip joined 20:42 Xliff joined
timotimo you know what, why don't we use appveyor free windows virtual machine continuous integration service to build GTK DLLs automatically 20:42
Xliff timotimo: Quick look, pls? github.com/timo/cairo-p6/pull/26 20:43
simpleUser nice idea i didn't know this one 20:44
timotimo Xliff: if it compiles, feel free to merge it
Xliff It compiles. 20:45
timotimo wanna help me set up building GTK DLLs on appveyor for GTK::Simple (and of course possibly also your GTK modules)
Xliff Humm... what would that involve?
timotimo i think with vcpkg it's actually only three lines to compile everything and then copying and zipping stuff? 20:46
Xliff Sure. Please note my experience with appveyor is Nil.
timotimo no prob
Xliff But if you want help, I'm here!
timotimo i'm having a hard time focusing today, but maybe all i need is one little push
git clone github.com/Microsoft/vcpkg 20:47
cd vcpkg
Xliff HA! I know that feeling.
timotimo .\bootstrap-vcpkg.bat You can then install the GTK packages with
vcpkg install gtk:x64-windows
Xliff This on windows?
timotimo yes
Xliff Wow! You're in luck! I'm on the Windows side, today. ;)
One sec.
timotimo it looks like appveyor images already come with vcpkg installed 20:49
so you can ignore the first three lines
Xliff I'm already running the gtk:x64-windows line 20:51
BUILD FAILED with glib 20:52
timotimo ci.appveyor.com/project/timo/gtk-s...s/24811887 - check it out 20:58
Xliff Nice! 20:59
timotimo this could take a while 21:00
Xliff Yes. Got farther than my system did, though. 21:01
Must be mising something.
s/mising/missing/
21:10 zakharyas left
timotimo Xliff: travis says the cairo build failed; i'm not sure if it passed before 21:11
Xliff Rut roh.
Geth ¦ perl6.org: rba self-assigned The link perl6.org/community/irc is broken github.com/perl6/perl6.org/issues/127 21:12
Xliff redeclaration?
Geth ¦ perl6.org: rba self-assigned 404 in perl6.org/community/ github.com/perl6/perl6.org/issues/130 21:13
¦ perl6.org: rba self-assigned examples.perl6.org insecure/certificate warning and no content? github.com/perl6/perl6.org/issues/129 21:14
¦ perl6.org: rba self-assigned broken link/missing file github.com/perl6/perl6.org/issues/128 21:15
Xliff Fahrfignugen. There's an incorrect def that was already there.
Looks like I added it, too! /o\ 21:16
timotimo oh great 21:19
i waited all this time for it to finish
now i have no idea where it put things
Xliff Eep.
timotimo and i'm not sure i'll be able to find out without restarting it
Xliff OK. Found the issue. Sending another PR. It really does compile, this time.
lizmat weekly: www.facebook.com/packy/posts/10217294893461981 21:21
notable6 lizmat, Noted!
Xliff OK. It's running Travis. Will watch it. 21:22
21:27 Manifest0 left
Xliff m: sub uni (Int() $a) { say $a }; uni('π') 21:28
camelia Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5π' (indicated by ⏏)
in sub uni at <tmp> line 1
in block <unit> at <tmp> line 1
Xliff m: sub uni (Int() $a) { say $a }; uni('π'.ord)
camelia 960
Xliff timotimo: Travis check is green. 21:34
21:34 Manifest0 joined
Voldenet m: \💩 21:34
camelia 5===SORRY!5=== Error while compiling <tmp>
You can't backslash that
at <tmp>:1
------> 3\7⏏5💩
expecting any of:
prefix
statement list
term
Voldenet I like that error message, informal and informative
Xliff timotimo: Total elapsed time: 19.34 min .oO(Appveyor is pretty fast) 21:35
timotimo github.com/gtk-rs/gtk/issues/702 - we're not the only ones ... 21:38
hm, that seems like "use vcpkg during building"? 21:41
Xliff timotimo: Were you able to find the stuff in appveyor? 21:45
How can I set this up so I can use it?
timotimo what exactly? 21:46
Xliff Never mind on the second part.
Did you find the libs from the appveyor run of GTK?
timotimo i'm going to log in to the build machine via RDP and see what's what 21:47
Geth doc/master: 5 commits pushed by Coke++
Xliff OK
timotimo merged your pr 21:48
Xliff Thanks
timotimo oh, did you look at Dear ImGui again since we last discussed it? 21:52
8 minutes to go until the build finishes 21:58
i wonder if a --no-tests flag exists
22:10 Manifest0 left
timotimo i think i see the files 22:11
22:15 Manifest0 joined 22:19 Manifest0 left
timotimo welp. 22:21
now all we need is hosting
Xliff Haven't had a chance to. 22:25
22:25 Manifest0 joined
timotimo no problem 22:25
Xliff Looking now, tho. 22:26
timotimo there's no rush. it's not like i have the time&energy to really do anything with it
22:26 rindolf left
timotimo so please chill 22:26
Xliff I can still look. :p
22:29 RaycatWhoDat joined
RaycatWhoDat p3: say 3 22:29
D'oh.
Xliff timotimo: Dear ImGui would be something to play with starting late summer -> fall
RaycatWhoDat p6: say 3
camelia 3
RaycatWhoDat Sweet.
timotimo simpleUser: i'm super tired now and will go to bed soon, but i built GTK3 DLLs on appveyor, want me to send them your way? 22:31
Xliff timotimo: Latest project is porting Clutter: wiki.gnome.org/Projects/Clutter 22:34
timotimo i wonder if that'd be useful for anything video-game-like 22:36
Xliff Yep. 22:37
timotimo the clutter website seems very odd 22:38
1.12
Target date for API freeze: 2012-08-22
oh, they put the oldest stuff at the top
not at the bottom
all of this clutter stuff seems kind of stale 22:40
jesus, i hope nothing in perl6-land is like this at all 22:42
is clutter, like, stable? 22:43
the last commit with actual source code changes is like a year old 22:45
Xliff m: my @a = <a b c d e f>; say @a.splice(1) 22:50
camelia [b c d e f]
22:50 espadrine_ joined 22:51 sena_kun joined
timotimo ebassi.github.io/emeus/ - random interesting find of the day 22:53
22:53 RaycatWhoDat left
Geth doc: 9a32063ae4 | Altai-man++ (committed using GitHub Web editor) | doc/Type/Iterable.pod6
Revise an example

No real need for us to "save" characters by not using newlines or whitespace, so apply the style of first method definition for the second one for them to be equal.
22:56
synopsebot Link: doc.perl6.org/type/Iterable
23:05 Manifest0 left 23:08 Manifest0 joined, khisanth_ left 23:13 Manifest0 left
simpleUser thanks very much for you patience your timean your skill, didn't expect so much really enjoy. see you later :-) 23:13
timotimo Xliff: you still here? i'd like to pass the gtk dlls on to you 23:15
Xliff timotimo: Yup
timotimo www.sharedrop.io/rooms/d279c8bf-9d...bc3900220f
good good. 23:16
simpleUser: if you want them too you can connect there, too
Xliff *slurp*
simpleUser thanks that's nice
Xliff timotimo: Thanks!
timotimo i'm not sure how to get GTK::Simple to use them, though 23:17
i hope Xliff can maybe have a look?
Xliff I haven't used GTK::Simple in a while, either.
I'm also about to go offline in a bit.
simpleUser no problem i'll test and experiment that soon i've downloded it 23:18
23:18 espadrine_ left, Manifest0 joined
timotimo simpleUser: github.com/perl6/gtk-simple/blob/m...r/Build.pm - this file has the logic to find the dlls 23:18
Xliff simpleUser: We can work on it more when I get back. If you have time tomorrow, I'll be around then, too.
timotimo the hashes will for sure not match up with what's in the file 23:19
simpleUser ok nice have a good night thanks again :-)
timotimo and the filenames may also not match up
simpleUser bye
ok
timotimo ah, i see
if the thing finds libgtk-3-0.dll at the start, it will say "yup, we have everything we need! nothing to do here!"
so ... i guess if it's windows, you just dump all those dll files in C:/Windows/System/ or something? 23:20
simpleUser that will be the ring a bell to GUI
yes system32
timotimo but those are 64bit dlls
so ... no clue how you handle that
worst case just put the dlls in whatever folder you run "zef" and "perl6" from 23:21
maybe it will also look next to perl6.exe?? perhaps?!?
simpleUser no problem i'll be looking for
timotimo or next to moar.exe
i wish you the best of luck!
simpleUser yes i hope so if they are aware of it and have time
thanks very nice 23:22
23:24 simpleUser left 23:26 khisanth_ joined
Xliff m: my enum <AAA BBB CCC>; say AAA; 23:28
camelia AAA
Xliff m: my enum <AAA BBB CCC>; say AAA.Int;
camelia 0
Xliff m: my enum <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' }; say %h{AAA} 23:29
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in parenthesized expression; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> 3<AAA BBB CCC>; my %h = ( AAA => 'aaaaa' 7⏏5}; say %h{AA…
Xliff m: my enum <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say %h{AAA}
camelia aaaaa
Xliff m: my enum <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say AAA.succ 23:30
camelia BBB
Xliff m: my enum <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say CCCsucc
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared name:
CCCsucc used at line 1
Xliff m: my enum <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say CCC.succ
camelia CCC
23:31 entonian joined, entonian left
Xliff What's the best way to wrap around an enum? 23:31
23:37 Manifest0 left 23:43 Manifest0 joined
sena_kun Xliff, what do you want? a custom value for enum label or? 23:43
sorry, I am too dumb to get "to wrap" part right now.
Xliff m: my enum TriLet <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say TriLet<AAA> 23:45
camelia (Any)
Xliff m: my enum TriLet <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say TriLet{AAA}
camelia 5===SORRY!5=== Error while compiling <tmp>
Autovivifying object closures not yet implemented. Sorry.
at <tmp>:1
------> 3%h = ( AAA => 'aaaaa' ); say TriLet{AAA}7⏏5<EOL>
sena_kun m: enum ( AAA => 'aaa', BBB => 'bbb' ); say AAA; say AAA.value;
camelia AAA
aaa
sena_kun Xliff, ^?
Xliff No.
sena_kun hmm...
Xliff Want to take name of enum key and get the entire pair.
m: my enum TriLet <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say TriLet.hash 23:46
camelia {}
sena_kun m: enum ( AAA => 'aaa', BBB => 'bbb' ); say AAA.pair;
camelia AAA => aaa
Xliff m: my enum TriLet <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say TriLet.enums.Hash
sena_kun ?
camelia {AAA => 0, BBB => 1, CCC => 2}
Xliff m: my enum TriLet <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say TriLet.enums.Hash<AAA>
camelia 0
Xliff Oh! Nice!
Now how can I do that when "AAA" is a string? 23:47
m: my enum TriLet <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say TriLet.enums.Hash{'AAA'}.pair.
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed postfix call
at <tmp>:1
------> 3a' ); say TriLet.enums.Hash{'AAA'}.pair.7⏏5<EOL>
Xliff m: my enum TriLet <AAA BBB CCC>; my %h = ( AAA => 'aaaaa' ); say TriLet.enums.Hash{'AAA'}.pair
camelia No such method 'pair' for invocant of type 'Int'. Did you mean any of these?
pairs
pairup
path
tail

in block <unit> at <tmp> line 1
sena_kun that's the more complex question...
Xliff Yeah. Thought so.
sena_kun let me think about it for a bit, I am a bit busy right now. :(
Xliff OK. Don't worry! Not in a rush. Just prefix my nick so I catch it in scrollback. 23:48
sena_kun roger~ 23:49
ok, if you want something super ugly
m: 'my enum TriLet <AAA BBB CCC>; say TriLet.enums.grep({ .key eq "AAA" })
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in single quotes; couldn't find final "'" (corresponding starter was at line 1)
at <tmp>:1
------> 3say TriLet.enums.grep({ .key eq "AAA" })7⏏5<EOL>
expecting …
sena_kun ;)
stop
m: my enum TriLet <AAA BBB CCC>; say TriLet.enums.grep({ .key eq "AAA" })
camelia (AAA => 0)
sena_kun m: my enum TriLet <AAA BBB CCC>; say TriLet.enums.grep({ .key eq "BBB" })
camelia (BBB => 1)
sena_kun Xliff, ^ 23:51
m: role A { method a {1.say} }; role A[$foo] { method a {42.say} }; (1 but A).a; 23:52
camelia 1
sena_kun m: role A { method a {1.say} }; role A[$foo] { method a {42.say} }; (1 but A).a; (1 but A[15]).a;
camelia 1
42
sena_kun m: role A { method a {1.say} }; role A[:$foo] { method a {42.say} }; (1 but A).a; (1 but A[15]).a;
camelia 42
No appropriate parametric role variant available for 'A'
in block <unit> at <tmp> line 1
23:55 netrino left