»ö« 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
discoD left
|
|||
holyghost | So that should be my first working CPAN package | 00:00 | |
this last working version is also on github.com/theholyghost2 | 00:04 | ||
timotimo | the source code won't be visible on modules.perl6.org for at least an hour or so | ||
holyghost | I know | 00:05 | |
timotimo | you're still using ok where you want to be using is-deeply or something similar | ||
00:05
kurahaupo left
|
|||
timotimo | the first argument is the value that's supposed to be checked and the second argument is what comment to output as the description | 00:05 | |
so you're just checking all these values whether they boolify to true or false | 00:06 | ||
holyghost | It's all numbers which get compared with 'ok' | 00:08 | |
the system itself is foolproof | |||
timotimo | no | 00:09 | |
ok does not compare numbers | |||
m: use Test; ok 1, 2; ok 3, 5; ok 1, 1; | 00:10 | ||
camelia | ok 1 - 2 ok 2 - 5 ok 3 - 1 |
||
timotimo | m: use Test; ok 0, 0; ok 0, 1; ok 1, 0; | ||
camelia | not ok 1 - # Failed test at <tmp> line 1 not ok 2 - 1 # Failed test '1' # at <tmp> line 1 ok 3 - |
||
holyghost | m: use Test; ok 0.111, 0.111; | 00:12 | |
camelia | ok 1 - 0.111 | ||
holyghost | m: use Test; ok 0.111, 0.112; | ||
camelia | ok 1 - 0.112 | ||
holyghost | ok, never mind | ||
timotimo | m: use Test; is-deeply 1, 1, "one is one"; | 00:14 | |
camelia | ok 1 - one is one | ||
timotimo | m: use Test; is-deeply 1, 2, "one is one"; | ||
camelia | not ok 1 - one is one # Failed test 'one is one' # at <tmp> line 1 # expected: 2 # got: 1 |
||
00:24
w_richard_w joined,
p6bannerbot sets mode: +v w_richard_w
00:39
lizmat_ joined,
p6bannerbot sets mode: +v lizmat_,
lizmat left
00:49
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke
00:50
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
00:52
jeek joined,
p6bannerbot sets mode: +v jeek
|
|||
buggable | New CPAN upload: Mathx-Stat-0.2.3.tar.gz by HOLYGHOST modules.perl6.org/dist/Mathx::Stat:...:HOLYGHOST | 00:57 | |
holyghost | ^-- I removed the chaos theory, which should become Mathx::Stat Chaos | 00:58 | |
s/Mathx::Stat Chaos/Mathx::Chaos | 00:59 | ||
01:10
w_richard_w left
01:24
leont left
|
|||
holyghost | I'm going to try to sleep a bit, so U get back into day phase | 01:28 | |
holyghost is AFK ATM | 01:29 | ||
02:28
Kaiepi left
02:31
Kaiepi joined
02:32
p6bannerbot sets mode: +v Kaiepi
02:39
Kaiepi left,
Kaiepi joined
02:40
p6bannerbot sets mode: +v Kaiepi
02:45
molaf left
02:49
Kaiepi left,
Kaiepi joined
02:50
p6bannerbot sets mode: +v Kaiepi
02:53
lizmat_ left
02:58
molaf joined,
p6bannerbot sets mode: +v molaf
02:59
ferreira left
03:03
kurahaupo joined
03:04
p6bannerbot sets mode: +v kurahaupo
03:07
ufobat___ joined
03:08
p6bannerbot sets mode: +v ufobat___
03:11
ufobat_ left
03:17
kurahaupo left
03:25
kurahaupo joined
03:26
p6bannerbot sets mode: +v kurahaupo
03:37
kurahaupo left
03:39
kurahaupo joined
03:40
p6bannerbot sets mode: +v kurahaupo
03:49
kurahaupo left
03:56
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
04:10
kurahaupo left
04:13
kurahaupo joined
04:14
p6bannerbot sets mode: +v kurahaupo
04:26
kurahaupo left
04:27
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
04:36
stevie joined
04:37
p6bannerbot sets mode: +v stevie,
kurahaupo left
04:38
kurahaupo joined
04:39
p6bannerbot sets mode: +v kurahaupo
|
|||
holyghost | good morning | 04:50 | |
I'm going to debug a package a day, later on Bayes::Learn | 04:51 | ||
04:53
kurahaupo left,
kurahaupo joined
04:54
p6bannerbot sets mode: +v kurahaupo
05:03
ferreira joined,
kurahaupo left
05:04
kurahaupo joined,
p6bannerbot sets mode: +v ferreira,
p6bannerbot sets mode: +v kurahaupo
05:17
kurahaupo left
|
|||
buggable | New CPAN upload: AI-Agent-0.2.6.tar.gz by HOLYGHOST modules.perl6.org/dist/AI::Agent:cpan:HOLYGHOST | 05:17 | |
05:18
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
|
|||
holyghost | ^-- AI::Agent should be ok now | 05:18 | |
working I mean | 05:21 | ||
05:29
kurahaupo left,
sauvin joined,
p6bannerbot sets mode: +v sauvin,
kurahaupo joined
05:30
p6bannerbot sets mode: +v kurahaupo
05:36
random_yanek joined
05:37
p6bannerbot sets mode: +v random_yanek
05:43
J0hnSteel13 joined
05:44
kurahaupo left,
p6bannerbot sets mode: +v J0hnSteel13,
kurahaupo joined
05:45
p6bannerbot sets mode: +v kurahaupo
05:48
J0hnSteel13 left
05:49
curan joined,
p6bannerbot sets mode: +v curan
05:54
kurahaupo left
05:55
kurahaupo joined
05:56
p6bannerbot sets mode: +v kurahaupo
|
|||
buggable | New CPAN upload: Bayes-Learn-0.2.1.tar.gz by HOLYGHOST modules.perl6.org/dist/Bayes::Learn...:HOLYGHOST | 05:57 | |
holyghost | ^-- the brute force learner should work | 06:04 | |
which is also a good learner BTW | |||
06:06
kurahaupo left,
kurahaupo joined
06:07
p6bannerbot sets mode: +v kurahaupo
06:12
abraxxa left
06:17
kurahaupo left
06:36
mingdao left
|
|||
samcv | AlexDaniel, sounds good | 06:39 | |
06:41
jmerelo joined
06:42
p6bannerbot sets mode: +v jmerelo
06:43
mingdao joined,
p6bannerbot sets mode: +v mingdao
|
|||
holyghost | hi jmerelo | 06:48 | |
jmerelo: Mathx-Stat and AI-Agent work with several tests | 06:51 | ||
I've uploaded to CPAN, now there's 3 packages left which I will debug | 06:52 | ||
jmerelo | I'll check it out | ||
holyghost | thx | 06:53 | |
jmerelo | holyghost: please add some instructions to the README.md | ||
I'd better put that in issues | |||
holyghost | what do you mean by "instructions" ? | 06:55 | |
jmerelo | holyghost: check out the issues | ||
holyghost | ok | ||
06:58
domidumont joined
06:59
p6bannerbot sets mode: +v domidumont
|
|||
jmerelo | And we _still_ need contributions to the Advent Calendar github.com/perl6/mu/blob/master/mi...8/schedule | 07:06 | |
holyghost | they removed me :-) | 07:07 | |
and I cannot write good english | 07:08 | ||
jmerelo | You were never there, far as I can tell github.com/perl6/mu/commits/master...8/schedule | ||
holyghost | hm | 07:10 | |
jmerelo | holyghost: anyway, there's no time to copy-edit or even review them... so it probably makes sense if you wait until next year and submit _early_ | 07:13 | |
releasable6: status | |||
releasable6 | jmerelo, Next release will happen when it's ready. 2 blockers. 79 out of 163 commits logged (⚠ 1 warnings) | ||
jmerelo, Details: gist.github.com/159b08e66f969e88a0...4a372f2bbf | |||
holyghost | jmerelo: ok, I'll try to write something for it later on | 07:19 | |
07:20
nine left
|
|||
holyghost | jmerelo: could you check the README.md now ? | 07:21 | |
07:22
nine joined,
camelia left,
p6bannerbot sets mode: +v nine
|
|||
holyghost | I updated so it's not too much clutter | 07:22 | |
07:23
camelia joined,
p6bannerbot sets mode: +v camelia
|
|||
holyghost | ok, I close the issue then | 07:24 | |
07:25
b2gills left
07:30
nine left
|
|||
jmerelo | holyghost: it still does not have any example, instructions on how to use it or install it or, in general, what is usual in a README.md | 07:31 | |
holyghost: it's also usual to refer to issues from commits using simply their number (#3 in this case), close them from an issue (closes #3) and not close them until the OP is satisfied. Which I'm not, since it still has no examples | 07:32 | ||
07:32
nine joined
07:33
camelia left,
p6bannerbot sets mode: +v nine
|
|||
jmerelo | nine: I just seen someone who has not requested a day in the Advent Calendar github.com/perl6/mu/blob/master/mi...8/schedule | 07:34 | |
07:35
b2gills joined
|
|||
jmerelo | Hi, b2gills ! May I interest you in writing something for the Perl 6 Advent Calendar? | 07:35 | |
07:36
p6bannerbot sets mode: +v b2gills
|
|||
jmerelo | I'll have to write a bot or something... | 07:36 | |
holyghost | jmerelo: Sorry, I'll take my time then to remaster | ||
I only slept 4 hours | |||
I have the intention to use the test suite as an example | 07:37 | ||
with extra explanations | |||
I thought it was ok | 07:38 | ||
07:40
nine left
07:41
nine joined
07:42
p6bannerbot sets mode: +v nine
|
|||
andrzejku | .seen araraloren | 07:44 | |
yoleaux | I saw araraloren 4 Nov 2018 16:06Z in #perl6: <araraloren> Zoffix okay, thanks :) | ||
Xliff_ | Getting this: 'Non ast passed to WANTED: NQPMu' when using ?? !!. Has anyone else seen this before? | 07:50 | |
07:55
abraxxa joined
07:56
p6bannerbot sets mode: +v abraxxa,
abraxxa left
07:57
abraxxa joined
|
|||
jmerelo | Xliff_: hey, would you want to write somethign for the Advent Calendar? github.com/perl6/mu/blob/master/mi...8/schedule | 07:58 | |
07:58
p6bannerbot sets mode: +v abraxxa
|
|||
jmerelo | andrzejku: likewise: github.com/perl6/mu/blob/master/mi...8/schedule | 07:58 | |
Xliff_ | jmerelo: What's the time frame? | ||
jmerelo | Xliff_: well, you'll need to have it ready a few days before the day you claim | 07:59 | |
And we have Dec 1st, 3rd... and many others. | |||
Xliff_ | Is this for December? | ||
jmerelo | Xliff_: right. | ||
Xliff_ | jmerelo: Let me think about it. I would like to write something, but am rather swamped, at the moment. | 08:00 | |
jmerelo | Xliff_: you can claim Dec 24th :-) | ||
Xliff_ | You never know, though. The bug might strike me and I can come up with something in a day. | ||
Well. I'd rather remain a hold-out until I KNOW I will be writing something. | |||
Would rather not disappoint by having nothing. | 08:01 | ||
jmerelo | Xliff_: OK. Thanks for considering it anyway | ||
Xliff_: it's not like the slots are flying... Sadly. | |||
Xliff_ | I will keep in mind, though. Might give me something to do next week. | ||
OK! I will see what I can come up with. | |||
jmerelo | Xliff_: you don't need to write it now, only by the day you claim in December. A few days before that, if possible. | ||
Xliff_ | Yes. I know. :) | 08:03 | |
jmerelo | Xliff_: great :-) | 08:04 | |
buggable | New CPAN upload: Mathx-Stat-0.2.5.tar.gz by HOLYGHOST modules.perl6.org/dist/Mathx::Stat:...:HOLYGHOST | 08:07 | |
holyghost | Xliff_: thx for the issue, I fixed it | 08:08 | |
jmerelo: I've added examples to the README.md | |||
08:10
dakkar joined
08:11
dakkar left,
dakkar joined,
p6bannerbot sets mode: +v dakkar,
kensanata joined,
p6bannerbot sets mode: +v kensanata
08:21
yqt joined
08:22
p6bannerbot sets mode: +v yqt
|
|||
holyghost | I still need to fix the Mathx-Stat main class and ok tests | 08:31 | |
It should be usable now however | 08:32 | ||
08:41
zakharyas joined
08:42
p6bannerbot sets mode: +v zakharyas
08:49
lichtkind left
|
|||
Geth | doc: 6ab45c5ec4 | (JJ Merelo)++ | doc/Language/subscripts.pod6 Adds example to STORE and fixes indexing This closes #2462. In the first case, a real example is added which illustrates how to use. Indexing problem were due to the fact that it was a `=head2` called `method` which is automatically considered for indexing. That was also a problem, since it created a new section, which it should not. |
08:53 | |
synopsebot_ | Link: doc.perl6.org/language/subscripts | ||
08:53
Sound joined,
p6bannerbot sets mode: +v Sound
|
|||
jmerelo | holyghost: adding examples to the README does not really merit a new release, even if it's a minor. This should be reserved for bug fixes and functional changes. It's OK if you just leave it at the GitHub repo between releases. | 08:54 | |
09:00
lichtkind joined
09:01
p6bannerbot sets mode: +v lichtkind
09:05
famra joined,
p6bannerbot sets mode: +v famra
09:07
yqt left
09:16
sena_kun joined
09:17
p6bannerbot sets mode: +v sena_kun,
zakharyas left
09:19
zakharyas joined
09:20
p6bannerbot sets mode: +v zakharyas
09:21
BucciaratiVEVO is now known as Bucciarati
09:25
zakharyas1 joined
09:26
p6bannerbot sets mode: +v zakharyas1
09:28
zakharyas left
09:35
zakharyas1 left
09:38
zakharyas joined,
tobs` joined,
p6bannerbot sets mode: +v zakharyas
09:39
p6bannerbot sets mode: +v tobs`
09:53
zakharyas left
10:02
lizmat joined,
p6bannerbot sets mode: +v lizmat
10:04
domidumont left
10:06
domidumont joined
10:07
p6bannerbot sets mode: +v domidumont
10:10
domidumont left,
domidumont joined
10:11
p6bannerbot sets mode: +v domidumont
|
|||
lizmat clickbaits p6weekly.wordpress.com/2018/11/19/...en-perl-6/ | 10:12 | ||
10:18
jmerelo left,
gregf_ joined,
p6bannerbot sets mode: +v gregf_
10:19
huf left
10:29
teamj_ joined,
teamj_ left
10:32
huf joined
10:33
p6bannerbot sets mode: +v huf
10:34
Sound left
10:47
Sound joined,
p6bannerbot sets mode: +v Sound
10:51
zakharyas joined,
p6bannerbot sets mode: +v zakharyas,
kensanata left
10:59
lizmat left
11:01
yoleaux left,
dpk left
11:03
lizmat joined,
p6bannerbot sets mode: +v lizmat
11:09
angelds joined
11:10
dpk joined,
p6bannerbot sets mode: +v angelds,
Sound left,
p6bannerbot sets mode: +v dpk
11:15
abraxxa left
11:16
abraxxa joined
11:17
p6bannerbot sets mode: +v abraxxa
11:26
scimon joined
11:27
p6bannerbot sets mode: +v scimon
11:30
domidumont left
11:38
kensanata joined,
p6bannerbot sets mode: +v kensanata
11:43
rindolf joined,
p6bannerbot sets mode: +v rindolf
11:45
pecastro joined
11:46
p6bannerbot sets mode: +v pecastro
12:00
angelds left
12:24
coet[work] joined,
p6bannerbot sets mode: +v coet[work]
12:27
lucasb joined
12:28
p6bannerbot sets mode: +v lucasb
12:41
hamhu3 joined
12:42
p6bannerbot sets mode: +v hamhu3
12:44
hamhu3_ left
12:55
domidumont joined
12:56
p6bannerbot sets mode: +v domidumont,
yoleaux joined,
ChanServ sets mode: +v yoleaux
12:57
p6bannerbot sets mode: +v yoleaux
13:05
rindolf left
13:25
rindolf joined,
p6bannerbot sets mode: +v rindolf
13:37
x[LGWs4x4i]uG2N0 left
14:02
hamhu3 left,
hamhu3 joined
14:03
p6bannerbot sets mode: +v hamhu3
14:34
rindolf left
14:42
famra left
14:56
Kaiepi left
14:57
Kaiepi joined,
p6bannerbot sets mode: +v Kaiepi
15:02
Praise left
15:04
zakharyas left
15:06
abraxxa left
15:11
Kaiepi left,
Kaiepi joined
|
|||
lucasb | I'm editing my Pair object here: github.com/lucasbuchala/p6pairs/bl...ir/More.pm | 15:12 | |
yoleaux | 19 Nov 2018 23:22Z <AlexDaniel> lucasb: yeah, that's probably the case | ||
15:12
p6bannerbot sets mode: +v Kaiepi
|
|||
lucasb | Any comments or criticism welcomed | 15:12 | |
I'm looking for a name for the distribution, if you have any suggestions :) github.com/lucasbuchala/p6pairs/bl...txt#L4-L17 | 15:13 | ||
Pair::More is just the working title | |||
"This dude doesn't know Perl 6 already has a core Pair object?" | 15:14 | ||
15:14
leont joined
|
|||
lucasb | ok, I think the core Pair object has its idiosyncrasies, and I'm ok with it | 15:14 | |
also, seems a good idea to have a external place to try "pair" ideas | 15:15 | ||
15:15
p6bannerbot sets mode: +v leont
15:22
MasterDuke left
15:25
sergot_ is now known as sergot
15:27
tobs` left
|
|||
buggable | New CPAN upload: Getopt-Advance-1.1.4.tar.gz by ALOREN modules.perl6.org/dist/Getopt::Adva...pan:ALOREN | 15:38 | |
15:48
kensanata left
15:49
curan left
15:54
x[LGWs4x4i]uG2N0 joined,
p6bannerbot sets mode: +v x[LGWs4x4i]uG2N0
15:55
rindolf joined,
p6bannerbot sets mode: +v rindolf
16:00
[Sno] joined,
Sound joined,
p6bannerbot sets mode: +v Sound
16:01
p6bannerbot sets mode: +v [Sno]
|
|||
lizmat | lucasb: re self.new(:$key, :$value), that's better written as self.bless(:$key, :$value) saves 1 level of indirection | 16:03 | |
16:03
sno left
16:06
rindolf left
16:08
rindolf joined
16:09
p6bannerbot sets mode: +v rindolf
|
|||
lucasb | lizmat: I'll change all occurrences. thanks! | 16:22 | |
lizmat | yw | 16:23 | |
jnthn | lizmat: Really? self.new calls directly to BUILDALL if self.bless is just the Mu one? | ||
And that "is it the Mu one" check turns into a constant at specialization time | 16:24 | ||
lizmat | aaah... yes, we optimized that... still, it's an extra check to see if the bless is the same ? | ||
ah,.. ok | |||
lucasb: sorry for the noise... | |||
lucasb | np. so, no need to change? | ||
jnthn | The specialization is keyed on the type of `self`, so it's not even an extra guard :) | ||
lizmat | lucasb: as jnthn said: no, no need to change | 16:25 | |
jnthn | There's further opts we can do to object construction (we're not beating Ruby/Python at that benchmark yet, dammit) | ||
But this particular aspect of things is handled pretty well. | 16:26 | ||
lizmat | yeah, it is :) | ||
jnthn: we don't have a way to do >>op<< where "op" is a variable, right ? | |||
jnthn | Bracketed infix function form allows it maybe? | 16:27 | |
>>[&foo]<< | |||
lizmat | m: my @a = ^10; dd @a >>[&min]>> 1 | ||
evalable6 | Array element = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1] | ||
lizmat | whee! | ||
that should make testing metaops a bit easier | 16:28 | ||
16:39
rindolf left
16:40
rindolf joined
16:41
p6bannerbot sets mode: +v rindolf
|
|||
lizmat | jnthn: as a way around BEGIN my $h := nqp::hash not working | 16:44 | |
any thoughts on: | |||
BEGIN my $h = nqp::hash(...); $h := nqp::decont($h) | 16:45 | ||
? | |||
jnthn | Probably works out alright | ||
lizmat | would it make sense from a performance point of view ? | ||
jnthn | But...um...you're not going to mutate this hash at runtime, right? | ||
lizmat | indeed, not | 16:46 | |
jnthn | OK, good, otherwise you'll create a load of repossession conflicts :) | ||
Yeah, decont is cheap enough | |||
lizmat | it's for things like valid datetime units for later | ||
there's a bunch of them in core, handled in different ways | |||
trying to get startup time down | 16:47 | ||
16:54
ItzExor18 joined
16:55
p6bannerbot sets mode: +v ItzExor18
16:59
ItzExor18 left
17:15
patrickb joined
17:16
p6bannerbot sets mode: +v patrickb
|
|||
lucasb | m: role R[::T] { has T $!x }; class C does R[Any] { method m { $!x = Nil } }; C.new.m | 17:27 | |
evalable6 | (exit code 1) Died with X::TypeCheck::Assignment in method m at /tmp/12_7kp3CFg line 1 in block <unit> at /tmp/12_7kp3CFg line 1 |
||
lucasb | ^^ is this error correct? | 17:28 | |
17:29
Sound left,
dakkar left
17:30
Kaiepi left
17:31
scimon left
17:33
Kaiepi joined,
p6bannerbot sets mode: +v Kaiepi
17:41
gregf_ left
17:46
rindolf left
17:53
rindolf joined
17:54
p6bannerbot sets mode: +v rindolf
18:03
molaf left
18:13
coet[work] left
18:19
uzl joined,
p6bannerbot sets mode: +v uzl
|
|||
uzl | lizmat: Thanks for your article on Perl 6 containers. It helped me cleared up some things! | 18:22 | |
From the article: "If you do not specify a default value, then the type constraint will be assumed." | 18:23 | ||
In this case, what will be the assumed type constraint? Any? Nil? | |||
18:25
zakharyas joined
|
|||
uzl | From what I gather in Perl 6, variable assignment, instead of binding to a value, binds to a container which makes the variable mutable. What's the approach in Perl 5? | 18:26 | |
18:26
p6bannerbot sets mode: +v zakharyas
18:30
Poohman joined,
Kaiepi left,
p6bannerbot sets mode: +v Poohman
18:33
Kaiepi joined
|
|||
lucasb | I think it's the same thing. $a = $b, @a = @b, %a = %b all copies the contents of one container to other | 18:33 | |
18:34
p6bannerbot sets mode: +v Kaiepi
|
|||
lucasb | different from most other dynamic languages, I think, where "a = b" just copies the object reference | 18:34 | |
18:35
lizmat left
|
|||
uzl | lucasb: Are you aware of any other languages that use the concept of containers? | 18:35 | |
"all copies the contents of one container to other" <- btw, are you referring to P5 or P6? I never heard of container in P5, just references. | 18:36 | ||
18:37
hythm_ joined,
p6bannerbot sets mode: +v hythm_
|
|||
lucasb | I think "$a = $b", "@a = @b", and "%a = %b" works exactly the same in P5 and P6 | 18:38 | |
indeed, "containers" in P5 doesn't get talked much, but semantically, it's there | 18:39 | ||
18:43
|Sno| joined
|
|||
uzl | Oh, I see. In the most known P5 books, authors usually something "Perl Graphical Structures" to help the readers visualize how references work. Are there such diagrams to highlight the difference between binding and assigning to a variable in P6? | 18:44 | |
18:44
p6bannerbot sets mode: +v |Sno|,
[Sno] left
|
|||
hythm_ | Hi #perl6, I'm having trouble writing a recursive routine that takes a list of lists and check the items recursively (take or leave some items based on a condition). I thought of writing a multi, when the argument is a list, call same sub. if the argument is an item, return the item if it meets the condition. I wrote a test in the following link and explained in a more details what I'm trying to achieve | 18:48 | |
18:48
random_yanek left
|
|||
hythm_ | gist.github.com/hythm7/c0d4a99e50d...81b02b7095 please take look if you can and let me know if you have any suggestions | 18:48 | |
18:49
koto joined,
p6bannerbot sets mode: +v koto
18:50
Kaiepi left,
Kaiepi joined,
domidumont1 joined,
sena_kun left
18:51
random_yanek joined,
p6bannerbot sets mode: +v Kaiepi,
random_yanek left,
p6bannerbot sets mode: +v domidumont1
18:53
domidumont left
18:57
lizmat joined,
p6bannerbot sets mode: +v lizmat
|
|||
lucasb | hythm_: ((1)) doesn't create a nested list | 18:59 | |
maybe it doesn't matter in the example, but things like "($x)" makes the example harder to read :) | 19:02 | ||
19:03
domidumont1 left
|
|||
lucasb | uzl: sorry, no graphical representation of data structures that I'm aware of. But there are the types hierachy in Graphviz images in docs, you know | 19:03 | |
hythm_ | lucas, yeah you are right, I was trying to make it simple but I think I made it more complicated. | ||
uzl | lucasb: That's fine. Thanks! | 19:05 | |
hythm_ | I used Data::Dump::Tree it makes the data structure more clearer. | 19:06 | |
uzl | m: my @a = [(1, ((2), (3)))]; say @a.deepmap(-> $_ { not .Int %% 2 }); | ||
evalable6 | [True (False True)] | ||
uzl | m: my @a = [(1, ((2), (3)))]; say @a.deepmap(sub $_ { return $_ if not .Int %% 2 }); | 19:07 | |
evalable6 | (exit code 1) 04===SORRY!04=== Error while compiling /tmp/8z7_1Yj0A0 Missing… |
||
uzl, Full output: gist.github.com/1a0434e4cd9f81066b...da937bb071 | |||
hythm_ | deepmap works here but it will not work in other scenarios, it works here because (1, ((2), (3))) is a list of two items 1 and ((2), (3)) ,, from the first item it takes 1,, from the second items it takes either 2 or 3 | 19:12 | |
lucasb | hm, Data::Dump::Tree doesn't seem to be update recently. it's failing the tests | 19:13 | |
hythm_ | yeah, I think some modules broke due to recent updates, thank you anyway | 19:15 | |
uzl | yeah. And the other thing, I think, is that you might not able to return the values that meet condition, just the boolean of the evaluation. | 19:16 | |
hythm_ | true, thats why I'm trying to write a multi with gather & take | 19:17 | |
the difficult part is in a datastructure like that (($a1, (($b2), ($b3))), ($a1, (($b1), ($b2)))) which is basically a list of two llists,, the first is ($a1, (($b2), ($b3))) and the second is ($a1, (($b1), ($b2))). and I should take all the items from either the first or all the items the second list | 19:20 | ||
deepmap will go through all the items, so it wont work here | 19:21 | ||
19:22
leah2 left
|
|||
[Coke] | why all the extra parens? | 19:24 | |
19:24
ratagin joined
19:25
p6bannerbot sets mode: +v ratagin
|
|||
[Coke] | m: say (1,(3,4)) eqv (1,((3),(4))) | 19:25 | |
evalable6 | True | ||
hythm_ | the extra parens are to separate the items in groups,, for example ($a1, (($b2), ($b3)) indicates that I need to take $a1,,,, and (($b2), ($b3)) it parens indiocates I need to take either $b2 or $b3 | ||
19:26
sauvin left
|
|||
hythm_ | so $b2 and $b3 is grouped to gether to indicate I need to take only one of them | 19:26 | |
lucasb | hopefully DDT isn't erroneously output (((1,),),) as (((1))) | 19:27 | |
*outputing | |||
19:27
lgtaube left
|
|||
[Coke] | so it's just for your use? it has no impact on the p6 interpretation... | 19:27 | |
19:27
nwellnhof joined,
p6bannerbot sets mode: +v nwellnhof
|
|||
nwellnhof | p6: say 1e0 / 0e0 | 19:28 | |
evalable6 | (exit code 1) Attempt to divide 1 by zero using / in block <unit> at /tmp/sOLAhQsS99 line 1 |
||
nwellnhof | Why doesn't this return Inf like any sane, IEEE-754-compliant language? | ||
lucasb | m: say 1.0 / 0 # has to be Rat | 19:29 | |
evalable6 | (exit code 1) Attempt to divide by zero when coercing Rational to Str in block <unit> at /tmp/p2eC2ySkHC line 1 |
||
lucasb | oops | ||
m: say (1.0 / 0).Num | |||
evalable6 | Inf | ||
hythm_ | hmm, I did not think that (1,(3,4)) eqv (1,((3),(4))) == True | 19:30 | |
[Coke] | parens don't make lists, commas do | ||
hythm_ | makes sense, I can use commas, would converting to arrays work too?what if converted to arrays | 19:32 | |
nwellnhof | p6: say (1e0 / 0e0).Num | 19:34 | |
evalable6 | (exit code 1) Attempt to divide 1 by zero using / in block <unit> at /tmp/dNotJiyADC line 1 |
||
hythm_ | thanks guys, knowing that (1,(3,4)) eqv (1,((3),(4))) is definitely helpful, will rethink what I need to do | 19:37 | |
19:39
GloriousYellow_ joined,
GloriousYellow_ left
|
|||
[Coke] | m: dd (1,(3,4)) | 19:40 | |
evalable6 | (1, (3, 4)) | ||
[Coke] | m: dd(1,((3),(4))) | ||
evalable6 | 1 (3, 4) |
||
[Coke] | m: dd (1,((3),(4))) | 19:41 | |
evalable6 | (1, (3, 4)) | ||
[Coke] | point there: 1, space is important on the dd call, but 2, dd is a great tool for diagnostics. | ||
19:41
hamhu3_ joined,
uzl left
19:42
p6bannerbot sets mode: +v hamhu3_
19:44
lgtaube joined,
lucasb left,
p6bannerbot sets mode: +v lgtaube
19:45
hamhu3 left
19:53
perlEnthousiast joined,
p6bannerbot sets mode: +v perlEnthousiast
|
|||
perlEnthousiast | I love Perl | 19:54 | |
I'd like to understand where is Perl 6 development ? | |||
19:55
hythm_ left
|
|||
perlEnthousiast | how stable is it and is it commonly used in the community ? | 19:56 | |
AlexDaniel | perlEnthousiast: it is stable enough, I use it all the time | ||
masak | perlEnthousiast: Perl 5 still has a larger user base, but Perl 6 is surprisingly stable, sometimes downright fast, and has plenty of interesting features built-in | 20:00 | |
perlEnthousiast: but don't take my word for it! I'm biased :) try it out for yourself | |||
AlexDaniel | I mean, it's #perl6, most people here are biased :) | 20:01 | |
20:02
leah2 joined
|
|||
Geth | Blin: 0fac4c09bd | (Aleks-Daniel Jakimenko-Aleksejev)++ | 2 files Include module version when drawing the graph This is a temporary hack to make graphs better. |
20:02 | |
Blin: 3ee7dc3dfa | (Aleks-Daniel Jakimenko-Aleksejev)++ | 3 files Save the output of bisected modules It was always there, just not in the output directory. Now it should be very easy to gist everything. |
|||
20:03
p6bannerbot sets mode: +v leah2
|
|||
nwellnhof | p6: say 1e0 % 0e0 | 20:05 | |
evalable6 | (exit code 1) Attempt to divide 1 by zero using % in block <unit> at /tmp/3BoQgZ3SRa line 1 |
||
perlEnthousiast | From what I've seen hosting a web service is native in Perl 6 ? Maybe I'm mistaken | 20:07 | |
oh it's Cro | |||
I've been using Mojolicious on Perl 5 | 20:08 | ||
lizmat | fg | 20:12 | |
El_Che | %1 | 20:13 | |
lizmat | :-) | ||
sjn | 'fg' is not recognized as an internal or external command, operable program or batch file. | 20:14 | |
Geth | ecosystem: 27ffafcd21 | (Aleks-Daniel Jakimenko-Aleksejev)++ | META.list Add ../Foo module Please feel free to remove it temporarily if it breaks your stuff. |
20:17 | |
20:24
|oLa| joined
20:25
lucasb joined,
p6bannerbot sets mode: +v |oLa|
20:26
p6bannerbot sets mode: +v lucasb
|
|||
SmokeMachine | m: my @a = ^5; my @b = @a; dd @b | 20:26 | |
evalable6 | Array @b = [0, 1, 2, 3, 4] | ||
SmokeMachine | m: my @a = ^5; my @b = @a; dd @b[0] | 20:27 | |
evalable6 | Int @b = 0 | ||
20:40
|oLa| left
20:49
perlEnthousiast left
|
|||
lucasb | hm, dd output is not correct | 20:58 | |
20:59
Kaiepi left
21:01
Kaiepi joined
21:02
p6bannerbot sets mode: +v Kaiepi
21:07
dct joined,
p6bannerbot sets mode: +v dct
21:19
nwellnhof left
21:32
dct left
21:39
zakharyas left
21:45
dct joined,
p6bannerbot sets mode: +v dct
21:56
molaf joined
21:57
p6bannerbot sets mode: +v molaf
22:03
lucasb left
22:08
tharkun left,
tharkun joined,
rajaniemi.freenode.net sets mode: +v tharkun,
p6bannerbot sets mode: +v tharkun
22:09
koto left
22:10
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
22:28
dct left
|
|||
Geth | mu: tmtvl++ created pull request #36: Add my contribution for #35 |
22:28 | |
mu: d7aa1d1297 | (Tim Van den Langenbergh)++ | misc/perl6advent-2018/schedule Add my contribution for #35 |
|||
mu: cbb7f528b5 | (Tim Van den Langenbergh)++ (committed using GitHub Web editor) | misc/perl6advent-2018/schedule Merge pull request #36 from tmtvl/call-for-contributions-2018-35 Add my contribution for #35 |
|||
22:37
patrickb left
|
|||
Geth | Blin: ba68e32a10 | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/blin.p6 Fix output path (oops) |
23:05 | |
23:24
ratagin left
23:38
lgtaube left
23:41
hamhu3 joined
23:42
p6bannerbot sets mode: +v hamhu3
23:44
pecastro left,
hamhu3_ left
23:54
lgtaube joined,
p6bannerbot sets mode: +v lgtaube
|