🦋 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.
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
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
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
SmokeMachine AlexDaniel: thank you! 09:47
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
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
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
SmokeMachine Doc_Holliwood: example: 12:37
github.com/FCO/Red/blob/master/.gi...dockerfile
github.com/FCO/Red/blob/master/.gitpod.yml
Doc_Holliwood the highlighter is broken 13:02
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
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
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
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
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...
AlexDaniel guifa: sure: github.com/perl6/advent/blob/maste...9/schedule 14:18
jdv79 so not /r/raku? i thought someone said that was the new place recetnly. 15:19
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
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
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
discord6 <Rogue> Are there stable opengl bindings? 16:44
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
AlexDaniel for example, there's SDL2 module 17:07
discord6 <Aearnus> I put together some gl bindings but never published them 18:01
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
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
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}
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
donaldh timotimo: "navigatable" -> "navigable" ? 20:14
donaldh timotimo++ 20:16
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
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
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
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
timotimo thanks donaldh 20:27
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 )
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
SmokeMachine AlexDaniel: Thanks! testing! 23:15
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
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
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
timotimo wakelift.de/2019/10/26/introducing...apshot-ui/ - lol i blogged 23:34
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
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