🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku Set by ChanServ on 14 October 2019. |
|||
00:00
m4t left
00:27
hungrydonkey joined
00:45
titsuki left
00:46
cognominal joined
01:04
Actualeyes left
01:34
sena_kun left
01:49
sena_kun joined
02:08
Xliff left
02:26
molaf left
02:38
molaf joined
02:39
eythian_ is now known as eythian
02:56
uzl joined
|
|||
uzl | I've created a parameterized class (by following a SO answer 😅�) and I'm trying to use the type from the type capture but getting X::TypeCheck::Assignment. Any idea how do to it if possible? Link: github.com/uzluisf/HCCS335/blob/ma...rakumod#L5 | 02:56 | |
02:56
uzl left
03:34
sena_kun left
03:47
sena_kun joined
03:48
aborazmeh left
04:20
aborazmeh joined,
aborazmeh left,
aborazmeh joined
04:40
epony left
04:47
epony joined
04:56
molaf left
05:34
sena_kun left
05:35
hungrydonkey left
05:38
hungrydonkey joined
05:51
sena_kun joined
05:58
hungrydonkey left,
hungrydonkey joined
05:59
hungrydonkey left
06:00
hungrydonkey joined
06:01
hungrydonkey left
06:03
dansolo42_ joined
06:05
dansolo42 left,
dansolo42_ is now known as dansolo42
06:13
dansolo42_ joined,
dansolo42 left,
dansolo42_ is now known as dansolo42
06:25
[Sno] left
06:30
aborazmeh left
06:39
jmerelo joined
07:08
abraxxa joined
07:12
abraxxa left
07:14
abraxxa joined
07:23
kensanata joined
07:27
xinming_ joined
07:28
rindolf joined
|
|||
jmerelo | .tell jnthn commaide.com is returning a 503 now commaide.com/download/community/linux | 07:29 | |
07:31
xinming left,
kensanata left
07:34
sena_kun left
|
|||
Voldenet | m: CATCH { when X::TypeCheck { say .^name ~ " - got: " ~ .got().^name ~ " expected: " ~ .expected().^name }}; class A { my role R[::T] { method id (T $e) { say T.^name; say $e.WHAT; $e }}; method ^parameterize(Mu:U \this, Mu \T) { my $type := this.^mixin: R[T]; $type.^set_name: this.^name ~ <[> ~ T.^name ~ <]>; $type }}; my Int $he = A[Int].new.id(1); say $he | 07:38 | |
camelia | Int (Int) 1 |
||
Voldenet | m: CATCH { when X::TypeCheck { say .^name ~ " - got: " ~ .got().^name ~ " expected: " ~ .expected().^name }}; class A { my role R[::T] { method id (T $e –> T) { say T.^name; say $e.WHAT; $e }}; method ^parameterize(Mu:U \this, Mu \T) { my $type := this.^mixin: R[T]; $type.^set_name: this.^name ~ <[> ~ T.^name ~ <]>; $type }}; my Int $he = A[Int].new.id(1); say $he | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Malformed parameter at <tmp>:1 ------> 3ass A { my role R[::T] { method id (T $e7⏏5 –> T) { say T.^name; say $e.WHAT; $e }} expecting any of: constraint |
||
Voldenet | m: CATCH { when X::TypeCheck { say .^name ~ " - got: " ~ .got().^name ~ " expected: " ~ .expected().^name }}; class A { my role R[::T] { method id (T $e --> T) { say T.^name; say $e.WHAT; $e }}; method ^parameterize(Mu:U \this, Mu \T) { my $type := this.^mixin: R[T]; $type.^set_name: this.^name ~ <[> ~ T.^name ~ <]>; $type }}; my Int $he = A[Int].new.id(1); say $he | ||
camelia | Int (Int) X::TypeCheck::Return - got: Int expected: T |
||
Voldenet | "expected: T", wut (´_ゝ`) | 07:39 | |
however, T.ACCEPTS($e) evals to True | 07:41 | ||
07:42
stoned75 left
07:43
abraxxa left
07:46
cpan-raku left
07:47
cpan-raku joined,
cpan-raku left,
cpan-raku joined
07:48
domidumont joined,
sena_kun joined
|
|||
Voldenet | m: role R[::T] { method id (T $e –> T) { $e }}; my Int $huh = R[Int].new.id(1) | 07:49 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Malformed parameter at <tmp>:1 ------> 3role R[::T] { method id (T $e7⏏5 –> T) { $e }}; my Int $huh = R[Int].new expecting any of: constraint |
||
Voldenet | m: role R[::T] { method id (T $e --> T) { $e }}; my Int $huh = R[Int].new.id(1) | ||
camelia | Died with X::TypeCheck::Return in method id at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
Voldenet | …is this a bug? | 07:50 | |
apparently github.com/rakudo/rakudo/issues/2595 | |||
07:59
wamba joined
08:00
wamba1 joined
08:04
epony left,
hungrydonkey joined,
wamba left
08:07
hungrydonkey left
08:09
hungrydonkey joined
08:13
hungrydonkey left
08:14
hungrydonkey joined
08:15
epony joined
08:17
hungrydonkey left
08:18
abraxxa joined,
hungrydonkey joined
08:20
hungrydonkey left,
hungrydonkey joined
08:21
abraxxa left,
abraxxa joined
08:27
wamba1 left
08:29
kensanata joined
08:40
NODE left
08:43
NODE joined,
NODE left
08:47
NODE joined,
zakharyas joined
09:06
dakkar joined
|
|||
cpan-raku | New module released to CPAN! Archive::Libarchive::Raw (0.1.0) by 03FRITH | 09:21 | |
Geth | doc: 5197cd7939 | (JJ Merelo)++ | doc/Type/Hash.pod6 Fixing text for grammar while doing #2632 |
09:27 | |
linkable6 | Link: docs.raku.org/type/Hash | ||
doc: 81917dd3de | (JJ Merelo)++ | doc/Type/Hash.pod6 Adds example for mixed-level classify-list closes #3222 Refs to #2632 |
|||
linkable6 | DOC#2632 [open]: github.com/Raku/doc/issues/2632 [Hacktoberfest][RFE][big][docs][good first issue][help wanted][new][⚠ Top Priority ⚠] Checklist for 6.d | ||
linkable6 | DOC#3222 [closed]: github.com/Raku/doc/issues/3222 [RFE][docs] Improve the example for mixed-level classify-list | ||
doc: dd879a14af | (JJ Merelo)++ | doc/Type/Hash.pod6 Illustrates error of mixed-level classify-list refs to #2632 |
|||
09:33
sena_kun left
09:36
[Sno] joined
09:42
sena_kun joined
09:46
Actualeyes joined
09:57
cognomin_ joined
10:00
cognominal left
10:01
wamba joined
10:12
Actualeyes left,
Actualeyes joined
|
|||
jjatria | m: 'x'.encode('utf32') # I'm confused | 10:22 | |
camelia | Unknown string encoding: 'utf32' in block <unit> at <tmp> line 1 |
||
jjatria | But github.com/rakudo/rakudo/blob/586b...ry.pm6#L18 | ||
sena_kun | m: 'x'.encode('utf-32') | 10:24 | |
camelia | Unknown string encoding: 'utf32' in block <unit> at <tmp> line 1 |
||
MasterDuke | committable6: all 'x'.encode('utf32') | 10:27 | |
committable6 | MasterDuke, gist.github.com/1c8c7c747aa287fc8c...15a099ddf7 | ||
10:28
pecastro joined
|
|||
MasterDuke | so that never worked | 10:28 | |
jjatria | The plot thickens | 10:29 | |
rindolf | Hi all! Where can I find the sources of the rakubrew.org/ site? | 10:30 | |
xkr47 | rindolf, you like the visuals? | 10:39 | |
LetMeGithubThatForYou github.com/search?q=rakubrew | 10:40 | ||
rindolf | xkr47: they are ok, but some links are broken | ||
huf | that logo looks pretty garbled, maybe try not using webfonts exclusively? | 10:41 | |
10:45
zakharyas left
10:48
zakharyas joined
|
|||
rindolf | xkr47: thanks! github.com/Raku/rakubrew.org/pull/3 | 10:51 | |
xkr47 | rindolf, thanks to you! :) | ||
rindolf | xkr47: you're welcome | 10:53 | |
Altreus | What's idiomatic for "slice of hash with defined keys"? | 10:56 | |
Had to double-check where I was because I don't normally see rindolf and huf in here | |||
sena_kun | Altreus, idiomatic what, code? | 10:57 | |
m: my %a = a => 1, b => 2, c => 3; %a<a b>.say | |||
camelia | (1 2) | ||
xkr47 | m: my %a = a => 1, b => 2, c => 3; %a<a d>.say | 10:58 | |
camelia | (1 (Any)) | ||
Altreus | uh | 10:59 | |
10:59
WilhelmVonWeiner joined
|
|||
WilhelmVonWeiner | hello | 10:59 | |
Altreus | I guess those words don't mean the same in raku | ||
I meant the subset of the hash | |||
huf | Altreus: i had an opportunity to bash webfonts and i felt i had to take it | ||
Altreus | bash doesn't use webfonts | 11:00 | |
huf | your father smelt of elderberries | ||
WilhelmVonWeiner | i'm learning raku and was wondering if there's a better way to sort a comma-separated list of strings over `split(', ').sort.join(', ')` | ||
Altreus | That seems like a pretty good way | ||
You could use a variable for the string to avoid repeating yourself | 11:01 | ||
WilhelmVonWeiner | well this is in a pipe | ||
Altreus | ceci n'est pas une pipe | ||
WilhelmVonWeiner | to use as a oneliner | ||
Altreus | o | ||
WilhelmVonWeiner | since with shell you pipe it through like four programs | ||
MasterDuke | m: my %a = a => 1, b => 2, c => 3; %a<a d>.grep(*.defined).say | 11:02 | |
camelia | (1) | ||
Altreus | MasterDuke: that's the values but not a subset of the hash :) | 11:06 | |
oh! You can get a list of pairs | 11:07 | ||
11:07
Redfoxmoon left
11:08
Redfoxmoon joined
|
|||
Altreus | it's %a.grep( *.value.defined ) | 11:09 | |
WilhelmVonWeiner | "get.split(', ').sort.join(', ').say" | 11:10 | |
is anything about that immoral | |||
11:13
skyl4rk left
11:17
samebchase- joined
11:18
skyl4rk joined
|
|||
Altreus | not really no | 11:26 | |
you might end up with an extra newline depending on how get handles it | |||
11:27
Guest4508 left
11:31
jmerelo left
|
|||
MasterDuke | jjatria: that error is actually coming from moarvm, which looks like it doesn't support utf32 github.com/MoarVM/MoarVM/blob/mast...2781-L2794 | 11:32 | |
11:32
Altai-man_ joined
|
|||
MasterDuke | maybe other backends do, or maybe it should be removed from that list in rakudo | 11:32 | |
yeah, jvm backend supports it | 11:33 | ||
11:34
sena_kun left
11:36
reach_satori left
11:41
wamba left
11:50
Altai-man_ is now known as sena_kun
11:52
wamba joined
|
|||
jjatria | MasterDuke: Oh... interesting... | 12:00 | |
Thanks for chasing that up! | 12:01 | ||
Now I need to find a workaround... 🤔 | |||
12:04
WilhelmVonWeiner left
12:05
pecastro left
12:08
titsuki joined
12:09
Guest1277 joined
12:14
zakharyas left
12:55
sarna left,
natrys joined
12:57
sarna joined
12:59
patrickb joined
13:00
lucasb joined
13:03
wamba left
13:07
wamba joined
|
|||
patrickb | xkr47, rindolf: Did you know that the rakubrew website can be viewed in a console without a browser? (... talking about absolutely useless, but fun features ...) | 13:14 | |
13:14
pecastro joined
|
|||
xkr47 | does it use ncurses? :) | 13:21 | |
patrickb | xkr47: try curl or wget | 13:22 | |
xkr47 | heh | ||
rindolf | patrickb: what? | 13:24 | |
jjatria | I think this works as an alternative to `.encode('utf32')` | 13:25 | |
[Coke] | lynx | ||
jjatria | m: Blob.new: |"string!".comb.map: { |.encode('utf16le'), 0, 0 } | ||
camelia | ( no output ) | ||
jjatria | m: say Blob.new: |"string!".comb.map: { |.encode('utf16le'), 0, 0 } | 13:26 | |
camelia | Blob:0x<73 00 00 00 74 00 00 00 72 00 00 00 69 00 00 00 6E 00 00 00 67 00 00 00 21 00 00 00> | ||
rypervenche | Altreus: I may be one of the only ones who got that pipe joke. >< | 13:28 | |
.tell jnthn There's a typo on commaide.com, "whitespce" | |||
patrickb | Coke, rindolf, xkr47: no lynx or anything, just curl or wget the website. | ||
xkr47 | telnet localhost 80 | 13:29 | |
GET / HTTP/1.1 | |||
Host: localhost | |||
Connection: close | |||
13:30 | |||
rypervenche | curl rakubrew.org "Found" | ||
discord6 | <Highlander> Haha same here--I just get "Found" | ||
xkr47 | curl rakubrew.org | 13:32 | |
13:32
Altai-man_ joined
|
|||
xkr47 | < content-type: text/plain; charset=utf-8 | 13:32 | |
discord6 | <Highlander> Oh wow, mighty impressive | ||
xkr47 | but it contains vt102/ansi codes, is it still text/plain? :) | 13:33 | |
but I gotta say it looks nice | |||
patrickb | xkr47: That's a difficult question. Not sure there exists a content-type for this... | ||
13:33
foo222 joined
|
|||
rypervenche | I do like the Markdown look. | 13:34 | |
discord6 | <Highlander> That's slick | ||
13:34
sena_kun left
|
|||
Altreus | rypervenche: jokes are best when they exclude most people! | 13:37 | |
rypervenche | :D En effet | ||
Altreus | I was also using it to refer to the fact the code was pasted out of context! | 13:39 | |
tyil | rypervenche: use `curl -L`, the http version wants to redirect to the https version | 13:43 | |
rypervenche | Yeah, I saw that afterward :) | ||
tyil | (that in turn will present you an error because TLS is not configured correctly) | ||
13:43
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
xkr47 | rypervenche, but is it markdown though? | 13:43 | |
tyil | which seems to be a traefik thing, which could imply a kubernetes setup | ||
rypervenche | xkr47: No idea. I was waiting for someone to correct me. | ||
xkr47 | rypervenche, but will someone correct you though? :) | 13:44 | |
rypervenche | Oof, heavy Monday. | ||
xkr47 | sorry | ||
13:44
hungrydonkey left
|
|||
rypervenche | :P | 13:44 | |
13:45
hungrydonkey joined
|
|||
Altreus | just another manic monday | 13:47 | |
tyil | reading all this makes me feel better about having my last couple days of vacation | 13:49 | |
14:30
foo222 left
|
|||
patrickb | xkr47: I haven't run it though a validator, but I intended to write vanilla markdown. | 14:36 | |
Except for the logo of course | 14:37 | ||
14:39
Actualeyes left
14:40
Actualeyes joined
14:43
wamba left
14:46
astronavt joined
14:50
NODE left
14:53
NODE joined
14:57
wamba joined
|
|||
rypervenche | How might I do what normal " | 14:58 | |
oops | |||
How might I do what a normal grep would do in Raku? I've got a text file that I'm .lineing through and only want lines with [ "this" | "that" ] to be output and ultimately go into a variable. | 14:59 | ||
Altreus | next unless? | 15:00 | |
sometimes the perl5 way also works! | |||
rypervenche | I wasn't sure if there was a more efficient way to do it using a method or if I should just be doing a regex. | 15:01 | |
[Coke] | .lines.grep(regex) or .lines.contain("this"|"that"). I imagine the former is faster. | 15:02 | |
rypervenche | .contains would only return a boolean though. I'll give the .grep a shot. I didn't realize you could a regex directly in there. | 15:04 | |
Altreus | The problem with using grep ... uh, might not apply actually | 15:05 | |
I was going to say it loads it into memory but raku has lazy evaluation | |||
[Coke] | rypervenche: ah, right: .lines.map(*.contains("this"|"that")) | 15:19 | |
rypervenche | Ooooh | 15:20 | |
[Coke] | er. | 15:21 | |
that is also wrong! | |||
.lines.grep(*.contains("this"|"that")) ... that one, I think. but I'd guess it's slower than regex. | |||
15:21
sena_kun joined
15:23
Altai-man_ left
|
|||
[Coke] | contains is over 2x as slow | 15:24 | |
MasterDuke | contains should be faster that regexes in general, but probably the juction is slowing things down | 15:25 | |
[Coke] | ... with the junction. contains with a single string is much faster. | ||
MasterDuke++ # exactly | 15:26 | ||
MasterDuke | jinx | ||
[Coke] | I got there eventually. :) | ||
rypervenche | Good to know. | 15:27 | |
15:28
aborazmeh left
15:32
Altai-man_ joined
15:34
sena_kun left
15:36
abraxxa left,
abraxxa joined
15:37
Xliff joined
|
|||
Xliff | \o | 15:37 | |
Anyone here use comma? | |||
s/comma/Comma/ | |||
lizmat | jnthn sena_kun I think :-) | 15:38 | |
jnthn | I probably use it more days than not :) | ||
Xliff | :) | ||
jnthn: Is there a project creation guide? | 15:39 | ||
jnthn | Like commaide.com/docs/creating-project ? | ||
Xliff | Hmmm... | 15:40 | |
I went through and did a mass delete of backup files and now Comma has hung. | 15:41 | ||
Oh. LOL! I had it suspended. | |||
jnthn: Will the "Raku paraneters" box accept environment vars? | 15:43 | ||
Altai-man_ | Xliff, there is a separate field for envvars | 15:44 | |
Xliff | Altai-man_: That's not what I'm asking. | 15:45 | |
Will the "Raky parameters" box allow environment vars? | |||
Altai-man_ | Xliff, nope. Raku parameters is what is passed after call to `perl6 ... script-name.foo`. | 15:46 | |
so e.g. -Ilib will be ok there, but `perl6 FOO=BAR script.p6` isn't going to work, I think | |||
jnthn | No, it doesn't go via a shell | ||
rypervenche | jnthn: Did you see my comment on the typo on commaide.com? I wasn't sure where to put in an issue. | 15:51 | |
15:59
wamba left
|
|||
Geth | ecosystem: 668818b4e5 | thundergnat++ (committed using GitHub Web editor) | META.list Add Text::Center to the ecosystem See github.com/thundergnat/Text-Center Simple but useful. |
16:01 | |
[Coke] | thundergnat: looks like you committed .precomp files in the git repo. Intentional? | 16:04 | |
jnthn | rypervenche: No, missed that; there is an issue tracker on the site, if logged in, or you can email. | ||
thundergnat | [Coke] Sigh. no. I'll fix that. thanks. | 16:05 | |
rypervenche | jnthn: All right, I'll email it then. | ||
16:05
wamba joined
|
|||
[Coke] | thundergnat++ | 16:05 | |
16:14
domidumont left
16:32
molaf joined,
molaf left
16:48
hungrydonkey left
16:50
Redfoxmoon left,
Redfoxmoon joined
16:54
hungrydonkey joined
16:58
xelxebar_ joined
16:59
xelxebar left
17:10
pecastro left
17:15
patrickb left
17:17
pyrimidine left
17:26
stoned75 joined
17:27
dakkar left
17:28
patrickb joined
17:30
domidumont joined,
domidumont left
17:33
sena_kun joined
17:35
Altai-man_ left
17:40
wamba left
17:42
thundergnat left
17:47
[Sno] left,
pyrimidine joined
17:49
melezhik joined
17:53
wamba joined
|
|||
lizmat | and yet another Rakudo Weekly News hits the Net: wordpress.com/block-editor/post/ra...y.blog/563 | 17:55 | |
oops | |||
let's ty that again: | |||
and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2020/02/17/2020-...eblessing/ | |||
Altreus | do we have a raku blog platform yet? :P | 17:56 | |
grant proposal? | |||
^_^ | |||
El_Che | short one | 17:57 | |
[Coke] | There is Rapi::Blog written in p5 that we could use as an app. (if your goal is to have one for content, rather than a platform to "sell") | 17:58 | |
That's what's powering news.perlfoundation.org | |||
El_Che | (oh, I have a rapi application at work: rapi, short for RADIUS API :) ) | 17:59 | |
sena_kun | .oO ( have to write Raphi::Blog ) | ||
El_Che | lol | 18:00 | |
Altreus | hmm I feel like $! should not be Nil if Nil has that behaviour | 18:01 | |
I was just asking because lizmat might have let the word wordpress cross my field of view | |||
18:01
molaf joined
|
|||
Altreus | And I thought, new generation, new tools | 18:01 | |
18:02
hungrydonkey left,
chloekek joined
18:04
DarthGandalf left
18:06
uzl[m] left,
CIAvash left,
pmf[m] left,
unclechu left,
tadzik[m]1 left,
AlexDaniel` left
18:07
wamba left,
wamba joined,
jmerelo joined,
rba[m] left,
EuAndreh[m] left,
BlackChaosNL[m] left,
matiaslina left
18:08
awwaiid left,
DarthGandalf joined,
mojca left
18:09
xelxebar_ left
18:10
mojca joined,
xelxebar joined
18:11
wamba left
18:17
titsuki left
18:18
DarthGandalf left,
DarthGandalf joined
18:19
[Sno] joined
|
|||
jmerelo | A new Raku module template, with the bare minimum to start a module: github.com/JJ/raku-module-template | 18:19 | |
18:19
awwaiid joined
|
|||
Altreus | a dist | 18:20 | |
"module" is overloaded :D | |||
sena_kun | .weekly A new Raku dist template, with the bare minimum to start a module: github.com/JJ/raku-module-template | ||
18:20
wamba joined
|
|||
jmerelo | Altreus: so right | 18:20 | |
18:21
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
sena_kun | weekly: A new Raku dist template, with the bare minimum to start a module: github.com/JJ/raku-module-template | 18:21 | |
notable6 | sena_kun, Noted! (weekly) | ||
jmerelo | Just renamed to dist-template :-) github.com/JJ/raku-dist-template | ||
Altreus | :D | ||
Altreus is a helper | |||
jmerelo | Altreus++ | 18:22 | |
Altreus | thank you | ||
Low-hanging fruit in raku still - it's like exploring a new land | |||
jmerelo | Altreus: lots of stuff that are not there | ||
BTW, I just noticed that GitHub merged the .gitignore for perl6 that was submitted like 2 years ago | 18:23 | ||
Just in time for the change of name | |||
Altreus | punctual as ever | ||
jmerelo | As a matter of fact, 4 years old github.com/github/gitignore/blob/m....gitignore | ||
18:24
CIAvash joined
|
|||
Altreus | a valuable 2 lines | 18:24 | |
wow, 2016 | |||
jmerelo | Merged in 2018 | ||
And only recently deployed | |||
(or at least it's the first time I've noticed) | |||
18:25
kensanata left
18:26
tadzik[m]1 joined
|
|||
Grinnz | in perl land, we *still* get distribution vs module wrong :D | 18:27 | |
Geth | doc/supply-first: e94d112bc9 | (Stoned Elipot)++ | doc/Type/Supply.pod6 rephrase Supply.first description |
18:28 | |
Grinnz | perldoc.pl/ExtUtils::Installed is a mess for instance | 18:29 | |
its operations are almost all on distributions, but it talks about modules | |||
(packlist is a distribution specific file) | |||
metacpan.org/pod/Module::Starter is, of course, a distribution starter ;) | 18:30 | ||
Kaiepi | package is another overloaded term | 18:31 | |
18:31
uzl[m] joined
|
|||
Kaiepi | packages are packages, but lots of other types are also packages, just not package packages | 18:32 | |
Grinnz | "package" vs "module" vs "file", also fun in perl | 18:33 | |
don't know how much of that is still around in raku | |||
18:36
pecastro joined
18:37
pmf[m] joined
18:41
matiaslina joined
18:42
NODE left,
BlackChaosNL[m] joined
18:43
NODE joined
|
|||
Altreus | At least perl only has one keyword though: package | 18:44 | |
in this realm there's class, module, package at least | |||
Altreus & | 18:45 | ||
18:46
AlexDaniel` joined,
rba[m] joined
|
|||
Geth | doc: ffccbfdbfb | (Stoned Elipot)++ | doc/Type/Supply.pod6 Add Supply.first |
18:48 | |
doc: e94d112bc9 | (Stoned Elipot)++ | doc/Type/Supply.pod6 rephrase Supply.first description |
|||
linkable6 | Link: docs.raku.org/type/Supply | ||
doc: 7b1585e5ba | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Supply.pod6 Merge pull request #3221 from Raku/supply-first Add Supply.first |
|||
18:57
lumin joined
18:58
lumin left
19:00
lumin joined
19:02
kst joined
19:05
sauvin left
19:28
|Sno| joined
19:31
[Sno] left,
melezhik left
19:32
Altai-man_ joined,
wamba left
19:33
wamba joined
19:35
sena_kun left
19:40
eiro left
19:46
AlexDaniel` left,
rba[m] left,
awwaiid left
19:47
pmf[m] left,
CIAvash left,
uzl[m] left,
matiaslina left,
tadzik[m]1 left,
BlackChaosNL[m] left
19:50
jmerelo left,
wamba left
19:51
wamba joined
19:56
lumin left,
lumin joined
20:01
Doc_Holliwood joined
|
|||
Doc_Holliwood | I measure 2/3 of a millisecond speedup per "say" when using the "unprint" module | 20:05 | |
. that's more than I expected | |||
@lizmat | |||
lizmat | yeah, there's a lot of overhead involved in dynamic variable lookup | 20:06 | |
20:07
aborazmeh left
20:16
cognominal joined
20:19
AlexDaniel` joined,
cognomin_ left
20:32
wamba left
20:36
sarna left
20:37
Black_Ribbon joined
20:38
patrickb left
|
|||
Geth | doc: Kaiepi++ created pull request #3224: Document how `when` can be used in `for` loops |
20:41 | |
20:43
patrickb joined
20:44
sarna joined
20:46
wamba joined
20:47
EuAndreh[m] joined,
CIAvash joined,
matiaslina joined,
unclechu joined,
BlackChaosNL[m] joined,
awwaiid joined,
rba[m] joined,
pmf[m] joined,
uzl[m] joined,
tadzik[m]1 joined
20:51
wamba left
20:57
kensanata joined
21:15
census joined
|
|||
census | Hi! It's been a few years since I've posted here | 21:15 | |
cpan-raku | New module released to CPAN! Text::VimColour (0.5.0) by 03KBUCHELI | 21:16 | |
New module released to CPAN! unprint (0.0.3) by 03ELIZABETH | |||
New module released to CPAN! Math::Libgsl::Sort (0.0.2) by 03FRITH | |||
New module released to CPAN! Math::Libgsl::Elementary (0.0.2) by 03FRITH | |||
New module released to CPAN! Math::Libgsl::Polynomial (0.0.1) by 03FRITH | |||
21:16
cpan-raku left
|
|||
census | Does perl6 have the ability to process the text of a .pdf? | 21:16 | |
21:16
cpan-raku joined,
cpan-raku left,
cpan-raku joined
|
|||
nine | census: there seem to be several PDF reading modules these days: modules.raku.org/search/?q=pdf | 21:19 | |
patrickb | lizmat++ (weekly) | 21:30 | |
21:30
census left
|
|||
patrickb | nine, lizmat: What's the clash of work of nine and me in the weekly referring to? (Just wondering...) | 21:31 | |
21:33
sena_kun joined
21:34
Altai-man_ left
21:40
census joined
21:42
census left,
pasodoble joined
|
|||
rypervenche | I'm trying to create an array of hashes in my grammar. I found that when I "say @data" inside of the loop, instead of adding a hash to the array each time, it's adding a hash, but all of the hashes are identical. I'm guessing it has to do with how $_ works. How might I get it to keep the values after each loop through? (I tried adding a variable to the loop with ->, same result) | 21:53 | |
Might help to add the link: gist.github.com/rypervenche/0bd38e...577ca86835 | 21:54 | ||
21:55
reach_satori joined
|
|||
[Coke] | rypervenche: move the my into the loop. | 21:57 | |
you've got a single call info, and you're adding it each time around, presumably changing it to the last value of the loop. | 21:58 | ||
21:58
reach_satori_ joined
|
|||
rypervenche | Oh...I thought that might be costly or something since it would be doing it many times. | 21:58 | |
[Coke] | costly or not, it'll force a separate instance each time through. You could also push a copy of it into the array, but that's probably about the same cost. | 21:59 | |
rypervenche | Gotcha. Out of curiosity, what would pushing a copy of it look like? | 22:00 | |
22:01
reach_satori left
22:02
alcy0n joined
22:05
Kaiepi left,
wamba joined,
Kaiepi joined
22:10
reach_satori_ left
22:11
reach_satori joined
|
|||
[Coke] | m: my %a=<hi there fellow kids>; say %a.copy | 22:11 | |
camelia | No such method 'copy' for invocant of type 'Hash'. Did you mean any of these? chop comb conj cos in block <unit> at <tmp> line 1 |
||
[Coke] | m: my %a=<hi there fellow kids>; say %a.clone | 22:12 | |
camelia | {fellow => kids, hi => there} | ||
[Coke] | wrong verb! you could .clone the hash in the push call. | ||
22:13
pasodoble left
|
|||
[Coke] | @data.push: %call-info.clone; | 22:13 | |
[Coke] wonders how many languages worth of method calls are in his head. | |||
22:14
alcy0n left
22:16
natrys left
22:18
patrickb left
22:27
reach_satori_ joined
22:30
reach_satori left
22:46
kensanata left
22:51
chloekek left
23:17
rindolf left
23:26
Doc_Holliwood left
23:32
Altai-man_ joined
23:35
sena_kun left
23:40
pecastro left
23:46
aborazmeh joined,
aborazmeh left,
aborazmeh joined
23:55
libertas left
|