🦋 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:03
Altai-man_ joined
00:05
cognomin_ joined
00:06
sena_kun left
00:09
cognominal left
00:43
lucasb left
|
|||
uzl[m] | weekly: lobste.rs/s/njsigf/advent_code_2019#c_oztrjk | 00:46 | |
notable6 | uzl[m], Noted! (weekly) | ||
00:58
Altai-man_ left
01:11
moon-child left
01:16
moon-child joined
01:18
cpan-raku left
01:29
cpan-raku joined,
cpan-raku left,
cpan-raku joined
02:08
wildtrees left
02:17
cognominal joined
02:20
cognomin_ left
02:24
xinming_ left
02:27
xinming_ joined
03:03
Manifest0 left
03:05
Manifest0 joined
03:08
cognomin_ joined
03:12
cognominal left
03:42
colomon joined
04:37
colomon left
05:07
RobRaku joined
05:54
sergot joined
05:56
rindolf joined
05:57
surrealpie joined
06:06
jmerelo joined
|
|||
jmerelo | Is it OK if I move the advent calendar (perl6/advent) to the new Raku organization? | 06:13 | |
.tell tbrowder I'm going to move the perl6/advent to Raku/advent if you don't mind. | 06:14 | ||
tellable6 | jmerelo, I'll pass your message to tbrowder | ||
sarna | good morning all o/ | ||
jmerelo | hi! | ||
06:17
cpan-raku left
|
|||
sarna | when is a new version of rakudo-star dropping? the last one was released in march | 06:23 | |
jmerelo | sarna: it's in the making. | ||
sarna | any rough estimates? :) rough as in "maybe this year" or "definitely next year" | 06:24 | |
jmerelo | tyil is working on it github.com/rakudo/star/pull/144 | ||
well, tyil mentions it should get going before the end of the year | |||
sarna | oh I see | ||
nice! | |||
06:26
cpan-raku joined,
cpan-raku left,
cpan-raku joined
|
|||
sarna | I told the redmonk programming language rankings person about our rename thing :) | 06:52 | |
06:55
wamba joined
|
|||
jmerelo | In this tutorial in Spanish they recommend Raku to run Perl: eead-csic-compbio.github.io/perl_b...ode86.html | 07:04 | |
sarna: thanks! | |||
sarna: problem is, with the rename and everything, results are going to be split | |||
07:09
reportable6 left
07:11
reportable6 joined
|
|||
sarna | jmerelo: yeah, I told them not everything is ready yet | 07:20 | |
the ranking comes out in june and january | |||
can I provide defaults for optional parameters? | 07:27 | ||
07:32
jmerelo left
|
|||
tobs | m: sub f ($x? = 10) { $x }; say f; say f 20 | 07:37 | |
camelia | 10 20 |
||
sarna | ha, neat :D thanks | 07:38 | |
tobs | sarna: ^ I think providing a default makes the parameter optional as well, so the "?" is not necessary. | ||
sarna | tobs: will it be `defined` in the function body? | ||
tobs | if you give it a defined value, yes; if it assumes the default value and that is defined, also yes :) | 07:39 | |
sarna | m: sub f ($x = 10) { say 'yes' if defined $x }; f() | 07:40 | |
camelia | yes | ||
sarna | okay, thanks :) | ||
07:41
kensanata joined
07:46
abraxxa left,
abraxxa joined
08:15
wamba left
08:24
chloekek joined
08:33
xinming joined
08:36
xinming_ left
|
|||
El_Che | morning | 08:39 | |
sarna | hello | ||
I have some problems with running a shell command | |||
I want to run `awk '/MemTotal/ {print $2}' /proc/meminfo`, but raku tells me `/bin/sh: print: command not found ` | 08:40 | ||
El_Che | quotes? | 08:41 | |
sarna | I run it like `shell qx{awk '/MemTotal/ {print $2}' /proc/meminfo}, :out` | ||
oh, qx already runs the command? I misread the docs | 08:42 | ||
08:50
wamba joined
08:52
Guest91 joined
|
|||
Guest91 | my $f='hi/there/yo'; how do I select only 'yo'? i tried $f ~~ m/ \/ (.*?) $$/; but this selects there/yo. WHY? | 08:52 | |
why isnt .*? being non-greedy? | 08:53 | ||
El_Che | $f ~~ m/ .+ \/ (.+) $$/; | 08:54 | |
Guest91 | thank you;_; | 08:58 | |
i was traumatised | |||
09:03
wamba left
|
|||
tobs | Guest91: it was non-greedy, but because you wanted to match end-of-line $$ after it, so the capture group got extended to satisfy that. | 09:04 | |
m: say 'hi/there/yo'.split('/')[*-1] # alternative without regexes: split by '/' and give me the last portion | 09:06 | ||
camelia | yo | ||
Guest91 | neat, thank you | 09:09 | |
09:11
patrickb joined
09:12
RobRaku left
09:14
Guest91 left
09:20
scimon joined,
RobRaku joined
09:32
robertle joined
|
|||
El_Che | Geth: tobs solution is orders of magnitude better if it fits your use case | 09:44 | |
oops | |||
Already left | |||
maybe I need to removed the /ignore for channels leavings and quits :) | |||
SmokeMachine | m: say "hi/there/yo".comb(/\w+/).tail | ||
camelia | yo | ||
El_Che | SmokeMachine: now you're showing off :) | 09:45 | |
SmokeMachine | :) | ||
sarna really likes comb | |||
El_Che | I like tobs solution better because it's familiar in other languages | ||
sarna | baby raku? :^) | 09:46 | |
El_Che | acknowledging the width and complexity of raku, I'll say baby raku is pretty close to the language of a linguistic scholar :) | 09:47 | |
SmokeMachine | m: my $a = "hi/there/yo"; say $a.substr: $a.rindex("/") + 1 # even more common in other languages... | ||
camelia | yo | ||
sarna | El_Che: only Damian Conway is fluent in regular raku | 09:50 | |
09:50
RobRaku left
|
|||
tobs | ah, .tail would've been neater indeed | 09:50 | |
El_Che | sarna: if he dies, the last native speaker will be gone for ever :) | 09:51 | |
sarna | is raku critically endangered then :'( | 09:55 | |
El_Che | no, it will end like a language like english :) | 09:56 | |
compare the complexity of Latin and English :) | |||
sarna thinks | 09:58 | ||
maybe it's more like arabic, Damian speaks MSA and we're all speaking simpler dialects | |||
El_Che | good point | ||
excellent point, actually | 09:59 | ||
sarna | :^) | 10:01 | |
10:12
daxim left
10:16
sena_kun joined
10:18
daxim joined
|
|||
SmokeMachine | is there a way to use the subs declared inside of the RUN-MAIN sub outside of it? I’m thinking of writing an auto-completion module… I think that subs could help... | 10:36 | |
10:38
chloekek left
10:47
abraxxa left,
abraxxa joined
|
|||
tbrowder | jmerelo: hi, move is good! | 10:48 | |
tellable6 | tbrowder, I'll pass your message to jmerelo | ||
10:54
RobRaku joined
10:55
chloekek joined
|
|||
sarna | wow, the bot detects when somebody offline was pinged? | 10:59 | |
that's some next-level stuff | 11:00 | ||
tbrowder | hi all | 11:14 | |
tellable6 | 2019-11-28T06:14:17Z #raku <jmerelo> tbrowder I'm going to move the perl6/advent to Raku/advent if you don't mind. | ||
tbrowder | anyone here an experienced wordpress user! | 11:15 | |
? | |||
.tell jmerelo moving advent to raku is a good thing | 11:17 | ||
tellable6 | tbrowder, I'll pass your message to jmerelo | ||
11:19
jmerelo joined
11:37
finanalyst joined
11:39
colomon joined
11:54
MasterDuke joined
11:57
finanalyst left
11:59
wamba joined
12:04
Altai-man_ joined
12:07
sena_kun left
12:14
maettu left,
wamba left
12:16
maettu joined
|
|||
abraxxa | i have a list containnig hashes which have a key which value is an array containing hashes and I like a like of all those inner hashes. | 12:20 | |
my @services = $result.map({ .<service> }).Slip; doesn't work, neither does .flat | |||
ah! my @services = $result.map({ .<service>.Slip }); | 12:21 | ||
jmerelo | abraxxa: maybe post the code in Stackoverflow? Or a gist? I don't really follow you... | ||
tellable6 | 2019-11-28T10:48:10Z #raku <tbrowder> jmerelo: hi, move is good! | ||
2019-11-28T11:17:06Z #raku <tbrowder> jmerelo moving advent to raku is a good thing | |||
tbrowder | g'day jj | ||
jmerelo | hey, tbrowder | 12:22 | |
tbrowder: moving should be painless except for assignments, I guess | |||
tbrowder: but I don't think we have any of those. | |||
12:22
maettu left
|
|||
tbrowder | you've been very busy, the move is not fun i know | 12:23 | |
jmerelo | tbrowder: class period now, until mid-February | ||
Also reports, conference deadlines... | |||
But that's fast, it's basically clicking as long as you've got the privs in both repos | 12:24 | ||
If you want, I can do it now | |||
12:24
maettu joined
12:25
joule joined
12:30
wamba joined
12:46
abraxxa left,
abraxxa joined
12:49
lucasb joined
13:03
normanrockwell joined
13:14
tyil[m] left
13:15
MitarashiDango[m left,
matiaslina left,
timotimo[m] left,
Demos[m] left,
AlexDaniel` left,
uzl[m] left,
CIAvash left,
aearnus[m] left,
abraxxa left,
rba[m] left,
abraxxa joined
13:20
finanalyst joined
|
|||
abraxxa | can I assign the output of a split to two scalars? | 13:25 | |
in Perl 5 I would write my ($protocol, $port) = split('/', 'tcp/1234', 2); | |||
jmerelo | abraxxa: try that | ||
abraxxa | but split returns a Seq and I haven't found an example how to assign that to a list of scalars | 13:26 | |
jmerelo | m: my $þ = "a,b"; my ($a, $b) = $þ.split(","); say "$a,$b" | ||
camelia | a,b | ||
Altai-man_ | m: my ($a, $b) = 'he,he'.split(','); say $a; | ||
camelia | he | ||
Altai-man_ | m: my ($a, $b) = 'he,he'.split(','); say $a; say $b; | ||
camelia | he he |
||
jmerelo | abraxxa: ^^^ just use destructuring | ||
abraxxa | destruction? | 13:27 | |
Altai-man_ | structuring, destructuring | ||
like when you do this cool trick | 13:28 | ||
m: (-> (:$foo, :$bar) { say $foo + $bar })({ :42foo, :50bar }) | |||
camelia | 92 | ||
Altai-man_ | `my ($foo, $bar)` is very similar to a signature... and in fact it kind of is. so just as you can split some call input into parameters of a block, so you can do with a multi-variable declaration | 13:29 | |
and the "smart name" for this "split" is "destructuring" | |||
abraxxa | like in Perl 5 would have been sufficient, thanks | 13:35 | |
I'd need a trick if something is either a scalar or an array so I can loop both but for the scalar only a single time | |||
lizmat | m: my ($a,@b) = "a,b,c,d,e,f".split(','); dd $a, @b | 13:37 | |
camelia | Str $a = "a" Array @b = ["b", "c", "d", "e", "f"] |
||
Altai-man_ | abraxxa, also keep in mind that if your signature is `my (@foo, $bar)` then $bar will never be assigned. | ||
13:40
mid_laptop joined
|
|||
abraxxa | why does that return true although the key doesn't exist in the hash? if %Firehol-service<dst-port> { | 13:42 | |
ah it does work | 13:46 | ||
what does assigning an array to an array create an array with a single element that is an array? | 13:57 | ||
my @services = %Firehol-service<dst-port> ~~ Str | |||
?? (%Firehol-service<dst-port>,) | |||
!! %Firehol-service<dst-port>; | |||
one way to solve it is using .list on the array | |||
another := instead of = | |||
Altai-man_ | because containers | 13:58 | |
perl6advent.wordpress.com/2017/12/...ontainers/ | 13:59 | ||
13:59
abraxxa left
|
|||
Altai-man_ | the := solution is easier and more neat, imho | 13:59 | |
13:59
abraxxa joined
14:05
sena_kun joined
14:06
Altai-man_ left
|
|||
AlexDaniel | sarna: yeah, these bots tend to autodetect stuff :) | 14:18 | |
sarna: have you seen this | |||
say 42 | |||
evalable6 | 42 | ||
14:18
finanalyst left
14:19
RobRaku left
|
|||
sarna | AlexDaniel: whoa | 14:20 | |
AlexDaniel | sarna: here's another one | ||
bsiectable6: help | 14:21 | ||
bisectable6 | AlexDaniel, Like this: bisectable6: old=2015.12 new=HEAD exit 1 if (^∞).grep({ last })[5] // 0 == 4 # See wiki for more examples: github.com/perl6/whateverable/wiki/Bisectable | ||
14:21
abraxxa left
|
|||
AlexDaniel | notice how I mispelled the nickname | 14:21 | |
sarna | had to turn off my pc, my bouncer missed the message :^( | ||
AlexDaniel | colabti.org/irclogger/irclogger_lo...11-28#l230 | 14:22 | |
sarna | ooo that’s extraordinary | 14:23 | |
14:23
abraxxa joined
|
|||
AlexDaniel | .seen Altaiman | 14:23 | |
tellable6 | AlexDaniel, I saw Altaiman 2019-11-28T13:59:22Z in #raku: <Altai-man_> the := solution is easier and more neat, imho | ||
AlexDaniel | notice how it doesn't match completely, but it still kinda knows who are you talking about :) | ||
and if you change it even more | |||
.seen Altiman | 14:24 | ||
tellable6 | AlexDaniel, I haven't seen Altiman around, did you mean Altai-man_? | ||
sarna | .seen AxelDaniel | 14:25 | |
tellable6 | sarna, I haven't seen AxelDaniel around, did you mean AlexDaniel? | ||
sarna | hoo boy | ||
:D | |||
14:26
abraxxa left,
jmerelo left,
abraxxa joined,
abraxxa left
14:28
abraxxa joined
14:34
abraxxa left,
chloekek left,
abraxxa joined
14:44
timotimo[m] joined,
MitarashiDango[m joined,
tyil[m] joined,
AlexDaniel` joined,
Demos[m] joined,
rba[m] joined,
aearnus[m] joined,
matiaslina joined,
CIAvash joined,
uzl[m] joined
14:47
colomon left
|
|||
cpan-raku | New module released to CPAN! Gnome::Glib (0.15.3) by 03MARTIMM | 14:50 | |
14:50
rbt joined
14:51
normanro_ joined
14:53
abraxxa left,
abraxxa joined,
chloekek joined
14:55
normanr__ joined,
normanrockwell left
14:59
normanro_ left
15:00
robertle left
15:26
finanalyst joined
15:32
libertas left
15:37
libertas joined
|
|||
patrickb | bisectable: my $list := (my $, my $, my $); $list[0] := 100; | 15:38 | |
bisectable6 | patrickb, On both starting points (old=2015.12 new=9d89591) the exit code is 1 and the output is identical as well | ||
patrickb, Output on both points: «Cannot use bind operator with this left-hand side in block <unit> at /tmp/3sRWQgt1mz line 1» | |||
15:45
normanr__ left
15:57
abraxxa left,
abraxxa joined
16:01
kensanata left
16:04
Altai-man_ joined
16:06
sena_kun left
16:09
aearnus[m] left
|
|||
Kaiepi | using the kind library i released a couple days ago there's a pretty exciting enhancement to types i made that i'll probably release at some point within the next week | 16:09 | |
it makes it possible to write `data Maybe a = Just a | Nothing` from haskell not only without knowing how the MOP works, but also in one line | |||
tbrowder | .tell jmerelo change anytime as long as everyone else is happy... | 16:14 | |
tellable6 | tbrowder, I'll pass your message to jmerelo | ||
16:22
patrickb left
16:38
jmerelo joined
16:42
abraxxa left,
abraxxa joined
16:50
mid_laptop left
16:53
wamba left,
wamba joined
16:56
abraxxa left,
abraxxa joined
17:10
wamba left
17:20
lgtaube left
17:26
scimon left
|
|||
tbrowder | can anyone confirm that a post on wordpress advent that is scheduled can still be edited until the scheduled time for publishing? | 17:29 | |
jmerelo | tbrowder: if you've got the privs, you should be able | ||
tellable6 | 2019-11-28T16:14:38Z #raku <tbrowder> jmerelo change anytime as long as everyone else is happy... | ||
jmerelo | Did you check? | ||
moritz | tbrowder: confirmed | ||
you can even edit after it's been published :D | |||
tbrowder | moritz: thnx | 17:30 | |
El_Che | 15:25 < tellable6> sarna, I haven't seen AxelDaniel around, did you mean AlexDaniel? <-- tellable6 leaks information :) | ||
17:36
lgtaube joined
|
|||
AlexDaniel | El_Che: what do you mean? :) | 17:36 | |
El_Che | that you can compile a list of seen people even if you don't know their exact name | 17:38 | |
fuzz tellable6 :) | |||
17:43
wamba joined
|
|||
Doc_Holliwood | .seen DonaldTrump | 17:52 | |
tellable6 | Doc_Holliwood, I haven't seen DonaldTrump around | ||
Doc_Holliwood | Good! | ||
lizmat | :-) that's not fuzzy at all | ||
tbrowder | Doc_Holliwood: CoC | ||
moritz: can you tell me how wordpress knows my timezone? i can't find a setting anywhere, so i always worry that the publish time setting is wrong | 17:54 | ||
lizmat | tbrowder: perhaps from your IP -> GeoIP -> timezone ? | ||
tbrowder | lizmat: i change time zones fairly often, but haven't noticed a difference on wp | 17:56 | |
moritz | either that, or javascript | ||
javascript tends to know your timezone as well | |||
new Date().getTimezoneOffset() | |||
tbrowder | m: say Date().getTimezoneOffset() | 17:57 | |
camelia | No such method 'getTimezoneOffset' for invocant of type 'Date(Any)' in block <unit> at <tmp> line 1 |
||
tbrowder | m: my $d = Date,new; say $dt.getTimezoneOffset() | 17:58 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Variable '$dt' is not declared at <tmp>:1 ------> 3my $d = Date,new; say 7⏏5$dt.getTimezoneOffset() |
||
tbrowder | m: my $d = Date,new; say $d.getTimezoneOffset() | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: new used at line 1 (in Perl 6 please use method call syntax instead) |
||
tbrowder | m: my $d = Date.new; say $d.getTimezoneOffset() | ||
camelia | Cannot call Date.new with no parameters in block <unit> at <tmp> line 1 |
||
tbrowder | m: my $d = Date.new('now'); say $d.getTimezoneOffset() | ||
camelia | Invalid Date string 'now'; use yyyy-mm-dd instead in block <unit> at <tmp> line 1 |
||
tbrowder | m: my $d = Date.new('2019-11-28'); say $d.getTimezoneOffset() | 17:59 | |
camelia | No such method 'getTimezoneOffset' for invocant of type 'Date' in block <unit> at <tmp> line 1 |
||
tbrowder | m: my $d = DateTime.new('2019-11-28'); say $d.getTimezoneOffset() | ||
camelia | Invalid DateTime string '2019-11-28'; use an ISO 8601 timestamp (yyyy-mm-ddThh:mm:ssZ or yyyy-mm-ddThh:mm:ss+01:00) instead in block <unit> at <tmp> line 1 |
||
tbrowder | m: my $d = DateTime.new('2019-11-28T12:00:00Z'); say $d.getTimezoneOffset() | 18:01 | |
camelia | No such method 'getTimezoneOffset' for invocant of type 'DateTime' in block <unit> at <tmp> line 1 |
||
tbrowder | m: my $d = Date.new('2019-11-28T12:00:00Z'); say $d.getTimezoneOffset() | ||
camelia | Invalid Date string '2019-11-28T12:00:00Z'; use yyyy-mm-dd instead in block <unit> at <tmp> line 1 |
||
18:03
jmerelo left
18:05
sena_kun joined
|
|||
tbrowder | well, i just have to trust wp i guess, but i suspect its using my TZ setting | 18:05 | |
and i assume the raku advent site is set to UTC | 18:06 | ||
18:07
Altai-man_ left
18:25
Guest38485 left
18:32
wamba left
18:33
wamba joined
18:41
Guest38485 joined
|
|||
vrurg | japhb: ping? | 18:44 | |
18:59
captain-adequate joined
19:10
wamba left
19:13
MasterDuke left
|
|||
AlexDaniel | El_Che: I mean, you can parse colabti logs too… | 19:25 | |
El_Che: and if you really really ask tellable6 it'll tell you the whole db too :) | 19:26 | ||
19:26
wamba joined
|
|||
El_Che | AlexDaniel: that's whataboutism you're doing there :) | 19:26 | |
tbrowder | .tell jmerelo my raku advent post is scheduled to publish on time | 19:27 | |
tellable6 | tbrowder, I'll pass your message to jmerelo | ||
19:39
xenowoolfy joined,
xenowoolfy left
20:04
Altai-man_ joined
20:06
sena_kun left
20:16
cpan-raku left
20:17
cpan-raku joined,
cpan-raku left,
cpan-raku joined,
stoned75 joined
20:38
MasterDuke joined
21:06
rindolf left
21:11
joule left
|
|||
El_Che | .seen AlexDaniel | 21:11 | |
tellable6 | El_Che, I saw AlexDaniel 2019-11-28T20:59:05Z in #moarvm: <AlexDaniel> that's not the first time some tiny (but annoying) mistake happened during the release process, just because it's not automated enough | ||
El_Che | .seen Zoffix | ||
tellable6 | El_Che, I saw Zoffix 2019-01-06T17:41:14Z in #perl6: <Zoffix> moritz: the project's direction and management style doesn't match my goals and I'll be happier elsewhere. | ||
El_Che | (I was saw him popping on #perl, so I was curious) | ||
lizmat | El_Che: fwiw, you can privmsg tellable as well | 21:15 | |
El_Che | good to know | ||
<insert a animated gif with "dramaaaaa"> | |||
21:17
maggotbrain left
21:18
maggotbrain joined
|
|||
AlexDaniel | you can?? | 21:21 | |
youh I don't think it works | |||
and that limit should be lifted, actually | 21:22 | ||
21:24
johnjay joined
|
|||
cpan-raku | New module released to CPAN! Gnome::Gtk3 (0.19.4) by 03MARTIMM | 21:39 | |
Geth | problem-solving/CoC: 946e4d14d5 | (Elizabeth Mattijsen)++ | solutions/language/Path-to-Raku.md Revert "s/RAKU_HOME/RAKUDO_HOME/" This reverts commit 0ac3cb71be630f4b353c3e02775fb8d85d009530. |
21:53 | |
problem-solving/CoC: 182828725a | (Elizabeth Mattijsen)++ | solutions/meta/CoC.md Initial version of CoC This is essentially a markdown version of raw.githubusercontent.com/perl6/sp...draft.pod6 with s/Perl 6/Raku/, intended as a starting point to further alterations and additions to make it up-to-date and applicable to today's realities. |
|||
22:04
chloekek left
22:05
sena_kun joined
22:06
Altai-man_ left
22:19
pmurias joined
|
|||
pmurias | hi | 22:19 | |
tellable6 | 2019-11-20T19:12:38Z #raku-dev <MasterDuke> pmurias: graalvm 19.3 now supports java 11. i'll give it a try when my os packages are updated. www.graalvm.org/docs/release-notes/19_3/ | ||
2019-11-20T19:16:28Z #raku-dev <MasterDuke> pmurias: `Added the new execute method to LoopNode, which allows loops to return values.` might be useful | |||
AlexDaniel | lizmat: that revert is not meant to be in that branch | 22:32 | |
lizmat: rebase -i and get rid of the commit, then push -f | |||
22:34
wamba left
|
|||
Geth | problem-solving/CoC: 732854aa1d | (Elizabeth Mattijsen)++ | solutions/language/Path-to-Raku.md Revert "Revert "s/RAKU_HOME/RAKUDO_HOME/"" This reverts commit 946e4d14d568b7e47ea99420b729ce84b13b485d. |
22:34 | |
AlexDaniel | lizmat: can you submit a draft PR so that we can start leaving comments? Or how can I provide feedback? | 22:37 | |
lizmat | ah, ok, will wrap it in a draft PR | ||
Geth | problem-solving: lizmat++ created pull request #136: A CoC for Raku |
22:38 | |
22:39
wamba joined
|
|||
AlexDaniel | hm | 22:43 | |
I don't like the way it starts but then it's really good | |||
I'll leave my comments | 22:44 | ||
22:44
mid_laptop joined
|
|||
sena_kun | it's a first time /me actually sees a cool code of conduct without obvious exploits included | 22:50 | |
lizmat++ | |||
lizmat | sena_kun: I just copied it from the specs! | 22:51 | |
can't take any credit for it | |||
except japhb | |||
and Faye Niemeyer | |||
sena_kun | lizmat, I knew I read some of these phrases already | ||
AlexDaniel | yea I also knew some of the words | 22:53 | |
sena_kun | I can't install LWP::Simple, but the repo clonned passes zef tests at ease... | 22:58 | |
can anyone confirm? | |||
and it is not on CPAN, so the version should be ok... | 22:59 | ||
Failed test 'Found pattern in downloaded file' at t/getstore.t line 38 | |||
it is used with advent script, don't wanna for people to run into this. :S | |||
23:00
jjatria joined
|
|||
AlexDaniel | sena_kun: gist.github.com/AlexDaniel/bd8528c...c630a01e77 | 23:01 | |
sena_kun | AlexDaniel, phew, then it's just me... not much better, but better, thanks. | 23:02 | |
sena_kun does --force | |||
stoned75 | hi all | 23:03 | |
sena_kun | stoned75, hi! | ||
23:06
chloekek joined
|
|||
sena_kun has the first advent post set and fully ready. m/ | 23:09 | ||
stoned75 | there's something I don't understand in 'regexes' doc, if I may ask | 23:10 | |
sena_kun | stoned75, sure, feel wecomed to ask. | ||
stoned75 | great ! :) in docs.raku.org/language/regexes#Sigspace 2nd paragraph I do not understand the mention of ^& | 23:11 | |
sena_kun | stoned75, let me check... | 23:12 | |
hmm, thought it'd be a recent change, but it was there since the beginning of times... | 23:17 | ||
stoned75 | indeed. I checked ;-) | ||
sena_kun | well, technically ^& is indeed a valid regex which means conjunction of beginning of the string with another branch that does nothing | 23:19 | |
ouch, I read it backwards | |||
m: '^&' ~~ / <.ws> / | |||
camelia | ( no output ) | ||
sena_kun | m: say '^&' ~~ / <.ws> / | ||
camelia | 「」 | ||
sena_kun | unicodable6, help | 23:20 | |
unicodable6 | sena_kun, Just type any Unicode character or part of a character name. Alternatively, you can also provide a code snippet. # See wiki for more examples: github.com/perl6/whateverable/wiki/Unicodable | ||
sena_kun | u: ^& | ||
unicodable6 | sena_kun, U+005E CIRCUMFLEX ACCENT [Sk] (^) | ||
sena_kun, U+0026 AMPERSAND [Po] (&) | |||
sena_kun | unidump: ^& | ||
unicodable6 | sena_kun, gist.github.com/5474ad8597ac71bc8c...6e8f91f3db | ||
jnthn | I think it's actually using ^& as an example of two non-alphanumeric chars | 23:21 | |
sena_kun | ok, now I am confused | ||
stoned75 | :-} | ||
jnthn | And saying that since <!ww> matches between them, then <.ws> also matches between them. | ||
sena_kun | jnthn, but why does it match `<.ws>`? | 23:22 | |
jnthn | "will match <.ws> in the middle" | ||
sena_kun | ...but there are no white space characters in the middle... | ||
jnthn | It's not so clearly written, but I think it means that `"^&" ~~ rule { '^' '&' }` is a match | ||
Geth | doc: 7b2f354898 | finanalyst++ | doc/Type/CompUnit/PrecompilationRepository.pod6 PrecompilationRepository document |
23:23 | |
doc: 31e1fc58af | finanalyst++ | doc/Type/CompUnit/PrecompilationRepository.pod6 add =end pod |
|||
doc: 9a15417ae2 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Type/CompUnit/PrecompilationRepository.pod6 Merge pull request #3098 from finanalyst/master PrecompilationRepository document |
|||
jnthn | sena_kun: Becuase the default <.ws> is defined as `<!ww> \s+` or similar | ||
And neither ^ nor & are word chars | |||
sena_kun | jnthn, isn't it wrong? | ||
jnthn | (Where `ww` means "there is a word character either side of me") | ||
Which "it"? :) | 23:24 | ||
sena_kun | it is not \s*, but \s+ | ||
jnthn | Oh, right :) | ||
sena_kun | I'd say this is a bug | ||
jnthn | Yeah, there's a few formulations; `<!ww> | \s+` is the one I was thinking of. | ||
Bug...where? | 23:25 | ||
sena_kun | jnthn, a white space rule matches something that is not a white space as long as it is not a word-like character? | ||
jnthn | As long as there's not a word char both sides of the current position. | ||
Think about operators like `+` and `cmp`. I can write $a+$b, but not $acmp$b | 23:26 | ||
sena_kun | m: say "I&can&do&things&haha& ~~ / 'I' <.ws> 'can' <.ws> / | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1) at <tmp>:1 ------> 3hings&haha& ~~ / 'I' <.ws> 'can' <.ws> /7⏏5<EOL> expecting … |
||
sena_kun | hmm | ||
m: say 'I&can&do&things&haha&' ~~ / 'I' <.ws> 'can' <.ws> / | |||
camelia | Nil | ||
jnthn | The default behavior of <.ws> deals with that. | ||
sena_kun | m: say 'I&can' ~~ / 'I' <.ws> 'can' <.ws> / | ||
camelia | Nil | ||
sena_kun | m: say 'I&can' ~~ / 'I' <.ws> 'can' / | ||
camelia | Nil | ||
sena_kun | hmm | 23:27 | |
jnthn | <.ws> won't match the &; it's just saying that whitespace may be there in any situation, and if it's not then <!ww> better be False | ||
Well, "not match" rather than False | |||
Anyway, all it's trying to say in the doc is that <.ws> will match between ^ and & | 23:28 | ||
Probably it'd be clearer with a table of examples | |||
sena_kun | because `regex ws { <!ww> \s* })`? | ||
jnthn | So it's more obvious what is an example and what is regex syntax :) | ||
sena_kun | oh, actually docs are saying about *, not + | 23:29 | |
jnthn | I think I had it right the first time actually :) | ||
jnthn is a bit tired | |||
23:29
chloekek left
|
|||
stoned75 | sena_kun where does it say *, not + ? | 23:30 | |
sena_kun | stoned75, docs.raku.org/language/grammars#ws <- | ||
stoned75 | thanks | ||
sena_kun | I'm checking the implementation right now, thought it is unlikely there is a thinko, but just maybe... | ||
stoned75 | ah I should Iave checked there! | 23:31 | |
*have | |||
jnthn | I don't think `<ww>` is documented | 23:32 | |
stoned75 | m: 'ab' ~~ /<.ws>/ | 23:33 | |
camelia | ( no output ) | ||
sena_kun | jnthn, docs.raku.org/syntax/%3C|w%3E | ||
not a cigar maybe | |||
m: say 'ab' ~~ /<.ws>/ | |||
camelia | 「」 | ||
stoned75 | that's a match for me :) | 23:34 | |
when the same paragraph I mentioned says it does not match :-} | |||
sena_kun | stoned75, I think the paragraph refers to something like this: | 23:36 | |
m: say so "ab" ~~ m:s/a <.ws> a/; | |||
camelia | False | ||
sena_kun | m: say so "^&" ~~ m:s/'^' <.ws> '&'/ | ||
camelia | True | ||
stoned75 | oh IC | 23:37 | |
sena_kun | m: say so "ab" ~~ m:s/a <.ws> b/; | 23:38 | |
camelia | False | ||
sena_kun | actually it should be `b` at the end, but it doesn't change the result | ||
stoned75 | of course | ||
23:38
rbt left
23:39
rbt joined
|
|||
stoned75 | <ws> is a strange beast. I'll stick to \s :) | 23:39 | |
sena_kun | oooooooh, I am starting to get it | 23:40 | |
><.ws> > makes sure that words are separated | |||
stoned75 | anyway I think I get it now. thanks for your help guys | ||
sena_kun | but ^& is not a, ahem, word | ||
stoned75, thank you for your question! I am updating the docs right now... | 23:41 | ||
stoned75 | great! because I admit I'm not sure how I would try to improve it :-} | ||
sena_kun | stoned75, in terms of "what to do" or "how to write it more clearly"? | 23:42 | |
stoned75 | hum... both :-} | 23:43 | |
sena_kun | stoned75, as for the first one: the docs are on github, github.com/perl6/doc/, so if you have an account, you are set. if you want to report a bug or a mistake or something like this, but not sure what to do with it, you can just open an issue at github.com/Raku/doc/issues and someone will look into it | 23:44 | |
stoned75, when you see a typo or a wrong example or something like this, you can fork the repo, commit your fix, push it to your fork and do a pull request | 23:45 | ||
stoned75 | oh yes thanks. I meant I'm not sure if this paragraph should be left alone or not and if not I'm not sure how to improve it :) | ||
because well AlexDaniel gave me commit access a few weeks ago | 23:46 | ||
sena_kun | stoned75, if you are not sure how to fix, just dropping by here or creating a ticket helps a lot | ||
stoned75 | I'm 'stoned' on github | ||
sure. thanks for your advices ! | 23:48 | ||
sena_kun | stoned75++ | 23:49 | |
Geth | doc: c84c4bb61a | Altai-man++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Clarify how ^& works with regard to <.ws> rule @stoned++ for reporting and @jnthn++ for discussing. |
23:50 | |
AlexDaniel | :) | ||
sena_kun | a-a-and a fix is here! | 23:51 | |
.oO ( the topic for my second blog post isn't ) | |||
stoned75 | great. many thanks ! | ||
jnthn | sena_kun++ | 23:55 | |
Sleep time for me o/ | |||
sena_kun | jnthn, is my understanding correct? | ||
jnthn, oh, have a good sleep! |