»ö« 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:00 reportable6 left 00:01 reportable6 joined, ChanServ sets mode: +v reportable6 00:02 [particle]1 joined 00:04 [particle] left 00:08 aborazmeh joined, aborazmeh left, aborazmeh joined 00:15 [particle] joined 00:17 [particle]1 left 00:20 [particle] left, [particle]1 joined 00:25 [particle]1 left 00:28 [particle] joined 00:42 [particle]1 joined, imcsk8 joined 00:43 imcsk8 left 00:44 [particle] left
irced sings particle man particle man 00:44
00:47 imcsk8 joined 00:48 imcsk8 left 00:49 netrino left 00:53 imcsk8 joined 00:55 [particle] joined, [particle]1 left 00:57 SCHAPiE left 01:02 [particle]1 joined 01:03 [particle] left 01:04 wildtrees left 01:05 imcsk8 left, SCHAPiE joined, imcsk8 joined 01:06 imcsk8 left 01:08 [particle]1 left 01:10 imcsk8 joined 01:11 [particle] joined 01:19 [particle] left 01:21 imcsk8 left 01:22 [particle] joined 01:26 imcsk8 joined 01:27 imcsk8 left, [particle] left 01:31 imcsk8 joined 01:36 imcsk8 left, imcsk8 joined, imcsk8 left 01:41 [particle] joined, imcsk8 joined 01:46 [particle]1 joined
irced sings does whatever a particle can 01:46
01:46 imcsk8 left, [particle] left 01:50 Doc_Holliwood left 01:52 imcsk8 joined 01:53 imcsk8 left, aborazmeh left, [particle]1 left 01:57 imcsk8 joined 01:59 imcsk8 left 02:02 imcsk8 joined 02:04 Manifest0 left 02:05 Manifest0 joined 02:08 jaldhar joined 02:10 jaldhar left 02:11 jaldhar joined 02:12 imcsk8 left, imcsk8 joined, imcsk8 left 02:13 Kaiepi left, Kaiepi joined 02:14 jaldhar left 02:15 jaldhar joined 02:16 jaldhar left 02:17 jaldhar joined, imcsk8 joined, imcsk8 left 02:20 jaldhar left 02:21 jaldhar joined 02:22 imcsk8 joined 02:24 jaldhar left 02:25 jaldhar joined, imcsk8 left 02:26 Cabanoss- joined 02:27 Cabanossi left, Cabanoss- is now known as Cabanossi, imcsk8 joined 02:28 imcsk8 left 02:30 jaldhar left, jaldhar joined 02:37 Xliff left, imcsk8 joined 02:38 imcsk8 left 02:42 imcsk8 joined 02:43 imcsk8 left 02:47 imcsk8 joined 02:48 jaldhar left, jaldhar joined 02:50 jaldhar left, jaldhar joined 02:56 imcsk8 left, jaldhar left, jaldhar joined 02:58 jaldhar left, jaldhar joined 03:01 imcsk8 joined 03:02 imcsk8 left 03:03 imcsk8 joined 03:04 imcsk8 left, jaldhar left, jaldhar joined 03:08 imcsk8 joined, imcsk8 left 03:13 imcsk8 joined, imcsk8 left 03:14 jaldhar left 03:15 jaldhar joined 03:16 fg joined 03:17 fg left, happyhans joined
happyhans I can't apt install rakudo 03:18
irced happyhans: what distro? 03:19
happyhans Ubuntu 16 I believe. It's running on that windows subsystem for linux if that means anything
I'm a linux noob -__-
irced happyhans: well are you using sudo then ? 03:20
happyhans Yup
`sudo apt install rakudo 03:21
irced what error do you get? 03:22
03:23 imcsk8 joined
irced happyhans: also, have you run `sudo apt upgrade` ? 03:23
03:23 imcsk8 left
happyhans oo running `sudo apt upgrade` fixed it for me... thx irced 03:24
timotimo github.com/nxadm/rakudo-pkg - maybe this is easier to get working
oh, ok
irced happyhans: good luck tho 16.04 might only provide an old rakudo, which might not work as you expect
happyhans: anyway, hth
timotimo your "perl6 --version" should be from this year, or near the end of last year 03:27
otherwise things like zef, the module installer, are likely not going to work right
unless of course ubuntu 16.04 ships an appropriate older version of zef 03:28
03:28 imcsk8 joined
timotimo anyway, i'm heading out. bye! 03:28
03:28 imcsk8 left, jaldhar left
irced waves lates. 03:28
03:29 jaldhar joined
happyhans oh ripp I have 03:29
This is Rakudo version 2018.03 built on MoarVM version 2018.03
03:30 jaldhar left
irced This is Rakudo Star version 2019.03.1 built on MoarVM version 2019.03 03:30
happyhans I'll just follow the standard instructions on the installation page :P
irced good idea 03:31
03:31 jaldhar joined 03:33 imcsk8 joined, imcsk8 left
irced happyhans: you can remove perl6 via apt then 03:36
03:36 jaldhar left 03:37 jaldhar joined 03:38 imcsk8 joined, imcsk8 left 03:42 jaldhar left 03:43 jaldhar joined, imcsk8 joined 03:46 jaldhar left, jaldhar joined 03:52 [particle] joined, jaldhar left 03:53 jaldhar joined 04:07 Sgeo_ joined 04:10 Sgeo__ left 04:20 Cabanossi left 04:33 Cabanossi joined 04:35 mahafyi joined 04:53 khisanth_ left 05:06 khisanth_ joined 05:11 Atomic_gToDY joined
Atomic_gToDY Hi,what's the main difference between php and perl6? 05:12
Elronnd Programmers Hate PHP 05:13
irced raises his hand to high five Elronnd.
Elronnd but PERl is Loved by (6)9% of programmers
irced for his wit.
jaldhar Hello. How would I translate this perl5 regex to perl6: / (.+?) \K (?!\g{1}) /\n/gx 05:14
irced Atomic_gToDY, well perl6 is like a language to write languages, php i believe is pretty fixed. other than that, i think the module ecosystem differences may be relevant. 05:15
jaldhar sorry s/ (.+?) \K (?!\g{1}) /\n/gx 05:16
irced jaldhar: as opposed to inlining perl5?
jaldhar irced: that's cheating :-)
I came up with /<( .+? )> <!before $<m> > / 05:17
irced Atomic_gToDY: i dunno if i helped with my answer. i don't know PHP from Adam.
jaldhar but that just gives me one letter per line instead of all same letters which is what I want. 05:18
irced Atomic_gToDY: imho perl6 is a programmer's universal tool to make tools whereas php is about the premade tools and working directly with those ? :-p
Elronnd Atomic_gToDY: the main difference is that php uses $ for all variables, whereas p6 uses it only for scalars; @ is for arrays/lists/other vectory things, and a symbol that's not a hash is for hashes 05:19
(but that's ok, the # is for smoking)
irced well first of all, let's ignore the s/ and also the global matching at the end would come as an adverb...
jaldhar yep
Elronnd aside from that, they're pretty much the same
irced says the guy who smokes #
just adding that 05:20
jaldhar: well, i am digging into perl6 regexes and just know the basics of perl5 but maybe i can help. looking up some perl5 stuff
jaldhar irced: basically given a string like ABBCDEEF it should split into A BB C D EE F. (I'm choosing to display one set perl line hence the \n in my substitution) 05:22
irced jaldhar: ah thanks for specifying the goal
jaldhar In perl5 I get all consecutive letters which are the same lookahead to see if there are letters which are not the same and if so replace them with a \n. Then repeat until all letter groups are matched. 05:24
In perl6 for some reason I'm only getting one letter per set and I don't understand why. 05:25
irced jaldhar: ok, maybe i can work with your current pattern... ...
jaldar: would you consider using grammars instead? 05:27
jaldar: or are you trying to win a competition for least amount of characters in code?
jaldhar: anyone, have camelia show us your output thus far 05:28
jadlhar: anyway
irced can't type suddenly
irced looks at the clock
jaldhar irced: I considered grammars but if I can do it as a one-liner in perl5, I can surely do it as one in perl6 05:29
irced jaldhar: ok, can you have camelia show us your subst call?
jaldhar hmm that didn't work. 05:31
am I doing this right? I just msg camelia with the code right? 05:33
oops forgot the p6
irced m: say "Hello jaldhar, I am happy to assist."
camelia Hello jaldhar, I am happy to assist.
Atomic_gToDY OK.I know that php runs faster thanks to FB's effort, and Swoole is often mentioned on v2ex, so I am kind of interested just now. But many critics said that php programmers usually code in chaos and bring problems to java coders.And a bit of php coders haven't been trained in colleges so they know not enough common theory of IT. 05:34
jaldhar sheesh 05:35
irced: did you see any of that? 05:37
irced m: print "nope"
camelia nope
jaldhar m: $_ = "ABBCDEEF"; s:g/ <?after (.+?) > <!before $0 > / \n /; .say;
camelia A
B
B
C
D
E
E
F
jaldhar that's it I think 05:38
irced yep 05:42
jaldhar Atomic_gToDY: the main implementation of Perl6 called Rakudo is somewhat slow at the moment though incrementally getting faster with each new release IMO.
05:42 Atomic_gToDY left 05:44 Atomic_gToDY joined
Elronnd (but it will never be really fast. It's just impossible, it's too dynamic. It's still already plenty fast for most applications, though) 05:51
jaldhar Elronnd: I think there is a lot of room for optimization. Look at perl5. That's very dynamic but its been tuned carefully for many years and it is blazing fast at many tasks. 05:56
06:00 reportable6 left
irced so i still don't have a solution but i haven't given up 😃 06:03
06:04 reportable6 joined, ChanServ sets mode: +v reportable6
Elronnd jaldhar: true. I still don't think it'll happen but...we'll see 06:04
jaldhar irced: thanks for trying 06:05
06:11 happyhans left
jaldhar bah I'm going to sleep and this regex will magically fix itself in the morning. 06:20
irced possibly!
jaldhar goodnight all
irced thanks for bringing it here anyhow
good luck
jaldhar irced: and thank you once again for taking the time to help 06:21
irced happy to assist
06:25 [Sno] left, rainmanjam joined 06:41 rindolf joined 06:43 rainmanjam left 06:44 rainmanjam joined, rainmanjam left 06:45 rainmanjam joined 07:08 rainmanjam left, rainmanjam joined 07:09 rainmanjam left 07:18 Sgeo__ joined 07:21 Sgeo_ left 07:28 Atomic_gToDY left 07:30 Sgeo_ joined 07:33 Sgeo__ left 07:36 antoniogamiz joined 07:40 Atomic_gToDY joined 07:59 [Sno] joined
antoniogamiz when will the new version of Rakudo Star come out? 08:00
08:04 sjm_uk joined 08:05 Sgeo__ joined 08:06 woolfy joined 08:08 antoniogamiz left, Sgeo_ left 08:22 antoniogamiz joined 08:24 imcsk8 left, imcsk8 joined 08:25 imcsk8 left, sena_kun joined 08:34 imcsk8 joined 08:35 imcsk8 left 08:39 imcsk8 joined 08:40 imcsk8 left 08:43 [Sno] left
El_Che antoniogamiz: if you just need the latest release + zef on Linux, there are pkgs at rakudo-pkg 08:44
08:45 imcsk8 joined, imcsk8 left
antoniogamiz El_Che: what I need is that rakudo start updates its intance of perl6/doc 08:45
El_Che if you don't want to use zef to download the modules in star, there will be propably RC candidates soonish
why?
antoniogamiz because Perl6::TypeGraph is in the ecosystem and in the old versionof perl6/doc that Rakudo Star has 08:46
El_Che dor the users or do you buildnon top of star?
antoniogamiz so there's a conflict
El_Che I see. 08:47
antoniogamiz there's some users who cannot install Perl6::Documentable 08:48
because of thtat
that*
El_Che yeah
notna fan of the ideas behind star
one of the reasons isnwhat you describe 08:49
08:49 AlexDaniel left 08:50 imcsk8 joined
antoniogamiz yep, me neither :/ 08:50
08:50 spider_apocalyps joined
El_Che it feels like a cdrom you take to Antarctica when you're incomunicado for 6 month in winter there 08:50
08:51 sena_kun left, imcsk8 left
El_Che for people with an internet connectiin zef will do :) 08:51
08:52 spider_apocalyps left
antoniogamiz El_Che: best description I have ever heard x'd 08:54
08:55 imcsk8 joined, imcsk8 left 08:58 Sgeo_ joined 09:00 imcsk8 joined, imcsk8 left, Atomic_gToDY left, imcsk8 joined 09:01 imcsk8 left, Sgeo__ left 09:02 Atomic_gToDY joined 09:03 antoniogamiz left, rindolf left 09:05 imcsk8 joined 09:06 imcsk8 left 09:10 imcsk8 joined 09:13 robertle joined 09:14 rindolf joined 09:16 MARTIMM joined 09:24 imcsk8 left 09:25 imcsk8 joined, imcsk8 left 09:26 Atomic_gToDY left 09:30 imcsk8 joined 09:31 imcsk8 left
irced m: $_ = "ABBCDEEF"; s:g / [(.) $0+:?] | [<!after $0> (.) <!before $0>]/$/\n/; .say; 09:33
camelia A
BB
C
D
EE
F
irced m: $_ = "ABBCDEEF"; s:g / [(.) $0+:?] | [<!after $0> (.) <!before $0>]/$/\n/; .print; 09:34
camelia A
BB
C
D
EE
F
09:34 imcsk8 joined 09:36 imcsk8 left
irced m: $_ = "ABBCDEEF"; s:g / <( (.) $0+? )> | [<!after $0> (.) <!before $0>]/$/\n/; .print; 09:38
camelia A
BB
C
D
EE
F
09:38 kent\n joined 09:39 imcsk8 joined 09:40 molaf joined 09:43 Black_Ribbon left, rindolf left 09:53 irced left
renormalist all my "zef install" tries fail with: Failed to open file /home/ss5/.zef/store/FindBin-libs-0.2.1.tar.gz/FindBin-libs-0.2.1/resources/assets/FindBin/libs.pod6 09:59
I can mkdir + touch empty files there to continue but probably there is better help?
just installed Rakudo 2019-07.1 via rakudobrew, then zef, so it's all quite latest
Any ideas what I might have done wrong? 10:00
10:00 imcsk8 left
renormalist m: say 0xAFFE; 10:01
camelia 45054
renormalist m: say "0xAFFE";
camelia 0xAFFE
renormalist m: say rx/0xAFFE/;
camelia rx/0xAFFE/
renormalist m: say rx/0xAFFE/.WHAT;
camelia (Regex)
renormalist m: say "0xAFFE" ~~ rx/0xAFFE/; 10:05
camelia 「0xAFFE」
El_Che nuke .zef?
renormalist m: say ("0xAFFE" ~~ rx/0xAFFE/).WHAT;
camelia (Match)
10:05 imcsk8 joined, imcsk8 left
renormalist El_Che: hm, no, it recreates it fine and gets same error 10:07
10:11 imcsk8 joined, imcsk8 left 10:21 imcsk8 joined, imcsk8 left 10:24 MARTIMM left 10:26 imcsk8 joined, imcsk8 left
Geth doc: 80c98b6595 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/pod.pod6
delete constraint text

Delete the comment pending incorporation of more details on valid vs. invalid pod configuration values proposed by Damian Conway.
10:29
synopsebot Link: doc.perl6.org/language/pod
10:29 kent\n left, molaf left 10:31 imcsk8 joined 10:33 kent\n joined
cpan-p6 New module released to CPAN! Gnome::Gtk3 (0.18.0) by 03MARTIMM 10:33
tbrowder hi, i'm seeking suggestions for packaging and submitting my p6 script for converting an ascii text file to pdf. it's a siversion of enscript i wrote whiv 10:35
10:37 imcsk8 left
tbrowder *version of enscript i wrote in c++ which i'm converting to p6. should it be in a module as something like "App::ascript" or? 10:37
10:38 imcsk8 joined
tbrowder maybe zef is the template for its packaging... 10:40
yep! 10:42
10:43 Manifest0 left 10:47 imcsk8 left, imcsk8 joined 10:56 mowcat joined 10:57 mowcat left, mowcat joined 11:02 rindolf joined 11:04 aborazmeh joined, aborazmeh left, aborazmeh joined 11:07 imcsk8 left 11:11 antoniogamiz joined
antoniogamiz El_Che: do you remember the problem with TypeGraph? 11:11
do you think if I add :api<2> to the Perl6::TypeGraph module in the ecosystem, zef would be able to differentiate between the two modules? 11:12
11:12 imcsk8 joined 11:13 imcsk8 left 11:18 imcsk8 joined, imcsk8 left 11:23 imcsk8 joined 11:27 Doc_Holliwood joined, ufobat_ left 11:31 chloekek joined
Doc_Holliwood I have a strange problem guys. Consider this code (pastebin.com/Py4ntAm5). When I run a test thereof I get ( pastebin.com/uRdgCdRP ) 11:35
11:36 sjm_uk left, imcsk8 left
Doc_Holliwood So apparently there is a problem with the signature or a bug in rakudo? I mean the sig says clearly, 3 arguments and yet Perl thinks it should be 0 11:36
11:37 imcsk8 joined, imcsk8 left
antoniogamiz the first paste bin has expired 11:37
pls send another
MasterDuke i works, you just have to remove the ")." from the end 11:38
*it works
antoniogamiz ah I did not see it sorry
Doc_Holliwood When I replace the sig with a eat it all array, the code runs and the array contains the 3 expected values 11:39
what ")"?
antoniogamiz Doc_Holliwood: you are using named parameters
you need to pass the parameters using :argument(value)
or argument => value
11:42 imcsk8 joined, imcsk8 left 11:43 Sgeo__ joined 11:47 Sgeo_ left, imcsk8 joined 11:53 wamiks joined 11:54 wamiks left 11:55 AlexDaniel joined, wamiks joined 12:00 reportable6 left 12:04 reportable6 joined, ChanServ sets mode: +v reportable6
Geth doc: 18531642e0 | Antonio++ | doc/Language/5to6-perlfunc.pod6
adds X<> elements to avoid search generation hack
12:05
synopsebot Link: doc.perl6.org/language/5to6-perlfunc
12:09 antoniogamiz left 12:21 imcsk8 left, imcsk8 joined 12:22 imcsk8 left 12:26 aborazmeh left 12:30 chloekek left 12:31 imcsk8 joined 12:32 imcsk8 left 12:36 imcsk8 joined, APic joined
Doc_Holliwood m: sub foo { return }; say foo(), foo().defined); my $foo = foo(); say $foo, $foo.defined 12:37
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected closing bracket
at <tmp>:1
------> 3foo { return }; say foo(), foo().defined7⏏5); my $foo = foo(); say $foo, $foo.defin
Doc_Holliwood m: sub foo { return }; say foo(), foo().defined; my $foo = foo(); say $foo, $foo.defined
camelia NilFalse
(Any)False
12:37 ambs left 12:39 jaldhar left, Atomic_gToDY joined, jaldhar joined
Doc_Holliwood Please consider, pastebin.com/iExR2PFp 12:40
As you can see, require-module returns either Nil or an instance of something. This code works
However, if I replace < .grep({ !.isa(Nil) }) > with < .grep({ .defined }) > it doesnt 12:41
It seems as if the sub returned a defined Nil.
How? 12:42
12:42 imcsk8 left 12:46 Atomic_gToDY left 12:47 imcsk8 joined, imcsk8 left 12:48 Sgeo_ joined 12:51 Sgeo__ left 12:52 imcsk8 joined 12:53 imcsk8 left 12:55 chloekek joined 12:57 imcsk8 joined
timotimo when nil gets assigned to a variable, that variable gets reset to its default value 12:58
if you want to keep the actual Nil, you'll have to set "is default(Nil)" or bind instead of assign
12:58 sena_kun joined
Doc_Holliwood Nah, nah, The problem is once my again my assumptions 13:01
13:01 veesh left
Doc_Holliwood The problem is that WhateverType.defined is false, not true as I thought it'd be 13:01
which makes sense but why is 13:03
13:03 imcsk8 left
Doc_Holliwood m: say 1 if Str 13:03
camelia ( no output )
Doc_Holliwood That I find counter intuitive
timotimo type objects are the definition of undefined 13:04
chloekek I'm not quite sure I understand how run(..., :out) works with respect to exit code. 13:05
Can I get the exit status of a process before reading its output? Does this ever cause problems where the process doesn't terminate until it's finished writing output? 13:06
13:06 Xliff joined
chloekek p6: my $proc := run('echo', 'hello', :out); say $proc.exitcode; $proc.out.slurp.put; 13:07
camelia 0
hello
chloekek p6: my $proc := run('sh', '-c', 'sleep 2 && echo hi', :out); say $proc.exitcode; $proc.out.slurp.put; 13:08
camelia 0
hi
13:09 imcsk8 joined, imcsk8 left
chloekek How come this does not print «-1␤hi␤␤»? exitcode should return -1 if the process hasn't exited yet, which means that this code does wait for the program to exit, somehow. 13:09
13:14 veesh joined, imcsk8 joined
chloekek Ah, Proc.exitcode waits for the process to terminate: github.com/rakudo/rakudo/blob/15e0...c.pm6#L219 13:14
And !wait-for-finish seems to read stdout. 13:16
I'll open a docs issue for this. 13:19
13:19 imcsk8 left 13:20 imcsk8 joined 13:21 imcsk8 left 13:25 imcsk8 joined, cpan-p6 left, cpan-p6 joined, cpan-p6 left, cpan-p6 joined 13:26 imcsk8 left 13:30 imcsk8 joined, imcsk8 left 13:35 imcsk8 joined 13:36 Kaiepi left, Manifest0 joined 13:40 AlexDani` joined
AlexDani` c: all my $proc := run('sh', '-c', 'sleep 2 && echo hi', :out); say $proc.exitcode; $proc.out.slurp.put; 13:41
13:41 AlexDaniel left, molaf joined
committable6 AlexDani`, gist.github.com/6d1049e9cf5c82269a...386b5087d7 13:43
13:55 imcsk8 left 13:56 AlexDani` left 14:01 imcsk8 joined, imcsk8 left 14:04 lucasb joined 14:06 imcsk8 joined
Doc_Holliwood Here's an interesting one. I have two functions who should behave identically, but one of them dies if there is a try block 14:06
pastebin.com/X1TuY9Ay
14:07 imcsk8 left 14:08 AlexDani` joined, molaf left
AlexDani` c: all my $proc := run('sh', '-c', 'sleep 2 && echo hi', :out); say $proc.exitcode; $proc.out.slurp-rest.put; 14:09
14:10 AlexDani` is now known as AlexDaniel, AlexDaniel left, AlexDaniel joined
committable6 AlexDani`, gist.github.com/cb5c24cac92853aba5...caa55ab4e5 14:11
AlexDaniel hehehe www.xantea.cz/photos/p_big/2212229.jpg
14:11 imcsk8 joined
Doc_Holliwood m: try { 'this_should_die_but_why'.IO.dir.grep(*.IO.f) } 14:12
camelia ( no output )
14:12 imcsk8 left
Doc_Holliwood Ok. On my system that dies with read from dirhandle failed: 3 14:12
chloekek Doc_Holliwood: I think the difference is because laziness. 14:13
I think modules-in-dist2 returns a lazy seq, and forcing elements happens outside the try block.
14:16 imcsk8 joined, imcsk8 left 14:17 antoniogamiz joined
jaldhar irced: Ha! I told you the regex would magically work in the morning. 14:18
$_ = "ABBCDEEF"; s:g/ ( (.)$0* ) /$0\n/; .print;
oops
m: $_ = "ABBCDEEF"; s:g/ ( (.)$0* ) /$0\n/; .print; 14:19
camelia A
BB
C
D
EE
F
jaldhar question to the general public. Why does (.+?) not work for matching a run of the same character like in Perl5? Why do I have to to do ((.)$0*) instead? 14:21
14:21 imcsk8 joined, imcsk8 left
antoniogamiz good question x'd 14:21
chloekek jaldhar: Perl 5 has the same behavior: glot.io/snippets/fewkebghf9 14:22
.+? is a repetition of ., which matches any character. If you want to match the same character many times, you need a back reference. 14:23
14:23 sena_kun left
renormalist m: say {France => 'Paris', Spain1 => 'Madrid', Spain2 => 'Madrid'}.antipairs; 14:25
camelia (Madrid => Spain2 Paris => France Madrid => Spain1)
renormalist m: say {France => 'Paris', Spain1 => 'Madrid', Spain2 => 'Madrid'}.antipairs;
camelia (Madrid => Spain2 Madrid => Spain1 Paris => France)
14:26 imcsk8 joined
jaldhar chloekek: hmm maybe it only worked by accident but this does work: perl -e '$_ = shift; s/ (.+?) \K (?!\g{1}) /\n/gx; print;' "ABBCDEEF" 14:26
renormalist m: my %newh = {France => 'Paris', Spain1 => 'Madrid', Spain2 => 'Madrid'}.antipairs; say %newh;
camelia {Madrid => Spain1, Paris => France} 14:27
renormalist m: my %newh = {France => 'Paris', Spain1 => 'Madrid', Spain2 => 'Madrid'}.antipairs; say %newh;
jaldhar I was trying to translate that into perl6
camelia {Madrid => Spain1, Paris => France}
renormalist m: my %newh = {France => 'Paris', Spain1 => 'Madrid', Spain2 => 'Madrid'}.antipairs; say %newh;
camelia {Madrid => Spain1, Paris => France}
renormalist m: say {France => 'Paris', Spain1 => 'Madrid', Spain2 => 'Madrid'}.antipairs.WHAT; 14:30
camelia (Seq)
renormalist m: my %newh = {France => 'Paris', Spain1 => 'Madrid', Spain2 => 'Madrid'}.antipairs; say %newh.WHAT; 14:31
camelia (Hash)
Doc_Holliwood files a bug report 14:33
antoniogamiz Doc_Holliwood: did you solve the problem with the arguments? 14:35
Doc_Holliwood Oh yes, ty. 14:41
14:47 plichev joined 14:48 plichev left 14:49 imcsk8 left
Doc_Holliwood Hwg. github.com/rakudo/rakudo/issues/3120 14:53
14:54 molaf joined 14:55 imcsk8 joined, chloekek left 14:57 woolfy left, imcsk8 left, pmurias joined 14:58 woolfy joined
pmurias AlexDaniel: did any of the Raku stuff resurface at the TPC? 14:58
AlexDaniel pmurias: well, there was a lot of discussion about the rename and Camelia 15:00
pmurias: with lizmat's keynote pretty much calling for a rename
pmurias: where “Camelia” is the main proposed name right now 15:01
pmurias: it was discussed a lot
pmurias: “Raku” was mentioned very rarely 15:02
15:03 imcsk8 joined
lizmat it was mentioned by at least 2 people in the responses to the issue, one of them being Damian Conway 15:03
AlexDaniel pmurias: lots of comments in the problem-solving repo and elsewhere (reddit, etc.) github.com/perl6/problem-solving/issues/81
lizmat I'm +100 on Camelia, 0 on Raku and -100 on anything else 15:04
AlexDaniel lizmat: I think Ofun deserves -50, although jnthn pointed out that it's a bit unclear how to pronounce it and I totally agree 15:06
15:06 antoniogamiz left
timotimo do we have ideas for filename extensions for camelia? 15:06
lizmat AlexDaniel: I want to keep it simple... :-)
AlexDaniel timotimo: not yet
Xliff .cam
lizmat timotimo: I see no reason to change that, fwiw 15:07
15:07 imcsk8 left
timotimo so stay with .p6? 15:07
and pm6 and such
lizmat afk for dinner at a garlic pub&
yes
AlexDaniel timotimo: I think it can be .p6 for now, much like it was .pl for a long time
Xliff Oh. w8. Another language rename?
AlexDaniel Xliff: no, the first one
lizmat goes really afk&
AlexDaniel Xliff: you know, we're finally thinking about making things clear and easy, instead of the opposite :) 15:08
15:08 imcsk8 joined 15:09 imcsk8 left
Xliff AlexDaniel: You will tear \.(p6|pl6|pm6) out of my cold dead hands! 15:09
AlexDaniel Xliff: it's fine. There are also people who say that they'll keep calling it Perl 6 even if we rename it, and that's ok, I don't think it'll last very long :) 15:10
I guess out of habit everyone we'll be doing it once in a while :) 15:11
timotimo oh no, the irc channels will have to be renamed, too! =o
AlexDaniel timotimo: yeah, +f 15:12
will* # please don't hate me :) 15:13
15:13 imcsk8 joined 15:14 imcsk8 left 15:15 antoniogamiz joined
antoniogamiz I agree with lizmat too 15:16
good point, lizmat++ 15:17
15:18 imcsk8 joined
timotimo m: my @💥 = 1, 2, 3 15:20
camelia 5===SORRY!5=== Error while compiling <tmp>
Name must begin with alphabetic character
at <tmp>:1
------> 3my @7⏏5💥 = 1, 2, 3
expecting any of:
constraint
infix
infix stopper
postfix
timotimo :|
oh jeez, line editing is very unhappy with this
AlexDaniel Also, just want to point out something… 15:21
timotimo my \💥 = [1, 2, 3];
15:21 imcsk8 left
timotimo m: my \💥 = [1, 2, 3]; 15:21
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed my
at <tmp>:1
------> 3my7⏏5 \💥 = [1, 2, 3];
AlexDaniel this is not some sort of hypothetical proposal, or something. It is very real, there will be a discussion period of course, but don't be surprised later because you didn't believe it'll happen :) 15:22
Xliff m: say 1L
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3say 17⏏5L
Xliff Is there a way to initialize a small number as 64 bits? 15:23
AlexDaniel m: my uint64 $x = 42; # ?
camelia ( no output )
timotimo that doesn't make much sense
we don't store 1 as just one bit
15:23 imcsk8 joined
Xliff OK. 15:23
*sigh*
AlexDaniel Xliff: why?
Xliff Transliterating from C can be frustrating.
AlexDaniel ah 15:24
Xliff AlexDaniel: 64-bit enums that don't need 64 bits.
15:24 imcsk8 left
Juerd /j #camelia 15:25
Oops :P
I saw the github issue on the name yesterday and I'm positively surprised by the amount of positive comments :) 15:26
AlexDaniel that's right 15:27
timotimo 𤯠15:28
lmao wtf happened here
Juerd timotimo: I guess it'd be a bit weird if we repurposed .c ;)
15:28 imcsk8 joined
timotimo well, anything that sounds a lot like camelia will be easy to confuse with caml and ocaml 15:28
Juerd Possible confusion with o?caml is my main concern, the other being the length of the identifier 15:29
timotimo .lia
Juerd came.lia? :)
AlexDaniel lol fileinfo.com is down 15:30
antoniogamiz what was you favorite talk about perl6 in perlcon? 15:31
Juerd Lia is a Dutch female given name, fyi
Not incredibly popular, but on the rise again: www.meertens.knaw.nl/nvb/naam/is/lia
timotimo just have to find out which language has it as a slang word refering to genitalia
because almost every word is a slang word for genitalia in some language, unless it's a long word
AlexDaniel timotimo: well, there's camelia.com 15:32
Juerd "came", being past tense of to come, might also be slightly problematic
But it's better than a word that means cancer in at least one language :) 15:33
15:33 imcsk8 left
Juerd Personally I really like the name Rakudo and am a bit disappointed it's taken :D 15:34
Does Kudo mean cancer in any language? :) 15:36
AlexDaniel Juerd: no, but it's a martial art 15:37
ha, someone should make a golfing language called “Fight” 15:38
15:39 imcsk8 joined
AlexDaniel somebody is already squatting camelialang.org and camelialang.com 15:39
15:40 imcsk8 left
AlexDaniel there are enough tld's, you know… 15:40
timotimo is there a .ia tld? 15:41
AlexDaniel timotimo: don't think so, but there's .io… ;D 15:42
timotimo camelio, eh?
AlexDaniel (unless someone registered it for a greater good, in which case thank you)
15:44 imcsk8 joined, imcsk8 left
tobs I thought Perl 6 was the world's worst OCaml? :) 15:50
timotimo we'd be the absolute worst if we were to also steal their name 15:51
perl6 will now be called "NoCAML" 15:52
15:54 imcsk8 joined
tobs :D 15:54
15:58 imcsk8 left 16:00 antoniogamiz left 16:01 sjm_uk joined 16:02 chloekek joined
chloekek PL/VI 16:02
16:04 imcsk8 joined, imcsk8 left 16:09 imcsk8 joined, imcsk8 left
chloekek Is it normal when uploading a Perl 6 distribution to CPAN that indexing fails? 16:11
timotimo normally it doesn't 16:12
16:12 pmurias left
chloekek Do I need to include a META.yml or META.json file for a Perl 6 distribution? I included only a META6.json file. 16:13
16:14 imcsk8 joined, imcsk8 left
chloekek Doesn't seem like it, looking at other people's archives. 16:15
Maybe something important is missing from my META6.json file. 16:16
timotimo needs a META6.json, none of the others to my knowledge 16:17
you can try running the module Test::META against it
or something to that effect
16:19 imcsk8 joined
chloekek Ah, 「The distribution does not unpack into a single directory and istherefore not being indexed.」 16:19
That explains literally everything.
timotimo ooh 16:20
well, that's why i use mi6 to do my cpan releasing and uploading for me :)
16:20 imcsk8 left
chloekek Most tarballs don't seem to do that though, afaict. 16:20
Ah nvm, I see it. Time to figure out how to create a tarball like that. 16:21
16:21 imcsk8 joined, imcsk8 left, AlexDaniel left
chloekek With the --transform option to tar, it seems to work. Let's try another upload. 16:26
16:26 imcsk8 joined, imcsk8 left
timotimo i believe mi6 literally creates a folder with the "right" name and tars that up 16:27
chloekek I'll check out mi6, seems it has dependencies so I need to deal with that first. 16:28
Yes, now it seems to not fail. It created a .meta file too. 16:29
16:31 imcsk8 joined, imcsk8 left 16:36 imcsk8 joined
cpan-p6 New module released to CPAN! Console::Blackjack (1.0.3) by 03GDONALD 16:45
New module released to CPAN! Template::Classic (0.0.2) by 03CHLOEKEK
16:46 mowcat left 17:09 imcsk8 left 17:12 chloekek left 17:15 imcsk8 joined 17:16 imcsk8 left 17:20 imcsk8 joined 17:21 imcsk8 left 17:25 imcsk8 joined 17:26 imcsk8 left 17:30 imcsk8 joined 17:31 imcsk8 left 17:35 imcsk8 joined, imcsk8 left 17:37 AlexDaniel joined 17:38 wamiks left 17:41 imcsk8 joined, imcsk8 left 17:46 imcsk8 joined, imcsk8 left 17:56 imcsk8 joined, imcsk8 left 18:00 reportable6 left 18:01 imcsk8 joined 18:02 imcsk8 left, reportable6 joined 18:05 Black_Ribbon joined 18:07 imcsk8 joined 18:08 imcsk8 left 18:12 jaldhar left, imcsk8 joined 18:13 jaldhar joined, wildtrees joined, imcsk8 left 18:14 wildtrees left, wildtrees joined 18:17 mowcat joined, imcsk8 joined 18:18 imcsk8 left 18:23 imcsk8 joined, imcsk8 left 18:26 jaldhar left, jaldhar joined 18:28 imcsk8 joined, imcsk8 left 18:29 sjm_uk left 18:31 lucasb left 18:33 imcsk8 joined, imcsk8 left 18:38 imcsk8 joined, imcsk8 left 18:40 zakharyas joined 18:42 lembark joined 18:43 imcsk8 joined, lembark left, imcsk8 left
Xliff m: class A {}; my $a = A.new; $a.ref; 18:43
camelia No such method 'ref' for invocant of type 'A'
in block <unit> at <tmp> line 1
18:48 jaldhar left, jaldhar joined
tobs lizmat++ # keynote (and, I have to say, especially that small mention of Zoffix) 18:49
18:58 imcsk8 joined 18:59 imcsk8 left 19:03 imcsk8 joined 19:04 imcsk8 left 19:08 imcsk8 joined 19:09 imcsk8 left 19:13 imcsk8 joined 19:23 imcsk8 left 19:24 imcsk8 joined 19:25 imcsk8 left 19:28 jaldhar left 19:29 jaldhar joined, imcsk8 joined 19:30 imcsk8 left 19:32 jaldhar left 19:33 jaldhar joined 19:34 imcsk8 joined, imcsk8 left 19:39 imcsk8 joined 19:41 pmurias joined
pmurias Juerd: does Raku actually mean cancer in any language? 19:44
19:46 lembark joined
lembark Q: If I want the docs for a module accessible via "p6doc" the only place to put them is in the module itself, or is there some set of steps that I'm missing for being able to utilize the ./doc directory contents from the module? 19:48
Doc_Holliwood i think you can create a "pod" directory with the same structure as the lib drectory but .pod6 files 19:58
i have a vague memory having read something like that somewhere
20:00 japhb left 20:04 jaldhar left 20:05 jaldhar joined
Juerd pmurias: I read in one of the comments that it does, in Serbian if I recall correctly 20:05
20:08 vike left 20:12 vike joined 20:14 jaldhar left 20:15 jaldhar joined 20:16 jaldhar left 20:17 jaldhar joined
cpan-p6 New module released to CPAN! FileSystem::Parent (0.3.5) by 03LEMBARK 20:25
New module released to CPAN! FindBin (0.4.4) by 03LEMBARK
masak Juerd, pmurias: Google Translate seems to bear this out 20:27
20:28 jaldhar left 20:29 jaldhar joined
masak not so surprising, really. en.wiktionary.org/wiki/Reconstruct.../rak%D1%8A is the original root. 20:29
we have that meaning "shrimp" in Swedish. the original meaning is just "crayfish". 20:30
and given the etymology of "cancer" and its connection to crabs...
I'm guessing whenever the association in the Slavic languages isn't "cancer", it's simply "crab" 20:31
or "crayfish"
20:36 jaldhar left 20:37 jaldhar joined
cpan-p6 New module released to CPAN! FileSystem::Parent (0.3.6) by 03LEMBARK 20:41
lembark Say that "./pod" (vs. ./doc) is the correct place to leave pod6 files for a given module. How should they be referened from META6.json in the resources section? Or does the pod need to be referenced from the META6.json? Or is thare a tag for doc/pod/whatever that isn't described in docs.perl6.org/language/modules#in...ETA6.json? Or is it in the ondline docs, if so where? 20:42
Thanks.
20:44 jaldhar left 20:45 jaldhar joined, dolmen joined 20:46 jaldhar left 20:47 jaldhar joined 20:48 jaldhar left 20:49 jaldhar joined 20:52 jaldhar left, netrino joined 20:53 jaldhar joined 20:54 jaldhar left 20:55 jaldhar joined 21:00 pmurias left 21:02 mowcat left, jaldhar left 21:03 jaldhar joined
AlexDaniel robertle: somehow I didn't manage to talk to you! 21:03
maybe next time :)
21:06 zakharyas left 21:14 jaldhar left 21:15 jaldhar joined 21:48 MasterDuke left, jaldhar left, rindolf left, jaldhar joined 21:52 pmurias joined 21:58 dolmen left 22:04 jaldhar left, jaldhar joined 22:06 jaldhar left, jaldhar joined 22:08 jaldhar left, jaldhar joined 22:10 [Sno] joined 22:15 dataangel joined 22:17 lembark left 22:23 ttobioetiker left 22:24 uzl joined 22:26 jaldhar left, jaldhar joined 22:33 [Sno] left 22:34 jaldhar left 22:35 jaldhar joined 22:36 jaldhar left 22:37 jaldhar joined, jaldhar left
uzl .tell lembark The modules I've come across in modules.perl6.org use "./doc" for their documentation. I don't think the pod files need to be referenced in META6.json. You just need to follow the file structure from "lib/". Thus if you have "lib/Mod.pm6, lib/Mod/Utilities.pm6" and you want only p6doc-accessible documentation for "lib/Mod.pod6", then you end up with "/doc/Mod.pod6". 22:37
22:38 jaldhar joined
uzl .tell lembark For an example: modules.perl6.org/dist/Terminal::T...pan:ALOREN 22:38
Is the bot not working 😅? 22:39
22:40 jaldhar left 22:41 jaldhar joined
timotimo do we have the new bot active already? 22:41
vrurg uzl: yoleaux was taken down a while ago.
timotimo: I guess it's not yet.
timotimo: BTW, can I debug rakudo with Comma? 22:42
22:42 jaldhar left
vrurg have somehow got it working eventually... ;) 22:42
22:43 jaldhar joined
timotimo well, it lets you debug your scripts, and you can step around inside of rakudo's core setting and such, but i think it cannot yet pull up the "right" source code for you out of a rakudo checkout 22:44
vrurg Argh... Yes, I was stepping in, but without the source it's useless. 22:45
timotimo right. sorry about that! :(
22:46 jaldhar left
vrurg No worries. I rather wonder where people get time to do all this work. 22:46
22:46 jaldhar joined
timotimo people paying for comma makes it possible :) 22:46
22:46 netrino left
uzl Ah... Hopefully they read the backlogs. 22:46
22:47 netrino joined
vrurg timotimo: I will soon join the club. Perhaps the next release. Currently I don't have work for it yet as rakudo core is where I need it most. 22:47
timotimo right, then you'll probably also want support for not marking every nqp op as "routine not found" 22:48
vrurg Didn't know about this problem, but most likely I will. ;) 22:50
timotimo you're not nqp-in-ecosystem-modules-using scum like me 22:51
vrurg timotimo: I'm not a Comma user yet, in first place. Just trying it once in a while. 22:53
timotimo ah 22:54
well, the Log::Timeline viewer is super nice
vrurg This time I have managed to get around a problem of not being able to open a new project from File menu. Had to turn off project autoopening to do it from the start screen.
timotimo ah, i think you can also get the start screen from File -> Close Project 22:55
but maybe that doesn't help there
vrurg Read about it, haven't tried yet. Though, the project I was doing locally turned out to be useless. So, I'm free for core development for a while.
timotimo: It wasn't closing too. 22:56
timotimo damn
vrurg Re-checkd again. It doesn't.
But considering how fast it starts for me, quit/start isn't a big deal. 22:57
I also got a freeze one while tested debugging, but unreproducible one.
timotimo oof
ugh wtf why is this bug now coming back 23:03
23:03 [particle]1 joined, [particle] left
vrurg Hm, camelia.com – some would use this for bad jokes... 23:06
timotimo we're the masters of bad jokes. they better bring their a-game 23:07
vrurg :D 23:08
Whatever. I set up my domain watcher for camelia.org which is being squattered now. It expires on Aug 24. If I'm lucky, I will re-capture it. 23:09
timotimo pssst this is being publically logged 23:13
vrurg is feeling too relaxed this Sat... Too much relaxed... 23:17
cpan-p6 New module released to CPAN! Tomtit (0.1.2) by 03MELEZHIK 23:19
New module released to CPAN! Sparrow6 (0.0.9) by 03MELEZHIK
AlexDaniel timotimo: the bot is ready but I didn't manage to get it up yet 23:30
maybe tomorrow?
timotimo i see 23:31
23:36 robertle left 23:37 robertle joined, pmurias left 23:39 aborazmeh joined, aborazmeh left, aborazmeh joined
Doc_Holliwood I posted a Perl6 meditation on Perlmonks. Basically the end product of my refactoring efforts for Pluggable. Comments welcome. www.perlmonks.org/?node_id=11104266 23:39
I'm going to close Comma now, I just read Array.pop as Array.poop. 23:40
Once your vision becomes blurry, your brain is in no better state :-) 23:41
AlexDaniel we need a module that adds .eat and .poop to Arrays 23:42
23:42 toddr joined
Doc_Holliwood Agreed but what would they do? 23:48
vrurg Doc_Holliwood: .eat.poop, obviously? 23:49
Doc_Holliwood in terms of functionality 23:51
tobs unshift and pop? 23:54
23:54 toddr left