»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend! Set by moritz on 22 December 2015. |
|||
00:00
mcmillhj left
00:02
comborico1611_ left,
mcmillhj_ left
00:03
cpup left
00:12
Rawriful left
00:13
kurahaupo_ joined,
kurahaupo left
00:14
kurahaupo_ is now known as kurahaupo,
huf left
00:19
huf joined
00:26
mcmillhj joined
00:29
natrys left
00:31
mcmillhj left
00:32
markong left
00:35
huf left
00:36
huf joined
00:41
mcmillhj joined
00:42
natrys joined
00:45
mcmillhj left
00:48
imcsk8_ joined,
imcsk8 left,
ChoHag left
00:52
mcmillhj joined
00:54
Kaiepi left
00:55
Kaiepi joined
00:56
natrys left
00:58
mcmillhj_ joined
01:03
mcmillhj_ left
01:06
jcallen left
01:10
mcmillhj left
01:11
mcmillhj joined
01:14
Sgeo_ joined
01:15
jcallen joined
01:16
mcmillhj left
01:17
Sgeo left
|
|||
Kaiepi | nodejs to perl6 doc page is really testing my knowledge on the ecmascript spec | 01:22 | |
== doesn't work the way i thought it did, but i never use it so i never had to know | 01:23 | ||
01:24
mcmillhj joined
01:28
mcmillhj_ joined
01:33
mcmillhj_ left
01:35
kurahaupo left
01:43
mcmillhj_ joined
01:46
ilbot3 left
01:47
mcmillhj_ left
01:56
ilbot3 joined,
ChanServ sets mode: +v ilbot3
01:58
mcmillhj left
02:00
windyhouses left
02:06
mcmillhj joined
02:07
aborazmeh joined,
aborazmeh left,
aborazmeh joined
02:08
Todd_ joined
|
|||
Todd_ | Hi All, How do I nodify the following such that the `.55` is wild? perl6 -e 'my $x="\"123\",\"abc /.55\",\"\""; say $x; $x~~s|"/.55"||; say $x;' | 02:09 | |
I want to remove `/.xx` (could be xxx) from the string | 02:10 | ||
02:10
mcmillhj left
|
|||
AlexDaniel | m: my $x=‘"123","abc /.55",""’; say $x; $x~~s|‘/.’\d+||; say $x | 02:13 | |
camelia | "123","abc /.55","" "123","abc ","" |
||
AlexDaniel | Todd_: like this? | ||
m: my $x=‘"123","abc /.55",""’; say $x; $x~~s|‘/.’<[0..9]>+||; say $x | |||
camelia | "123","abc /.55","" "123","abc ","" |
||
AlexDaniel | or this | ||
Todd_ | testing | ||
AlexDaniel | you can use normal '' quotes instead of curly unicode ones ‘’ | 02:14 | |
Todd_ | `` can be used only once in `perl5 -e ''` | 02:15 | |
Is there a way to tell the to find the `/` and staop right before the next quote? | 02:16 | ||
perl6 not 5. Chuckle | |||
02:20
kurahaupo joined
|
|||
Todd_ | works: $ perl6 -e 'my $x="\"123\",\"abc /.55\",\"\""; say $x; $x~~s|"/"<[.,0..9]>+||; say $x;' | 02:20 | |
02:21
MasterDuke joined
02:25
mcmillhj joined
02:26
w_richard_w left,
w_richard_w joined
|
|||
Todd_ | do I need anyting like `#!/usr/bin/env perl6` as my first line when writing for Windows? | 02:27 | |
02:29
mcmillhj left
|
|||
AlexDaniel | Todd_: ah right, I forgot that it was in -e | 02:34 | |
Todd_ | -e results in a lot of \\/\/\/\\\/\/ when trying to simulate comma deliminted text. tears | 02:39 | |
AlexDaniel | just use unicode quotes :) | 02:40 | |
perl6 -e 'my $x=‘"123","abc /.55",""’; say $x; $x~~s|‘/.’\d+||; say $x;' | |||
02:44
mcmillhj joined,
eliasr left
|
|||
Todd_ | Beautifil. And it ever solved the 3/4 and 1/2 in the text I just discovered: $ perl6 -e 'my $x=‘"12 3/4","abc /.55",""’; say $x; $x~~s|‘/.’\d+||; say $x;' "12 3/4","abc /.55","" "12 3/4","abc ","" | 02:45 | |
02:48
AlexDaniel left,
mcmillhj left
02:51
wamba joined
|
|||
Todd_ | Just out of curiousity, can I spell out subsitute as I do global `s:global`? | 02:55 | |
02:56
mcmillhj joined,
zachk left
03:01
mcmillhj left
03:04
lucs left
03:08
pilne left
03:12
lookatme joined
|
|||
lookatme | :) | 03:13 | |
03:13
mcmillhj joined
03:18
mcmillhj left
03:26
mcmillhj joined
03:31
mcmillhj left
03:33
andrzejk_ joined
03:41
skids left
|
|||
Todd_ | In Windows, how to I use `run` to call/start another program and not wait for the program to exit? | 03:42 | |
03:42
mcmillhj joined
03:47
mcmillhj left,
andrzejk_ left
03:48
cpup joined
|
|||
lookatme | Todd_, You can look at the Proc::Async | 03:50 | |
Todd_ | will do | 03:52 | |
03:59
andrzejk_ joined
04:02
mcmillhj joined
|
|||
Todd_ | docs.perl6.org/routine/start has not examples! and this does not work: perl6 -e "start(notepad.exe);" Undeclared routines: notepad | 04:02 | |
ingy | perl6 -e "start('notepad.exe')" | 04:06 | |
? | |||
04:07
mcmillhj left
04:09
jtpalmer left
|
|||
Todd_ | C:\NtUtil>perl6 -e "start('notepad.exe')" ===SORRY!=== Error while compiling -e Undeclared routine: start used at line 1. Did you mean 'spurt', 'sort', 'sqrt'? C:\NtUtil>perl6 -v This is Rakudo version 2016.01.1 built on MoarVM version 2016.01 implementing Perl 6.c. | 04:09 | |
stinking 32 bit version! | 04:12 | ||
Well now, there are 1001 ways to do things in Perl and a whole two ways to do them in batch. This worked: | 04:14 | ||
perl6 -e "run( 'cmd.exe', '/C', 'start', 'notepad.exe' );" | |||
04:17
khw left
|
|||
Todd_ | is "perl6" a batch file in Windows? | 04:18 | |
please! please! please! compile up a fresh 32 bit perl6 for Windows!!! (I would, but I a dum dum.) | 04:20 | ||
04:22
mcmillhj joined
04:27
mcmillhj left
04:37
mcmillhj joined
04:39
athenot joined,
athenot_ left
04:42
mcmillhj left
|
|||
Todd_ | now I need to whack ,,waht? ... okay, remove `/.55 + .44 SHP` This is not working: $ perl6 -e 'my $x=‘"123","xxx 3/5 inch abc /.55 + .44 SHP",""’; say $x; $x~~s|"/".\d+||; say $x;' "123","xxx 3/5 inch abc /.55 + .44 SHP","" "123","xxx 3/5 inch abc + .44 SHP","" | 04:45 | |
04:45
curan joined
|
|||
Todd_ | And it is not always `SHP` or `.55`. So I want to shack the `/` and everything followig it up to but not including the `"` | 04:46 | |
04:54
eythian joined,
eythian left,
eythian joined
04:57
mcmillhj joined
05:02
mcmillhj left
|
|||
Todd_ | This worked - Yikes!: $ perl6 -e 'my $x=‘"123","xxx 3/5 inch abc /.55 + .44 SHP","", "678"’; say $x; $x~~s|(.*)\/(.*)(\"\,\".*)|$0$2|; say $x;' "123","xxx 3/5 inch abc /.55 + .44 SHP","", "678" "123","xxx 3/5 inch abc ","", "678" | 05:03 | |
05:04
aborazmeh left
05:12
athenot left,
athenot joined
05:15
jmerelo joined
05:16
athenot left,
mcmillhj joined
|
|||
jmerelo | O/ | 05:18 | |
yoleaux | 1 May 2018 21:26Z <AlexDaniel> jmerelo: ah, oops! Yes, fixed now, sorry. Next time ping me directly please. | ||
1 May 2018 21:27Z <AlexDaniel> jmerelo: if you're wondering why that happened, it's because *ables fail to write some precomp files… I know how to fix that though! | |||
jmerelo | .tell AlexDaniel It seems to be down again... | 05:19 | |
yoleaux | jmerelo: I'll pass your message to AlexDaniel. | ||
05:20
epony left,
mcmillhj left
05:22
sauvin joined
05:27
mcmillhj joined
05:31
mcmillhj left
05:40
wamba left
05:41
epony joined
05:44
mcmillhj joined
05:46
ufobat joined
|
|||
ufobat | is there any test::coverage like module available? | 05:47 | |
jmerelo | .tell moritz to please rebuild the docs server so that it picks up the new version of Pod::To::BigPage | 05:48 | |
yoleaux | jmerelo: I'll pass your message to moritz. | ||
moritz | jmerelo: or you do it | 05:49 | |
yoleaux | 05:48Z <jmerelo> moritz: to please rebuild the docs server so that it picks up the new version of Pod::To::BigPage | ||
05:49
mcmillhj left
|
|||
jmerelo | moritz: do I have access now? | 05:51 | |
Geth | doc: 7c14364de2 | (JJ Merelo)++ | doc/Language/testing.pod6 Fixes links to cmp-ok closes #1985 (also refs #561) |
05:52 | |
synopsebot | Link: doc.perl6.org/language/testing | ||
moritz | see privmsg | 05:53 | |
jmerelo | moritz: OK. | 05:54 | |
05:58
andrzej__ joined
06:00
mcmillhj joined
06:01
domidumont joined,
andrzejk_ left
06:02
andrzej__ left,
andrzejk_ joined
|
|||
Geth | infrastructure-doc: 7629ff95c5 | (JJ Merelo)++ | hosts/hack.p6c.org.pod Correct typo |
06:03 | |
06:05
mcmillhj left
06:06
Todd_ left,
domidumont left
06:07
domidumont joined
06:16
mcmillhj joined
06:18
imcsk8_ left,
imcsk8 joined
06:21
mcmillhj left
06:28
andrzejk_ left
06:34
mcmillhj joined
06:39
mcmillhj left
06:43
noganex left
06:44
mcmillhj joined,
troys left
|
|||
Geth | doc: JJ self-assigned Description of the cmp operator seems weird github.com/perl6/doc/issues/1036 747571ca32 | (JJ Merelo)++ | doc/Type/Order.pod6 |
06:47 | |
06:48
w_richard_w left
|
|||
synopsebot | Link: doc.perl6.org/type/Order | ||
06:49
mcmillhj left,
andrzejk_ joined
06:54
mcmillhj joined
06:57
w_richard_w joined,
darutoko joined
06:59
mcmillhj left
07:10
[Sno] left
07:11
mcmillhj joined
|
|||
Geth | perl6-pod-to-bigpage: 1923148b69 | (JJ Merelo)++ | bin/pod2onepage Eliminates debug code and adds docs refs #17 |
07:12 | |
07:15
mcmillhj left
07:25
rindolf joined
07:26
mcmillhj joined
07:30
rindolf left
07:31
mcmillhj left
07:33
rindolf joined
07:48
wamba joined
07:54
sam2424 joined
|
|||
sam2424 | hi | 07:56 | |
07:57
noganex joined
|
|||
moritz | hello | 07:58 | |
Geth | doc: bdc8292805 | (JJ Merelo)++ | 2 files Solidifies META6.json documentation While I was at it, some typographic fixes and rephrasing, and also adds META6.json to index, which wasn't working so far. Closes #764, and another 3-figure, almost-2-year-old issue gets fixed :memo: :white_check_mark: |
||
sam2424 | I have a problem with a script | 07:59 | |
moritz | if your script is written in Perl 6, this is the right place to ask | 08:00 | |
08:02
abraxxa left
08:03
andrzejk_ left,
abraxxa joined
|
|||
sam2424 | how I can write in little endian? | 08:04 | |
is wrong to do perl6 -e ' say "\xef\xbe\xad\xde"' | |||
Sem: | |||
perl6 -e 'print "\xef\xbe\xad\xde"' | |||
ï¾Þ | |||
perl -e 'print "\xef\xbe\xad\xde"' | |||
ᆳ� | |||
the output is different | |||
how in perl6 can I have the same of perl? | |||
08:05
sam2424 left,
[Sno] joined,
sam2424 joined
|
|||
jast | the difference is that Perl 6 treats your escape sequences as Unicode characters, whereas Perl 5 just outputs the raw bytes by default | 08:06 | |
sam2424 | ah ok | 08:07 | |
08:07
sam2424 left
08:08
andrzejk_ joined,
andrzejk_ left
08:09
scimon joined,
sam2424 joined,
sam2424_ joined,
sam2424_ left
08:10
[Sno] left,
sam2424_ joined
|
|||
jmerelo | sam2424_: I would appreciate if you also posted this question in StackOverflow, so that it gets recorded in an easy-to-search format. | 08:11 | |
08:11
[Sno] joined
|
|||
sam2424_ | ok but there are a another solution? | 08:12 | |
jmerelo | sam2424_: if there is, someone in StackOverflow will answer :-) | 08:13 | |
08:13
sam2424 left
|
|||
jast | I'm not actually extremely Perl6-fluent but I think if you want to deal with raw bytes, it's probably better to use a Buf than a string | 08:13 | |
08:13
sam2424_ left
08:14
sam2424 joined
|
|||
sam2424 | hahaha ok jmerelo | 08:14 | |
08:14
mcmillhj joined
08:16
sam2424_ joined,
sam2424 left,
sam2424_ left
08:17
sam2424 joined
08:19
mcmillhj left,
mienaikage left
08:21
andrzejk_ joined
08:22
sam2424 left
08:24
mienaikage joined
08:28
sam2424 joined,
sam2424 left
08:29
zakharyas joined
|
|||
lookatme | m: "abc".encode("utf-8") | 08:32 | |
camelia | ( no output ) | ||
lookatme | m: say "abc".encode("utf-8") | ||
camelia | utf8:0x<61 62 63> | ||
lookatme | m: say "abc".encode("utf-8le") | ||
camelia | Unknown string encoding 'utf-8le' in block <unit> at <tmp> line 1 |
||
lookatme | m: say "abc".encode("utf-16le") | ||
camelia | Unknown string encoding 'utf-16le' in block <unit> at <tmp> line 1 |
||
08:33
mcmillhj joined
08:37
zakharyas left,
zakharyas joined
08:38
mcmillhj left
08:40
scimon left
08:47
mcmillhj joined
08:52
mcmillhj left
08:56
scimon joined
08:58
amalia___ joined,
andrzejk_ left
08:59
andrzejk_ joined
09:07
mcmillhj joined
09:09
epony left
09:12
mcmillhj left
09:13
epony joined
09:23
mcmillhj joined
09:28
mcmillhj left
09:32
ufobat left
09:34
w_richard_w left
09:35
HaraldJoerg joined
09:39
eliasr joined
09:44
wamba left
09:45
[Coke] left,
[Coke] joined,
windyhouses joined
09:52
domidumont left
09:53
windyhouses left
09:55
windyhouse joined
09:58
zakharyas left,
zakharyas joined
10:00
vike joined
10:01
lizmat joined
10:04
andrzejk_ left
10:11
parv joined
10:17
giraffe left
|
|||
Geth | doc: 679e65e077 | (Luca Ferrari)++ | doc/Type/IO/Path.pod6 Reword IO::Path.words note. Close #1926 |
10:26 | |
synopsebot | Link: doc.perl6.org/type/IO::Path | ||
buggable | New CPAN upload: P5getpwnam-0.0.2.tar.gz by ELIZABETH modules.perl6.org/dist/P5getpwnam:cpan:ELIZABETH | ||
Geth | doc: fc9df1ce2a | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO/Path.pod6 Remove stray paren |
10:28 | |
10:29
Zoffix joined
|
|||
Zoffix | sam2424: just write bytes directly instead of going through string escapes: perl6 -e '$*OUT.write: Blob.new: <0xEF 0xBE 0xAD 0xDE>' | 10:31 | |
.tell Todd_ Yes, "perl6" is a batch file on Windows. Just use run "notepad.exe" instead of going through cmd.exe. You can copy-paste Windows instructions from here to build on win32: rakudo.org/files/star/source It's not rocket surgery. | 10:34 | ||
yoleaux | Zoffix: I'll pass your message to Todd_. | ||
10:35
Zoffix left
10:36
sam2424 joined,
sam2424 left
|
|||
buggable | New CPAN upload: P5getgrnam-0.0.3.tar.gz by ELIZABETH modules.perl6.org/dist/P5getgrnam:cpan:ELIZABETH | 10:36 | |
10:37
zakharyas left
10:38
sam2424 joined,
zakharyas joined,
sam2424 left
10:43
markong joined
10:46
nightfrog joined
10:54
andrzejk_ joined
10:56
zakharyas left
10:57
zakharyas joined
10:58
andrzejk_ left
11:03
silug left,
andrzejk_ joined
11:04
mcmillhj joined
11:09
robertle joined
|
|||
abraxxa | ARGH | 11:17 | |
[ahartmai@ahartmai-nb:~$ ]$ rakudobrew nuke moar-2018.04 | |||
Nuking moar-2018.04.1 | |||
that should NEVER happen | |||
11:19
giraffe joined
11:25
zakharyas left
|
|||
jmerelo | whateverable.6lang.org seems to be down still | 11:27 | |
AlexDaniel`: did you check that? | |||
11:31
domidumont joined
11:39
AlexDaniel joined
|
|||
AlexDaniel | shareable6: help | 11:40 | |
yoleaux | 05:19Z <jmerelo> AlexDaniel: It seems to be down again... | ||
shareable6 | AlexDaniel, Like this: shareable6: f583f22 # See wiki for more examples: github.com/perl6/whateverable/wiki/Shareable | ||
11:40
shareable6 left,
shareable6 joined,
ChanServ sets mode: +v shareable6
|
|||
AlexDaniel | OK that works now | 11:40 | |
jmerelo: thanks | |||
jmerelo | AlexDaniel: thanks to you :-) | 11:43 | |
The PR by tyil was just accepted into linguist github.com/github/linguist/pull/4083 Pod 6 is now a full-blown language in GitHub | 11:45 | ||
Thanks to samcv and everyone involved... Having .pod6 rendered by GitHub is way closer now. | |||
11:45
parv left
|
|||
lizmat | weekly: github.com/github/linguist/pull/4083 | 11:47 | |
notable6 | lizmat, Noted! | ||
11:54
mcmillhj left
|
|||
tyil | jmerelo: finally! | 12:03 | |
samcv | tyil++ everyoneelse++ | ||
12:05
andrzejk_ left
12:07
mcmillhj joined
|
|||
AlexDaniel | oh geez finally | 12:09 | |
jmerelo: doc CI is green now :) | 12:12 | ||
12:21
AlexDaniel left
12:22
mcmillhj left,
AlexDaniel joined
12:25
AlexDaniel left
12:26
zakharyas joined
12:27
AlexDaniel joined
12:30
hoelzro joined
|
|||
jmerelo | AlexDaniel: great, thanks. Let's see if the intermitent bug is solved... Before, it was one out of every 3-4 builds. | 12:45 | |
AlexDaniel | I don't think anything changed regarding that issue | ||
jmerelo | AlexDaniel: my hunch is that it was some memory issue in the test where it failed. I divided the tests in two different batches. | 12:46 | |
AlexDaniel: so, who knows... | |||
AlexDaniel: it's not solving the underlying issue, but the underlying issue is hard to catch... | |||
Next Friday, Perl 6 meetup in Granada www.meetup.com/es-ES/Granada-Geek/...=250371416 Perl 6 and free beer (it's on me). Anyone's in? :-) | 12:48 | ||
AlexDaniel | squashable6: next | ||
squashable6 | AlexDaniel, ⚠🍕 Next SQUASHathon in 1 day and ≈21 hours (2018-05-05 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel | oh geez | ||
jmerelo | AlexDaniel: oh geez is right. And I'm taking names. | 12:49 | |
12:50
wamba joined
|
|||
AlexDaniel | well, I'll be online here :) | 12:50 | |
12:51
andrzejk_ joined
|
|||
jmerelo | AlexDaniel: great :-) | 12:51 | |
AlexDaniel | jmerelo: “10:00 hasta el 13:30” is this within 2018-05-05 UTC-12⌁UTC+14 ? | 12:52 | |
12:52
mcmillhj joined
|
|||
AlexDaniel | we can start earlier if it's not | 12:52 | |
jmerelo | AlexDaniel: yep, pretty much. Don't worry about that. First hour or so will be a talk on Pod 6, and some guidelines on how to spot bugs. | ||
Most people will have very little or no experience with Perl 6. It will be more an introduction to Perl 6, and maybe some help translating README.md or some intro to the community | 12:54 | ||
12:54
natrys joined
|
|||
jmerelo | My intention is not so much having them squashing bugs, but try to create a core of a small community here that can help in the future. | 12:54 | |
12:55
andrzejk_ left
12:56
AlexDaniel left
|
|||
lizmat | weekly: www.kickstarter.com/projects/14228...ts/2176624 | 12:57 | |
notable6 | lizmat, Noted! | ||
12:57
AlexDaniel joined
13:02
athenot joined,
AlexDaniel left
13:07
giraffe left,
giraffe joined,
giraffe left,
giraffe joined
|
|||
tyil | .tell Herby_ How's the SO bot coming along (iirc you were working on that, right?) | 13:18 | |
yoleaux | tyil: I'll pass your message to Herby_. | ||
13:23
cog_ left,
Possum joined
|
|||
Geth | doc: 1d95b422d6 | (Luca Ferrari)++ | doc/Type/SetHash.pod6 Add example for SetHash initialization. See issue #1939 |
13:24 | |
synopsebot | Link: doc.perl6.org/type/SetHash | ||
Geth | doc: 6d1dae590f | (Luca Ferrari)++ | doc/Type/SetHash.pod6 Another little improvement to SetHash example. See issue #1939 |
||
13:26
araraloren joined
13:34
jjmerelo joined,
comborico1611 joined
13:37
jmerelo left
13:40
jjmerelo left
13:41
skids joined
|
|||
comborico1611 | say "word count: ", $/.elems if "I have a dream" ~~ m:g/ \w* / | 13:49 | |
evalable6 | word count: 8 | ||
comborico1611 | What are the 8? | 13:50 | |
moritz | the number of matches | 13:51 | |
but if you want the word count, ues \w+, not \w* | |||
comborico1611 | There are many more \w than 8 there. | ||
moritz | because empty words aren't very interesting | ||
13:52
Zoffix joined
|
|||
Zoffix | moritz: how come empties get in there? | 13:52 | |
moritz | but you didn't ask for m:g/\w/ either | ||
Zoffix: \w* matches the empty string | |||
and :g skips to the next starting position before trying again | |||
13:52
molaf joined
|
|||
Zoffix | If it's an empty string, wouldn't the next starting position be the same? | 13:53 | |
moritz | no, only with :exhaustive | ||
:g *always* advances the position by at least one | |||
Zoffix | Then, I don't get it: "foo bar" => [0] = "[foo] bar"; it advances by one to after space => [1] = "[bar]". Where does the empty come from? Is it from before or after the space? | 13:55 | |
Ah | |||
OK, before space | |||
OK, I get now. Thanks. | |||
moritz | yw :) | ||
and yes, that was kinda confusing to figure out before we could implement it | 13:56 | ||
Zoffix | :) | ||
moritz | (at least, confusing to me; not sure if TimToady++ or pmichaud_++ were confused by such trivia :D) | ||
the starting position is basically max( $previous.to, $previous.from + 1) | 13:57 | ||
comborico1611 | Well, I'm going to ignore it and move on. I'm feeling low energy this morning. | 13:59 | |
moritz | that... doesn't motivate me at all to answer future questions | 14:00 | |
comborico1611 | You should realize not everyone is in perfect health. | ||
moritz | I'm not expecting perfect health, but I do expect some other feedback than "I'm ignoring your answer" when I answer a question | 14:01 | |
could be as simple as "can't understand it right now, will save it and look at it later" | |||
comborico1611 | I never said I was ignoring your answer. By "it" I mean, I'm ignoring the issue. Too much too tackle and not worth the time. I need to move on to more fundamental topics. | ||
moritz | well, I'll know what to expect in future. | 14:03 | |
comborico1611 | Likewise. | 14:04 | |
Zoffix | comborico1611: `\w` is what you match. The `*`, `+`, `?` and a bunch of others are quantifiers that tell the computer how many things to match. So `\w*` says to look for `\w` things and match them 0 or more times. If you want each of \w things, then don't specify the quantifier (default is match 1 thing). If you want words only (so exclude the zero-sized matches), then change `\w*` to `\w+` to mean "match one | 14:05 | |
or more of \w things". There's also `.words` method that would do the same but a lot clearer | |||
m: say "I have a dream".words | |||
camelia | (I have a dream) | ||
Zoffix | m: .say for "I have a dream".words | ||
camelia | I have a dream |
||
14:06
natrys left
|
|||
Zoffix | comborico1611: and you can also use `.comb` to find stuff | 14:07 | |
m: .say for "I have a dream".comb: /\w/ | |||
camelia | I h a v e a d r e a m |
||
14:08
Zoffix left
14:11
athenot_ joined,
athenot left,
athenot_ left
14:12
raynold left
14:13
chrom_ joined
14:15
athenot joined
|
|||
comborico1611 | .tell Zoffix Thanks! I appreciate it. | 14:20 | |
yoleaux | comborico1611: I'll pass your message to Zoffix. | ||
14:22
FROGGS_ joined
14:24
athenot_ joined,
khw joined
14:26
athenot left
14:32
zakharyas left,
zakharyas joined
14:36
chrom_ left
14:37
andrzejk_ joined
14:41
ufobat joined
14:48
wamba left
14:50
comborico1611 left
14:51
windyhouse left
14:58
athenot_ left
14:59
athenot joined
15:00
robertle left
15:13
troys joined
15:15
curan left
15:19
zakharyas left
15:21
khw left
15:42
zakharyas joined
15:45
araraloren left
15:53
Sgeo_ left,
Sgeo_ joined
15:54
ExtraCrispy joined
16:03
silug joined
16:07
wamba joined
|
|||
ktown | m: say Date.new('2017-12-31').time; | 16:08 | |
camelia | No such method 'time' for invocant of type 'Date'. Did you mean any of these? take tree in block <unit> at <tmp> line 1 |
||
ktown | m: say DateTime.new("2016-08-10T18:26:23Z").time ; | 16:09 | |
camelia | No such method 'time' for invocant of type 'DateTime'. Did you mean any of these? take tree in block <unit> at <tmp> line 1 |
||
ktown | how do I get a time from a Date or DateTime? | ||
timotimo | m: say DateTime.new("2016-08-10T18:26:23Z").^methods | ||
camelia | (new now clone Instant posix offset offset-in-minutes offset-in-hours hh-mm-ss later truncated-to whole-second in-timezone utc local Date DateTime days-in-month week IO is-leap-year week-number week-year weekday-of-month DAYS-IN-MONTH earlier day-of-m… | ||
jkramer | m: say DateTime.new("2016-08-10T18:26:23Z").hh-mm-ss | ||
camelia | 18:26:23 | ||
timotimo | funny how that lines up | 16:11 | |
16:11
atweiden-air joined
|
|||
ktown | m: say DateTime.new("2016-08-10T18:26:23Z").posix ; | 16:12 | |
camelia | 1470853583 | ||
atweiden-air | is it possible to comb a list of strings something like this: | 16:13 | |
m: my @a = qw<a b c d>>; @a.comb(/a/../c/) | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> Missing required term after infix at <tmp>:1 ------> 3my @a = qw<a b c d>>7⏏5; @a.comb(/a/../c/) expecting any of: prefix term |
||
16:13
APic joined
|
|||
atweiden-air | trying to convert a sed script of print all lines starting with regex until another regex | 16:13 | |
timotimo | what you want is either <[a..c]> or <a b c> or "a".."c" maybe with .List on the last one | 16:16 | |
jkramer | m: dd 'yay 123 lol test yay blah lol'.comb(/'yay' .*? 'lol'/) | ||
camelia | ("yay 123 lol", "yay blah lol").Seq | ||
timotimo | oh, wait, i misunderstood | ||
m: my @a = <a b c d>; @a.grep(/a/ ff /c/).say | 16:17 | ||
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 block <unit> at <tmp> line 1 Use of uninitialized value of type Any in string context.… |
||
timotimo | m: my @a = <a b c d>; @a.grep({ /a/ ff /c/ }).say | ||
camelia | (a b c) | ||
timotimo | m: my @a = <1 2 3 a b c d 9 a 1 2 b c 5>; @a.grep({ /a/ ff /c/ }).say | ||
camelia | (a b c a 1 2 b c) | ||
timotimo | m: my @a = <1 2 3 a b c d 9 a 1 2 b c 5>; @a.grep({ /a/ ^ff^ /c/ }).say | ||
camelia | (b 1 2 b) | ||
jkramer | Ha, never thought I'd see a that op used in real-life :D | 16:18 | |
16:19
cog_ joined
|
|||
atweiden-air | timotimo: thanks | 16:19 | |
16:28
scimon left
|
|||
jkramer | m: my @foo[2;5]; @foo[1;3] = 'lol'; my $lol-pos = @foo.grep('lol', :k); say $lol-pos; say @foo[$lol-pos]; | 16:28 | |
camelia | (8) Partially dimensioned views of shaped arrays not yet implemented. Sorry. in block <unit> at <tmp> line 1 |
||
jkramer | Is this correct? Feels like grep :k should return (1,3) or something, but I don't know | 16:29 | |
But then again @foo[(1,3)] probably won't work either | |||
m: my @foo[2;5]; @foo[1;3] = 'lol'; say @foo.flat[@foo.grep('lol', :k)] | 16:31 | ||
camelia | (lol) | ||
timotimo | it's important to itemify the address | ||
with a $ in front or .item in the back | 16:32 | ||
16:32
natrys joined
|
|||
jkramer | m: my @foo[2;5]; @foo[1;3] = 'lol'; say @foo[$(1,3)] | 16:32 | |
camelia | Partially dimensioned views of shaped arrays not yet implemented. Sorry. in block <unit> at <tmp> line 1 |
||
jkramer | What do you mean? | ||
timotimo | oh? | 16:33 | |
i haven't worked with multi-dimensional arrays yet, they are very slow :) | |||
jkramer | m: my @foo[2;5]; dd @foo.keys | 16:34 | |
camelia | ((0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 1), (1, 2), (1, 3), (1, 4)).Seq | ||
jkramer | I think it there should be a way to use the return value of .keys or .grep(:k) as address somehow | ||
timotimo | m: my @foo[2;5]; @foo[1;3] = 'lol'; say @foo.flat[||@foo.grep('lol', :k)] | 16:35 | |
camelia | (lol) | ||
timotimo | m: my @foo[2;5]; @foo[1;3] = 'lol'; say @foo[||@foo.grep('lol', :k)] | ||
camelia | Partially dimensioned views of shaped arrays not yet implemented. Sorry. in block <unit> at <tmp> line 1 |
||
timotimo | not sure why the .flat is needed there | ||
jkramer | Well because .grep currently returns a single Int that seems to be the office of the match in @foo.flat :) | 16:37 | |
m: my @foo[2;5]; @foo[1;3] = 'lol'; @foo.grep('lol', :k).say | 16:38 | ||
camelia | (8) | ||
jkramer | s/office/offset/ | ||
timotimo | oh, that's why | ||
16:39
AlexDaniel joined
|
|||
jkramer | I guess .grep internally just runs itself on .flat of the invocant | 16:40 | |
At least for multi-dimensional arrays | 16:41 | ||
timotimo | ah, yes, iterating over multi dimensional arrays is a flat thing in general, iiuc | 16:42 | |
16:49
mcmillhj left
16:57
grumble is now known as xn--3s9h
|
|||
tyil | I'm sure there was someone who made a plugin for Atom to transform texas ops into unicode ops while writing the code | 17:03 | |
but I can't seem to find it | |||
17:08
cog_ left
17:09
daxim_ left
|
|||
Ulti | for Atom there is a ligature view iirc that doesn't change them in the actual code but does render on screen | 17:11 | |
I think you just need the fira ligature stuff installed | 17:12 | ||
along with the perl6lang extension | |||
17:21
HaraldJoerg1 joined
17:22
HaraldJoerg left
17:24
cog_ joined,
domidumont left
|
|||
tyil | I think I found what I was thinking of github.com/azawawi/atom-perl6-edit...ls/pull/35 | 17:25 | |
but it got closed, not merged | |||
maybe a nice side-project to look into if the meetup's going slow in a bit | 17:26 | ||
Ulti | might also be a job for github.com/drforr/perl6-Perl6-Tidy | 17:29 | |
17:29
ExtraCrispy left
|
|||
Ulti | so its a bit more editor agnostic and can be shoved on a commit hook | 17:30 | |
17:30
natrys left
17:34
ktown left,
ktown joined
17:37
lichtkind joined
|
|||
El_Che | tyil: I created a "wishful thinking" ticker for the perl6 atom support to include stuff from the perl6-editors-tools :) | 17:40 | |
17:43
xn--3s9h left
17:44
natrys joined,
grumble joined
17:47
athenot left
17:48
athenot joined,
athenot left,
cog_ left,
athenot joined,
athenot left,
rjt_pl left
17:49
ktown left,
rjt_pl joined
17:53
athenot joined
|
|||
tyil | Ulti: I'd preferably have it in real time while editing, just like I have in vim rn | 17:57 | |
El_Che: link? | |||
18:00
ChoHag joined,
itaipu joined
|
|||
El_Che | tyil: github.com/perl6/atom-language-perl6/issues/85 | 18:01 | |
18:03
ktown joined,
HaraldJoerg joined
18:05
HaraldJoerg1 left,
wamba left,
wamba joined
|
|||
tyil | El_Che: ty | 18:08 | |
18:10
athenot left
18:11
athenot joined,
zakharyas left
18:15
wamba left
18:21
[Sno] left
18:23
wamba joined,
sauvin left,
darutoko left
18:25
windyhouse joined,
stmuk_ joined
18:27
stmuk left,
ChoHag left
18:32
pilne joined
18:34
ChoHag joined
18:39
daxim_ joined
18:41
windyhouse left
|
|||
AlexDaniel | squashable6: next | 18:43 | |
squashable6 | AlexDaniel, ⚠🍕 Next SQUASHathon in 1 day and ≈15 hours (2018-05-05 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
18:53
comborico1611 joined
19:06
comborico1611 left
19:07
comborico1611 joined
19:08
jmerelo joined
|
|||
El_Che | fedora 28 rakudo-pkg added (direct download + repo) | 19:08 | |
jmerelo | El_Che++ | ||
19:14
grumble left
19:15
grumble joined
19:17
andrzejk_ left
|
|||
El_Che | notable6: weekly rakudo-pkg support for new Ubuntu 18.04 and Fedora 28. New: rpm and deb repos. | 19:20 | |
notable6 | El_Che, Noted! | ||
19:23
jmerelo left
|
|||
lizmat | El_Che++ | 19:24 | |
19:24
comborico1611 left
19:27
robertle joined
19:33
atweiden-air left
19:36
zachk joined,
andrzejk_ joined
19:41
cog_ joined
19:45
comborico1611 joined
19:49
FROGGS_ left
|
|||
timotimo | oh, repos? neat. | 19:54 | |
19:57
windyhouse joined
20:02
[Sno] joined
20:05
amalia___ left
20:06
rindolf left
|
|||
Geth | DBIish/sqlite-datetime: 0c7d82a4c6 | (Alexander Hartmaier)++ | 2 files first take at SQLite Date(Time) support |
20:06 | |
20:08
integral left,
rindolf joined
20:11
windyhouse left
20:16
cog_ left
|
|||
Geth | DBIish/sqlite-datetime: ac9113048c | (Alexander Hartmaier)++ | lib/DBDish/SQLite/Native.pm6 FIXME: don't rely on the Date(Time) objects' formatter |
20:17 | |
20:27
colomon left
20:29
xinming left
20:32
integral joined,
dct left,
windyhouse joined
|
|||
buggable | New CPAN upload: P5getnetbyname-0.0.1.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.1.tar.gz | 20:36 | |
20:36
MasterDuke left
20:42
natrys left
20:43
andrzejk_ left
20:51
jast left
20:52
jast joined
20:55
skids left
21:04
andrzejk_ joined,
andrzejk_ left
21:06
Sgeo__ joined
|
|||
comborico1611 | Let me know if anyone thinks this is LTA error message: hastebin.com/fajijefale.php | 21:08 | |
21:08
Sgeo_ left
21:12
|oLa| left
21:17
aindilis` joined
21:19
aindilis left
|
|||
lizmat | m: / a ] / # golfed | 21:36 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unable to parse regex; couldn't find final '/' at <tmp>:1 ------> 3/ a 7⏏5] / # golfed expecting any of: infix stopper |
||
lizmat | comborico1611: fwiw, the location shows exactly where it goes wrong | 21:37 | |
21:37
|oLa| joined
|
|||
lizmat | so I'm inclined to say, it could be better but it is pretty close to awesome | 21:37 | |
21:38
robertle left,
wamba left,
daxim_ left
21:44
daxim_ joined
|
|||
Voldenet | perl5 behavior was even more confusing though | 21:45 | |
buggable | New CPAN upload: P5getservbyname-0.0.1.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.1.tar.gz | 21:46 | |
21:49
daxim_ left
21:51
aindilis` left,
aindilis joined
21:53
ufobat left
|
|||
comborico1611 | lizmat: Heh. Thanks! | 22:05 | |
lizmat | comborico1611: yw | ||
lizmat calls it a night | |||
comborico1611 | Goodnight! | ||
El_Che | bye liz | ||
buggable | New CPAN upload: P5built-ins-0.0.14.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/....14.tar.gz | 22:06 | |
22:11
MasterDuke joined
22:17
HaraldJoerg left
22:21
itaipu left
22:25
comborico1611 left
|
|||
Herby_ | tyil: it's gathering dust at the moment. I wasn't sure if it would be useful | 22:35 | |
yoleaux | 13:18Z <tyil> Herby_: How's the SO bot coming along (iirc you were working on that, right?) | ||
Herby_ | .tell tyil: it's gathering dust at the moment. I wasn't sure if it would be useful | ||
yoleaux | Herby_: What kind of a name is "tyil:"?! | ||
Herby_ | .tell tyil it's gathering dust at the moment. I wasn't sure if it would be useful | ||
yoleaux | Herby_: I'll pass your message to tyil. | ||
Herby_ | there we go :) | ||
22:37
markong left
22:40
markong joined
22:43
skids joined
23:09
nebuchad` joined,
lumimies_ joined,
john_parr_ joined
23:10
PotatoGim_ joined
23:11
cono_ joined
|
|||
tyil | too bad | 23:12 | |
yoleaux | 22:35Z <Herby_> tyil: it's gathering dust at the moment. I wasn't sure if it would be useful | ||
23:12
Juerd_ joined
23:13
AlexDaniel left,
cog_ joined
|
|||
ktown | m: my %h = :x(${"1" => ${:b(1)}}), :c(${"2" => ${:y(1)}}), :a(${"3" => ${:z(1)}}) ; say %h.sort ; | 23:14 | |
camelia | (a => {3 => {z => 1}} c => {2 => {y => 1}} x => {1 => {b => 1}}) | ||
23:15
|337 joined
23:16
|337 is now known as Guest48734,
Juerd left,
PotatoGim left,
lumimies left,
cono left,
john_parr left,
marcusramberg left,
lumimies_ is now known as lumimies,
john_parr_ is now known as john_parr,
Juerd_ is now known as Juerd,
PotatoGim_ is now known as PotatoGim,
windyhouse left
23:17
rgrau joined
23:18
statisfiable6 left,
committable6 left,
greppable6 left,
coverable6 left,
quotable6 left,
bloatable6 left,
evalable6 left,
nativecallable6 left
23:19
greppable6 joined,
committable6 joined,
statisfiable6 joined,
unicodable6 left
|
|||
Herby_ | tyil: you got any more tutorials in the works? That "Introduction to application programming" was great | 23:20 | |
tyil | Herby_: I've been thinking to make one to highlight the neat tricks provided by the MAIN sub more | 23:21 | |
it's why I've asked stackoverflow.com/questions/501355...nt-in-main | |||
I have made a small application to play around with it more, how POD will be rendered in the USAGE, and how you can apply the correct constraints on them | 23:22 | ||
Herby_ | awesome! | ||
23:22
dylanwh joined
|
|||
tyil | in this case I want to constrain to getting one or more arguments | 23:23 | |
23:23
marcusramberg joined
|
|||
tyil | there's some nice tricks in the answers, but none seem like a cleaner solution than what I have already without breaking default USAGE | 23:23 | |
cant have it all :p | 23:24 | ||
I might add in some binary testing, so running the actual program and looking at it's STDOUT stream to see if you're getting the intended effects | 23:26 | ||
(not sure how to do that myself properly, which makes it all the more interesting) | 23:27 | ||
23:35
w_richard_w joined,
mcmillhj joined
23:37
stmuk joined,
cog_ left
23:39
stmuk_ left
|