🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:02 lucasb left 00:14 Kaiepi left 00:15 Kaiepi joined 00:21 Kaiepi left, Kaiepi joined 00:34 wildtrees left
brass What's the difference between @list.hyper.map and @list>>? 00:39
AlexDaniel brass: » is more like .deepmap, I think, if not something else 00:41
brass: also .hyper can parallelize today, I don't think » currently does (even though it should) 00:42
moon_child I think I might have found a usecase for rakudo's jvm backend 00:44
brass Ohh that makes sense, I was trying out >> and it seemed to only run in one thread
moon_child integrating with netflix's notebook thingy medium.com/netflix-techblog/open-s...f929d3f447 00:45
01:11 Yanzhan joined 01:13 Yanzhan left 03:12 donpdonp joined 04:19 Kaiepi left 04:20 Kaiepi joined 05:03 jmerelo joined
jmerelo releasable6: status 05:03
releasable6 jmerelo, Next release will happen when it's ready. 1 blocker. 7 out of 443 commits logged (⚠ 9 warnings)
jmerelo, Details: gist.github.com/7f03cb9476f173287c...33681a66a3
06:45 jmerelo left 06:52 Xliff joined 06:53 darth_tamiko is now known as tamiko 06:54 sena_kun joined 06:57 Xliff left 07:44 marcusr left 07:45 marcusr joined 07:59 Yanzhan joined 08:00 sumanstats joined
sumanstats If I want to build rakudo using clang I pass this flag to build script: --moar-option='--compiler=clang' 08:03
What is the way I can use MinGW-w64 to build rakudo?
mingw64 08:04
08:22 cdc left 08:27 cdc joined, cdc is now known as Guest61886 08:29 Guest61886 left 08:32 cdc_ joined 08:34 cdc_ left, marcusr left 08:35 marcusr joined 08:37 cdc_ joined 08:42 Yanzhan left 08:57 veesh left 08:58 veesh joined 09:28 moon_child is now known as elronnd 09:29 elronnd is now known as moon_child
SmokeMachine AlexDaniel: thank you! 09:47
10:01 sumanstats left 10:05 cpan-raku left 10:06 cpan-raku joined, cpan-raku left, cpan-raku joined 10:07 pmurias joined 10:16 donaldh joined
SmokeMachine have anyone tried Gitpod? it seems very interesting! 10:21
pmurias SmokeMachine: checking it out 10:25
SmokeMachine pmurias: I'm building Rakudo on it to test... 10:26
usercontent.irccloud-cdn.com/file/.../image.png
an also trying to make RedBot work on that 10:27
usercontent.irccloud-cdn.com/file/.../image.png
pmurias the whole use the IDE we provide to you that you are not used to aspect kind of sucks 10:28
SmokeMachine I think it's a easy way to make users try out stuff... 10:30
Rakudo already compiled: gitpod.io#snapshot/193bc9e5-c2f6-4...f2e8498e56 10:33
AlexDaniel: I'm not being able to install Whateverable... it seems that it depends on Digest::SHA256::Native that depends on Shell::Command that couldn't be found: gitpod.io#snapshot/f1b55f77-975d-4...e25cdda870 10:44
10:45 pmurias left 10:48 pmurias joined 11:10 ggoebel joined 11:12 marcusr left 11:13 marcusr joined 11:18 xinming_ left 11:19 xinming_ joined 11:21 ggoebel left 11:31 stoned75 joined 11:34 xinming_ left, xinming_ joined 11:37 stoned75_ joined 11:40 stoned75 left 11:49 marcusr left, marcusr joined 11:54 ggoebel joined 12:09 stoned75_ left
Doc_Holliwood SmokeMachine: That's strange, I just installed that and it worked fine. Shell::Command I mean 12:13
and with just i mean a few days ago
12:15 stoned75 joined
SmokeMachine Doc_Holliwood: I've installed Whateverable few days ago as well... but now it's not working, at least on that environment... 12:16
Doc_Holliwood omg how cool is that? 12:26
i mean the browser ide
how do i make it to run raku? 12:27
SmokeMachine Doc_Holliwood: cool, isn't it?! it runs a docker image... so you can customise the image you want to run... 12:34
Juerd m: my @foo; @foo //= ^10; say @foo 12:35
camelia []
Juerd m: my @foo; @foo ||= ^10; say @foo
camelia [0 1 2 3 4 5 6 7 8 9]
SmokeMachine Doc_Holliwood: look, here I'm running the Rakudo spectests: gitpod.io#snapshot/ec4265aa-2501-4...a3cd43f222
m: my @foo; say @foo.defined 12:36
camelia True
12:36 stoned75 left
SmokeMachine Doc_Holliwood: example: 12:37
github.com/FCO/Red/blob/master/.gi...dockerfile
github.com/FCO/Red/blob/master/.gitpod.yml
12:48 stoned75 joined 12:53 stoned75 left 12:57 stoned75 joined 13:00 pat_js joined
Doc_Holliwood the highlighter is broken 13:02
13:14 hythm joined
Doc_Holliwood SmokeMachine: I added the two files into a project of mine, yet I have no perl6 available when i restart the workspace 13:16
ef16d620-e54a-4419-aa51-6c6de7ec38...tty-Sorted 13:17
SmokeMachine you have to share a snapshot... 13:18
13:18 lucasb joined
Doc_Holliwood gitpod.io#snapshot/6fb6eba1-0651-4...9d5062b7f4 13:19
hythm SmokeMachine: did you forget `rakudobrew build zef` in the Dockerfile? 13:21
SmokeMachine rakudobrew is not working for me...
it was working when I was using `apt-get install perl6` but it was installing a perl6 not recent enough to me... 13:22
lets see if this way now it works... 13:27
hythm hmm, but the Dockerfile has "rakudobrew build moar" the "zef installl",, you need " rakudobrew build zef" before "zef install" 13:28
brass Hmm the openbsd version of rakudo doesn't come with any of the rakudo star modules like zef 13:29
If there any easy way to install modules without it?
SmokeMachine brass: just install zef... 13:32
Doc_Holliwood brass: yes. install zef
^^
brass But zef isn't an openbsd package
Doc_Holliwood no but it just perl6 code 13:33
hold on
13:33 ggoebel left
Doc_Holliwood github.com/ugexe/zef 13:33
SmokeMachine if I remember it well: `git clone github.com/ugexe/zef && cd zef && perl6 -I. bin/zef install .`
Doc_Holliwood just folloe the instructions
brass O ok thanks 13:34
guifa For a <fuzzy-match(@foo)> token in regex, would most people assume it to terminate on whitespace or want it to gobble characters prefer to have two separate tokens where one cares and the other doesn’t? 13:36
guifa is putting finishing touches on a new module
vrurg guifa: Usually having choice is good. 13:38
brass Doc_Holliwood: Installed and working fine, thanks! 13:42
13:44 warriors joined
AlexDaniel SmokeMachine: the links is not really working 13:46
tellable6 2019-10-25T06:56:43Z #raku-dev <Xliff> AlexDaniel That's 21 second compile time increase over the last week or so... FYI
gist.github.com/8ebc8c7d63e7397efa...50ed7ad767
AlexDaniel link*
SmokeMachine: is it still an issue?
guifa Actually, is there still an open slot for advent calendar? I think a fuzzy token could be a cool little post
13:48 [Coke] joined
SmokeMachine AlexDaniel: the link is this one: gitpod.io#snapshot/24a1fddf-ce49-4...ab0da4d472 13:49
I'm running again to see if it works now...
14:02 [Coke] left 14:09 [Coke] joined, [Coke] left, [Coke] joined
AlexDaniel guifa: sure: github.com/perl6/advent/blob/maste...9/schedule 14:18
14:29 donaldh left 14:36 Tirifto joined 14:40 Kaeipi joined 14:42 Kaiepi left 15:11 pmurias left
jdv79 so not /r/raku? i thought someone said that was the new place recetnly. 15:19
15:30 patrickb joined
sena_kun why not? 15:31
tellable6 2019-10-24T21:48:35Z #raku-dev <AlexDaniel> sena_kun: I won't be announcing any other winner this month, others didn't do more than one PR
2019-10-24T21:48:52Z #raku-dev <AlexDaniel> sena_kun: so you decide what to do with it :)
sena_kun jdv79, ignore me
15:39 donpdonp left, jmerelo joined
timotimo i just realized this cool thing: 15:43
m: .say for 100_000 + ^3
camelia 100000
100001
100002
timotimo "three numbers starting with 100_000" 15:44
Doc_Holliwood just got bitten by %hash<$foo> 15:45
again
15:47 wildtrees joined 15:53 Tirifto left
Doc_Holliwood m: say 100 ~ ^3 15:54
camelia 1000 1 2
SmokeMachine xinming_: were you able to use Red + Cro? 16:05
xinming_ SmokeMachine: i do, I'm still trying to implement a small site using them with some ideas. 16:07
SmokeMachine xinming_: cool! 16:08
16:28 hythm left 16:33 TreyHarris joined 16:34 MasterDuke joined
discord6 <Rogue> Are there stable opengl bindings? 16:44
16:44 jmerelo left
sena_kun Rogue: judging from modules page there are none. they are also listed under github.com/perl6/perl6-most-wanted...interfaces so feel free to volunteer. 16:51
AlexDaniel Rogue: what do you need it for exactly? There are some alternatives I think 17:05
17:07 ggoebel joined
AlexDaniel for example, there's SDL2 module 17:07
17:26 chloekek joined 17:31 ggoebel left
discord6 <Aearnus> I put together some gl bindings but never published them 18:01
18:02 Yanzhan joined
tbrowder how's release coming? want to add some PRs before they get too stale ;-D 18:03
Doc_Holliwood oh look who's here 18:14
wecome Yanzhan
*welcome
Geth doc: stoned++ created pull request #3074:
Pursue .WHAT removal
18:20
18:21 xkr47 joined 18:49 ggoebel joined 19:04 xinming_ left 19:05 xinming_ joined 19:11 donaldh joined
timotimo wakelift.de/p/c3f095d6-8827-426f-9...1a230731d/ - i would welcome a bit of proofreading/review of my latest grant report 19:14
sena_kun "The other half of each panel shows information about the object: Displayed at the very top is whether it is an object, a type object, an STable, or a frame." colon here seems odd to me. 19:21
donaldh I'm trying to write a grammar rule to match words using a regex but then I want it to reject reserved words. Can this be done in the grammar, or should it be handled in an action? 19:24
sena_kun donaldh, can you show an example of your code? 19:25
donaldh, do you use grammar for this specific thing (so we can suggest solutions without a grammar) or? 19:26
donaldh github.com/donaldh/p6-pb/blob/mast...mar.pm#L87
Need to reject reserved words such as : github.com/donaldh/p6-pb/blob/mast...mar.pm#L83 19:27
19:29 pmurias joined
xinming_ m: (((1 .. 6) Z ("a" .. "z")).map: *.pair).perl.say 19:33
camelia No such method 'pair' for invocant of type 'List'. Did you mean any of these?
pairs
pairup
path
tail

in block <unit> at <tmp> line 1
xinming_ How do we make this a Hash?
m: (%(flat (1 .. 6) Z ("a" .. "z"))).perl.say 19:34
camelia {"1" => "a", "2" => "b", "3" => "c", "4" => "d", "5" => "e", "6" => "f"}
Doc_Holliwood m: say (1,2) Z=> ("a", "b") 19:35
camelia (1 => a 2 => b)
xinming_ Ah, Thanks for the Z=>
Doc_Holliwood when you want a list of indexes you can just say 19:36
m: (1,2).antipairs
camelia ( no output )
Doc_Holliwood huh
m: [1,2].antipairs 19:37
camelia ( no output )
Doc_Holliwood m: say [1,2].antipairs
camelia (1 => 0 2 => 1)
xinming_ Thanks. 19:38
Doc_Holliwood what also works is like 19:39
m: my %h; %h{1,2,3} = <a b c>; say %h
camelia {1 => a, 2 => b, 3 => c}
19:43 hythm joined
hythm p6: grammar G { token TOP { <[_a..zA..Z]>\w* <!{ $/ ~~ 'required' }> } }; say G.parse: 'abc'; say G.parse: 'required' 19:45
camelia 「abc」
Nil
hythm donaldh: something like that^ ?
donaldh hythm: yes, I was just reading about boolean condition checks. 19:46
would be nice if I could have a negative subrule assertion. Is that a thing? 19:48
hythm: thx this works: token ident { <[_a..zA..Z]>\w* <!{ $/.Str (elem) <required optional repeated> }> } 19:53
And I can have a set of reserved words in the grammar.
hythm this might be helpful too github.com/edumentab/rakudo-and-nq...sing-calls 20:09
donaldh timotimo: "mark things you're interesting" -> "mark things you're interested in" ? 20:13
20:14 jjatria left, jjatria joined
donaldh timotimo: "navigatable" -> "navigable" ? 20:14
20:15 jjatria left
donaldh timotimo++ 20:16
20:16 sena_kun left, jjatria joined
Geth whateverable: 84472bb196 | (Aleks-Daniel Jakimenko-Aleksejev)++ | xbin/Releasable.p6
Make releasable find blockers in all repos and orgs

Previously it'd only look at rakudo/rakudo, but now it will search all repos in rakudo, moarvm and perl6 orgs.
20:16
20:16 releasable6 left 20:17 cpan-raku left
AlexDaniel SmokeMachine: ah, now I realize something 20:17
SmokeMachine: there's a hack that makes it sleep for a random amount of time if you run it without DEBUGGABLE
20:17 cpan-raku joined, cpan-raku left, cpan-raku joined, jjatria left, jjatria joined
AlexDaniel SmokeMachine: this was a quick fix to prevent bots from joining together, but it does mean that in your case you'll have to wait for a bit too long… 20:17
SmokeMachine: fixing it now 20:18
20:21 greppable6_ joined, greppable6_ left
Geth whateverable: ca48a737c9 | (Aleks-Daniel Jakimenko-Aleksejev)++ | 2 files
Unhardcode join delay

So that those who have only one bot don't need to wait.
20:22
AlexDaniel SmokeMachine: fixed! 20:23
20:25 releasable6 joined
timotimo thanks donaldh 20:27
20:40 Kaeipi left 20:41 Kaeipi joined 20:43 warriors left, xkr47 left 20:45 donaldh left 20:55 stoned75 left 21:08 stoned75 joined 21:15 hythm left 21:29 xkr47 joined 21:35 chloekek left 22:14 Yanzhan left
Kaeipi m: sub foo { die; 1 }; say foo; CATCH { default { } } 22:22
camelia ( no output )
Kaeipi m: sub foo { die; say 1 }; foo; CATCH { default { } }
camelia ( no output )
22:25 pmurias left 22:27 pmurias joined 22:30 stoned75 left 22:47 wildtrees left 22:48 patrickb left
Geth problem-solving/old-issue-tracker: b6730fe2e9 | (Aleks-Daniel Jakimenko-Aleksejev)++ | solutions/infrastructure/Old-Issue-Tracker-Dismantling-Plan.md
First draft of the RT tracker dismantling plan
23:00
23:04 gdonald joined
SmokeMachine AlexDaniel: Thanks! testing! 23:15
23:16 aearnus[m] joined 23:17 redable joined 23:19 redable left 23:21 redable joined 23:23 redable left
SmokeMachine red: use JSON::Fast; model Ble { has $!id is serial; has %.value is column{ :inflate(&from-json), :deflate(&to-json) } }; Ble.^create-table; Bla.^create: :value{a => ^10, b => 42, c => 3.14}; .say for Bla.^all 23:27
23:27 redable joined
SmokeMachine red: use JSON::Fast; model Ble { has $!id is serial; has %.value is column{ :inflate(&from-json), :deflate(&to-json) } }; Ble.^create-table; Bla.^create: :value{a => ^10, b => 42, c => 3.14}; .say for Bla.^all 23:27
redable SmokeMachine, use JSON::Fast; model Ble { has $!id is serial; has %.value is column{ :inflate(&from-json), :deflate(&to-json) } }; Ble.^create-table; Bla.^create: :value{a => ^10, b => 42, c => 3.14}; .say for Bla.^all
23:28 redable left 23:31 redable joined 23:32 redable left 23:33 redable joined
SmokeMachine red: use JSON::Fast; model Ble { has $!id is serial; has %.value is column{ :inflate(&from-json), :deflate(&to-json) } }; Ble.^create-table; Bla.^create: :value{a => ^10, b => 42, c => 3.14}; .say for Bla.^all 23:33
redable SmokeMachine, 04===SORRY!04=== Error while compiling /code/./code.p6␤Undeclared name:␤ Bla used at line 2. Did you mean 'Ble'?␤␤
SmokeMachine red: use JSON::Fast; model Ble { has $!id is serial; has %.value is column{ :inflate(&from-json), :deflate(&to-json) } }; Ble.^create-table; Ble.^create: :value{a => ^10, b => 42, c => 3.14}; .say for Ble.^all
23:33 epony joined, redable left
timotimo wakelift.de/2019/10/26/introducing...apshot-ui/ - lol i blogged 23:34
23:35 pmurias left
xinming_ SmokeMachine: How do we declare has_one relation ship in Red? 23:40
Or, When we use has Model $.xxx It'll be has_one relationship 23:41
vrurg SmokeMachine: the problem about 'cannot invoke REPR VMNull' will soon be gone.
xinming_ if we use `has Model @.xxx` It'll use has_many?
SmokeMachine xinming_: yes
vrurg: good news!
Geth problem-solving/old-issue-tracker: 5ccebce4b1 | (Aleks-Daniel Jakimenko-Aleksejev)++ | solutions/rakudo/Old-Issue-Tracker-Dismantling-Plan.md
Add the RT tracker dismantling plan
23:42
xinming_ SmokeMachine: Also, How can we declare the has_many and make it not null?
I just found that some relationships are nullable columns
SmokeMachine xinming_: you can sat you foreign key as not null...
Geth problem-solving/old-issue-tracker: 2ff1bb88f0 | (Aleks-Daniel Jakimenko-Aleksejev)++ | solutions/rakudo/Old-Issue-Tracker-Dismantling-Plan.md
Add the RT tracker dismantling plan

Closes #49.
23:43
problem-solving: AlexDaniel++ created pull request #126:
Add the RT tracker dismantling plan
¦ problem-solving: AlexDaniel unassigned from rba Issue rt.perl.org is shutting down github.com/perl6/problem-solving/issues/49 23:45
¦ problem-solving: AlexDaniel unassigned from maettu Issue rt.perl.org is shutting down github.com/perl6/problem-solving/issues/49
¦ problem-solving: AlexDaniel assigned to jnthn Issue rt.perl.org is shutting down github.com/perl6/problem-solving/issues/49
xinming_ SmokeMachine: Any example? 23:46
23:47 redable joined
xinming_ Ignore me, Just figured it out 23:48
AlexDaniel feedback, please? github.com/perl6/problem-solving/b...ng-Plan.md 23:49
vrurg AlexDaniel: my head doesn't work properly already, but so far it looks good.
xinming_ SmokeMachine: BTW, there is a bug, `has Int $.col is referencing{ ... } is column{ ... }` works, But `has Int $.col is column{ ... } is referencing{ ... }` doesn't 23:50
SmokeMachine xinming_: you should be using `is column{ :references{ ... }, ... }` 23:51
xinming_ alright, Maybe a note about the differences? 23:52
SmokeMachine xinming_: `is referencing{ ... }` becomes `is column{ :references{ ... } }` 23:53
xinming_ SmokeMachine: How is :references{ Model.id } translated? I know that :referens{} becomes :referens({ }); inner is a block. 23:57
hmm, bbl, I'll trymore 23:58