»ö« 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:01
wbn joined
00:02
p6bannerbot sets mode: +v wbn
00:03
w_richard_w left,
lucasb joined
00:04
p6bannerbot sets mode: +v lucasb
00:09
vrurg left
|
|||
lucasb | ($x.defined ?? ($x.Str // 'default') !! 'default') | 00:14 | |
^^ How do I simplify this? | 00:15 | ||
I was doing $x // 'default' | |||
but then decided to call .Str: $x.Str // 'default' | 00:16 | ||
leont | ($x // 'default').Str | ||
lucasb | what if the return value of .Str is undefined? | ||
I wanted something like the method version of the "with" statement | |||
$x.with.Str // 'default' | |||
ah | 00:17 | ||
($x//Nil).Str // 'default' | 00:18 | ||
hm, don't look good :) | |||
leont | You want a Maybe Monad | 00:19 | |
lucasb | maybe | 00:20 | |
00:20
vrurg joined
00:21
p6bannerbot sets mode: +v vrurg
|
|||
lucasb | nevermind, my idea wouldn't work | 00:25 | |
I was thinking Nil.Str would return propagating Nil | 00:26 | ||
but it coerces to empty string and emits a warning | |||
tobs | lucasb: try ($x andthen .Str) orelse 'default' | 00:27 | |
and the warning can be suppressed with a `quietly` | |||
lucasb | tobs: worked smooth! thanks | 00:29 | |
00:30
DuMu joined,
p6bannerbot sets mode: +v DuMu
00:33
vrurg left
|
|||
lucasb | now the embarrassing moment, it was for this: gist.github.com/lucasbuchala/ae5d6...543a11bcf3 | 00:33 | |
00:33
vrurg joined
00:34
p6bannerbot sets mode: +v vrurg
|
|||
lucasb | to test if my classes are calling the corrects .gist/.Str/.perl methods, while developing | 00:34 | |
00:37
DuMu left
|
|||
tobs | lucasb: it seems that the parentheses around andthen are not necessary | 00:39 | |
lucasb | correct | 00:40 | |
tobs | ah, it has tighter precedence | ||
than orelse | 00:41 | ||
lucasb | hmm, "dd" sends the output to STDERR | 00:44 | |
m: .say for class { method list { 1..3 } }.item | 01:03 | ||
camelia | 1 2 3 |
||
lucasb | just because I put a "list" method in | 01:04 | |
my class, it made the class iterable? | |||
timotimo | weird | ||
lucasb | and not even .item will help in this situation? | ||
does the concept of itemized vs non-itemized applies to arbitrary user-defined classes or only to core data structures like lists, arrays and hashes? | 01:05 | ||
timotimo | itemizing puts the value into a scalar container | 01:06 | |
that's what's supposed to itemize it | |||
lucasb | ah, so no special flag in the class :) | 01:07 | |
just wrap in a scalar | |||
timotimo | right | 01:08 | |
which is why binding can often get you around itemization even when you have a $-sigiled var | |||
lucasb | thanks timotimo | 01:09 | |
01:10
lucasb left
01:20
kurahaupo joined
01:21
p6bannerbot sets mode: +v kurahaupo,
kurahaupo_ joined,
p6bannerbot sets mode: +v kurahaupo_
01:23
mrsolo_ left
01:24
kurahaupo left,
mrsolo_ joined,
p6bannerbot sets mode: +v mrsolo_
01:25
mrsolo_ left
01:26
mrsolo joined,
p6bannerbot sets mode: +v mrsolo
|
|||
buggable | New CPAN upload: Uzu-0.2.4.tar.gz by SACOMO cpan.metacpan.org/authors/id/S/SA/...2.4.tar.gz | 01:38 | |
01:47
kurahaupo_ is now known as kurahaupo
|
|||
Geth | ecosystem: scmorrison++ created pull request #419: Remove Uzu, now available on CPAN |
02:02 | |
02:03
Kaiepi joined
02:04
p6bannerbot sets mode: +v Kaiepi
02:12
kiwi_95 joined,
p6bannerbot sets mode: +v kiwi_95
|
|||
SmokeMachine | jnthn, lizmat: now Im thinking on something like this: gist.github.com/FCO/87d7645286d7f8...e76514a599 | 02:16 | |
02:19
ferreira1 joined,
p6bannerbot sets mode: +v ferreira1
02:20
ferreira left,
kiwi_95 left
02:24
ReenignE1 joined,
ReenignE1 left
|
|||
SmokeMachine | Maybe I should do a “register-model” that would receive a schema name and a file... and when I `use` the schema name it would return a CompUnit with every file registered with that name concated... | 02:30 | |
But my question is: the models should de resources? They can’t compile... | 02:31 | ||
Not alone | |||
02:37
Xliff joined
02:38
p6bannerbot sets mode: +v Xliff
|
|||
Xliff | \o | 02:41 | |
SmokeMachine | Hi! | ||
02:41
Xliff_ left
|
|||
Xliff | Hi, SM! | 02:41 | |
02:43
molaf left,
discoD joined
02:44
p6bannerbot sets mode: +v discoD
02:55
molaf joined
02:56
p6bannerbot sets mode: +v molaf
02:57
kurahaupo_ joined,
kurahaupo left
02:58
p6bannerbot sets mode: +v kurahaupo_,
kurahaupo_ is now known as kurahaupo
03:04
ufobat___ joined
03:05
p6bannerbot sets mode: +v ufobat___
03:08
ufobat_ left
03:27
Sgeo_ joined
03:28
p6bannerbot sets mode: +v Sgeo_
03:29
Sgeo left
03:37
leont left
04:37
bloatable6 left,
coverable6 left,
statisfiable6 left,
evalable6 left,
notable6 left,
squashable6 left,
undersightable6 left,
committable6 left,
greppable6 left,
bisectable6 left,
benchable6 left,
unicodable6 left,
quotable6 left,
reportable6 left,
nativecallable6 left,
releasable6 left,
shareable6 left
04:38
notable6 joined,
committable6 joined,
reportable6 joined,
ChanServ sets mode: +v reportable6,
bisectable6 joined,
greppable6 joined,
ChanServ sets mode: +v greppable6
04:39
p6bannerbot sets mode: +v notable6,
p6bannerbot sets mode: +v committable6,
p6bannerbot sets mode: +v reportable6,
p6bannerbot sets mode: +v bisectable6,
benchable6 joined,
ChanServ sets mode: +v benchable6,
releasable6 joined,
ChanServ sets mode: +v releasable6,
p6bannerbot sets mode: +v greppable6,
squashable6 joined
04:40
quotable6 joined,
p6bannerbot sets mode: +v benchable6,
p6bannerbot sets mode: +v releasable6,
evalable6 joined,
ChanServ sets mode: +v evalable6,
p6bannerbot sets mode: +v squashable6,
p6bannerbot sets mode: +v quotable6
04:41
shareable6 joined,
p6bannerbot sets mode: +v evalable6,
bloatable6 joined,
coverable6 joined,
p6bannerbot sets mode: +v shareable6,
undersightable6 joined,
ChanServ sets mode: +v undersightable6,
unicodable6 joined,
ChanServ sets mode: +v unicodable6
04:42
molaf left,
p6bannerbot sets mode: +v bloatable6,
p6bannerbot sets mode: +v coverable6,
p6bannerbot sets mode: +v undersightable6,
p6bannerbot sets mode: +v unicodable6,
statisfiable6 joined,
nativecallable6 joined
04:43
p6bannerbot sets mode: +v statisfiable6,
p6bannerbot sets mode: +v nativecallable6
04:52
Sgeo_ left
04:56
Sgeo joined
04:57
p6bannerbot sets mode: +v Sgeo
05:00
Cabanossi left
05:01
Cabanossi joined
05:02
p6bannerbot sets mode: +v Cabanossi
05:16
sauvin joined,
p6bannerbot sets mode: +v sauvin,
kurahaupo left
05:24
probablymoony is now known as moony
05:30
eythian left
05:31
eythian joined,
p6bannerbot sets mode: +v eythian
05:43
p6noob left
05:49
kurahaupo joined
05:50
p6bannerbot sets mode: +v kurahaupo
05:54
kurahaupo left
05:58
curan joined,
p6bannerbot sets mode: +v curan
06:18
jmerelo joined
06:19
p6bannerbot sets mode: +v jmerelo
06:20
kurahaupo joined
06:21
p6bannerbot sets mode: +v kurahaupo
06:22
stevie left
|
|||
jmerelo | Hi | 06:45 | |
The Perl 6 | 06:46 | ||
Advent Calendar | |||
Schedule looks a little tiny bit better, but there are still slots to fill github.com/perl6/mu/blob/master/mi...8/schedule | |||
So please get yourself a slot, think about some topic, and start banging away at the keyboard... | |||
holyghost | jmerelo: hello, I'll put something for Mathx-Stat as Zoffix suggested on it in january. I'm don't have good english though | 06:54 | |
s/I'm/I | |||
jmerelo | holyghost: you can post it for reviewing some time in advance. Maybe in your own module's repo. | 06:56 | |
You can even include it as documentation. | |||
06:57
lizmat left
|
|||
holyghost | ok, I'll do my best, so X-mas-advent wise ? | 06:57 | |
jmerelo | right | ||
holyghost | ok | ||
I'll try to give something on with it | 06:58 | ||
a present from a perl6er | |||
06:58
zacts joined,
p6bannerbot sets mode: +v zacts
|
|||
holyghost | so there's not much choice and probably the same people write all the time I guess | 06:59 | |
07:00
domidumont joined
|
|||
holyghost | I have 3 modules, so should write 3 advents ... | 07:00 | |
07:00
p6bannerbot sets mode: +v domidumont
|
|||
holyghost | During the weekend I can help out | 07:01 | |
07:04
lizmat joined,
p6bannerbot sets mode: +v lizmat
07:13
lizmat left
|
|||
Geth | doc: f1d4ae3216 | (JJ Merelo)++ | doc/Language/py-nutshell.pod6 Minor changes and reflow |
07:14 | |
doc: 2c1c964942 | (JJ Merelo)++ | doc/Language/operators.pod6 Reflow and reformatting |
|||
synopsebot_ | Link: doc.perl6.org/language/py-nutshell | ||
Link: doc.perl6.org/language/operators | |||
doc: cfb6e81645 | (JJ Merelo)++ | doc/Type/Test.pod6 Eliminates non-existing variable Also some reflow, some additional comments, overall closes #2466 |
|||
synopsebot_ | Link: doc.perl6.org/type/Test | ||
07:18
andrzejku_ joined,
Sgeo left,
p6bannerbot sets mode: +v andrzejku_
|
|||
Geth | ecosystem: 5426af2fe4 | (Sam Morrison)++ | 2 files Remove Uzu, now available on CPAN |
07:20 | |
ecosystem: 6ee2317221 | (Sam Morrison)++ | .travis/testpackagemeta.pl revert permissions |
|||
ecosystem: 90b18fe782 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list Merge pull request #419 from scmorrison/master Remove Uzu, now available on CPAN |
|||
07:21
andrzejku left,
andrzejku_ is now known as andrzejku
07:25
m01ar joined,
p6bannerbot sets mode: +v m01ar
07:28
Sgeo joined
07:29
p6bannerbot sets mode: +v Sgeo
07:36
robertle joined
07:37
p6bannerbot sets mode: +v robertle
07:38
m01ar_ joined,
p6bannerbot sets mode: +v m01ar_,
m01ar_ left
07:39
m01ar_ joined,
p6bannerbot sets mode: +v m01ar_
07:40
m01ar left,
m01ar_ is now known as m01ar
07:43
jmerelo left
07:57
rindolf joined
07:58
zakharyas joined,
p6bannerbot sets mode: +v rindolf,
p6bannerbot sets mode: +v zakharyas
08:06
ufobat___ is now known as ufobat
08:31
dct joined,
p6bannerbot sets mode: +v dct
08:54
discoD left
08:58
coet[work] joined,
p6bannerbot sets mode: +v coet[work]
09:06
scimon joined
09:07
p6bannerbot sets mode: +v scimon
09:10
hamhu3_ left,
squashable6 left
09:12
dct left
09:14
squashable6 joined,
p6bannerbot sets mode: +v squashable6
09:22
hamhu3 joined,
hamhu3 left
09:23
hamhu3 joined
09:24
hamhu3 left,
hamhu3 joined
09:25
p6bannerbot sets mode: +v hamhu3,
dct joined,
p6bannerbot sets mode: +v dct
|
|||
scimon | So after all my complaining about Module documentation I was alerted to a thing of beauty. Uzu is lovely. | 09:46 | |
masak | what's Uzu? | 09:52 | |
masak .oO( nothing much, what's uzu with you? ) :P | 09:53 | ||
sacomo | scimon, thanks. uzu is a my project, still lots of work to do, but it has a lot of features if you are looking for a static site generator. | 09:54 | |
scimon | A) I love static site generators B) It LOVE modules with this much documentation. | 10:10 | |
10:11
lizmat joined,
p6bannerbot sets mode: +v lizmat
|
|||
lizmat | weekly: opensource.com/article/18/11/failu...ion-perl-6 | 10:14 | |
notable6 | lizmat, Noted! | ||
sacomo | lizmat, great article. thanks for introducing me to `quietly`, I am going to start using that. | 10:16 | |
scimon, me too. I am working on some big updates / additions for uzu. | 10:17 | ||
SmokeMachine | . | 10:21 | |
yoleaux | 07:07Z <lizmat> SmokeMachine: not sure, and no time to look at as commuting to London | ||
10:21
p6noob joined,
p6bannerbot sets mode: +v p6noob
10:24
m01ar left
10:26
p6noob left
10:33
lizmat_ joined,
p6bannerbot sets mode: +v lizmat_,
lizmat left
10:36
domidumont left
10:37
tobs` joined
10:38
p6bannerbot sets mode: +v tobs`
10:49
sena_kun joined
10:50
p6bannerbot sets mode: +v sena_kun,
lizmat_ left
10:54
kensanata joined,
p6bannerbot sets mode: +v kensanata
11:00
scimon left,
scimon joined
11:01
tux68 joined,
p6bannerbot sets mode: +v scimon
11:02
p6bannerbot sets mode: +v tux68
11:14
p6noob joined,
p6bannerbot sets mode: +v p6noob
11:21
dct left
11:24
scimon left
11:25
scimon joined,
p6bannerbot sets mode: +v scimon
11:27
rindolf left,
rindolf joined
11:28
p6bannerbot sets mode: +v rindolf
11:33
gregf_ joined,
p6bannerbot sets mode: +v gregf_
11:35
leont joined
11:36
p6bannerbot sets mode: +v leont
11:44
dct joined,
p6bannerbot sets mode: +v dct
11:48
leont left
|
|||
SmokeMachine | .tell lizmat very good article! Would it worth to tell that currently custom specialization of X::Control won’t be catched by a CONTROL phaser but will by a CATCH? | 11:53 | |
yoleaux | SmokeMachine: I'll pass your message to lizmat. | ||
11:55
kurahaupo left
12:08
tux68 left
12:16
DuMu joined,
p6bannerbot sets mode: +v DuMu
|
|||
DuMu | Hello folks, I'm trying to build Rakudo Perl 6 on Cygwin. Everything seems fine until I get to `src/platform/win32/mmap.c` in the MoarVM folder. Then, I get loads of errors. | 12:18 | |
timotimo | buggable: mingw | 12:19 | |
12:19
kurahaupo joined
|
|||
timotimo | er | 12:19 | |
buggable: cygwin | |||
isn't that our factoid bot | |||
huggable: cygwin | |||
huggable | timotimo, nothing found | ||
AlexDaniel | too many bots huh | ||
timotimo | it's probably wrong to use the win32 platform code on cygwin? | ||
DuMu | I've tried loading some of the MinGW modules in Cygwin to get gcc working, that seems to help a bit... | ||
could be | 12:20 | ||
12:20
p6bannerbot sets mode: +v kurahaupo
|
|||
DuMu | how can I stop it from being configured by Configure.pl? | 12:20 | |
(the win32 stuff that is) | |||
timotimo | dunno, the build system scares me | ||
DuMu | :D | ||
ouch | |||
perhaps I should just erase the win32 dir before running make! | 12:21 | ||
Summertime | if in doubt, do it and then git reset head later | ||
timotimo | that will probably not work | 12:22 | |
DuMu | aye | ||
Summertime | thats no fun though | 12:23 | |
12:23
fnux left,
zakharyas left
|
|||
Summertime | the probable thing would be an incorrect platform check? that shouldn't be the hardest thing to track down | 12:28 | |
I'd volunteer but no windows machines | 12:29 | ||
if the issue is within Configure.pl, the two main tests are: $Config{archname} , $^O | 12:38 | ||
but it also looks like you might be able to pass `--os=posix` and have that work | 12:40 | ||
DuMu | aha!!! | 12:44 | |
I hope so, because practically every line is `if ($^O eq 'MSWin32) ...` | |||
12:45
lucasb joined
12:46
p6bannerbot sets mode: +v lucasb
|
|||
DuMu | well, $^O on Cygwin returns ... "cygwin" | 12:50 | |
12:51
coet[work] left
|
|||
Summertime | yeah I think the use Config ; $Config{archname} might be the problematic one | 13:03 | |
13:06
coet[work] joined,
p6bannerbot sets mode: +v coet[work]
13:07
coet[work] left
13:11
cygx joined
13:12
p6bannerbot sets mode: +v cygx
|
|||
cygx | DuMu: you can pass `--os cygwin` to Configure.pl, but I doubt it'll do the right thing | 13:12 | |
libuv used to be broken on cygwin, so there was no point in making the moarvm build work | |||
DuMu | that is too bad... | 13:15 | |
so... no Perl6 on Cygwin | |||
seems you are right... " no idea how to build '3rdparty/libuv/libuv.a' " | 13:16 | ||
I passed "--os=posix" | |||
cygx | apparently, libuv works on cygwin nowadays (cf github.com/libuv/libuv/issues/2034 ) | 13:20 | |
so in principle, someone could add cygwin support to moarvm | 13:21 | ||
DuMu: you could try building libuv seperately and then passing --has-libuv to Configure.pl | 13:22 | ||
13:31
gregf_ left,
R3sol left
13:34
domidumont joined,
p6bannerbot sets mode: +v domidumont
13:36
domidumont left
13:37
scimon left,
uzl joined
|
|||
DuMu | Thanks @cygx! | 13:37 | |
13:37
domidumont joined,
p6bannerbot sets mode: +v uzl
13:38
p6bannerbot sets mode: +v domidumont
13:40
domidumont left
|
|||
Geth | doc: uzluisf++ created pull request #2467: Change from list items to lower-level headings and whitespace |
13:42 | |
uzl | .seen jmerelo | 13:43 | |
yoleaux | I saw jmerelo 06:57Z in #perl6: <jmerelo> right | ||
13:44
dct left
|
|||
uzl | .tell Hey, jmerelo! Could you please review this PR: github.com/perl6/doc/pull/2467? | 13:45 | |
yoleaux | uzl: What kind of a name is "Hey,"?! | ||
13:46
scimon joined,
p6bannerbot sets mode: +v scimon
|
|||
uzl | .tell Hey, jmerelo! Could you please review this PR: github.com/perl6/doc/pull/2467? | 13:47 | |
yoleaux | uzl: What kind of a name is "Hey,"?! | ||
uzl | What? Is youleaux going mad? This is weird. | 13:48 | |
sena_kun | uzl, format is ".tell $nickname " | ||
uzl, can you look into a conflict? | 13:50 | ||
it seems to me like a simple wrapping issue. And I personally like more sparse variant better. | 13:51 | ||
uzl | sena_kun: thanks! I wasn't even realizing it. | ||
sena_kun | uzl, you can use github interface if you fancy, it's quite nice imho. | 13:52 | |
13:53
zacts left
13:55
p6noob left
|
|||
uzl | sena_kun: it seems I didn't pull from upstream to collect all the latest changes. What should be the course action here? | 13:56 | |
sena_kun | uzl, if you are using github editor, just remove obsolete part(with `====` things around it, leaving the whole section as it could look in master) and `Conflict is resolved` or something button. :) | 13:57 | |
13:58
domidumont joined
13:59
p6bannerbot sets mode: +v domidumont
|
|||
sena_kun | uzl, exact button is `Mark as resolved`. | 13:59 | |
13:59
cygx left
|
|||
uzl | sena_kun: great! will do that. | 13:59 | |
14:01
dct joined,
p6bannerbot sets mode: +v dct
|
|||
Geth | doc/master: 4 commits pushed by (Luis F. Uceta)++, Altai-man++ | 14:02 | |
sena_kun | uzl++ | ||
uzl | sena_kun: thanks! ;-) | 14:03 | |
DuMu | Aha, happily, libuv can be installed using the official Cygwin setup app! | ||
14:06
tobs` left
|
|||
sena_kun | m: subset A of Str; subset B of Str; multi f(A $a) { 'A'.say }; multi f(B $b) { 'B'.say }; my B $b = 'haha'; f($b); | 14:12 | |
camelia | A | ||
sena_kun | is this a bug or I just want too much? | ||
but | |||
subset A of Str; subset B of Str; multi f(B $b) { 'B'.say }; multi f(A $a) { 'A'.say }; my A $a = 'haha'; f($a); | 14:13 | ||
evalable6 | B | ||
sena_kun | so it is sensitive to where `multi` method is in a file. :S | ||
ooh, I see rt.perl.org/Public/Bug/Display.html?id=123577 | 14:16 | ||
jnthn | Yes, subset types are tie-breakers, and first matching one wins | 14:17 | |
sena_kun | I see | 14:18 | |
14:18
zakharyas joined
|
|||
sena_kun | is there nothing I can do besides using a wrapper class? I am not particulary hesistant of it, just what if. | 14:18 | |
jnthn | Values don't have subset types | 14:19 | |
They just might match them | |||
14:19
p6bannerbot sets mode: +v zakharyas
|
|||
jnthn | So "my A $a" is saying that what's stored into $a has to match the subset type | 14:19 | |
sena_kun | ah, I see now. | ||
jnthn | The multi-dispatch works on the actual type; the declared type of the variable it happens to be stored in isn't relevant. | ||
sena_kun | well, then never mind, I'll use a wrapper, I guess. thanks. | 14:20 | |
jnthn | np | ||
14:26
loops joined
14:27
p6bannerbot sets mode: +v loops
14:31
loops left
14:35
loops joined,
p6bannerbot sets mode: +v loops
14:36
curan left
14:37
dct left
|
|||
uzl | .tell lizmat Great article! BTW, `say $foo;` doesn't throw a warning even when outside of the quietly block. I guess you meant to use `print`?. | 14:37 | |
yoleaux | uzl: I'll pass your message to lizmat. | ||
uzl | .tell lizmat I also have a question about the article on containers: colabti.org/irclogger/irclogger_lo...11-20#l424 | 14:38 | |
yoleaux | uzl: I'll pass your message to lizmat. | ||
14:38
uzl left
14:44
kensanata left
|
|||
tbrowder___ | .ask DrForr Can one of your modules be used to debug Rakudo NQP Grammar.nqp? | 14:45 | |
yoleaux | tbrowder___: I'll pass your message to DrForr. | ||
DuMu | Still no luck building p6 on cygwin :( | 14:48 | |
Summertime | don't have windows 10 for WSL use? | 14:49 | |
DuMu | It is now failing here: cc -o moar -O -DNDEBUG -Wl,-rpath,"//home/ludov/rakudo/install/lib" src/main.o -L. -lmoar | ||
WSL is ridiculously slow on this laptop | |||
at least the Debian version is | |||
Summertime | damn | ||
DuMu | maybe it isn't too bad | 14:50 | |
I'll give it a shot. It would be great to have it on Cygwin though. | |||
14:52
kensanata joined,
p6bannerbot sets mode: +v kensanata
|
|||
DuMu | I have it installed on Windows anyway, it's just a step down having to use cmd.exe as a shell! | 14:53 | |
Summertime | hm, you'll still need to use cmd as your terminal, but, msys2 (iirc what the git installer auto-installs) will give you bash and I think interoperability with win32 programs | 14:57 | |
15:02
Resol joined,
p6bannerbot sets mode: +v Resol
|
|||
DuMu | Summertime: WSL seems to be using xterm | 15:03 | |
for me | |||
15:03
devmikey joined,
p6bannerbot sets mode: +v devmikey
|
|||
DuMu | When I run `p6doc -f IO.say` in cmd, I am seeing stuff like this: "say Range; # OUTPUT: ┬½(Range)ÔÉñ┬╗" | 15:05 | |
Is that meant to be happening? | |||
15:10
xinming joined
15:11
p6bannerbot sets mode: +v xinming
15:12
xinming_ left
|
|||
tbrowder___ | DrForr: ignore my question above—just revisiting yr perl parser answered it | 15:17 | |
15:27
ChoHag_ is now known as ChoHag,
coet[work] joined,
p6bannerbot sets mode: +v coet[work]
|
|||
DuMu | My MacBook correctly renders the chevrons in the p6docs. cmd.exe evidently isn't Unicode-aware. | 15:30 | |
SqrtNegInf | I wonder if the behavior of the anonymous state variable here expected: | 15:50 | |
m: say "increments NOT {++$}" for ^3; say "increments OK " ~ ++$ for ^3; | |||
camelia | increments NOT 1 increments NOT 1 increments NOT 1 increments OK 1 increments OK 2 increments OK 3 |
||
SmokeMachine | m: subset NotARole of Any where so *.^lookup: "required-method"; class A { method required-method {} }; multi bla(NotARole) { "not a role" }; multi bla($) {"anything else"}; say bla A; say bla 42 | 15:51 | |
camelia | not a role anything else |
||
SqrtNegInf | Does interpolation in the string count as a separate 'lexical scope' (as per documentation)? I wouldn't think so, and at some point in the past both versions would increment. | 15:52 | |
SmokeMachine | Does subset can be used as golang's interfaces? ^^ | 15:53 | |
I mean, like interfaces that bo not need to be "used" to be implemented... | 15:54 | ||
was that the intention? | |||
timotimo | SqrtNegInf: every { } gets a lexical scope | 15:57 | |
SqrtNegInf: in order to do what you want there, you can use $($++) instead of {$++} | |||
SqrtNegInf | That did the trick, thanks. | 15:58 | |
timotimo | YW | 16:01 | |
16:09
kensanata left
|
|||
Poohman | hello all, im trying to install cro in my windows box using zef - but it fails because "tar p5star or unzip" is missing | 16:14 | |
moritz | so, install tar or unzip? | 16:15 | |
Poohman | are these dependencies to be installed using zef? | ||
moritz | no | ||
Poohman | or should they be installed separately | ||
In windows? | 16:16 | ||
moritz | yes, I think so | ||
Poohman | tar.exe - hmmm - let me search | 16:17 | |
thanls | |||
thanks | 16:18 | ||
16:18
DuMu left
16:23
domidumont left
|
|||
Poohman | moritz: p5tar seems to be a script which is a part of zef | 16:30 | |
16:34
Sound joined,
p6bannerbot sets mode: +v Sound
|
|||
Poohman | if I search for it using zef it refers back to zef | 16:35 | |
ill try to update zef and try | |||
16:37
musca left
16:38
robertle left
16:44
Sound left
16:54
leont joined
16:55
p6bannerbot sets mode: +v leont
17:03
kerframil joined,
p6bannerbot sets mode: +v kerframil
17:04
Sound joined,
p6bannerbot sets mode: +v Sound
17:08
kerframil left,
Sound left
17:22
molaf joined
17:23
p6bannerbot sets mode: +v molaf
17:25
molaf left
17:35
scimon left
17:39
sauvin left
|
|||
loops | Where would the difference between Map.new: (1,2) and Map.new(1,2) be found in the docs? | 17:47 | |
17:51
rindolf left
17:57
rindolf joined
17:58
p6bannerbot sets mode: +v rindolf
|
|||
loops | Here's one little tidbit about "method call colon syntax", docs.perl6.org/language/syntax#Precedence_drop | 18:06 | |
18:10
domidumont joined
18:11
domidumont left
18:12
domidumont joined
18:13
p6bannerbot sets mode: +v domidumont
18:17
kerframil joined,
p6bannerbot sets mode: +v kerframil
18:27
coet[work] left,
Sound joined,
p6bannerbot sets mode: +v Sound
18:28
Resol left
|
|||
Juerd | loops: The difference between .foo(x) and .foo: x is purely syntactic | 18:38 | |
loops: I don't think this is documented | |||
loops: Note that the extra parentheses in Map.new: (1,2) make it like Map.new((1,2)) | 18:39 | ||
This doesn't matter for Map.new, but it might for other method calls | |||
18:40
phogg left
|
|||
loops | Juerd, thanks. My example wasn't the best, I was just trying to figure out a search term for the docs. | 18:43 | |
18:44
phogg joined,
p6bannerbot sets mode: +v phogg
18:50
CindyLin1 is now known as CindyLinz
18:53
domidumont left
|
|||
SmokeMachine | Do you guys think something like this would make any sense? gist.github.com/FCO/b23b055ada6ef4...d29e39aa91 | 18:54 | |
(Im not sure about the name) | 18:55 | ||
i think it would be useful to define a set of methods that a attribute/parameter/something must implement but it will not need to `does` a role... | 18:56 | ||
like golang interfaces | |||
moritz | you can kinda do that with subsets | 18:57 | |
18:58
domidumont joined
|
|||
moritz | m: subset XY of Any where {.can('x') && .can('y') } | 18:58 | |
camelia | ( no output ) | ||
moritz | m: subset XY of Any where {.can('x') && .can('y') }; say class { has ($.x, $.y) } ~~ XY; say Int ~~ XY | ||
camelia | True False |
||
18:59
p6bannerbot sets mode: +v domidumont
|
|||
SmokeMachine | moritz: yes... but with subset you would have to implement the details to test the methods... | 18:59 | |
gobyexample.com/interfaces | |||
moritz: yes... but you had to implement the test if the methods x and y exists... | 19:00 | ||
moritz | SmokeMachine: hence "kinda" :) | 19:03 | |
19:04
olinkl left,
zakharyas left,
olinkl joined,
p6bannerbot sets mode: +v olinkl
|
|||
SmokeMachine | moritz: :) | 19:06 | |
does any one know if LPW will be streamed? | 19:07 | ||
19:16
Sound left
|
|||
Geth | ecosystem: 089e9749e4 | (Lucas Buchala)++ (committed using GitHub Web editor) | META.list Add Duo, a pair object, to the ecosystem See: github.com/lucasbuchala/p6pairs |
19:21 | |
lucasb | ^^ My first dist :) Any comments or review welcomed. | 19:30 | |
after the ecosystem is updated, I would appreciate if anyone could confirm 'zef install Duo' works | 19:31 | ||
SmokeMachine | lucasb: Duo won't always be reflexive? | ||
lucasb | in the current code, yes. always [Any,Any] | ||
one can create a Duo::Role[Str, Cool] or whatever, but currently, the "class Duo is Duo::Role[Any,Any]" is hard coded | 19:32 | ||
AlexDaniel | lucasb: obligatory comment “Why not CPAN?” | 19:34 | |
lucasb | obviously the documentation is lacking, but I intend to fill with the differences between Pair vs Duo | ||
AlexDaniel: idk, first time doing this :) | |||
let me get some experience then maybe in the future I put in CPAN | 19:35 | ||
Poohman | hello - having some trouble installing Cro in windows using zef | 19:36 | |
If the dependencies are in tar.gz format there seems to be a problem | |||
I have installed git and gnu tar - updated the path file | 19:37 | ||
path variable I mean | |||
19:37
molaf joined
|
|||
Poohman | ther is a p5tar script which seems to be written for such an evnetuality | 19:38 | |
but I guess I need perl to be installed for that | |||
19:38
p6bannerbot sets mode: +v molaf
|
|||
Poohman | I would like to try that as well - what version of perl is the best choice for windows | 19:39 | |
? | |||
19:41
phogg left
19:53
phogg joined,
p6bannerbot sets mode: +v phogg
|
|||
timotimo | you should be able to extract the distributions and "zef install ." in the folder | 19:55 | |
19:56
kurahaupo left
|
|||
Poohman | timotimo : ok | 19:58 | |
timotimo | it could be interesting to figure out how to make it work anyway | 19:59 | |
but just making it work right now could be more important | |||
Poohman | i can try that - I just installed Activestate perl and it seems to work now | ||
timotimo | oh, that's good | ||
19:59
kurahaupo joined
|
|||
Poohman | just googled perl and the installed this | 20:00 | |
20:00
p6bannerbot sets mode: +v kurahaupo,
phogg left
20:01
phogg joined,
phogg left,
phogg joined,
p6bannerbot sets mode: +v phogg
|
|||
Poohman | timotimo : are you involved in the CommaIDE project?? | 20:01 | |
20:02
p6bannerbot sets mode: +v phogg
|
|||
timotimo | yes, though i haven't put in work in a month or two | 20:05 | |
can i do something for you? | |||
Poohman | I had some trouble updating because everytime I downloaded the update for Windows, the saved filename was a long strange one and I didnt know what to do with it | 20:06 | |
last week I tried renaming it with an .EXE at the end and then could update it | |||
timotimo | you went to the subscriber login and used the "Comma for Windows" link? | 20:07 | |
Poohman | yes | ||
timotimo | interesting. when i click that i just get a .exe directly. could it be some antivirus software interfering? | ||
Poohman | just wanted to inform you as Zoffix told me that Jonathon and you could help me regarding this | ||
I just followed the prompt from the IDE for update - I guess it took me to the page you are referring to | 20:09 | ||
timotimo | does it still give you the strange filename when you click on that download link right now? | ||
Poohman | let me try | ||
no now its a proper exe with a small name | 20:10 | ||
timotimo | that's quite strange, but i'm glad it somehow got resolved | 20:11 | |
Poohman | looks ok now | 20:12 | |
timotimo | you don't happen to remember the old filename, or the time of day and date you downloaded it? perhaps it can be found in the web server's log | 20:13 | |
Poohman | i was searching for it but must have deleted it | 20:14 | |
was very long - the name I mean | |||
timotimo | OK | ||
perhaps like a sha1 or sha256 hash? | |||
Poohman | it seemed more like a link than a name | ||
timotimo | like a full url with a path name inside it? perhaps with %20 encoding? | 20:15 | |
AFK BBIAB | 20:16 | ||
Poohman | got it | ||
commaCO-2018.10.0.com_20181012_us_storage_goog4_request&x-goog-date=20181012T181405Z&x-goog-expires=120&x-goog-signedheaders=host | 20:17 | ||
this was the name of the downloaded file | |||
142,285 KB | |||
buggable | New CPAN upload: App-Tasks-0.0.13.tar.gz by JMASLAK modules.perl6.org/dist/App::Tasks:cpan:JMASLAK | 20:18 | |
Poohman | I had this problem for some weeks and just renamed it with an exe at the end and it worked | ||
sena_kun | hmm, that's odd. what browser do you use? | 20:19 | |
Poohman | normally Chrome - but when I got redirected from the Comma IDE it was internet explorer | 20:20 | |
sena_kun | ah | ||
Poohman | I did this many a times - not sure if I always did it with internet explorer | 20:21 | |
sena_kun | well, I can believe Internet Explorer can ruin downloads. | ||
it is not very reliable when it comes to browsing pages in terms of quality. I think it should be totally okay in Chrome. | |||
Poohman | ok | 20:22 | |
got Cro installed via zef but only after overriding the tests - tests seem to fail for it - will check tomorrow- need to hit the sack - thanks for all the help | 20:40 | ||
sena_kun | sometimes tests fail. it's a known issue for now, unfortunately, but it's easier to note than fix. :S | 20:41 | |
20:41
pecastro joined
|
|||
sena_kun | though it's still mosly okay to use on a daily basis. | 20:41 | |
20:42
p6bannerbot sets mode: +v pecastro
20:52
kurahaupo_ joined
20:53
kurahaupo left,
p6bannerbot sets mode: +v kurahaupo_
20:55
jamesaxl joined
20:56
p6bannerbot sets mode: +v jamesaxl,
holyghost left,
holyghost joined
|
|||
jamesaxl | which book do you recommend for perl6 ? | 20:56 | |
20:57
p6bannerbot sets mode: +v holyghost
|
|||
sena_kun | jamesaxl, have you saw perl6book.com/img/p6-book-flowchart.png ? | 20:58 | |
jamesaxl | sena_kun: that's nice, Thank you very much | 21:01 | |
21:02
kurahaupo_ left,
kurahaupo joined
21:03
p6bannerbot sets mode: +v kurahaupo
21:06
sftp left
21:07
sftp joined,
p6bannerbot sets mode: +v sftp
|
|||
jamesaxl | does perl6 has something like Carton ? | 21:11 | |
mornfall | hmm, do scalars in perl6 get a type? as in, can i tell a string from a number? | ||
jamesaxl | I just discovered rakudobrew | 21:12 | |
sena_kun | jamesaxl, rakudobrew takes latest from git, iirc, so you likely don't want to use it. or, what is your purpose? | ||
mornfall, you mean, like... | |||
m: my $a = "Foo"; say $a ~~ Int; say $a ~~ Str; | 21:13 | ||
camelia | False True |
||
sena_kun | ? | ||
mornfall | sena_kun: more like my $a = "7"; but yes | ||
sena_kun | ah... well, in your case it is Str for sure. | ||
so I doubt it'll work like that. | |||
but you can match if it's an Int using a regex, etc. depending on what you want to do. | 21:14 | ||
jamesaxl | sena_kun: I just need something like Carton, install package locally without building new perl | ||
sena_kun | jamesaxl, re Carton: maybe github.com/FCO/6pm can help? | ||
mornfall | sena_kun: no, i *want* that to be Str | 21:15 | |
sena_kun: in p5 it is pretty much impossible to tell | |||
sena_kun | jamesaxl, do you want to install your local package with Perl 6 package manager? It will be just `zef install .` inside of package directory. Or `zef install DirectoryWithMyModule`. | ||
jamesaxl | sena_kun: thank you I get it | 21:16 | |
sena_kun | mornfall, sorry, don't know Perl 5 so well. Maybe an example or a use-case(even with pseudo-code will do) can help. | ||
21:17
kurahaupo_ joined
21:18
p6bannerbot sets mode: +v kurahaupo_
|
|||
mornfall | sena_kun: well, as long as "7" ~~ Str in p6, I'm happy :p | 21:19 | |
sena_kun | it surely is. :) | 21:20 | |
mornfall | (that'd be a good excuse to port over this crummy thing to p6 perhaps) | ||
21:21
kurahaupo_ left
|
|||
sena_kun usually does various type-related tricks and that'd be tricky to debug otherwise | 21:21 | ||
21:22
kurahaupo left,
kurahaupo joined
21:23
p6bannerbot sets mode: +v kurahaupo
21:25
dct joined,
p6bannerbot sets mode: +v dct
21:27
kurahaupo left
21:32
moony left
21:33
moony joined,
p6bannerbot sets mode: +v moony,
moony left
21:34
moony joined,
p6bannerbot sets mode: +v moony,
domidumont left
|
|||
SmokeMachine | jamesaxl: had you taken a look at 6pm? | 21:45 | |
jamesaxl | SmokeMachine: before no, now I check it on giyhub | 21:47 | |
SmokeMachine | Oh! I just saw! sena_kun thanks for talking about 6pm! | ||
sena_kun | SmokeMachine, well, I thought I definetely saw mentioning of `Carton` at most wanted modules page, though I myself don't have a clue what `Carton` is, and saw a link to 6pm there. :) | 21:48 | |
21:59
NeVada joined,
p6bannerbot sets mode: +v NeVada
|
|||
NeVada | Hey, new guy here. I was just wondering, are there any downsides to using Perl6 on Windows rather than Linux? | 22:00 | |
sena_kun | o/ | ||
timotimo | we don't have very many volunteers developing perl6 on windows, so if you like running versions of perl6 right out of git, you may encounter bugs more often | 22:02 | |
NeVada | Thanks. I learned a bit of Perl5 in the past and I'm trying to get the hang of Perl6 now. With Perl5, I often encountered problems. Think I was using Strawberry Perl. | 22:05 | |
timotimo | perl6 is very different, I hope you'll find very different problems with it :) | 22:06 | |
NeVada | So I've heard, yes. It has a lot of potential. | 22:07 | |
timotimo | we like to think so :) | ||
AlexDaniel | heh, what about a built in class called “Potential” | 22:08 | |
don't know what it'd do, but we can have a lot of it :P | 22:09 | ||
NeVada | Well, classes is something I like about Perl6. I no longer need to do weird things with modules to simulate classes like in Perl5. | ||
timotimo | to be fair, there's modules that make that nicer ... i think? i don't actually write any perl5 :| | 22:10 | |
why don't we rename "Promise" "Potential" | 22:11 | ||
AlexDaniel | timotimo: have you ever seen anyone show off this thing? ↓ | ||
m: say (‘abc’ x 999999999).substr: *-5, 5 | |||
camelia | bcabc | ||
timotimo | i have not | ||
AlexDaniel | I feel like most blog posts/talks don't go beyond 0.1+0.2==0.3… :) | 22:12 | |
timotimo | hah | ||
NeVada | Well, Rakudo on Windows seems to be doing fine so far. | ||
timotimo | to be fair, "abc" x 9999999999 is kind of not very useful on the day-to-day? | ||
that's good to hear! | |||
sena_kun | re potential: I think a constant `$potential = ∞` is sufficient. :) | ||
AlexDaniel | yes but | ||
m: say (‘AAA’ ~ ‘abc’ x 999999999 ~ ‘ZZZ’).substr: *-5, 5 | 22:13 | ||
camelia | bcZZZ | ||
AlexDaniel | it's not limited to just repetitions | ||
timotimo | that's true | ||
but the moment you try to run a regex against it, your memory's gonna run out :) | |||
NeVada | I wish I could fully dedicate my laptop to Linux, but it has some very weird ACPI-related issues I run into. Also, the touchpad doesn't even work on most distributions. ASUS really doesn't like making their machines Linux compatible... | ||
timotimo | because the first thing our regex engine does is make ropy strings into flat arrays for performance reasons | ||
oh, that sucks to hear | 22:14 | ||
but i keep hearing windows 10's WSL is super good | |||
AlexDaniel | m: say (‘AAA’ ~ ‘abc’ x 999999999 ~ ‘ZZZ’).contains: ‘abcZ’ | ||
I feel like it's an optimization opportunity here | |||
NeVada | Well, running the real thing would make me feel better than using WSL. | 22:15 | |
camelia | (timeout) | ||
22:15
lizmat joined,
p6bannerbot sets mode: +v lizmat
|
|||
AlexDaniel | there's no point in trying to match the same repeated string over and over | 22:15 | |
timotimo | go ahead, you can totally have a look at the implementation of that :) | ||
AlexDaniel | true that maybe not super useful in day to day stuff, but that again could've been a cool thing to show off :) | ||
22:18
dct left
|
|||
NeVada | I'm not very educated in this sense. Is Larry Wall advocating for either Perl5 or Perl6 currently? I tried to find something online, but nothing conclusive showed up. | 22:18 | |
timotimo | i think larry likes both of his brain-children in the perl family very much | 22:19 | |
NeVada | Seems fair. | 22:20 | |
timotimo | maybe love is the appropriate word when using a family/parenting thing out of it | 22:21 | |
22:21
sftp left
22:22
sftp joined,
p6bannerbot sets mode: +v sftp
|
|||
NeVada | Is there any easy to use Perl6 web application framework? | 22:26 | |
sena_kun | Cro? Though not exactly a web framework, as you need to take care about model(DB) layer and templating yourself, as Cro::HTTP only takes care of nice serving. | 22:28 | |
NeVada | Will try, thank you. | ||
sena_kun | Also Bailador maybe. | ||
NeVada, cro.services/ <- | 22:29 | ||
NeVada | Much appreciated. | ||
timotimo | cro is cool for all of its async/multithreaded/reactive features, and it does http/2 with push promises and also websockets | 22:30 | |
but cro is really currently mainly meant for microservices | |||
so doesn't have much html related things embedded into it | |||
that said, there's github.com/jnthn/cro-webapp which has a prototype of a html templating library | 22:31 | ||
sena_kun | yup, exactly. and there are some ssues with stability right now, not really seen too often though, but 1 run in a 200 can die. :S | ||
*issues | 22:33 | ||
timotimo | i'm using it with great success for the moarvm performance analysis tool | ||
22:37
SourceBaby joined,
ChanServ sets mode: +v SourceBaby
|
|||
NeVada | It seems zef install Bailador doesn't really like something on Windows. prntscr.com/llswjd | 22:38 | |
22:38
Sgeo_ joined,
p6bannerbot sets mode: +v SourceBaby
|
|||
AlexDaniel | heh, expected \n but got \r\n | 22:39 | |
22:39
p6bannerbot sets mode: +v Sgeo_
|
|||
sena_kun | github.com/Bailador/Bailador/issues/295 | 22:40 | |
22:40
Sgeo left
|
|||
NeVada | So, I guess --force-test is the way to go? | 22:41 | |
Thank you for the link to the issue, btw. | |||
sena_kun | yes, it might be. | ||
22:47
dct joined,
p6bannerbot sets mode: +v dct
22:56
moony left
22:57
moony joined,
p6bannerbot sets mode: +v moony
23:03
NeVada left
|
|||
AlexDaniel | “UnboundLocalError: local variable 'foo' referenced before assignment” | 23:15 | |
why did you even run then!!! | |||
other languages are so rage inducing sometimes :) | 23:16 | ||
23:26
rindolf left
23:47
dct left
|
|||
lucasb | gist.github.com/lucasbuchala/9340f...02d7418172 | 23:49 | |
^^ I just can't make that work | 23:50 | ||
grabbed this idea/snippet from SmokeMachine++ | |||
23:51
Ven`` joined
23:52
p6bannerbot sets mode: +v Ven``
|
|||
lucasb | the intention is: Duo.new(1, 2) should be a Duo::Role[Any, Any] | 23:52 | |
because I choosed [Any, Any] to be the default generic pair | 23:53 | ||
but it should be possible to also create things like Duo[Int, Str].new(1, "foo"), that should do Duo::Role[Int, Str] | 23:54 | ||
sena_kun | lucasb, don't know how to ask maybe, are you trying to implement a Pair with more features or? | ||
lucasb | yup, | ||
just playing with the idea | |||
sena_kun | ah, ok. was wandering is there something cool missing in plain Pair I am not aware enough about. :) | 23:55 | |
lucasb | a generic nonsense useless pair :) | ||
well, the API is different | |||
for example, mypair.List returns a 2-elem list (key, value) | 23:56 | ||
core P6 pair isn't made for this kind of use :) | |||
sena_kun | I see | 23:57 |