»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:01 simpleseeker left, simpleseeker joined
comborico1611 timotimo: I figured you were older than that. 00:04
geekosaur: Heh. Yeah. We're getting older, though! 00:05
Geth perl6.org: a3b5ca8c0f | (Zoffix Znet)++ (committed using GitHub Web editor) | includes/footer
Fix links/description to Specs/Speculations

Fixes github.com/perl6/perl6.org/issues/108
00:06
Kaiepi pod6 is different?
shit i've been treating it like POD
00:08 Rawriful left
timotimo comborico1611: what birth year would you guess for me? 00:09
comborico1611 I have little context-clues. But I'm assuming you're a little bit older than me, and got onto the computer scene later than myself. So I'd say your 40 years old. 00:10
timotimo i'm glad you're far off the mark :) :) 00:11
i'm just 28
i mean, being 40 years old isn't a bad thing, it'd just be very sudden for me :D 00:12
comborico1611 So I AM older.
And wiser. 00:13
Haha.
timotimo no doubt, i'm lagging behind friends my age in wiseness :| 00:14
not to say you might only be wiser than me because i'm less wise than i should be, of course
00:15 MasterDuke left
comborico1611 Reading the Holy Bible will give you wisdom. 00:15
timotimo i might start studying sacred texts at some point, but now i'm not patient enough to do right by any of them 00:16
comborico1611 I studied religions in my teens and early 20s.
timotimo any stand-outs? 00:17
comborico1611 Stand-outs?
timotimo any of the religions you studied stood out positively to you, i mean
comborico1611 Jesus Christ is the way, the truth, and the life. 00:18
timotimo (second language english can cause you to say some funny things)
comborico1611 Oh! Where you from?
timotimo germany
in fact, i'm going to go to bed very soon 00:19
since it's just past 2am ;)
comborico1611 Alright then. Good talking with you.
timotimo o/
comborico1611 \o
Kaiepi damn i'm only 21 00:22
comborico1611 Heh 00:23
What do we call a statement that uses the xx operator, as in (say "bob") xx 3 00:25
I'm looking for something equivalent to a for-loop statement, that type of terminology. 00:26
Or is it just, "say bob three times"?
Kaiepi is (say 'bob') a closure? 00:31
wait no, that's a List
00:33 wamba left, pharv joined
geekosaur xx is just list replication 00:34
Kaiepi ohh
p6: dd (say 'bob') xx 3
camelia bob
(Bool::True, Bool::True, Bool::True).Seq
bob
bob
geekosaur docs.perl6.org/language/control#for 00:35
Kaiepi it looks like it's evaluating say 'bob' while multiplying the List 00:37
00:38 pharv left
geekosaur xx thunks, so it behaves in *some* ways like a for loop 00:39
comborico1611 Lists? As in Lisp Lists?
Herby__ o/ 00:41
comborico1611 I've gotta go.
\o
00:41 comborico1611 left 00:52 simpleseeker left 01:00 zachk left 01:06 MilkmanDan joined 01:24 vutral|kali left 01:28 Kaiepi left, Kaiepi joined 01:31 Herby_ joined
Kaiepi would Array.randomize be a useful feature to have? 01:36
unless it's already a feature i don't know about 01:45
tobs m: say (1..20).sort: { [Less, More].pick } 01:47
camelia (1 2 4 7 8 9 10 11 15 16 18 19 20 3 5 6 12 13 14 17)
01:47 ilbot3 left
tobs not sure if that's uniformly distributed though 01:48
Kaiepi i mean like a knuth shuffle
tobs m: say set(1..20).pick(*) 01:50
camelia (8 10 2 11 14 15 5 3 18 17 19 4 12 13 20 16 9 1 6 7)
tobs that should be it, no?
Herby_ m: "42".defined; 01:52
camelia ( no output )
Herby_ how I do I return a bool value if a variable is defined?
Kaiepi yeah that does the trick tobs
thanks
tobs Herby_: like you did, but you need to "say" it 01:53
Herby_ m: say "42".defined;
camelia True
01:55 ilbot3 joined, ChanServ sets mode: +v ilbot3
Herby_ tobs: thanks 01:55
tobs Kaiepi: on second thought, a bag would be better for repeated array members 01:56
Kaiepi hmm 01:57
01:57 FROGGS_ joined
Kaiepi how do they differ? 01:58
tobs the set() will swallow duplicated elements 02:00
m: set(1..10, 1..10).pick(*)
camelia ( no output )
tobs m: say set(1..10, 1..10).pick(*)
camelia (2 6 10 1 5 3 9 4 7 8)
tobs m: say bag(1..10, 1..10).pick(*)
camelia (5 2 4 6 10 4 7 3 3 2 8 7 9 9 10 1 6 1 8 5)
02:01 FROGGS left
Kaiepi ahh 02:02
02:04 MasterDuke joined
Kaiepi i'll need to read more about the different container types 02:04
i know about sets, maps, arrays, seq, but the others not so much
MasterDuke m: say (^10).pick(*) xx 5 02:06
camelia ((3 7 2 5 4 1 6 8 9 0) (3 6 4 0 9 5 2 8 7 1) (2 1 4 6 3 8 9 0 7 5) (9 1 7 4 6 3 8 2 0 5) (5 1 7 9 8 4 6 2 0 3))
02:21 eliasr left 02:35 Herby_ left, Herby_ joined
Herby_ m: my $a = "42".defined; say $a; 02:45
camelia True
02:52 aindilis left 02:57 ttkp6 joined, MasterDuke left
ttkp6 hello perl6 folks! is there a recommended way to get the current time at high resolution under Rakudo? something like perl5's Time::HiRes::time 02:58
03:08 Zoffix joined
Zoffix ttkp6: like you just want `now` 03:08
m: say now 03:09
camelia Instant:1524280177.571063
Zoffix s/like/likely/;
Kaiepi: it's an already-proposed and trial-implemented feature: github.com/rakudo/rakudo/issues/1658 03:10
m: my @a = 'a'…'z'; @a.=grab: *; dd @a 03:11
camelia Array @a = ["z", "v", "q", "k", "h", "t", "g", "o", "j", "a", "r", "e", "n", "b", "m", "p", "c", "f", "s", "u", "i", "l", "d", "w", "x", "y"]
Kaiepi is there a simpler way of telling if an array is sorted than @arr.sort ~~ @arr? 03:12
Zoffix nothing comes to mind 03:13
ttkp6 Zoffix - thank you :-)
kurahaupo Kaiepi: that's going to take O(n logn) whereas simply verifying that each element follows the preceding one would be O(n)
Zoffix oh, right 03:14
m: my @a = 'a'…'z'; say [after] @a
camelia False
Zoffix m: my @a = 'a'…'z'; say [before] @a
camelia True
Zoffix m: my @a = <a c b>; say [before] @a
camelia False
Zoffix Kaiepi: ^ that works, I think
ttkp6 nifty
kurahaupo Zoffix: thanks for reminding me of the syntax 03:15
kurahaupo obviously doesn't sound enough time coding P6
Zoffix m: my @a = <a a a>; say [before] @a 03:16
camelia False
Zoffix Aha, I knew it was a bit more complex than that :) 03:17
m: my @a = <a a a>; say [!!after] @a
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3my @a = <a a a>; say [!!after]7⏏5 @a
expecting any of:
infix
infix stopper
postfix
statement end
Zoffix m: my @a = <a a a>; say [!after] @a
camelia True
Zoffix Kaiepi: that should be it ^
Herby_ I'm trying to use grammar actions, and I'm going astray somewhere
where should I start troubleshooting this: Useless use of "resolution => PT<resolution>.Str" in sink context (line 71) 03:18
Zoffix Herby_: that sounds like you got precedence wrong. 03:19
What's the full code?
Around that line
Herby_ gist.github.com/sylints/1a6c13e0fe...988a40202b 03:20
my $match = PT.parse('Legion.S01E08.720p.HDTV.x264-AVS', actions => PT-actions.new); 03:21
Zoffix m: dd [{:42foo; :70bar;}] 03:22
camelia WARNINGS for <tmp>:
Useless use of ":42foo" in sink context (line 1)
[-> ;; $_? is raw { #`(Block|59165536) ... }]
Zoffix Herby_: you've used semicolons instead of commas
Herby_ doh! 03:23
thanks :) 03:24
Kaiepi sorry i was afk 03:25
what are [!after] and [!before] doing? 03:26
Zoffix Kaiepi: that's reduction, basically `[!after] <a b c>` is the same as putting `!after` between each element of that list, as in `'a' !after 'b' !after 'c'` and `!after` is "not after" and `after` is `cmp == Order::More`;.... so basically that statement checks that each element does not compare to be "after" the next one, which in turn means the array is sorted 03:28
I think these are the docs: docs.perl6.org/routine/reduce#(Lis...ine_reduce 03:29
Kaiepi ah
i really need to read the docs on reducing 03:30
in node i abuse reduce a lot 03:31
03:36 Herby_ left 03:43 pharv joined 03:48 pharv left 03:59 MasterDuke joined 04:04 khw left 04:14 BenGoldberg left 04:38 skids left 05:03 robertle_ joined 05:20 sauvin joined 05:45 pharv joined 05:50 pharv left, natrys joined 05:59 lizmat joined 06:01 robertle_ left 06:05 noganex left 06:48 |oLa| joined 06:52 wamba joined 07:06 rindolf joined 07:22 jmerelo joined
Geth doc: JJ self-assigned A new take on reducing travis test time for perl6/doc github.com/perl6/doc/issues/1946
e10ff7eef5 | (JJ Merelo)++ | doc/Type/Str.pod6
07:34
07:37 khisanth__ left 07:45 pharv joined
buggable New CPAN upload: App-Assixt-0.3.0.tar.gz by TYIL modules.perl6.org/dist/App::Assixt:cpan:TYIL 07:48
tyil Herby__: ^ that one should fix your issue
07:50 FROGGS_ left, pharv left 07:51 khisanth__ joined
El_Che ah, JJ is already awake :) 07:56
07:58 natrys left
jmerelo El_Che: it's Saturday. I stayed in bed a bit longer :-) 08:07
moritz how dare you :-) 08:13
jmerelo moritz: academia. It's a dog eat dog world. Papers aren't gonna write themselves. 08:15
moritz it's most efficient to write those papers when you're well-rested though 08:17
08:21 domidumont joined, cog_ joined
jmerelo moritz: so true. 08:22
08:24 cognominal left 08:27 domidumont left, domidumont joined
El_Che jmerelo: is't AI the last fad? Let's papers write themselves! 08:42
08:42 eliasr joined
El_Che jmerelo: the next step is "paper plagarizing themselves"! 08:42
full meta :)
jmerelo: getting the right ruby, travis and bintray combination for the doc pkgs took some advanced trial and error :) 08:43
08:45 darutoko joined, dd070 joined
dd070 who uses perl6 ? 08:45
El_Che o/ 08:48
Kaiepi \o 08:51
08:52 domidumont left
jmerelo El_Che: that's been done, in fact several times :-) 08:56
El_Che: great work, thanks!
dd070: most people in this chat room, several companies, at least a couple of universities (mine and El_Che's)... 08:57
dd070 I am interested to know which companies use perl6 08:59
09:06 dd070 left
AlexDaniel jmerelo: how do you use perl 6 exactly by the way? Any actual courses where students are taught perl 6? 09:10
09:14 wamba left
jmerelo AlexDaniel: for research, mainly. Also as example in some cloud computing course 09:15
AlexDaniel: For instance, here when explaining Dockerfiles jj.github.io/CC/documentos/temas/Co...ockerfiles 09:17
09:17 dd070 joined, ExtraCrispy joined
AlexDaniel I see 09:18
jmerelo AlexDaniel: this paper on concurrent evolutionary algorithms using perl 6 github.com/JJ/evosoft-concurrent-perl6
AlexDaniel: and this other paper on benchmarking evolutionary algorithms and the improvements Perl 6 has had github.com/JJ/2016-ea-languages-wcci (you might remember this one, everyone pitched in) 09:19
AlexDaniel: as you see, I do open science by default. Everyone is welcome to help and obviously add her signature to the paper, if that helps. 09:20
dd070: please check out this answer in Quora www.quora.com/Are-any-companies-pl...use-Perl-6 Also, Edument is developing a whole range of products with Perl 6 edument.se/en/ 09:21
AlexDaniel jmerelo: what's .Rnw? looks like normal LaTeX but I guess it's not? Google doesn't give much… 09:22
jmerelo AlexDaniel: it's Latex + R, using a very cool library called knitr. It allows me to embed data processing and visualization in the paper, and not worry about redoing charts when hated reviewer #3 complains about the font or its size. 09:23
AlexDaniel: also contributes to the open science part. The experimental data and everything is in the repo, and the R scripts show transparently what's being done with it. 09:24
AlexDaniel jmerelo: obviously. That's exactly what I'd expect from any paper really 09:25
jmerelo++
jmerelo AlexDaniel: check it out, it's very cool yihui.name/knitr/ I use it all the time. You update data with new experiments, you only have to rerun
AlexDaniel: unfortunately, it's less popular than you might think among the scientific community. 09:26
AlexDaniel jmerelo: I know
jmerelo: sucks really
jmerelo AlexDaniel: here are a few papers I wrote analyzing several popular Perl repositories, including Moose and Catalyst github.com/JJ/literaturame/tree/master/report Some of them use R Markdown (Rmd), same thing, only simpler. 09:28
The bulk of the data processing is done here github.com/JJ/literaturame/blob/ma...7.Rnw#L25. Anyway, R rather sucks for data munging (or I suck at using it). I generally use Perl for massaging the data, or later Perl 6 09:29
AlexDaniel jmerelo: so how does knitr compare to say tikz? 09:32
jmerelo AlexDaniel: isn't tikz actually for graphics? Also, I think what knitr does is to generate tikz code for the charts. Let me see...
jmerelo: yep, knitr uses internally tikz to generate graphics yihui.name/knitr/demo/graphics/ 09:36
09:39 noganex joined 09:41 wamba joined 09:44 dd070 left 09:46 pharv joined 09:51 pharv left
AlexDaniel jmerelo: ok that's very interesting, thanks 09:52
jmerelo AlexDaniel: my pleasure :-)
AlexDaniel: as said above, fell free to comment/suggest/criticize whatever you find questionable or in need of improvement. 09:53
10:04 domidumont joined 10:33 lizmat left 10:46 pharv joined 10:51 pharv left 10:55 jmerelo left 11:05 wamba left 11:11 natrys joined, wamba joined 11:40 markong joined 11:46 markong left
Kaiepi would this be useful to very many people? hastebin.com/afukajibok.pl 11:56
it wraps methods, taking the return value and asynchronously spawning a child process
timotimo Kaiepi: that could be incompatible with precomp, though; trait mods are run at compile time and i don't think locks can be serialized 12:01
Kaiepi damn 12:02
would it work if the locks were handled outside the trait mods? 12:04
wait why aren't i testing this 12:06
timotimo it doesn't seem like @lines is used anywhere, do you only use it to slurp up any output that happens? 12:08
oh, also, i recommend using :bin for stdout and stderr so that it won't crash when the program you launch spits out binary "garbage" 12:10
Kaiepi lines was meant to be returned 12:18
since for what i'm writing i use it for logging
not to console i mean, to irc,which is dealt with separately 12:20
timotimo right
Kaiepi i think using more fp for this might make it possible to do both 12:25
12:33 wamba left
MasterDuke Kaiepi: also, if you want, you could do .Supply to get stdout and stderr merged together 12:43
12:46 markong joined
Kaiepi ohhh, i didn't know about that 12:48
that's what i'm aiming to do 12:49
thanks
13:02 natrys left 13:09 rindolf left 13:12 hlafarge joined
AlexDaniel tyil: hello 13:13
tyil: where's the repository for modules.perl6.org/dist/Ops::SI ?
13:16 jeek joined 13:28 hlafarge left 13:30 sena_kun joined
timotimo github.com/scriptkitties/perl6-Ops-SI - AlexDaniel probably this 13:35
AlexDaniel Yeah! OK thanks
13:36 koto joined 13:37 koto left 13:39 sena_kun left
AlexDaniel actually… I'm not sure how to fix that module 13:41
m: say 3 × 10¯²⁴
camelia 2.9999999999999996e-24
AlexDaniel ah, I see 13:43
it's ok
El_Che releasable6: status 13:48
releasable6 El_Che, Next release in ≈5 hours. 2 blockers. 224 out of 249 commits logged
El_Che, Details: gist.github.com/0cea5dc5b10aed1643...baf7fbfaac
tyil AlexDaniel: the repo given by timotimo is correct 13:49
13:57 Juerd left, Juerd joined 14:01 mingdao joined
AlexDaniel tyil: cool. I looked at META6.json but the wasn't there. Anyway, can you take a look at its tests? R#1736 14:01
synopsebot R#1736 [open]: github.com/rakudo/rakudo/issues/1736 [LHF][⚠ blocker ⚠] Toaster results show several modules' tests rely on buggy Num stringification
AlexDaniel link*
14:02 mingdao left
AlexDaniel tyil: I tried this: gist.github.com/AlexDaniel/3269c83...3182f9780c 14:02
but it fails one test still
m: say 1e-20 ≅ 1.0000000000000001e-21 14:03
camelia False
14:03 mingdao joined 14:13 rindolf joined 14:17 epony left 14:19 Kaffe left
buggable New CPAN upload: Distribution-Builder-MakeFromJSON-0.2.tar.gz by NINE cpan.metacpan.org/authors/id/N/NI/...0.2.tar.gz 14:28
14:28 khw joined 14:32 Kaffe joined, epony joined 14:35 epony left, epony joined
buggable New CPAN upload: App-Mi6-0.1.7.tar.gz by SKAJI modules.perl6.org/dist/App::Mi6:cpan:SKAJI 14:48
timotimo AlexDaniel: that's off by 10x, though, isn't it? 14:50
AlexDaniel timotimo: haha looks so 14:51
haha the test is wrong, was it my mistake?
oh wow, it is 14:52
how did that happen…
timotimo++
Kaiepi oh sweet cpan shows travis build statuses now 14:53
or at least they started to show up on mine 14:55
14:55 Sgeo_ joined 14:58 Sgeo__ left 15:05 Kaffe left 15:12 skids joined 15:32 jmerelo joined
Herby__ o/ 15:33
tyil: thanks! 15:34
15:43 kybr left
synopsebot Link: doc.perl6.org/type/Str
16:02 wamba joined 16:11 zakharyas joined 16:13 zakharyas left 16:14 zakharyas joined 16:18 skids left 16:29 zakharyas left 16:30 zakharyas joined 16:35 xinming_ left
Geth doc: f66e9a0e05 | (JJ Merelo)++ | doc/Type/Str.pod6
Retiring NYI marks from Str examples

Some of them have been implemented according to
  github.com/perl6/roast/blob/master.../sprintf.t
Also, there should be an easier way of doing this.
16:46
synopsebot Link: doc.perl6.org/type/Str
16:49 MasterDuke left
tyil AlexDaniel: bbq is fired up now, I'll look into it Soon™ 16:51
AlexDaniel tyil: I think I submitted a pull request already, if I'm not mistaken
16:52 colomon joined
jmerelo Is there any way to know the plans for implementing NYI things? I'm thinking about all the sprintf flags in this case. 17:00
moritz which plans? 17:02
there is no central intelligence in the Perl 6 projects; people just do what they can and/or like and/or think that it furthers the cause
jmerelo moritz: I don't know. Something like "we're implementing this flag by 20xx.xx". The Y in NYI implies that they are going to be implemented eventually, right? 17:03
Zoffix jmerelo: not really. It's volunteer based and everyone largely works on whatever they want. There are only a few things in plans, like slurpy dispatch would get cached soonish, native dispatch thing will be fixed. If CaR grant is approved, native attributes, rats, and constants would be fixed, but that's about it as far as plans go
jmerelo Is there at least a master list of NYI stuff people can draw from? 17:04
moritz jmerelo: is docs/ROADMAP in rakudo
in a volunteer-driven project, you can either promise release dates or features; it doesn't work to promise both 17:05
jmerelo Let's put it in another way. If I want to be aware of when NYI things are implemented to add that to the documentation (or take out NYI marks), is there a way of doing that other than checking on Roast from time to time?
moritz yes, you can read the rakudo changelogs when a release comes out
they tend to be pretty well-maintained
timotimo have automated tests that change their status when something gets implemented 17:06
Zoffix jmerelo: (master list) not really. There are NYI-tagged tickets on RT but they're outdated and many things I saw in the past aren't planned to be implemented.
jmerelo: well, my hope is the developers who implement those features also document them...
That ROADMAP also looks outdated "Last commit: Sep 15, 2015" 17:07
jmerelo OK, so I see something like a two-pronged approach. Keep an eye on ChangeLog to check what new things that should be documented are implemented, if you want to check particular features, write tests for them and run for new releases, right?
moritz cd 17:08
sorry
Zoffix /home/moritz $
jmerelo laughing at the joke. 17:09
17:09 zakharyas left
rindolf Zoffix: hi 17:09
Zoffix hi
17:09 MasterDuke joined
rindolf Zoffix: can you give me arecipe for the class-wise add op? 17:10
Zoffix What's a class-wise op?
rindolf Zoffix: what i asked yesterday
field by field
timotimo didn't he already give you code that does what you want? 17:11
Zoffix rindolf: there was a code example. Check the channel logs
rindolf Zoffix: ah, which one? there were too many
Zoffix irclog.perlgeek.de/perl6/2018-04-20#i_16071615 17:13
jmerelo releasable6: status
releasable6 jmerelo, Next release in ≈1 hour. 2 blockers. 224 out of 249 commits logged
jmerelo, Details: gist.github.com/0f9847e449bc1a7ac4...c328fa60e6
rindolf Zoffix: thanks
Zoffix: so i need to list every field? 17:14
Zoffix rindolf: I answered all of that yesterday already. Just read that conversation 17:15
17:15 robertle_ joined
Zoffix irclog.perlgeek.de/perl6/2018-04-20#i_16071629 17:15
irclog.perlgeek.de/perl6/2018-04-20#i_16071647
It's a line above you saying "thanks". What were you saying thanks to?
Zoffix & 17:16
17:16 Zoffix left
jmerelo rindolf: and that is why I always ask people to repeat their questions in StackOverflow. Q & As are pretty well organized there, and more people (not present in the chat) can also answer them. 17:23
17:26 Rawriful joined
timotimo jmerelo: i accidentally sent a message to jjmerelo instead of jmerelo 17:27
just saying that "punt" is a legit verb
jmerelo timotimo: I have both... 17:28
timotimo: was it in that context?
timotimo the bot will only deliver those when it sees someone with the exact nickname speaks up
there was a stackoverflow question where you wanted to edit the text to replace punt with point
the description saying you "fixed a typo" 17:29
jmerelo timotimo: right. So was punt better in that context?
timotimo it fits at least
jmerelo timotimo: let me see...
timotimo: it means "bet" or "take a long shot". "Punter" is sometimes used for "customer". But let me see... 17:30
timotimo oh? 17:31
geekosaur there's also usage derived from NFL where it means kicking it over to <s>the other team</s> someone else to deal with 17:32
jmerelo timotimo: I can't find it. But whatever you did, that's fine :-) 17:34
timotimo can't find what? 17:36
jmerelo timotimo: the thing I edited...
timotimo one of bdf's questions
i think it's the one about tie breakers?
Geth museum-items: 4f6182e465 | raiph++ (committed using GitHub Web editor) | 2 files
Rename The-Jon-Orwant-mug-throwing-incident-at-P5P-meeting.md to 07-18-The-Jon-Orwant-mug-throwing-incident-at-P5P-meeting.md

Prefix date so events list in github in order
17:38
jmerelo timotimo: You mean "The docs for Perl 6 longest alternation in regexes point to Synopsis 5 " 17:39
Geth museum-items: f2e803bac1 | raiph++ (committed using GitHub Web editor) | 2 files
Rename State Of The Onion 2000 introduces Perl 6.md to 07-19-Larry announces Perl 6.md
timotimo yes
jmerelo timotimo: Yep, it might make sense if we understand it like geekosaur says. 17:40
timotimo: but then wouldn't that be "punt on"? Or simply punt? english.stackexchange.com/question...-something 17:41
timotimo i've learnt to use it as in "punt to something/someone else" like "refer to" 17:43
jmerelo timotimo: I've restituted it where it belongs. Thanks! 17:45
17:53 ExtraCrispy left 17:59 zakharyas joined
Herby__ \t a high 18:08
jmerelo p6: my $i=400; say "\c$i" 18:10
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized \c character
at <tmp>:1
------> 3my $i=400; say "\c7⏏5$i"
expecting any of:
argument list
double quotes
term
jmerelo p6: my $i=400; say "\c"~$i
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized \c character
at <tmp>:1
------> 3my $i=400; say "\c7⏏5"~$i
expecting any of:
argument list
double quotes
term
jmerelo p6: my $i=400; my $str = qq \c\q["~$i~']' 18:12
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3my $i=400; my $str = qq \c\7⏏5q["~$i~']'
expecting any of:
infix
infix stopper
postfix
statement end
jmerelo So this one is pretty hard: stackoverflow.com/questions/499584...n-in-perl6
p6: my $i=400; say $i.chr' 18:16
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3my $i=400; say $i.chr7⏏5'
expecting any of:
infix
infix stopper
postfix
statement end
statement m…
jmerelo p6: my $i=400; say $i.chr 18:17
camelia Ɛ
jmerelo Or maybe not so much...
rindolf .help send 18:18
yoleaux rindolf: Sorry, no help is available for send.
rindolf .help tell
yoleaux Relay a telegram to someone
jmerelo Maybe add something about that to the documentation? Or to traps?
rindolf .tell Zoffix thanks for your help, see github.com/shlomif/project-euler/b.../220-v1.p6 18:19
yoleaux rindolf: I'll pass your message to Zoffix.
timotimo rindolf: you kept the python hashbang in that file 18:26
rindolf timotimo: ah, thanks 18:27
18:30 jeek left, jmerelo left
rindolf timotimo: updated 18:31
timotimo: i also want to create an env class
timotimo: or at least a closure - hmmm... 18:32
18:34 zachk joined, zachk left, zachk joined
rindolf done 18:36
gotta love lexical scoping 18:37
18:47 domidumont left 18:58 darutoko left, eliasr left 19:20 zakharyas left 19:58 zakharyas joined 20:03 stux|RC-- left 20:04 stux|RC joined 20:11 lichtkind joined
Geth doc: 113ab80574 | (Brad Gilbert)++ (committed using GitHub Web editor) | doc/Type/Iterator.pod6
Add a useful .pull-one example
20:14
synopsebot Link: doc.perl6.org/type/Iterator
20:16 xinming joined 20:24 domidumont joined 20:27 domidumont left
Geth museum-items: 6cc64a3a35 | raiph++ (committed using GitHub Web editor) | 2000/07~mailing-lists.md
Create 07~mailing-lists.md
20:40
20:41 zakharyas left 21:17 Kaiepi left, Kaiepi joined
Geth museum-items: 4e009f364d | raiph++ (committed using GitHub Web editor) | 2000/08~RFCs.md
Create 08~RFCs.md
21:23
museum-items: 29cbe15bb9 | raiph++ (committed using GitHub Web editor) | 2000/07-25-MJD's Report.md
Create 07-25-MJD's Report.md
21:34
buggable New CPAN upload: Ops-SI-0.1.1.tar.gz by TYIL modules.perl6.org/dist/Ops::SI:cpan:TYIL 21:48
Geth museum-items: 652dc3d647 | raiph++ (committed using GitHub Web editor) | 2000/08-18-"Final release will be ... January 2002".md
Create 08-18-"Final release will be ... January 2002".md
21:49
museum-items: 7d97a188c2 | raiph++ (committed using GitHub Web editor) | 2 files
Rename 08-18-"Final release will be ... January 2002".md to 08-18-"Final release ... 2002".md
21:50
museum-items: 3a66a53c31 | raiph++ (committed using GitHub Web editor) | 2 files
Rename April Fool's Parrot.md to 04-01-April Fool's Parrot.md
21:54
21:55 gfldex joined
Geth museum-items: 1dc478a915 | raiph++ (committed using GitHub Web editor) | 2 files
Rename The Real Parrot.md to 9-10-Real Parrot.md
21:57
21:57 lizmat joined
Geth museum-items: abd1b14b5b | raiph++ (committed using GitHub Web editor) | 2 files
Rename 9-10-Real Parrot.md to 09-10-Real Parrot.md
21:57
museum-items: d65398e68b | raiph++ (committed using GitHub Web editor) | 2 files
Rename -Ofun.md to 10-10-Ofun.md
22:04
buggable New CPAN upload: Distribution-Builder-MakeFromJSON-0.3.tar.gz by NINE modules.perl6.org/dist/Distribution...:cpan:NINE 22:08
Geth museum-items: e57f2c7fa6 | raiph++ (committed using GitHub Web editor) | 2 files
Rename public logging of Perl 6 irc channels begins.md to 02-26-#perl6 logs.md
museum-items: 7655f73fac | raiph++ (committed using GitHub Web editor) | 2 files
Update and rename pugs.md to 02-01-Audrey+PUGS.md
22:14
22:25 Keyn joined 22:40 lookatme left 22:41 rindolf left 22:44 lookatme joined 22:53 wamba left 22:54 Keyn left, avrono joined
avrono Trying to build from source on ubuntu 17.10 .... getting ===SORRY!=== No suitable MoarVM (moar executable) found using the --prefix (You can get a MoarVM built automatically with --gen-moar.) Command failed (status 512): /usr/bin/perl Configure.pl --prefix=/opt/rakudo-star-2018.01 --backends=moar --make-install 22:55
any ideas , help appreciated ... 22:56
Kaiepi where's the install/bin dir in /opt/rakudo-star? 22:58
and what command are you running to install? 22:59
avrono failed on perl Configure.pl --gen-moar --prefix /opt/rakudo-star-2018.01 23:00
as written on perl6.org/downloads/ 23:01
installing from source
I could just try the Ubuntu .deb I guess 23:02
timotimo avrono: please be advised that our build system is funky, and you'll require root privileges to use --gen-moar 23:10
instead of that, however, you can cd into the moarvm folder, Configure.pl with the right --prefix, then make, sudo make install 23:11
do the same in the nqp folder
and finally do the Configure.pl in rakudo's folder without --gen-moar
avrono Many thanks ... btw ... many years Perl 5 programmer - best way to get started on Perl 6 ? 23:12
AlexDaniel avrono: we have a bunch of Perl5 to Perl 6 guides here: docs.perl6.org/language.html 23:14
avrono Many thanks again ... look forward to checking it out !
AlexDaniel avrono: also if I were you I'd probably start with this first: learnxinyminutes.com/docs/perl6/
it's a relatively short document and many things you'll know already 23:15
avrono Great minds reading the code now
23:15 mryan_ joined, mryan left, mryan_ is now known as mryan
avrono My fear is 20 years of Perl 5 - old habits 23:16
AlexDaniel avrono: there are some built in error messages designed for these habits :)
m: say ‘foo’ . ‘bar’
camelia 5===SORRY!5=== Error while compiling <tmp>
Unsupported use of . to concatenate strings; in Perl 6 please use ~
at <tmp>:1
------> 3say ‘foo’ .7⏏5 ‘bar’
23:17
Kaiepi i never used perl 5, but i used nodejs for years
not something i want to touch again
i'll need to learn perl 5 eventually, but i don't think it'll be something i write very often 23:18
AlexDaniel Kaiepi: oh, you used nodejs for years! Great 23:21
Kaiepi: what about a Perl 6 from Javascript guide?
Kaiepi: to go here as well: docs.perl6.org/language.html
we have Haskell, Python, Ruby and Perl5 there 23:22
Kaiepi: but something is missing *wink* *wink* *wink*
Kaiepi it's pretty different, but in a good way 23:23
type system, lexical/function scoping, the complex event loop don't get in the way of writing
i could write a nodejs to perl 6 page, but i wanna wait until i know the language better 23:24
AlexDaniel by that time it will be too late! :) 23:25
23:25 espadrine_ left
Kaiepi lol 23:25
i'll check out the other articles and look into writing it 23:26
AlexDaniel thanks
avrono Not a javascript fan myself , but have used Nodejs since it came out 23:29
I find es6,7,8 unreadable ... async this and that ... 23:30
timotimo perl6 has await without async …
avrono whats the current uptake like of Perl6 ... getting any traction ... ? 23:32
I'm a CTO looking into it for new project
Kaiepi es6 was nowhere near as bad as es5
avrono that's true ... 23:33
Kaiepi (function Foo() { this.bar = 1; } return Foo; )()
intuitive constructors
async/await are good in theory but they still end up leaving you stuck with promise spaghetti in regular functions 23:34
it's starting to get some traction i think 23:35
avrono It's horrid, I've inherited code written in ES6 - written in a functional way ... almost unreadable 23:36
then Flow type thrown in
pointless ... wrong language / style mix 23:37
Kaiepi wdym in a functional way
like full haskell or
avrono yeah - attempted
23:37 robertle_ left
Kaiepi jesus 23:37
avrono a mess
but oddly works somethow 23:38
Kaiepi must be a nightmare to debug 23:39
avrono BTW what IDE do you use for Perl6 ? Atom ? 23:40
Kaiepi vim 23:41
used visual studio code briefly, didn't like it much
avrono ok, vim works for me too 23:42
thanks for the help - going to crack on and pick some Perl6 up ... looks very comprehensive 23:43
Kaiepi i found parts of it a bit tricky at first, but the really easy parts made up for it well 23:45
mainly the module system, how it does oop, and promises 23:46
their flexibility won me over once i understood it better 23:48
avrono I'll check it out ... looks like there are may ways to code with it 23:51
I do like languages like Golang for simplicity and neatness
But Perl Regex has always been great
23:52 Zoffix joined
avrono I need to write a web crawler ... and I hate Python 23:52
Zoffix timotimo: how come that's necessary? "and you'll require root privileges to use --gen-moar"
avrono so either Perl 5 or Perl 6 :-)
Zoffix I think I've built over 10,000 rakudos by now and never once needed root ever....
avrono yeah I just sudo'd it and works fine
Kaiepi p6: sub trait_mod:<is>(Routine $r, :$cool!) { $r.wrap({ "{callsame} is cool!" }); }; class Language { has Str $.name; method gist(--> Str) is cool { $!name } }; say Language.new(:a('Perl6'))
camelia Use of uninitialized value of type Str in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
is cool!
in block at <tmp> line 1
Kaiepi shit
Zoffix p6: sub trait_mod:<is>(Routine $r, :$cool!) { $r.wrap({ "{callsame} is cool!" }); }; class Language { has Str $.name; method gist(--> Str) is cool { $!name } }; say Language.new(:perl6('Perl6')) 23:53
camelia Use of uninitialized value of type Str in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
is cool!
in block at <tmp> line 1
Zoffix p6: sub trait_mod:<is>(Routine $r, :$cool!) { $r.wrap({ "{callsame} is cool!" }); }; class Language { has Str $.name; method gist(--> Str) is cool { $!name } }; say Language.new(:name('Perl6'))
camelia Perl6 is cool!
Kaiepi there we go
Zoffix huggable: atom ide 23:54
huggable Zoffix, github.com/perl6/Atom-as-a-Perl6-IDE also see Perl-6-tailored CommaIDE: commaide.com/
Zoffix avrono: ^ there are some plugins for Atom. And CommaIDE alpha or beta will be out in May
Kaiepi vim has some plugins too 23:55
Zoffix avrono: FWIW, these instructions don't need any root, AFAIK: rakudo.org/files/star/source there are also some pre-built packages: rakudo.org/files/star/third-party 23:57
Kaiepi i don't use root
~/.perl6 is my install dir
tony-o i think github.com/tony-o/perl6-web-scraper still works .. 23:58
for scraping 23:59