»ö« 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:04
Cprossu16 joined
00:05
mcmillhj joined
00:06
p6bannerbot sets mode: +v mcmillhj
00:08
Cprossu16 left
00:10
mcmillhj left
00:16
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
00:20
mcmillhj left
00:21
ravioli25 joined
00:22
ravioli25 left
00:24
dant left
00:25
avar left
00:28
cpup left,
Zoffix joined,
p6bannerbot sets mode: +v Zoffix
|
|||
Zoffix | . | 00:28 | |
00:29
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar,
Zoffix left,
p6bannerbot sets mode: +v avar
00:30
mcmillhj joined
00:31
p6bannerbot sets mode: +v mcmillhj
|
|||
timotimo | m: class IfIAddAName is Hash is Array {method Array{[]}; method Hash {{}}}; use MONKEY-TYPING; augment class Str {method IfIAddAName { IfIAddAName.new }}; my IfIAddAName() $v = "a" | 00:32 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Coercion IfIAddAName(Any) is insufficiently type-like to qualify a variable at <tmp>:1 ------> 3 IfIAddAName.new }}; my IfIAddAName() $v7⏏5 = "a" expecting any of: constraint |
||
timotimo | mhm | ||
00:35
sawdey21 joined,
mcmillhj left
00:36
sawdey21 left
00:44
mcmillhj joined
00:45
p6bannerbot sets mode: +v mcmillhj
|
|||
lookatme_q | o| | 00:45 | |
00:49
mcmillhj left
00:55
jorik12 joined
00:59
mcmillhj joined,
jorik12 left
01:00
p6bannerbot sets mode: +v mcmillhj
01:02
Dworf joined
01:04
mcmillhj left
01:05
zxcvz left
01:06
Dworf left
|
|||
vrurg | m: my Str @a = <a b c>; say @a; my Array[Str] $b = <c d e>; say $b | 01:07 | |
camelia | [a b c] Type check failed in assignment to $b; expected Array[Str] but got List ($("c", "d", "e")) in block <unit> at <tmp> line 1 |
||
vrurg | Why??? | ||
m: my Str @a = <a b c>; say @a; my Array[Str] $b = [<c d e>]; say $b | 01:08 | ||
camelia | [a b c] Type check failed in assignment to $b; expected Array[Str] but got Array ($["c", "d", "e"]) in block <unit> at <tmp> line 1 |
||
vrurg | m: my Str @a = <a b c>; say @a; my Array[Str] $b = <c d e>.Array; say $b | ||
camelia | [a b c] Type check failed in assignment to $b; expected Array[Str] but got Array ($["c", "d", "e"]) in block <unit> at <tmp> line 1 |
||
vrurg | Looks like a bug to me. | 01:09 | |
01:10
mcmillhj joined
|
|||
lookatme_q | m: my Str @a := <a b c>; say @a.WHAT | 01:10 | |
camelia | Type check failed in binding; expected Positional[Str] but got List ($("a", "b", "c")) in block <unit> at <tmp> line 1 |
||
01:11
p6bannerbot sets mode: +v mcmillhj
|
|||
vrurg | lookatme_q: with 'my Str @a' it coerces List into Array. | 01:11 | |
m: say Array ~~ Array[Str] | 01:12 | ||
camelia | False | ||
MasterDuke | m: my Str @a = <a b c>; say @a; my Array[Str] $b; $b.append(<c d e>.Array); say $b | ||
camelia | [a b c] [c d e] |
||
MasterDuke | m: my Str @a = <a b c>; say @a; my Array[Str] $b; $b.append(<c d e>); say $b | ||
camelia | [a b c] [c d e] |
||
vrurg | m: my Str @a = <a b c>; say @a; my Array[Str] $b; $b.append(1,2,3); say $b | 01:13 | |
camelia | [a b c] Type check failed in assignment to ; expected Str but got Int (1) in block <unit> at <tmp> line 1 |
||
vrurg | A workaround, but still I would suspect a bug. | ||
01:14
[particle] left
01:15
mcmillhj left
|
|||
Xliff | m: class A { }; say A.can('Bool'); | 01:21 | |
camelia | (Bool) | ||
Xliff | m: class A { }; say A.?Bool; | ||
camelia | False | ||
01:21
dotdotdot joined
01:22
p6bannerbot sets mode: +v dotdotdot
01:24
mcmillhj joined,
morsik15 joined,
p6bannerbot sets mode: +v mcmillhj
|
|||
Xliff | m: class A { method blah { say "Blah!"; }; method Bool { False }; }; say A.?Bool; | 01:25 | |
camelia | False | ||
Xliff | ^^ Is that LTA? | ||
m: class A { method blah { say "Blah!"; }; method Bool { False }; }; say A.Bool; | |||
camelia | False | ||
01:25
zxcvz joined
|
|||
Xliff | m: class A { method blah { say "Blah!"; }; method Bool { True }; }; say A.Bool; | 01:25 | |
camelia | True | ||
Xliff | m: class A { method blah { say "Blah!"; }; method Bool { True }; }; say A.?Bool; | ||
camelia | True | ||
Xliff | m: class A { method blah { say "Blah!"; }; method Bool { True }; }; say A.can('Bool') | 01:26 | |
camelia | (Bool Bool) | ||
Xliff | m: class A { method blah { say "Blah!"; }; method Bool { True }; }; say A.can('Bool').gist | ||
camelia | (Bool Bool) | ||
01:26
p6bannerbot sets mode: +v zxcvz
|
|||
Xliff | m: class A { method blah { say "Blah!"; }; method Bool { True }; }; say A.can('blah').gist | 01:28 | |
camelia | (blah) | ||
Xliff | m: class A { method blah { say "Blah!"; }; method Bool { True }; }; say A.can('blah') | ||
camelia | (blah) | ||
01:28
zxcvz left,
zxcvz joined,
morsik15 left,
mcmillhj left
01:29
p6bannerbot sets mode: +v zxcvz
01:32
kerframil left
01:34
mcmillhj joined
01:35
p6bannerbot sets mode: +v mcmillhj
01:37
rouking joined,
p6bannerbot sets mode: +v rouking
|
|||
rouking | Do you folks think it would be a good idea to add some way to put type constraints on array literals? | 01:39 | |
The issue I've encountered is that the following doesn't work: | |||
01:39
mcmillhj left
|
|||
rouking | p6: subset Matrix of Array[Array] where { [==] $_>>.elems }; my Matrix $m1 = [[1, 2], [3, 4]]; | 01:40 | |
camelia | Type check failed in assignment to $m1; expected Matrix but got Array ($[[1, 2], [3, 4]]) in block <unit> at <tmp> line 1 |
||
rouking | Even minus the `where` clause, it doesn't work, because `[[1, 2], [3, 4]]` is not type-parameterized although one would think it is compatible with `Array[Array]` | 01:41 | |
I'm not sure how difficult it would be make this "just work", i.e. check if it's compatible on assigment into a subset type even if the parameterization is not explicit | 01:42 | ||
Thoughts? | 01:43 | ||
timotimo | you can use .= new(...) for that purpose, maybe that helps? | ||
rouking | p6: subset Matrix of Array[Array] where { [==] $_>>.elems }; my Matrix $m1 .= new: [[1, 2], [3, 4]]; | 01:44 | |
camelia | You cannot create an instance of this type (Matrix) in block <unit> at <tmp> line 1 |
||
timotimo | ah, yes, subsets don't do that kind of thing, right | ||
p6: subset Matrix of Array[Array] where { [==] $_>>.elems }; my Matrix $m1 is default(Array[Array]) .= new: [[1, 2], [3, 4]] | |||
camelia | ( no output ) | ||
timotimo | p6: subset Matrix of Array[Array] where { [==] $_>>.elems }; my Matrix $m1 is default(Array[Array]) .= new: [[1, 2], [3, 4]]; say $m1.perl; say $m1 ~~ Matrix | 01:45 | |
camelia | Array[Array].new($[1, 2], $[3, 4]) True |
||
timotimo | the "is default" is not necessary here, you can just put Array[Array].new on the RHS of the = instead | ||
rouking | Ah, that's an interesting way of doing it. Although I feel that's a bit... Less Than Awesome™? | ||
It's a bit of a leaky abstraction from the subset, if you will | 01:46 | ||
timotimo | we do have shaped arrays, btw | ||
but they are slooooow | |||
rouking | "fixing" it might require some systemic change to the type system, though | ||
Xliff | m: class A { method blah { say "Blah!"; }; method c { say ::?CLASS }; }; C.c; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared name: C used at line 1 |
||
timotimo | not optimized at all, that's what makes them slow | ||
Xliff | m: class A { method blah { say "Blah!"; }; method c { say ::?CLASS }; }; A.c; | ||
camelia | (A) | ||
Xliff | m: class A { method blah { say "Blah!"; }; method c { say ::?CLASS; say ::?METHOD; }; }; A.c; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> No such symbol '::?METHOD' at <tmp>:1 ------> 3; method c { say ::?CLASS; say ::?METHOD7⏏5; }; }; A.c; |
01:47 | |
timotimo | probably has to be ::?ROUTINE? | ||
01:47
Maven_ joined
|
|||
lookatme_q | p6: subset Matrix of Array[Array] where { [==] $_>>.elems }; my Matrix $m1 = Array[Array].new: [[1, 2], [3, 4]]; | 01:47 | |
camelia | ( no output ) | ||
Xliff | Where are the possible ::? symbols documented? | ||
lookatme_q | p6: subset Matrix of Array[Array] where { [==] $_>>.elems }; my Matrix $m1 = Array[Array].new: [[1, 2], [3, 4]]; dd $m1; | ||
camelia | Array[Array] $m1 = Array[Array].new($[1, 2], $[3, 4]) | ||
Xliff | m: class A { method blah { say "Blah!"; }; method c { say ::?CLASS; say ::?LINE; }; }; A.c; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> No such symbol '::?LINE' at <tmp>:1 ------> 3 }; method c { say ::?CLASS; say ::?LINE7⏏5; }; }; A.c; |
||
lookatme_q | p6: subset Matrix of Array[Array] where { [==] $_>>.elems }; my Matrix $m1 = Array[Array].new: [[1, 2], [3, 4], [4, 5, 6]]; | ||
camelia | Type check failed in assignment to $m1; expected Matrix but got Array[Array] (Array[Array].new($[1, 2], $[3, 4]...) in block <unit> at <tmp> line 1 |
||
Xliff | m: class A { method blah { say "Blah!"; }; method c { say ::?CLASS; say $*METHOD }; }; A.c; | 01:48 | |
camelia | (A) Dynamic variable $*METHOD not found in method c at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
01:48
mcmillhj joined
|
|||
lookatme_q | m: class A { method blah { say "Blah!"; }; method c { say ::?CLASS; say &?ROUTINE; }; }; A.c; | 01:49 | |
camelia | (A) c |
||
rouking | Hmmm... I can't even begin to fathom what would be necessary for adding a type parameterization on the fly to an unparameterized class | ||
Xliff | lookatme_q++ | ||
timotimo | .^parameterize? | ||
01:49
p6bannerbot sets mode: +v mcmillhj
|
|||
timotimo | m: say Array.^parameterize([Array]).perl | 01:49 | |
camelia | "Can not parameterize Array with [Array,]" | ||
timotimo | m: say Array.^parameterize(Array).perl | ||
camelia | Array[Array] | ||
timotimo | m: say Array.^parameterize(Str).perl | ||
camelia | Array[Str] | ||
timotimo | well, that was easy ;) ;) | ||
rouking | Well, dang | ||
But does it work with actual objects | 01:50 | ||
timotimo | m: say [1, 2, 3].^parameterize(Int).perl | ||
camelia | Parameter 'arr' of routine 'parameterize' must be a type object of type 'Mu', not an object instance of type 'Array'. Did you forget a 'multi'? in block <unit> at <tmp> line 1 |
||
rouking | oof | ||
timotimo | only if you .WHAT, i.e. go from the object back to its type object | ||
m: say [1, 2, 3].WHAT.^parameterize(Int).perl | |||
camelia | Array[Int] | ||
rouking | but that doesn't really solve the problem at hand, does it? | 01:51 | |
01:51
Maven_ left
|
|||
rouking | You just end up with a type | 01:51 | |
vrurg | m: my @a = 1,2,3; @a.WHAT.^parametrize(Int); say @a.perl; say @a.WHAT | ||
camelia | No such method 'parametrize' for invocant of type 'Perl6::Metamodel::ClassHOW+{<anon>}'. Did you mean 'parameterize'? in block <unit> at <tmp> line 1 |
||
rouking | I suppose you could simply *attempt* to make a copy into a parameterized type | ||
vrurg | m: my @a = 1,2,3; @a.WHAT.^ parameterize(Int); say @a.perl; say @a.WHAT | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Malformed postfix call at <tmp>:1 ------> 3my @a = 1,2,3; @a.WHAT.^7⏏5 parameterize(Int); say @a.perl; say @a. |
01:52 | |
rouking | can't have space, there | ||
vrurg | m: my @a = 1,2,3; @a.WHAT.^parameterize(Int); say @a.perl; say @a.WHAT | ||
camelia | [1, 2, 3] (Array) |
||
vrurg | Thanks, overlooked it. So, as expected, the array type is not changed through .WHAT call. | 01:53 | |
rouking | Yeah, and that's probably a good thing | ||
01:53
mcmillhj left
|
|||
vrurg | Perhaps. | 01:53 | |
01:53
DoctorMir joined
|
|||
vrurg is dreaming of a singe routine which would try coercing any value into any type, as operator '=' does... | 01:54 | ||
01:54
p6bannerbot sets mode: +v DoctorMir
|
|||
vrurg | I'm tired permanently fixing attribute coercion in my module... | 01:54 | |
rouking | Well, I could imagine some code around `subset` which first sees if the types match, then attempts to call .new on the wanted type, passing in the given type | 01:55 | |
or rather, the given value. | |||
Similar to the caller-side solution timotimo gave | |||
Not sure about the performance impact, though | 01:56 | ||
vrurg | Which is critical because I'm working through Proxy which is pretty slow is at was told. | 01:58 | |
02:02
lkoranda3 joined,
lkoranda3 left
|
|||
timotimo | i'm going to bed Real Soon Now, but please feel free to review my next blog post; write your findings/comments here on the channel or privmsg/query me here on freenode (you probably have to be registered with nickserv to privmsg me though?) or find my email address on the mailing list or git log or whatever: wakelift.de/p/31a96e34-887c-468e-8...4d448ec1f/ | 02:03 | |
thank y'all and good night! | |||
watch out: it's a monster of a post, about 3k words | |||
3.4k | 02:04 | ||
lookatme_q | m: my $a = 1,2,3; say $a.WHAT | 02:05 | |
camelia | WARNINGS for <tmp>: (Int) Useless use of constant integer 2 in sink context (lines 1, 1) Useless use of constant integer 3 in sink context (lines 1, 1) |
||
02:05
mcmillhj joined
|
|||
timotimo | m: @(my $a) = 1, 2, 3; say $a.perl; say $a.^name | 02:06 | |
camelia | Cannot modify an immutable Any ((Any)) in block <unit> at <tmp> line 1 |
||
lookatme_q | m: my $a := 1,2,3; say $a.WHAT | ||
camelia | (List) | ||
02:06
p6bannerbot sets mode: +v mcmillhj
|
|||
lookatme_q | Many things can not understand :) | 02:06 | |
02:10
mcmillhj left
02:12
[particle] joined,
p6bannerbot sets mode: +v [particle]
02:15
inbioz joined
02:16
p6bannerbot sets mode: +v inbioz
02:19
inbioz left
02:20
inbioz joined,
[particle] left,
p6bannerbot sets mode: +v inbioz
02:23
[particle] joined,
p6bannerbot sets mode: +v [particle]
02:25
mcmillhj joined,
angelds joined,
p6bannerbot sets mode: +v mcmillhj
02:26
p6bannerbot sets mode: +v angelds
02:30
mcmillhj left
02:31
[particle] left
02:39
inbioz_ joined
02:40
p6bannerbot sets mode: +v inbioz_
02:43
mcmillhj joined
|
|||
buggable | New CPAN upload: AttrX-Mooish-v0.4.3.tar.gz by VRURG modules.perl6.org/dist/AttrX::Mooish:cpan:VRURG | 02:43 | |
02:43
inbioz left,
p6bannerbot sets mode: +v mcmillhj
02:48
mcmillhj left
02:53
mcmillhj joined
02:54
p6bannerbot sets mode: +v mcmillhj
02:58
mcmillhj left
03:00
inbioz_ left
03:04
mcmillhj joined
03:05
p6bannerbot sets mode: +v mcmillhj
03:09
mcmillhj left
03:13
[particle] joined
03:14
p6bannerbot sets mode: +v [particle]
03:16
mcmillhj joined
03:17
p6bannerbot sets mode: +v mcmillhj
03:21
mcmillhj left
03:26
[particle] left
03:32
mcmillhj joined
03:33
p6bannerbot sets mode: +v mcmillhj
03:37
mcmillhj left
03:43
mcmillhj joined
03:44
p6bannerbot sets mode: +v mcmillhj,
[particle] joined
03:45
p6bannerbot sets mode: +v [particle]
03:46
fake_space_whale left
03:48
mcmillhj left,
[particle] left
03:56
[particle] joined
03:57
lichtkind joined,
p6bannerbot sets mode: +v [particle]
03:58
p6bannerbot sets mode: +v lichtkind
03:59
[particle] left
04:00
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
04:01
[particle] joined,
p6bannerbot sets mode: +v [particle]
04:05
mcmillhj left
04:09
fake_space_whale joined
04:10
p6bannerbot sets mode: +v fake_space_whale
04:14
mcmillhj joined
04:15
p6bannerbot sets mode: +v mcmillhj
04:19
mcmillhj left,
[particle] left
04:26
molaf joined,
p6bannerbot sets mode: +v molaf
04:30
mcmillhj joined
04:31
p6bannerbot sets mode: +v mcmillhj,
cgfbee left
04:35
mcmillhj left
04:36
cpup joined
04:37
p6bannerbot sets mode: +v cpup,
cgfbee joined
04:38
p6bannerbot sets mode: +v cgfbee
04:47
lichtkind left
04:48
itaipu left
04:49
mcmillhj joined
04:50
p6bannerbot sets mode: +v mcmillhj,
Ven` joined
04:51
p6bannerbot sets mode: +v Ven`
|
|||
AlexDaniel` | squashable6: next | 04:52 | |
squashable6 | AlexDaniel`, ⚠🍕 Next SQUASHathon in ≈5 hours (2018-09-01 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel` | :O | ||
That one kind of slipped through the cracks! | 04:53 | ||
04:54
mcmillhj left,
Xliff left
04:55
Ven` left
|
|||
squashable6 | Webhook for perl6/doc is now active! Responsive is better than fast. | 04:56 | |
04:56
[particle] joined
04:57
p6bannerbot sets mode: +v [particle]
|
|||
AlexDaniel` | .tell jmerelo it's SQUASHathon time!!! :) | 04:57 | |
yoleaux | AlexDaniel`: I'll pass your message to jmerelo. | ||
05:07
mcmillhj joined
05:08
p6bannerbot sets mode: +v mcmillhj
05:09
robertle left
05:12
molaf left,
mcmillhj left
05:13
molaf joined
05:14
p6bannerbot sets mode: +v molaf,
troys left
05:18
molaf left
05:20
AlexDaniel joined,
p6bannerbot sets mode: +v AlexDaniel,
spycrab0 left
05:27
mcmillhj joined
05:28
p6bannerbot sets mode: +v mcmillhj
05:32
mcmillhj left
05:33
eliasr left
05:38
vrurg left
05:41
mcmillhj joined
05:42
p6bannerbot sets mode: +v mcmillhj
05:45
lichtkind joined
05:46
p6bannerbot sets mode: +v lichtkind,
mcmillhj left
05:51
lichtkind left
05:52
fake_space_whale left
05:53
mcmillhj joined
05:54
p6bannerbot sets mode: +v mcmillhj
05:58
mcmillhj left
05:59
lichtkind joined,
p6bannerbot sets mode: +v lichtkind
06:05
mcmillhj joined
06:06
p6bannerbot sets mode: +v mcmillhj
06:10
EdSaperia2 joined,
lichtkind left,
mcmillhj left
06:15
EdSaperia2 left
06:18
mcmillhj joined
06:19
p6bannerbot sets mode: +v mcmillhj
06:23
mcmillhj left
06:25
lizmat left,
_nipc joined
06:26
lichtkind joined,
p6bannerbot sets mode: +v _nipc,
p6bannerbot sets mode: +v lichtkind
06:37
telex left
06:38
mcmillhj joined,
_nipc left,
telex joined
06:39
p6bannerbot sets mode: +v mcmillhj,
p6bannerbot sets mode: +v telex
06:41
dct joined,
p6bannerbot sets mode: +v dct,
wodwos joined
06:42
p6bannerbot sets mode: +v wodwos
06:43
mcmillhj left,
lichtkind left
06:44
abraxxa joined
06:45
p6bannerbot sets mode: +v abraxxa
06:51
mcmillhj joined
06:52
p6bannerbot sets mode: +v mcmillhj
06:55
domidumont joined,
p6bannerbot sets mode: +v domidumont
06:56
lichtkind joined,
rindolf joined,
mcmillhj left,
p6bannerbot sets mode: +v lichtkind
06:57
p6bannerbot sets mode: +v rindolf
06:58
dct left,
lichtkind left
07:01
robertle joined
07:02
p6bannerbot sets mode: +v robertle
07:06
mcmillhj joined
07:07
p6bannerbot sets mode: +v mcmillhj
07:11
mcmillhj left
07:12
mozzarella5 joined
07:17
mozzarella5 left
07:20
evalable6 joined,
p6bannerbot sets mode: +v evalable6
07:27
mcmillhj joined,
scimon joined
07:28
p6bannerbot sets mode: +v mcmillhj,
p6bannerbot sets mode: +v scimon
07:29
saki joined,
saki left
07:32
mcmillhj left
07:33
cgfbee left,
lichtkind joined
07:34
p6bannerbot sets mode: +v lichtkind
07:37
saki joined
07:38
saki left,
mcmillhj joined
07:39
p6bannerbot sets mode: +v mcmillhj
07:42
lichtkind left
07:43
cpage left,
SyrupThinker left,
mcmillhj left
07:44
jlouis joined,
p6bannerbot sets mode: +v jlouis
|
|||
jlouis | hello | 07:44 | |
p6: say 3; | |||
camelia | 3 | ||
07:44
jlouis left
07:45
cpage joined
|
|||
AlexDaniel | that was quick | 07:45 | |
07:46
p6bannerbot sets mode: +v cpage
07:47
saki joined,
saki left
07:49
cgfbee joined
07:50
p6bannerbot sets mode: +v cgfbee
07:53
mcmillhj joined,
Xliff joined,
p6bannerbot sets mode: +v mcmillhj
07:54
p6bannerbot sets mode: +v Xliff
|
|||
Xliff | \o | 07:54 | |
Is there a way I can define a class inside of a Role? | |||
I get this when I do: | |||
Cannot declare our-scoped class inside of a role | |||
(the scope inside of a role is generic, so there is no unambiguous | |||
package to install the symbol in) | |||
I would use an anonymous class, but I want to use when to isolate it. If it is possible to identify an anonymous class using "when" then how would that be possible? | 07:55 | ||
07:55
dct joined,
p6bannerbot sets mode: +v dct
|
|||
Xliff | m: my $a = class { method bleah { say "Bleah!"; } }; say $a.^name; | 07:56 | |
camelia | <anon|1> | ||
Xliff | m: my $a = class { method bleah { say "Bleah!"; } }; say $a.WHAT; | ||
camelia | (<anon|1>) | ||
Xliff | m: my $a = class { method bleah { say "Bleah!"; } }; given $a.^name { when Str { say "WHAT?" }; default { say "DUR!" }; }; | 07:57 | |
camelia | WHAT? | ||
Xliff | m: my $a = class { method bleah { say "Bleah!"; } }; given $a.^name { when Str { .say }; default { say "DUR!" }; }; | ||
camelia | <anon|1> | ||
07:58
mcmillhj left
|
|||
Xliff | m: my $a = class { method bleah { say "Bleah!"; } }; given $a.^name { when Str { when /anon/ { .say }; default { "wtf"; }; }; }; default { say "DUR!" }; }; | 07:58 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unexpected closing bracket at <tmp>:1 ------> 3"wtf"; }; }; }; default { say "DUR!" }; 7⏏5}; |
||
Xliff | m: my $a = class { method bleah { say "Bleah!"; } }; given $a.^name { when Str { when /anon/ { .say }; default { "wtf"; }; }; default { say "DUR!" }; }; | ||
camelia | <anon|1> | ||
Xliff | m: my $a = class { method bleah { say "Bleah!"; } }; given $a.^name { when Str { when /<anon/ { .say }; default { "wtf"; }; }; default { say "DUR!" }; }; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Unable to parse expression in metachar:sym<assert>; couldn't find final '>' (corresponding starter was at line 1) at <tmp>:1 ------> 3 given $a.^name { when Str { when /<anon7⏏5/ { .say }; defa… |
||
Xliff | m: my $a = class { method bleah { say "Bleah!"; } }; given $a.^name { when Str { when / '<anon' / { .say }; default { "wtf"; }; }; default { say "DUR!" }; }; | 07:59 | |
camelia | <anon|1> | ||
08:04
zakharyas joined
08:05
p6bannerbot sets mode: +v zakharyas,
sena_kun joined
08:06
p6bannerbot sets mode: +v sena_kun
08:11
mcmillhj joined
08:12
p6bannerbot sets mode: +v mcmillhj
08:15
stmuk_ joined
08:16
mcmillhj left,
p6bannerbot sets mode: +v stmuk_
08:17
stmuk left
08:20
saki joined,
saki left
08:27
mcmillhj joined
08:28
p6bannerbot sets mode: +v mcmillhj
08:32
mcmillhj left
08:34
saki joined
08:35
p6bannerbot sets mode: +v saki
08:47
mcmillhj joined,
pmurias joined
08:48
p6bannerbot sets mode: +v mcmillhj,
p6bannerbot sets mode: +v pmurias
08:52
mcmillhj left
08:57
itaipu joined,
p6bannerbot sets mode: +v itaipu
09:05
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
09:10
mcmillhj left
09:16
mcmillhj joined
09:17
p6bannerbot sets mode: +v mcmillhj
09:21
mcmillhj left
|
|||
pmurias | hmm, what is a good name for a base class for all the non-resizable P6opaque reprs | 09:30 | |
09:30
Nothing4You19 joined
09:31
dct left
|
|||
pmurias | for things like P6int, CPointer etc that are fixed size and don't support adding new attributes | 09:31 | |
? | |||
09:33
mcmillhj joined
09:34
p6bannerbot sets mode: +v mcmillhj
09:35
SyrupThinker joined,
p6bannerbot sets mode: +v SyrupThinker,
lizmat joined
09:36
p6bannerbot sets mode: +v lizmat
09:38
mcmillhj left,
pecastro joined
09:39
p6bannerbot sets mode: +v pecastro
09:40
Nothing4You19 left
|
|||
jnthn | pmurias: There's only one (P6Opaque) that supports that anyway | 09:40 | |
There's no name for it that already exists | |||
Though if going with the op name, NonMixinable or something works | 09:41 | ||
pmurias | jnthn: I'm thinking about FixedSizeObject ;) | 09:43 | |
it's a big distinction on the truffle backend because the P6opaque objects are being implemented with framework provided truffle magic (Self style object shapes) while other objects are regular old school java ones like on the jvm backend | 09:46 | ||
09:47
mcmillhj joined
09:48
p6bannerbot sets mode: +v mcmillhj
09:52
mcmillhj left
09:57
mcmillhj joined
09:58
p6bannerbot sets mode: +v mcmillhj
10:02
mcmillhj left
10:11
mcmillhj joined
10:12
p6bannerbot sets mode: +v mcmillhj
10:16
mcmillhj left
10:18
Trashlord3 joined
10:25
mcmillhj joined,
Trashlord3 left,
p6bannerbot sets mode: +v mcmillhj
10:30
mcmillhj left
10:34
saki left
10:36
saki joined,
p6bannerbot sets mode: +v saki,
saki left
10:42
mcmillhj joined
10:43
p6bannerbot sets mode: +v mcmillhj
10:47
mcmillhj left
10:51
tyil[m]1 left,
Matthew[m] left,
EuAndreh[m] left,
tyil[m] left,
wictory[m] left
10:52
mirlur[m] left,
unclechu[m] left,
Garland_g[m] left,
MitarashiDango[m left,
AlexDaniel` left,
CIAvash[m] left,
lance_w[m] left,
ilmari_ left,
AlexDaniel-old[m left
|
|||
El_Che | releasable6: status | 10:56 | |
releasable6 | El_Che, Next release will happen when it's ready. 0 blockers. 480 out of 500 commits logged | ||
El_Che, Details: gist.github.com/60914c543f1ff5bd57...466d56f3b9 | |||
AlexDaniel | El_Che: waiting for moarvm release, expected tomorrow-ish | 10:57 | |
10:59
MitarashiDango[m joined,
p6bannerbot sets mode: +v MitarashiDango[m
11:02
mcmillhj joined
|
|||
lizmat | weekly: opensource.com/article/18/8/containers-perl-6 | 11:03 | |
notable6 | lizmat, Noted! | ||
11:03
p6bannerbot sets mode: +v mcmillhj
|
|||
El_Che | AlexDaniel: big changes? | 11:04 | |
AlexDaniel | El_Che: well, it's two months worth of changes, so yes | ||
El_Che | besides that | 11:05 | |
something that needed time to be settled, eg | |||
11:06
sena_kun left
11:07
sena_kun joined,
mcmillhj left
11:08
sena_kun left
|
|||
AlexDaniel | El_Che: not really, the last few days samcv was trying to manage with the huge changelog (there're some new tools & possibly automation coming) | 11:09 | |
11:12
stmuk joined,
sena_kun joined,
angelds left,
p6bannerbot sets mode: +v stmuk,
p6bannerbot sets mode: +v sena_kun,
angelds joined
|
|||
AlexDaniel | El_Che: fwiw, with the rate of changes in moar/rakudo it is likely that in the future the deadlines won't be any stricter | 11:13 | |
11:13
p6bannerbot sets mode: +v angelds
|
|||
AlexDaniel | El_Che: so the last release we had to skip because all of the perf improvements needed a bit more time to stabilize, and there are already postrelease branches for after 2018.08 | 11:14 | |
11:14
stmuk_ left
|
|||
AlexDaniel | with some relatively massive changes :) | 11:15 | |
11:17
stmuk left
|
|||
AlexDaniel | I think someone even proposed to do releases once every two months | 11:18 | |
I'm not convinced that it is going to be better that way, even though I'd need to do less work :) | 11:19 | ||
11:19
stmuk joined
11:20
p6bannerbot sets mode: +v stmuk
|
|||
AlexDaniel | squashable6: status | 11:21 | |
squashable6 | AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in 2 days and ≈0 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
11:22
mcmillhj joined
11:23
mcmillhj left
11:29
AlexDaniel-old[m joined,
p6bannerbot sets mode: +v AlexDaniel-old[m,
mirlur[m] joined,
CIAvash[m] joined,
unclechu[m] joined,
p6bannerbot sets mode: +v mirlur[m],
p6bannerbot sets mode: +v CIAvash[m],
p6bannerbot sets mode: +v unclechu[m],
tyil[m]1 joined,
lance_w[m] joined,
wictory[m] joined,
tyil[m] joined,
p6bannerbot sets mode: +v tyil[m]1,
EuAndreh[m] joined,
p6bannerbot sets mode: +v lance_w[m],
p6bannerbot sets mode: +v wictory[m],
p6bannerbot sets mode: +v tyil[m],
p6bannerbot sets mode: +v EuAndreh[m],
Garland_g[m] joined,
p6bannerbot sets mode: +v Garland_g[m]
11:32
robertle left
11:34
robertle joined
11:35
p6bannerbot sets mode: +v robertle,
mcmillhj joined,
saki joined,
saki left
11:36
p6bannerbot sets mode: +v mcmillhj
11:38
zakharyas left
11:39
saki joined,
saki left
11:40
mcmillhj left
11:48
mcmillhj joined
11:49
p6bannerbot sets mode: +v mcmillhj
11:52
saki joined
11:53
mcmillhj left,
p6bannerbot sets mode: +v saki
11:54
robertle left
11:56
sh4nks5 joined,
sh4nks5 left
11:59
abraxxa left
12:02
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
12:07
mcmillhj left
12:12
ilmari left
12:16
mcmillhj joined
12:17
p6bannerbot sets mode: +v mcmillhj
12:20
molaf joined
12:21
p6bannerbot sets mode: +v molaf,
mcmillhj left
12:26
ilmari joined,
ilmari left,
ilmari joined,
p6bannerbot sets mode: +v ilmari
12:27
p6bannerbot sets mode: +v ilmari,
robertle joined,
p6bannerbot sets mode: +v robertle
12:29
mcmillhj joined
12:30
p6bannerbot sets mode: +v mcmillhj
12:34
mcmillhj left
12:37
angelds left
12:40
mcmillhj joined
12:41
p6bannerbot sets mode: +v mcmillhj
12:44
AlexDaniel left
12:49
Garland_g[m] left,
wictory[m] left,
tyil[m]1 left,
CIAvash[m] left,
AlexDaniel-old[m left,
mirlur[m] left,
unclechu[m] left,
tyil[m] left,
EuAndreh[m] left,
MitarashiDango[m left,
lance_w[m] left
12:52
notable6 left,
kerframil joined,
p6bannerbot sets mode: +v kerframil
12:53
reportable6 left
12:57
MitarashiDango[m joined,
p6bannerbot sets mode: +v MitarashiDango[m
12:59
AlexDaniel joined,
p6bannerbot sets mode: +v AlexDaniel
13:09
ktr16 joined,
ktr16 left
13:14
robertle left,
zakharyas joined
13:15
p6bannerbot sets mode: +v zakharyas
13:16
robertle joined
13:17
p6bannerbot sets mode: +v robertle,
harrison joined
13:18
p6bannerbot sets mode: +v harrison,
Praise left
13:23
xfil joined,
vrurg joined,
xfil left
13:24
p6bannerbot sets mode: +v vrurg
13:27
AlexDaniel-old[m joined,
AlexDaniel` joined,
p6bannerbot sets mode: +v AlexDaniel-old[m,
p6bannerbot sets mode: +v AlexDaniel`,
tyil[m] joined,
unclechu[m] joined,
mirlur[m] joined,
CIAvash[m] joined,
p6bannerbot sets mode: +v CIAvash[m],
p6bannerbot sets mode: +v unclechu[m],
p6bannerbot sets mode: +v tyil[m],
p6bannerbot sets mode: +v mirlur[m],
wictory[m] joined,
Matthew[m] joined,
p6bannerbot sets mode: +v wictory[m],
p6bannerbot sets mode: +v Matthew[m],
ilmari_ joined,
EuAndreh[m] joined,
lance_w[m] joined,
tyil[m]1 joined,
p6bannerbot sets mode: +v ilmari_,
p6bannerbot sets mode: +v tyil[m]1,
p6bannerbot sets mode: +v lance_w[m],
p6bannerbot sets mode: +v EuAndreh[m],
Garland_g[m] joined,
p6bannerbot sets mode: +v Garland_g[m]
13:29
AlexDaniel left
13:47
Hor|zon left
14:02
atweiden-air joined,
robertle left
14:03
p6bannerbot sets mode: +v atweiden-air
|
|||
atweiden-air | has anyone had any luck cross-compiling nqp for aarch64? | 14:03 | |
14:05
AlexDaniel joined,
p6bannerbot sets mode: +v AlexDaniel
14:10
zxcvz left
14:18
mcmillhj left
14:25
mcmillhj joined
14:26
Kaiepi left,
p6bannerbot sets mode: +v mcmillhj
14:34
Maven_ joined
14:35
robertle joined,
p6bannerbot sets mode: +v robertle
14:37
Maven_ left
14:40
harrison left,
kerframil left
14:43
cgfbee left
14:45
st_elmo joined
14:46
p6bannerbot sets mode: +v st_elmo
|
|||
Geth | doc: MorayJ self-assigned Revise phasers page github.com/perl6/doc/issues/2268 MorayJ self-unassigned Revise phasers page github.com/perl6/doc/issues/2268 fb2dd7aec6 | (JJ Merelo)++ | doc/Type/List.pod6 Changes the signature of the methods Corresponding to the real one. This closes #2175. The problem is that I'm not sure if `List` is the correct place for this. They are defined in `Any` so in principle they could be applied anywhere. Besides, two of them are subs, not methods. |
14:48 | |
squashable6 | 🍕🍕🍕 First contribution by MorayJ++! ♥ | ||
pmurias | AlexDaniel: don't the releases tend to get more traumatic the rarer they are? | 14:51 | |
AlexDaniel | pmurias: yes, overall it is better to release often | 14:52 | |
pmurias: but when it comes to things *I* need to do, releasing less often means a bit less stuff to do | 14:53 | ||
14:56
jjmerelo joined,
p6bannerbot sets mode: +v jjmerelo
|
|||
jjmerelo | Checking in... | 14:57 | |
squashable6: status | |||
squashable6 | jjmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈21 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
jjmerelo, Log and stats: gist.github.com/d7787d57ceeed20bb0...e04e43301c | |||
AlexDaniel | jjmerelo: CHECK CHECK CHECK CHECK | ||
CHECK | |||
jjmerelo | OK, I'll see what I can do. | 14:58 | |
15:02
uzl joined,
p6bannerbot sets mode: +v uzl
15:04
molaf left,
scimon left
15:05
Alchemy joined
|
|||
jdv79 | can anyone golf this better?: nopaste.xyz/?3f0630a4a4dfb467#JtgB...H71e/5CPo= | 15:05 | |
15:06
fake_space_whale joined
|
|||
squashable6 | 🍕🍕🍕 First contribution by JJ++! ♥ | ||
AlexDaniel | jdv79: what about -ne or similar? | ||
15:06
p6bannerbot sets mode: +v Alchemy
|
|||
uzl | Hello #perl6 | 15:06 | |
15:06
p6bannerbot sets mode: +v fake_space_whale
|
|||
uzl | I'm using Rakudo Star version 2018.04.1 and would like to get 2018.06. Do I need to download that version and recompile it again? | 15:06 | |
AlexDaniel | jdv79: and what kind of a golf you need? :) maybe +… is shorter than ….elems but is that what you are looking for? | 15:07 | |
jdv79 | just a golf that works | ||
its a pretty simple task. just curious. | 15:08 | ||
15:08
daemon left
15:10
lizmat left
|
|||
AlexDaniel | jdv79: git shortlog -nse | 15:10 | |
15:10
Alchemy is now known as daemon
15:11
daemon is now known as Guest15363,
Guest15363 left,
Guest15363 joined,
adams.freenode.net sets mode: +v Guest15363,
p6bannerbot sets mode: +v Guest15363
|
|||
AlexDaniel | jdv79: doesn't count as a golf right? :P | 15:11 | |
15:14
silug left
|
|||
timotimo | jdv79: i'm not sure in what way it doesn't work, or is that not the question? | 15:15 | |
15:16
onur4 joined
|
|||
jdv79 | AlexDaniel: no | 15:17 | |
15:17
onur4 left
|
|||
AlexDaniel | jdv79: perl6 -e 'lines.grep({/^Author:/}).Bag.pairs.perl.say' | 15:17 | |
jdv79 | timotimo: it works | ||
just wondering about golfing it. that's all. | |||
timotimo | oh, ok | ||
i thought "a golf that works" meant the code you had didn't work yet | |||
jdv79 | i guess that is confusing | ||
AlexDaniel | jdv79: I mean, full command would be like git log --stat | perl6 -e 'lines.grep({/^Author:/}).Bag.sort(*.value).perl.say' | 15:18 | |
jdv79 | yeah. cool. | 15:19 | |
is there a terse way to print that in line oriented fashion? | |||
timotimo | i like ".say for" | 15:20 | |
AlexDaniel | golf-like way or proper way? :) | ||
».say should work during this minute | |||
jdv79 | golf of course | ||
AlexDaniel | m: <a b c>».say # don't do that in real code though | 15:21 | |
camelia | a b c |
||
squashable6 | 🍕 JJ++ wrote a comment on “.classify docs lack `:as…”: github.com/perl6/doc/issues/2175#i...-417699130 | 15:24 | |
jdv79 | just trying to illustrate stuff for a jr colleague and trying to remember p6 stuffs. | 15:25 | |
thansk | |||
AlexDaniel | lines.grep({/^A/}).Bag.invert.sort».say | ||
15:25
zakharyas left,
atweiden-air left
|
|||
AlexDaniel | lines.grep(/^A/).Bag.invert.sort».say | 15:26 | |
jdv79 | nice | ||
15:27
silug joined
|
|||
AlexDaniel | Bag(grep /^A/,lines).invert.sort».say | 15:27 | |
15:27
p6bannerbot sets mode: +v silug
|
|||
AlexDaniel | something like that | 15:27 | |
github.com/AlexDaniel/6lang-golf-cheatsheet | 15:28 | ||
jdv79 | nice | 15:29 | |
15:29
domidumont left
15:33
troys joined,
mcmillhj left
15:34
p6bannerbot sets mode: +v troys
15:38
mcmillhj joined
15:39
p6bannerbot sets mode: +v mcmillhj
|
|||
synopsebot | Link: doc.perl6.org/type/List | ||
squashable6 | 🍕 JJ++ closed issue “.classify docs lack `:as…”: github.com/perl6/doc/issues/2175 | ||
Geth | doc: uzluisf++ created pull request #2287: Add minor fixes |
15:42 | |
squashable6 | 🍕 uzluisf++ opened pull request “Add minor fixes”: github.com/perl6/doc/pull/2287 | ||
🍕🍕🍕 First contribution by uzluisf++! ♥ | |||
15:42
silug left
|
|||
squashable6 | 🍕 JJ++ submitted a review on pull request “Add minor fixes”: github.com/perl6/doc/pull/2287#pul...-151450393 | 15:43 | |
uzl | Is there any reason why the double pointy block is not mentioned here as way to edit values in place? link: docs.perl6.org/language/hashmap#In..._of_values | 15:44 | |
15:45
cjkinni left,
cjkinni joined
15:46
p6bannerbot sets mode: +v cjkinni
|
|||
jjmerelo | @uzl probably not. | 15:48 | |
15:51
uzl left
15:52
Guest15363 is now known as daemon
15:54
silug joined,
p6bannerbot sets mode: +v silug
|
|||
Geth | doc: 4ea0a881de | (Luis F. Uceta)++ | doc/Language/hashmap.pod6 Add minor fixes |
15:55 | |
doc: 863d28b77d | (Luis F. Uceta)++ | doc/Language/hashmap.pod6 Add minor fix |
|||
synopsebot | Link: doc.perl6.org/language/hashmap | ||
doc: 2d6c689881 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/hashmap.pod6 Merge pull request #2287 from uzluisf/master Add minor fixes |
|||
squashable6 | 🍕 JJ++ merged pull request “Add minor fixes”: github.com/perl6/doc/pull/2287 | ||
15:57
hudo joined
15:58
p6bannerbot sets mode: +v hudo
|
|||
squashable6 | 🍕 JJ++ wrote a comment on “$=finish not documented”: github.com/perl6/doc/issues/2284#i...-417710594 | 16:01 | |
🍕 JJ++ labeled issue “Declarators don't know the name of attributes” (big): github.com/perl6/doc/issues/2269 | 16:03 | ||
16:06
saki left
16:07
mcmillhj left
16:08
alekz29 joined
16:09
leastbit joined,
leastbit left,
leastbit joined,
p6bannerbot sets mode: +v leastbit
16:10
leastbit left
16:11
alekz29 left
|
|||
squashable6 | 🍕 JJ++ edited issue “Proc.run is not documented”: github.com/perl6/doc/issues/2233 | 16:11 | |
16:13
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
|
|||
squashable6 | 🍕 JJ++ wrote a comment on “Proc.run is not documented”: github.com/perl6/doc/issues/2233#i...-417714024 | 16:13 | |
16:15
WhitePhosphorus1 joined
16:18
mcmillhj left,
WhitePhosphorus1 left
|
|||
squashable6 | 🍕 JJ++ wrote a comment on “Proc.run is not documented”: github.com/perl6/doc/issues/2233#i...-417715286 | 16:18 | |
16:21
lizmat joined
16:22
p6bannerbot sets mode: +v lizmat,
Kaiepi joined
16:23
p6bannerbot sets mode: +v Kaiepi
|
|||
timotimo | m: say "foo".substr | 16:23 | |
camelia | Must at least specify a 'from' value with 'substr' in block <unit> at <tmp> line 1 |
||
timotimo | that doesn't look like a thing we want in perl6, right? a method that's "available", but that throws an exception like that? | ||
lizmat | timotimo: I think I had a reason for that... | 16:25 | |
timotimo | is there another candidate that would otherwise have been hit perhaps? | 16:26 | |
lizmat | it starts infinilooping without it | 16:27 | |
guess I was too lazy to figure out what caused that | |||
Geth | doc: b90dcb2850 | (JJ Merelo)++ | 2 files Moves run to Proc Where it should have been from the beginning. As a matter of fact, `run` was there, but lumped together with shell and new, so it was not indexed properly. It should be now. This closes #2233 |
16:28 | |
squashable6 | 🍕 JJ++ closed issue “Proc.run is not documented”: github.com/perl6/doc/issues/2233 | ||
timotimo | interesting. maybe we can put in a ticket for that so we don't forget about it? | ||
16:28
fake_space_whale left
|
|||
timotimo | maybe there is already one ... | 16:28 | |
squashable6 | 🍕 JJ++ opened issue “Spin off shell from Proc”: github.com/perl6/doc/issues/2288 | 16:31 | |
🍕 JJ++ edited issue “Spin off shell from Proc.new”: github.com/perl6/doc/issues/2288 | |||
🍕 JJ++ labeled issue “Spin off shell from Proc.new” (docs): github.com/perl6/doc/issues/2288 | |||
🍕 JJ++ labeled issue “Spin off shell from Proc.new” (update): github.com/perl6/doc/issues/2288 | |||
16:31
mcmillhj joined
16:32
p6bannerbot sets mode: +v mcmillhj
|
|||
Geth | doc: 3f2c47f117 | (JJ Merelo)++ | doc/Type/Proc.pod6 Some reflow and typographic changes |
16:34 | |
synopsebot | Link: doc.perl6.org/type/Proc | ||
16:36
mcmillhj left
16:43
jjmerelo left
16:47
wodwos left
16:49
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
16:50
TreyHarris left,
TreyHarris joined,
p6bannerbot sets mode: +v TreyHarris
|
|||
timotimo | wakelift.de/2018/08/31/faster-fasta-please/ - i published my blog post! | 16:52 | |
notable is down :S | |||
16:54
mcmillhj left
|
|||
Geth | doc: MorayJ++ created pull request #2289: Phasers |
16:54 | |
squashable6 | 🍕 MorayJ++ opened pull request “Phasers”: github.com/perl6/doc/pull/2289 | ||
16:59
mcmillhj joined
17:00
p6bannerbot sets mode: +v mcmillhj,
domidumont joined
17:01
p6bannerbot sets mode: +v domidumont
|
|||
Geth | ¦ doc: MorayJ self-assigned Revise phasers page github.com/perl6/doc/issues/2268 | 17:04 | |
17:11
robertle left,
rfold joined
17:12
p6bannerbot sets mode: +v rfold
|
|||
lizmat | weekly: wakelift.de/2018/08/31/faster-fasta-please/ | 17:15 | |
timotimo | but notable is down :< | ||
17:19
darkmagic joined
17:20
darkmagic left
17:23
Jacob8430 joined
17:24
walle30324 joined
17:27
Jacob8430 left,
walle30324 left
17:32
zakharyas joined
17:33
p6bannerbot sets mode: +v zakharyas
|
|||
squashable6 | 🍕 MorayJ++ wrote a comment on “Revise phasers page”: github.com/perl6/doc/issues/2268#i...-417737337 | 17:33 | |
🍕 MorayJ++ wrote a comment on “Document COMPOSE phaser as NYI (for now)”: github.com/perl6/doc/issues/2281#i...-417737634 | 17:34 | ||
17:36
lin joined
17:37
p6bannerbot sets mode: +v lin
|
|||
lin | Does anyone knoe what happened to spider-mario's arch repo? | 17:37 | |
MasterDuke | lin: what's wrong? i installed from it two months ago | 17:40 | |
lin | Doesn't seem to be resolving anymore, I've been using it as well | 17:41 | |
MasterDuke | lin: oh, do you mean the binary repo? | 17:43 | |
lin | Yup | ||
17:45
spycrab0 joined,
p6bannerbot sets mode: +v spycrab0
17:47
irc-5225225 joined
17:50
irc-5225225 left
|
|||
MasterDuke | ah, i haven't used that, just the build-from-source pkg | 17:51 | |
17:53
natrys joined,
hudo left
17:54
p6bannerbot sets mode: +v natrys
17:55
notable6 joined
|
|||
lin | Fair enough, I was hoping he might be around here | 17:55 | |
17:56
p6bannerbot sets mode: +v notable6,
hudo joined
17:57
p6bannerbot sets mode: +v hudo
|
|||
daemon | random free game: www.humblebundle.com/store/warhamm...ace-marine | 17:58 | |
18:01
Khisanth left
18:05
natrys left
18:07
MasterDuke left,
TimToady left,
TimToady joined,
card.freenode.net sets mode: +v TimToady,
p6bannerbot sets mode: +v TimToady
18:11
molaf joined
18:12
kerframil joined,
p6bannerbot sets mode: +v kerframil,
p6bannerbot sets mode: +v molaf
18:13
HaraldJoerg joined
18:14
Khisanth joined,
p6bannerbot sets mode: +v HaraldJoerg
18:15
p6bannerbot sets mode: +v Khisanth
18:22
mcmillhj_ joined
18:23
p6bannerbot sets mode: +v mcmillhj_
18:24
mcmillhj left
18:30
mcmillhj joined
18:31
mcmillhj_ left,
p6bannerbot sets mode: +v mcmillhj
18:32
sena_kun left
18:43
_nipc joined
18:44
p6bannerbot sets mode: +v _nipc
18:50
kerframil left
18:57
[particle] left,
domidumont left,
[particle] joined
18:58
p6bannerbot sets mode: +v [particle]
18:59
mcmillhj left
19:02
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
19:12
renormalist left
19:14
renormalist joined
19:15
p6bannerbot sets mode: +v renormalist
19:22
sotona joined
19:23
p6bannerbot sets mode: +v sotona
19:37
rfold left
19:47
zakharyas left
20:08
itaipu left
|
|||
xinming | m: my $op = "+"; ::(infix:{$op^C.(3, 4).say; | 20:15 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Missing block at <tmp>:1 ------> 3y $op = "+"; ::(infix:{$op^C.(3, 4).say;7⏏5<EOL> |
||
xinming | m: my $op = "+"; ::(infix:{$op}).(3, 4).say; | ||
camelia | ===SORRY!=== Cannot find method 'has_compile_time_value' on object of type NQPMu |
||
xinming | What might be the right way to do this? | ||
We can have [&sub] to make a sub "infix" | 20:19 | ||
Now, trying to do something reverse, make a "infix" function | |||
20:21
TreyHarris left
|
|||
avuserow | m: say &infix:<+>(1, 2) # xinming, like this? | 20:21 | |
camelia | 3 | ||
20:21
st_elmo left
|
|||
xinming | avuserow: yes, something like that | 20:21 | |
thanks | |||
m: my $op = "+"; ::(&infix:{$op}).(3, 4).say; | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> You can't adverb &infix at <tmp>:1 ------> 3my $op = "+"; ::(&infix:{$op}7⏏5).(3, 4).say; expecting any of: horizontal whitespace statement end statement mo… |
||
20:21
itaipu joined
|
|||
xinming | m: my $op = "+"; ::("&infix:{$op}").(3, 4).say; | 20:22 | |
camelia | No such symbol '&infix:+' in block <unit> at <tmp> line 1 |
||
xinming | m: my $op = "+"; ::("&infix<$op>").(3, 4).say; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: infix used at line 1. Did you mean 'indir', 'index'? |
||
xinming | m: my $op = "+"; ::("&infix:<$op>").(3, 4).say; | ||
camelia | 7 | ||
xinming | hahaha | ||
20:22
p6bannerbot sets mode: +v itaipu
|
|||
avuserow | xinming, another syntax for this is &infix:["+"] but that doesn't seem to make it easier here | 20:22 | |
xinming | Yea,, thanks | 20:23 | |
20:27
itaipu left,
itaipu joined
20:28
p6bannerbot sets mode: +v itaipu
20:35
niceplace joined,
p6bannerbot sets mode: +v niceplace
20:48
_nipc left
20:52
reisinge joined,
p6bannerbot sets mode: +v reisinge
20:55
mcmillhj left
20:59
pmurias left
21:00
pmurias joined
21:01
mcmillhj joined,
p6bannerbot sets mode: +v pmurias
21:02
p6bannerbot sets mode: +v mcmillhj
21:05
atweiden-air joined,
atweiden-air left
21:07
atweiden-air joined,
atweiden-air left,
[Coke] left,
lichtkind joined,
[Coke] joined,
p6bannerbot sets mode: +v [Coke]
21:08
p6bannerbot sets mode: +v lichtkind
|
|||
Altreus | p6 doesn't report the type of an exception if it wasn't given a message | 21:08 | |
21:09
mcmillhj left
|
|||
Altreus | I may be mistaken, hold on | 21:09 | |
it does, cro just doesn't supply an exception :P | 21:11 | ||
21:12
HaraldJoerg left
21:18
reisinge left
21:20
mcmillhj joined
21:21
p6bannerbot sets mode: +v mcmillhj
21:24
mcmillhj left
21:34
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
mcmillhj joined
21:35
hudo left,
p6bannerbot sets mode: +v mcmillhj
21:36
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
21:39
mcmillhj left
|
|||
SmokeMachine | m: say &infix:["+"].(31, 11) | 21:39 | |
camelia | 42 | ||
SmokeMachine | m: my $a = +; say &infix:[$a].(31, 11) | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Prefix + requires an argument, but no valid term found at <tmp>:1 ------> 3my $a = +7⏏5; say &infix:[$a].(31, 11) expecting any of: prefix |
||
SmokeMachine | m: my $a = "+"; say &infix:[$a].(31, 11) | ||
camelia | Use of uninitialized value of type Any in string context. Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful. in any ACCEPTS at gen/moar/stage2/NQPCORE.setting line 594 Use of uninitialized value of type … |
||
SmokeMachine | m: my $a; BEGIN $a = "+"; say &infix:[$a].(31, 11) | 21:41 | |
camelia | 42 | ||
squashable6 | 🍕 MorayJ++ closed pull request “Phasers”: github.com/perl6/doc/pull/2289 | 21:42 | |
🍕 MorayJ++ reopened pull request “Phasers”: github.com/perl6/doc/pull/2289 | |||
21:48
pyrimidine joined
21:49
p6bannerbot sets mode: +v pyrimidine,
sotona left
|
|||
pyrimidine | timotimo: awesome post on FASTA parsing! I had a few versions here, including a grammar: github.com/cjfields/bioperl6/tree/...arse-fasta | 21:50 | |
yoleaux | 27 Aug 2017 12:52Z <AlexDaniel> pyrimidine: irclog.perlgeek.de/perl6-dev/2017-...i_15075855 | ||
27 Aug 2017 12:53Z <AlexDaniel> pyrimidine: mystery resolved. It's still not as low, but that's possibly noise | |||
pyrimidine | Heh, been a while :) | ||
21:51
jesse20 joined
|
|||
pyrimidine | Grammar version I think originated from maybe Ulti, I think. | 21:52 | |
21:53
pyrimidine left
21:57
jesse20 left
|
|||
Geth | doc/master: 6 commits pushed by MorayJ++ | 22:00 | |
squashable6 | 🍕 MorayJ++ merged pull request “Phasers”: github.com/perl6/doc/pull/2289 | ||
squashable6 | 🍕 MorayJ++ wrote a comment on “Revise phasers page”: github.com/perl6/doc/issues/2268#i...-417800231 | 22:01 | |
🍕 MorayJ++ closed issue “Revise phasers page”: github.com/perl6/doc/issues/2268 | |||
22:03
x[LGWs4x4i]uG2N0 left
22:04
x[LGWs4x4i]uG2N0 joined
22:05
p6bannerbot sets mode: +v x[LGWs4x4i]uG2N0
22:08
pmurias left
22:21
Juliana joined,
p6bannerbot sets mode: +v Juliana
|
|||
Juliana | Hi there, | 22:21 | |
is there a way to match everything but excluding a particular string ? | 22:22 | ||
$text ~~ / ^^ "ASUNTO" .* "RESULTANDO QUE" /; | |||
this expresion includes the string "RESULTADO QUE" as part of the match | 22:23 | ||
MasterDuke | Juliana: you mean something like `!$text.contains("RESULTADO QUE")` ? | 22:27 | |
yoleaux | 18:59Z <pmurias> MasterDuke: re nqp::istrue_s it not defined in nqp because it's not used by a QAST::Op but only in a lower level MAST | ||
18:59Z <pmurias> MasterDuke: re Missing dependency message that's because the setting isn't properly cross compiled and loaded yet | |||
Juliana | MasterDuke: no, just trying to set a grammar to parse a semi-structured text (txt file) which contains sections identified by specific expresion. So I want to parse just the text related to the "ASUNTO" section which comes before the "RESULTANDO QUE" section | 22:30 | |
22:36
sotona joined
|
|||
[Coke] | <!before pattern> | 22:37 | |
22:37
p6bannerbot sets mode: +v sotona
|
|||
[Coke] | m: /win 3 | 22:37 | |
camelia | 5===SORRY!5=== Regex not terminated. at <tmp>:1 ------> 3/win 37⏏5<EOL> Unable to parse regex; couldn't find final '/' at <tmp>:1 ------> 3/win 37⏏5<EOL> expecting any of: infix stopper Other potential dif… |
||
22:40
sotona left
22:46
stmuk_ joined
22:47
p6bannerbot sets mode: +v stmuk_
22:49
stmuk left
|
|||
timotimo | i like <( and )> better than using <!before> and such | 22:50 | |
22:50
stmuk joined
|
|||
timotimo | m: say "ASUNTO 99 RESULTANDO QUE CERVEZA" ~~ / ^^ "ASUNTO" .* )> "RESULTANDO QUE" / | 22:51 | |
camelia | 「ASUNTO 99 」 | ||
timotimo | m: say "ASUNTO 99 RESULTANDO QUE CERVEZA" ~~ / ^^ "ASUNTO" .*? )> " RESULTANDO QUE" / | ||
camelia | 「ASUNTO 99」 | ||
22:51
p6bannerbot sets mode: +v stmuk
22:52
stmuk_ left
23:00
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
23:02
lichtkind left
23:03
stmuk_ joined
23:04
p6bannerbot sets mode: +v stmuk_,
mcmillhj left
23:05
stmuk left
23:06
stmuk joined
23:07
p6bannerbot sets mode: +v stmuk
23:08
stmuk_ left
23:10
stmuk_ joined
23:11
stmuk left,
p6bannerbot sets mode: +v stmuk_
|
|||
Altreus | Somehow my code runs this line github.com/shuppet/p6-api-discord/...d.pm6#L172 without running this line github.com/shuppet/p6-api-discord/...d.pm6#L190 | 23:14 | |
help :) | 23:15 | ||
Juliana | timotimo, thanks! | 23:19 | |
timotimo | Altreus: you but one of the lines is for having "READY" in the "t" key, and the other is for "MESSAGE_CREATE"? | 23:22 | |
buggable | New CPAN upload: Async-Command-0.0.3.tar.gz by MLDEVINE modules.perl6.org/dist/Async::Comma...n:MLDEVINE | 23:23 | |
Altreus | timotimo: that's right | 23:29 | |
timotimo: I need to make a class that wraps up this JSON to make it more legible :) | |||
timotimo: the API has some default behaviour for certain message types | 23:30 | ||
but IDK why it doesn't return from User.from-json | |||
timotimo | have you put logging absolutely everywhere? :D | 23:32 | |
that's how i tend to do it | |||
but just because i haven't made the debugging stuff in moarvm good enough | |||
Altreus | ye | ||
I didn't commit it but I had a say on line 172 | |||
which runs | 23:33 | ||
which doesn't make sense because handle-message is synchronous | |||
timotimo | you're not accidentally tapping more than once? | ||
Altreus | it only runs the say once :s | 23:34 | |
and there's only one READY | |||
It's late though ... I might have another look in the morning | 23:35 | ||
23:38
mcmillhj joined
23:39
p6bannerbot sets mode: +v mcmillhj
23:42
mcmillhj left
23:48
mcmillhj joined
23:49
p6bannerbot sets mode: +v mcmillhj
23:56
mcmillhj left
|