IRCloggy #perl6 2018-05-24

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2018-05-24

raschipi joined00:06
Actualeyes left00:25
markong left00:35
ingy I'm setting up travis for a multilang project and using perl6 as an addon, but it doesn't install zef00:45
I see this works: https://github.com/perl6-community-modules/p6-test-builder/blob/master/.travis.yml00:45
but mine fails: https://github.com/testml-lang/testml/blob/travis/.travis.yml#L1200:45
timotimo not sure what the perl6 apt package gets you on those ubuntu versions the yhave00:46
ingy sudo: zef: command not found https://travis-ci.org/testml-lang/testml/builds/38295884500:46
timotimo potentially a version far too old to run zef00:46
ingy right, so open to suggestions :)00:47
raschipi You need to manually install it. Those comands in the first one aren't using zef, they are installing it.00:47
timotimo Get:21 http://us-central1.gce.archive.ubuntu.com/ubuntu trusty/universe amd64 rakudo amd64 2013.12-1 [2,448 kB]00:47
yeah, no.00:47
huggable: deb00:47
huggable timotimo, Alpine, CentOS, Debian, Fedora, OpenSUSE and Ubuntu Rakudo packages: https://github.com/nxadm/rakudo-pkg#rakudo-pkg00:47
timotimo ingy: there's an apt repository there00:47
ingy ok00:47
lain0n joined00:50
ingy timotimo: is that supposed to install perl6 and zef bins?00:53
zef still not found00:53
timotimo there's more info about that topic in the readme of that repository00:53
there's a command you need to run00:53
HaraldJoerg left00:54
lain0n left00:54
ingy I see00:55
stmuk_ joined00:57
stmuk left00:59
ingy there's a travis section: https://github.com/nxadm/rakudo-pkg#using-rakudo-pkg-on-travis01:01
hopefully that just works, testing now01:01
raschipi left01:04
kurahaupo_ joined01:08
ingy it's not01:12
enheh left01:12
ingy trying one more thing01:12
enheh joined01:12
kurahaupo left01:12
timotimo looks like ou forgot the important part01:13
oh, huh?01:13
wamba left01:13
ingy what's that?01:13
timotimo no, that should really have been everything01:13
i misremembered the install-zef-as-user shell script01:13
ingy do I need that?01:14
timotimo no01:14
ah01:14
of course01:14
sudo won't take the PATH from your environment01:14
so it won't find zef when you sudo it01:14
however, it tells you to "zef install" rather than "sudo zef install" in the rakudo-pkg readme01:15
it'd surely be good to have an explicit mention of that there01:15
in the readme of rakudo-pkg i mean01:15
until then, just leave out the sudo for zef and perl6 invocations and i think that should make things work01:15
ingy aye01:15
timotimo well, that looks better01:19
ingy one error at a time!01:20
timotimo rome wasn't continuously integrated from day one01:21
ingy that's how we'll fix the world!01:21
:D01:21
aindilis joined01:22
ingy timotimo: since the testml-compiler is JS and JS is one of the runtime langs I made this interactive demo site https://testml-lang.github.io/testml/?type=example&name=math&view=tap01:23
it has all the testml and testml-compiler and yaml-test-suite tests built-in01:23
and totally interactive01:24
and the location url permalinks any state you choose01:25
mcmillhj joined01:25
timotimo i don't know coffeescript :)01:25
other than that it looks neat01:26
ingy coffeescript is the most straightforward syntax of any lang I have come in contact with01:26
it just js minus a ton of syntax :)01:27
https://testml-lang.github.io/testml/?type=example&name=import&view=mocha is pretty cool01:27
MasterDuke joined01:27
ingy I had to make the compiler API take an Import callback to do imports in the brower01:29
p6 tests all work except haven't seen this before: https://travis-ci.org/testml-lang/testml/builds/382969421#L78701:30
don't get that locally :\01:31
timotimo m: sub it-fails { fail "oh no" }; my $a = it-fails; use nqp; for ^100 { nqp::force_gc }01:33
camelia rakudo-moar 27e8dab9f: ( no output )01:33
timotimo er, of course01:33
m: sub it-fails { fail "oh no" }; my $a = it-fails; $a = Nil; use nqp; for ^100 { nqp::force_gc }01:33
camelia rakudo-moar 27e8dab9f: ( no output )01:33
timotimo ...01:33
not helpful01:33
oh, i really need to go, sorry; that looks like it comes from the periphery of run-time loading of modules01:34
ingy thanks for your help!01:35
ilbot3 left01:47
notostracaTEttinger01:50
ilbot3 joined01:57
ChanServ set mode: +v01:57
Qwerasd joined01:58
mcmillhj left01:59
ingy timotimo: ironically I didn't get those p6 warns on a subsequent run02:00
P6 CAN HAZ GHOZTZ!!!02:01
Qwerasd left02:03
comborico1611 left02:05
Qwerasd_ joined02:32
ChoHag left02:43
pilne left02:50
aborazmeh joined02:53
aborazmeh left02:53
aborazmeh joined02:53
ChoHag joined02:58
kurahaupo_kurahaupo03:24
Qwerasd_ left03:26
ingy does perl6 look for Foo.pm6 before Foo.pm?03:29
ChoHag left03:29
MasterDuke looks like yeah03:31
molaf joined03:32
MasterDuke https://github.com/rakudo/rakudo/blob/master/src/core/CompUnit/Repository/FileSystem.pm6#L9 and https://github.com/rakudo/rakudo/blob/master/src/core/CompUnit/Repository/FileSystem.pm6#L45-L4903:33
ktown raschipi: https://github.com/ktown007/perl6-terminal-asciisketch03:36
ingy MasterDuke: thx03:38
MasterDuke np03:39
xtreak joined03:51
mcmillhj joined03:53
ingy timotimo: got it all working: https://travis-ci.org/testml-lang/testml/builds/383004625 (Passing 5 languages including perl6)03:53
Qwerasd joined03:55
MasterDuke left04:00
eliasr left04:01
n0tjack joined04:05
Qwerasd_ joined04:08
Qwerasd_ left04:08
Qwerasd_ joined04:09
Qwerasd left04:12
Qwerasd_ left04:12
Qwerasd joined04:12
Qwerasd How do I add a catch for errors in a thread so I can get a stacktrace?04:26
psychoslave joined04:26
Qwerasd An error is occurring but all it says is "No exception handler located for catch" and then a stacktrace that points to a bunch of internals04:26
mcmillhj left04:30
ktown Qwerasd: try --ll-exception04:34
Qwerasd I wrapped it in a try/catch and found the error.04:34
n0tjack left04:36
aborazmeh left04:37
curan joined04:40
molaf left04:41
Actualeyes joined04:45
jmerelo joined05:05
n0tjack joined05:06
Qwerasd left05:08
sauvin joined05:10
Qwerasd joined05:15
Geth ¦ doc: 8cd8ed0dfc | (JJ Merelo)++ | doc/Language/5to6-nutshell.pod605:18
¦ doc: Finish rewriting of ref/deref section closes #1081 05:18
¦ doc: review: https://github.com/perl6/doc/commit/8cd8ed0dfc05:18
synopsebot Link: https://doc.perl6.org/language/5to6-nutshell05:18
sno left05:20
xtreak left05:21
xtreak joined05:24
shareable6 left05:24
Geth ¦ doc: 8a90a8f9ed | (JJ Merelo)++ | doc/Language/operators.pod605:25
¦ doc: Reviews relationship between ~~ and ACCEPTS. 05:25
¦ doc:05:25
¦ doc: Right now there is only a short definition in the first, and a pointer05:25
¦ doc: to the last. It's nice to have the docs for ~~, since it's a single05:25
synopsebot Link: https://doc.perl6.org/language/operators05:25
Geth ¦ doc: point of entry; `ACCEPTS` page is generated from many pages. So I05:25
¦ doc: would say it's better to close #1913, since it's not indexed and looks05:25
¦ doc: like a sufficiently good reference.05:25
¦ doc: review: https://github.com/perl6/doc/commit/8a90a8f9ed05:25
skids left05:39
Geth ¦ doc: a82a2d89f3 | (JJ Merelo)++ | assets/sass/style.scss05:45
¦ doc: Makes no-toc body wider closes #2000 05:45
¦ doc: review: https://github.com/perl6/doc/commit/a82a2d89f305:45
Qwerasd left05:50
n0tjack left05:52
psychoslave left05:53
wamba joined05:57
john_parr left06:07
ChoHag joined06:20
shareable6 joined06:20
Geth ¦ doc: JJ self-unassigned Roadmap for our language/ docs https://github.com/perl6/doc/issues/11406:29
¦ doc: JJ self-assigned Roadmap for our language/ docs https://github.com/perl6/doc/issues/11406:29
jmerelo That was done only to draw your attention towards The 1000 Days Old Issue.06:29
sno joined06:30
darutoko joined06:32
Geth ¦ doc: 8fa48b4573 | (JJ Merelo)++ | 2 files06:40
¦ doc: Adds data structures 06:40
¦ doc: review: https://github.com/perl6/doc/commit/8fa48b457306:40
¦ doc: 001cbdd9ad | (JJ Merelo)++ | doc/Language/structures.pod606:40
¦ doc: Laying out the general structure 06:40
synopsebot Link: https://doc.perl6.org/language/structures06:40
Geth ¦ doc: review: https://github.com/perl6/doc/commit/001cbdd9ad06:40
¦ doc: a553b88e95 | (JJ Merelo)++ | doc/Language/structures.pod606:40
¦ doc: Inserts TBD 06:40
¦ doc: review: https://github.com/perl6/doc/commit/a553b88e9506:40
wamba left06:42
Geth ¦ doc: 1def611870 | (JJ Merelo)++ | doc/Language/iterating.pod606:47
¦ doc: Creates the iterating language page 06:47
¦ doc: review: https://github.com/perl6/doc/commit/1def61187006:47
¦ doc: bba739df25 | (JJ Merelo)++ | doc/Language/iterating.pod606:47
synopsebot Link: https://doc.perl6.org/language/iterating06:47
Geth ¦ doc: Refines general structure 06:47
¦ doc:06:47
¦ doc: This (and the previous commits) refer to #114. This one takes a hint06:47
¦ doc: from https://perl6advent.wordpress.com/2009/12/07/day-7-looping-for-fun-and-profit/06:47
¦ doc: review: https://github.com/perl6/doc/commit/bba739df2506:47
robertle_ joined06:51
shareable6 left06:52
domidumont joined06:57
psychoslave joined07:01
domidumont left07:03
dominix joined07:03
domidumont joined07:04
domidumont left07:13
john_parr joined07:26
dominix do domeone know of a permutation method of a list ?07:28
something inspired by https://docstore.mik.ua/orelly/perl4/cook/ch04_21.htm07:28
lookatme m: (1, 2, 3).permutation.say07:29
camelia rakudo-moar 27e8dab9f: OUTPUT: «No such method 'permutation' for invocant of type 'List'. Did you mean 'permutations'?␤ in block <unit> at <tmp> line 1␤␤»07:29
lookatme m: (1, 2, 3).permutations.say07:29
camelia rakudo-moar 27e8dab9f: OUTPUT: «((1 2 3) (1 3 2) (2 1 3) (2 3 1) (3 1 2) (3 2 1))␤»07:29
lookatme dominix, permutation is a built-in method07:29
dominix nice, thanks, I am amazed everytime I look at this langage07:31
lookatme welcome :)07:32
wamba joined07:32
jmerelo On overriding method calls and creating your very own NYI exception https://stackoverflow.com/questions/50503564/overriding-method-call-operator-or-some-other-way-to-catch-method-name-resolutio07:34
lookatme dominix, anyway, if you can, implement that permutation algorithm in Perl 6 is a good practice07:35
ChoHag_ joined07:41
ChoHag left07:41
lizmat jmerelo: answered :-)07:44
yoleaux 23 May 2018 12:56Z <brrt> lizmat: can you do a bechmark with moarvm branch 'jit-stack-walker'07:44
xtreak left07:44
araujo left07:46
xtreak joined07:47
jmerelo lizmat: you're amazing. Thanks!07:47
xtreak left07:47
shareable6 joined07:48
ChanServ set mode: +v07:48
HaraldJoerg joined07:48
Geth ¦ doc: b7245599c3 | (JJ Merelo)++ | doc/Language/nativetypes.pod607:52
¦ doc: Creates native types page refs #114 07:52
¦ doc: review: https://github.com/perl6/doc/commit/b7245599c307:52
¦ doc: 74a0051dd2 | (JJ Merelo)++ | 2 files07:52
¦ doc: Drafts general structure of nativetypes page 07:52
synopsebot Link: https://doc.perl6.org/language/nativetypes07:52
Geth ¦ doc:07:52
¦ doc: And improves a bit the other data structures page. Refs #114, but also #205107:52
¦ doc: review: https://github.com/perl6/doc/commit/74a0051dd207:52
¦ doc: 8e6753b138 | (JJ Merelo)++ | doc/Type/X/NYI.pod607:52
synopsebot Link: https://doc.perl6.org/type/X::NYI07:52
Geth ¦ doc: Documents X::NYI constructor and methods 07:52
¦ doc:07:52
¦ doc: Closes #205207:52
¦ doc: review: https://github.com/perl6/doc/commit/8e6753b13807:52
¦ doc: 79fb35e76e | (JJ Merelo)++ | assets/sass/style.scss08:01
¦ doc: Disables max-width for no-toc pages closes #2000 08:01
¦ doc: review: https://github.com/perl6/doc/commit/79fb35e76e08:01
shareable6 left08:06
scimon joined08:08
domidumont joined08:28
Geth ¦ doc: cce30bc145 | (JJ Merelo)++ | doc/Language/hashmap.pod608:31
¦ doc: Creates hashmap page refs #114 08:31
¦ doc:08:31
¦ doc: Also refs #1682, which will be the fallback issue when #114 is closed.08:31
¦ doc: review: https://github.com/perl6/doc/commit/cce30bc14508:31
synopsebot Link: https://doc.perl6.org/language/hashmap08:31
Geth ¦ doc: 07bd8264bb | (JJ Merelo)++ | doc/Language/system.pod608:31
¦ doc: Stub for system page 08:31
synopsebot Link: https://doc.perl6.org/language/system08:31
Geth ¦ doc:08:31
¦ doc: With08:31
¦ doc: https://stackoverflow.com/questions/29547490/how-can-i-run-external-programs-using-perl-6-e-g-like-system-in-perl-508:31
¦ doc: that could be very helpful. Refs #11408:31
¦ doc: review: https://github.com/perl6/doc/commit/07bd8264bb08:31
¦ doc: 4f146f5d50 | (JJ Merelo)++ | assets/sass/style.scss08:31
¦ doc: Not so !important, closes #2000 08:31
¦ doc: review: https://github.com/perl6/doc/commit/4f146f5d5008:31
¦ doc: a88d50da61 | (JJ Merelo)++ | doc/Language/math.pod608:31
¦ doc: Creates last of the pages for #114, on math 08:31
¦ doc:08:31
¦ doc: Now let's do what needs TBD08:31
synopsebot Link: https://doc.perl6.org/language/math08:31
Geth ¦ doc: review: https://github.com/perl6/doc/commit/a88d50da6108:31
xtreak joined08:37
HaraldJoerg left08:41
jmerelo briandfoy wants us to update the answer to this question in SO https://stackoverflow.com/questions/2666428/what-is-the-current-state-of-perl-608:46
I would do it, but I still have to unlock the "Answer something without being voted down by briandfoy" badge. :-)08:47
eliasr joined08:48
donpdonp first comment: read planet6! curl: (6) Could not resolve host: planetsix.perlfoundation.org. doh!08:48
dominix left08:59
rindolf joined08:59
jmerelo donpdonp: you can probably edit the answers too...09:01
donpdonp: although I wonder if the best course of action would not be to just close it and make a 2018 edition of same...09:01
shareable6 joined09:02
ChanServ set mode: +v09:02
enheh_ joined09:06
enheh left09:06
dpk left09:06
camelia left09:06
cpage_ joined09:07
bartolin left09:07
Bucciarati left09:07
S007 left09:07
nine left09:08
avar left09:08
obfusk left09:08
yoleaux left09:08
xiaomiao left09:08
esh left09:08
cpage left09:09
cpage_cpage09:09
w_richard_w left09:10
xiaomiao joined09:13
dpk joined09:13
grumble left09:14
Grauwolf joined09:15
bartolin joined09:16
obfusk joined09:16
domm joined09:17
S007 joined09:17
Zoffix joined09:23
Zoffix m: sub it-fails { my $z = Failure.new; Nil }; use nqp; for ^100 { it-fails; }; nqp::force_gc; sleep 109:23
evalable6 Zoffix, rakudo-moar 472f6e484: OUTPUT: «WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:␤Failed␤ in block <unit> at /tmp/266xO6t_wU line 1␤␤»09:23
Zoffix ingy: ^ normally you get those when an unhandled Failure object gets GCed ('cause often that's an indication your program ignores some failure mode accidentally). Though in your case it looks like it might be R#151509:25
synopsebot R#1515 [open] : https://github.com/rakudo/rakudo/issues/1515 Erroneous unhandled failures for runtime module loading 09:25
Zoffix Qwerasd, you don't need to wrap into `try` and can just stick a CATCH { default { .... } } at the outer most scope of a threaded block09:26
Summertime pardon me for saying, but thanks for making? the perl6 alerts site btw, its something that every language should have09:27
Zoffix Thanks. Glad someone finds it useful.09:27
esh joined09:30
torbjorn left09:30
literal joined09:35
avar joined09:36
avar left09:36
avar joined09:36
grumble joined09:41
AlexDaniel Summertime: speaking of which, do you expect alerts to posted before the release or after? For example, 2018.05 will come with this change:09:44
m: say %<a 1 b 2 c 3>.keys09:44
evalable6 AlexDaniel, rakudo-moar 472f6e484: OUTPUT: «Use of Nil in string context␤()␤ in block <unit> at /tmp/8NHUWY7um5 line 1␤Use of Nil in string context␤ in block <unit> at /tmp/8NHUWY7um5 line 1␤Use of Nil in string context␤ in block <unit> at /tmp/8NHUWY7um5 line 1␤»09:44
AlexDaniel m: say (%<a 1 b 2 c 3>).keys09:44
evalable6 AlexDaniel, rakudo-moar 472f6e484: OUTPUT: «Use of Nil in string context␤()␤ in block <unit> at /tmp/qcnRS3Mp5H line 1␤Use of Nil in string context␤ in block <unit> at /tmp/qcnRS3Mp5H line 1␤Use of Nil in string context␤ in block <unit> at /tmp/qcnRS3Mp5H line 1␤»09:44
AlexDaniel gah…09:44
not that09:44
Summertime :thinking:09:44
I think, don't make a promise09:45
AlexDaniel m: say %(<a 1 b 2 c 3>).keys09:45
evalable6 AlexDaniel, rakudo-moar 472f6e484: OUTPUT: «(b a c)␤»09:45
AlexDaniel m: say %(<a 1 b 2 c 3>).keys09:45
evalable6 AlexDaniel, rakudo-moar 472f6e484: OUTPUT: «(c a b)␤»09:45
AlexDaniel ↑ this is now random09:45
the order I mean09:45
wamba left09:45
AlexDaniel IMO that's alert-worthy, just to make it easier for people09:45
Summertime there are some things which are going to be obvious to alert about, some things are going to be someone coming in with their project on fire (because why not run latest without testing!) and you'll go "oh that should of been alerted too"09:46
AlexDaniel if I post the alert now, it's somewhat useless as you'd need to build blead rakudo to test it out…09:46
if I post after the release, then someone can say that we could've alerted earlier, so why didn't we09:46
Summertime but an alert now will also act as an appetizer!09:47
it seems silly to wait for news to go through all the blogs like hash randomizing has done now, and then have an alert pop up, so I'd say as soon as you think of it would be best09:48
broquaint joined09:48
Bucciarati joined09:48
Summertime as long as its searchable by version affected, it shouldn't be a problem, updating a project -> go to alerts -> search for $upgrading-from <= $alert-version <= $upgrading-to, would probably be the most common use09:51
hmm, the alerts api documentation page seems to be outputting blank though, might be my browser though09:56
AlexDaniel Summertime: I don't think it's documentation09:59
but: https://alerts.perl6.org/api/v1/all09:59
Summertime hmm, I wonder how much of a pain it would be to hook that up with twilio or something10:02
grumblr joined10:04
markong joined10:11
Zoffix looks like documentation page gives a 50010:12
Type check failed in binding to parameter '$raw'; expected Str but got WhateverCode ({ ... })10:13
in sub escape-html at /home/p6lert/rakudo/install/share/perl6/site/sources/3925AABD73F7CAF1F00A31AD4FD3D188A496C03E (HTML::Escape) line 410:13
grumble left10:14
grumblrgrumble10:14
Zoffix ah, it's from the time when I messed up currying10:16
*upgrades rakudo for p6lert service*10:16
c: 2018.03 sub foo (Str $x){ dd $x }; (*.[0].Str.&foo)([42])10:16
committable6 Zoffix, ¦2018.03: «Type check failed in binding to parameter '$x'; expected Str but got WhateverCode ({ ... })␤ in sub foo at /tmp/9IRR65HhZv line 1␤ in block <unit> at /tmp/9IRR65HhZv line 1␤␤ «exit code = 1»»10:16
p6lert left10:18
nine joined10:21
camelia joined10:22
ChanServ set mode: +v10:24
p6lert joined10:28
Zoffix p6lert: help10:32
p6lert Zoffix, https://github.com/perl6/alerts P6lert commands: [insta]?add ALERT, update ID ALERT, delete ID; ALERT format: ['severity:'\S+]? ['affects:['<-[\]]>+']']? ALERT_TEXT10:32
Zoffix Summertime: it's working now: https://alerts.perl6.org/api10:32
Summertime \o/10:32
lizmat afk for a few hours&10:32
Zoffix Summertime: as for hooking up stuff... Well, the code's here: https://github.com/perl6/alerts10:33
zakharyas joined10:34
Zoffix left10:37
jmerelo Another question in SO, about declaration and assignment of variables https://stackoverflow.com/questions/50507696/declaration-and-assignment-of-variables-silently-dropping-of-assigned-values11:02
I've been doing several tests on the #whateverable channel about this, just in case you wan to check them out.11:03
yoleaux joined11:04
ChanServ set mode: +v11:04
Actualeyes left11:06
Geth ¦ doc: 29f856f7d4 | (JJ Merelo)++ | doc/Language/math.pod611:09
¦ doc: Adds set algebra laws 11:09
¦ doc: review: https://github.com/perl6/doc/commit/29f856f7d411:09
¦ doc: 717f9bda19 | (JJ Merelo)++ | 2 files11:09
¦ doc: Adds set algebra to the Math page 11:09
synopsebot Link: https://doc.perl6.org/language/math11:09
Geth ¦ doc:11:09
¦ doc: Which might or might not be what someone 1000 days ago had in mind,11:09
¦ doc: but it's at least what I would like to find if I go looking for math11:09
¦ doc: stuff in Perl 6. This refs #114, but still a lot TBD.11:09
¦ doc: review: https://github.com/perl6/doc/commit/717f9bda1911:09
domidumont left11:18
raynold left11:20
domidumont joined11:20
wamba joined11:24
ChoHag_ left11:26
ChoHag joined11:26
itaipu joined11:38
wamba left11:42
n0tjack joined11:44
mahafyi joined12:01
raschipi joined12:12
lalitmee joined12:12
xtreak left12:14
stmuk joined12:18
raschipi left12:19
domidumont1 joined12:19
n0tjack left12:20
stmuk_ left12:20
domidumont left12:22
wamba joined12:24
jferrero joined12:28
raschipi joined12:29
scimon left12:34
scimon joined12:34
Geth ¦ doc: 4be7e50cb0 | (Luca Ferrari)++ | doc/Type/Junction.pod612:35
¦ doc: Introduce junction infix ~ example. 12:35
¦ doc:12:35
¦ doc: See issue #205312:35
¦ doc: review: https://github.com/perl6/doc/commit/4be7e50cb012:35
synopsebot Link: https://doc.perl6.org/type/Junction12:35
shareable6 left12:41
domidumont joined12:43
enheh_ left12:44
enheh_ joined12:45
domidumont1 left12:45
scimon left12:46
scimon joined12:46
robertle left12:46
torbjorn joined12:49
robertle joined12:53
pmurias joined12:54
scimon left12:57
HaraldJoerg joined13:01
MilkmanDan left13:05
athenot joined13:05
MilkmanDan joined13:06
lizmat left13:10
enheh__ joined13:12
jmerelo left13:13
enheh_ left13:14
Actualeyes joined13:15
mahafyi Hello. I am trying to do this -> https://pastebin.com/VN2wviF8 with File::Find. Can someone tell what eagerly vs lazily create list means please?13:24
moritz mahafyi: a lazy list is one that is created as you consume it13:24
Actualeyes left13:24
moritz mahafyi: and an eager list is one that is created fully even before you start to use it13:25
lizmat joined13:25
mahafyi moritz : thanks.13:25
skids joined13:31
itaipu_ joined13:33
lucasb joined13:35
lalitmee left13:36
shareable6 joined13:36
molaf joined13:36
itaipu left13:37
curan left13:37
skids left13:38
mahafyi i simply cannot understand lazy list, lol. Can't get how it works at all..anyways, what i am looking at first is: (see earlier pastebin) if i need to use multiple regexes in the File::Find arg 'name', is it possible at all13:39
raschipi mahafyi: Can't it be a regex with an alternation?13:41
mahafyi i guess in this specific case, i can think like this: can we ouse an OR condition in regex (probably, it is not the correct way to epxress the question)13:41
raschipi, thanks, i guess i have the term to google for now, lol13:41
raschipi alternation means OR13:41
Just another way to say what you said right after me.13:42
Can't you use multiple File::Find instances?13:42
itaipu_ left13:42
itaipu joined13:43
mahafyi yes, thats what i have in a pseudocode now, run it twice one after another13:43
raschipi Then put the two lists togheter.13:44
mahafyi it may not be needed, i just need to concatenate all the files in each list into two separate files, one for each list13:44
each file will have headers, what is the equivalent of sed, in order to do -> (I need to delete the header lines - along with the carriage return)13:46
raschipi You could also try to give it a junction, something like (/regex1/, /regex2/).any13:46
or /regex1/|/regex2/13:47
mahafyi in which case, i will need to recurse the list elements with a IF condition i guess13:48
there is such a tremendous knowledge base inside any one thing! its very dense, if that is the correct word. I guess one can eventually reach a point when the thing needed will come like a reflex. but now its reading 90% working 10% lol.13:54
timotimo i'd rather read a thousand lines of documentation and write one line of code than reading just one line of documentation and have to write a thousand lines of code for the same result :D13:54
mahafyi sure, i cannot remember which , i will find it, i wrote some several dozen lines for a rosetta code problem, and find a one liner in answer,13:57
timotimo yeah, especially when it comes to not having to write out loops, perl6 is very strong13:57
not as strong as languages like APL or J, though13:57
MilkmanDan left13:57
mahafyi good to know. I have never heard of APL or J until now...13:58
MilkmanDan joined13:59
eater left14:07
benjikun J is a weird language14:11
I looked at it years ago14:11
interesting for sure14:12
Pretty crazy with what you can do with one line of J14:13
raschipi very terse, moreso than APL, despite using multiple symbols14:16
benjikun terse?14:20
moritz compact14:21
short programs14:21
rindolf left14:22
eater joined14:22
benjikun ah14:22
yeah14:22
itaipu_ joined14:26
stmuk_ joined14:28
stmuk left14:29
itaipu left14:29
domidumont1 joined14:31
domidumont left14:34
lucasb left14:35
domidumont1 left14:37
domidumont joined14:39
rindolf joined14:44
mahafyi what do i do for: find and delete all lines that matches a regex, but ignore the first. do i need to recurse the whole file or is there a better way to do ? the file may be over a million lines.14:47
raschipi Are you doing it with a loop?14:48
lucasb joined14:48
mahafyi i havent yet written ? i am planning what to write before i write. Lets say two csv files with headers are concatanated, i need to delete the header lines after.14:49
raschipi m: for ^10 {once next; .say}14:49
camelia rakudo-moar 8a62e5e08: OUTPUT: «1␤2␤3␤4␤5␤6␤7␤8␤9␤»14:49
mahafyi so , i can go thru in a looop, line by line, or i can do something like, what i'd do with sed from command line.14:49
raschipi either are possible14:50
timotimo don't forget you'll likely have to output the first line back so it doesn't disappear14:50
mahafyi timotimo, right, delete all the headers, except the first..14:50
raschipi m: (^10).tail(*-1).say14:51
camelia rakudo-moar 8a62e5e08: OUTPUT: «(1 2 3 4 5 6 7 8 9)␤»14:51
raschipi tail(*-1) skips the first item in a list.14:51
mahafyi which means each line in the file has to be in a list?14:52
timotimo m: <foo bor baz quux boot shoot bleep>.grep({ not $++ or /o/ }).say14:52
camelia rakudo-moar 154d98551: OUTPUT: «(foo bor boot shoot)␤»14:52
timotimo m: <foo bor baz quux boot shoot bleep>.grep({ not $++ or /<-[o]>/ }).say14:52
camelia rakudo-moar 154d98551: OUTPUT: «(foo bor baz quux boot shoot bleep)␤»14:52
timotimo hold on ..14:52
m: <foo bor baz quux boot shoot bleep>.grep({ not $++ or m/<-[o]>/ }).say14:52
camelia rakudo-moar 154d98551: OUTPUT: «(foo bor baz quux boot shoot bleep)␤»14:52
timotimo m: <foo bor baz quux boot shoot bleep>.grep({ (not $++) || m/<-[o]>/ }).say14:52
camelia rakudo-moar 154d98551: OUTPUT: «(foo bor baz quux boot shoot bleep)␤»14:52
timotimo ah, of course14:52
m: <foo bor baz quux boot shoot bleep>.grep({ (not $++) || !m/o/ }).say14:53
camelia rakudo-moar 154d98551: OUTPUT: «(foo baz quux bleep)␤»14:53
timotimo ^- remove all entries that have an o in them, except the very first14:53
demorgan's law lets you make it less strange14:54
mahafyi timotimo : ok great.14:54
timotimo m: <foo bor baz quux boot shoot bleep>.grep({ not ($++ && m/o/) }).say14:54
camelia rakudo-moar 154d98551: OUTPUT: «(foo baz quux bleep)␤»14:54
timotimo but you'll probably want map, not grep14:54
i.e. do changes to lines, not just throw lines out14:54
m: <foo bor baz quux boot shoot bleep>.map({ $++ ?? S/o/AAAAA/ !! $_ }).say14:55
camelia rakudo-moar 154d98551: OUTPUT: «(foo bAAAAAr baz quux bAAAAAot shAAAAAot bleep)␤»14:55
timotimo replace the first o with AAAAA except if it's the very first line14:55
well, entry, not line. you'll have to do line-splitting yourself14:55
raschipi .lines isn't enough?14:56
timotimo it is enough14:56
i just meant my code doesn't do anything regarding lines14:57
it relies on the list that comes in to already be whatever you need14:57
raschipi right14:57
mahafyi wow, ok let me go thru this14:57
timotimo $++ is just a cute little trick for "false one time, then true every other itme"14:57
or you can split the list up front into "first element" and "all other elements" and only .map on the "all other elements" list14:59
but that's probably also awkward14:59
enheh__ left15:00
mahafyi I suppose we can use sed from inside a program?15:00
enheh__ joined15:00
timotimo you can if you want to15:01
lucasb m: for \(1,2,3,:a,:b).item { .say } # why?15:02
camelia rakudo-moar 154d98551: OUTPUT: «1␤2␤3␤»15:02
tbrowder_ question: why are backticks used in markdown and other text files? are they re15:04
lucasb it's code markup15:05
tbrowder_ are they treated differently than single right quotes?15:06
timotimo yes, they are15:06
tbrowder_ what is their effect in, say, markdown?15:06
i understand the effect in shell...15:07
timotimo markdown turns `foo` into <code>foo</code> or something like that15:08
tbrowder_ treatment in pod 6, perl 6?15:08
raschipi in markdow it renders the text in monospace font and also keeps spaces intact (markdown usually supresses multiple spcaes)15:08
tbrowder_ ah, right, i forgot, thinking of three backticks for a code block15:08
zakharyas left15:09
timotimo m: say `foo bar`15:09
camelia rakudo-moar 154d98551: OUTPUT: «=== SORRY!=== ␤Argument to "say" seems to be malformed␤at <tmp>:1␤------> say `foo bar` ␤Bogus postfix␤at <tmp>:1␤------> say `foo bar` ␤ expecting any of:␤ infix␤ infix stopper␤ postfi…»15:09
skids joined15:10
timotimo perl6 doesn't let you use ` as quoting without q15:10
tbrowder_ ok, keeping multiple spaces in md15:10
timotimo m: q`backticks are cool`15:10
camelia rakudo-moar 154d98551: OUTPUT: «WARNINGS for <tmp>:␤Useless use of constant string "backticks are cool" in sink context (line 1)␤»15:10
timotimo m: say q`backticks are cool`15:10
camelia rakudo-moar 154d98551: OUTPUT: «backticks are cool␤»15:10
timotimo m: say "foo bar" ~~ s:g`o`i`15:10
camelia rakudo-moar 154d98551: OUTPUT: «Cannot modify an immutable Str (foo bar)␤ in block <unit> at <tmp> line 1␤␤»15:10
timotimo m: say "foo bar" ~~ S:g`o`i`15:10
camelia rakudo-moar 154d98551: OUTPUT: «Potential difficulties:␤ Smartmatch with S/// is not useful. You can use given instead: S/// given $foo␤ at <tmp>:1␤ ------> say "foo bar" ~~ S:g`o`i` ␤False␤»15:10
timotimo i'm no good at example code today15:10
m: $_ = "foo bar"; s:g`o`i`; .say15:11
camelia rakudo-moar 154d98551: OUTPUT: «fii bar␤»15:11
tbrowder_ they may be cool, but: xtra typing and backticks are hard to use on typical apple virutual keyboards15:11
s/virutual/virtual/15:12
timotimo: thnx15:13
raschipi: thnx15:14
domidumont left15:20
wamba left15:20
raschipi lucasb: why did you add an .item there?15:23
m: .say for \(1,2,3,:a,:b)15:24
camelia rakudo-moar 154d98551: OUTPUT: «1␤2␤3␤»15:24
timotimo m: .say for $(\(1,2,3,:a,:b))15:25
camelia rakudo-moar 154d98551: OUTPUT: «1␤2␤3␤»15:25
timotimo m: .say for (my $ = \(1,2,3,:a,:b))15:25
camelia rakudo-moar 154d98551: OUTPUT: «\(1, 2, 3, :a, :b)␤»15:25
lucasb to show that even with a .item it gets iterated over, while (1,2,3).item and [1,2,3].item doesn't15:25
raschipi m: .say for $(1,2,3)15:26
camelia rakudo-moar 154d98551: OUTPUT: «(1 2 3)␤»15:26
raschipi I see. It is indeed strange.15:26
lucasb raschipi: thanks for agreeing :)15:26
raschipi m: .say for $(\(1,2,3))15:26
camelia rakudo-moar 154d98551: OUTPUT: «1␤2␤3␤»15:26
robertle_ left15:27
raschipi m: .say for \(1,2,3),15:30
camelia rakudo-moar 154d98551: OUTPUT: «\(1, 2, 3)␤»15:30
raschipi m: .say for \(1,2,3, :a, :b),15:31
camelia rakudo-moar 154d98551: OUTPUT: «\(1, 2, 3, :a, :b)␤»15:31
jmerelo joined15:39
enheh_ joined15:44
rindolf left15:46
enheh__ left15:46
athenot left15:47
rindolf joined15:54
Zoffix joined15:54
Zoffix lucasb: that's 'cause () and [] are already Iterable, but \() ain't, so it gets made into an Iterable by calling .list, which returns positionals from the capture in non-conted List15:55
m: .say for (\(1, 2, 3) but Iterable)15:56
camelia rakudo-moar 154d98551: OUTPUT: «1␤2␤3␤»15:56
Zoffix m: .say for $(\(1, 2, 3) but Iterable)15:56
camelia rakudo-moar 154d98551: OUTPUT: «Capture+{Iterable}.new(list => (1, 2, 3,))␤»15:56
lucasb ok. but .item alone wasn't supposed to make it itemized?15:56
Zoffix lucasb: it did. But a Capture, even an itemized one, isn't an Iterable15:58
psychoslave left15:58
lucasb m: class C { method list { 1,2,3 } }; for C.item { .say }16:00
camelia rakudo-moar 154d98551: OUTPUT: «1␤2␤3␤»16:00
lucasb is confused16:00
timotimo s: (1, 2, 3), "item", \()16:01
SourceBaby timotimo, Sauce is at https://github.com/rakudo/rakudo/blob/154d98551/src/core/Iterable.pm6#L1616:01
timotimo so the default implementation literally just creates a Scalar and puts the object on it, and returns the scalar16:01
raschipi So it's the Iterable role that interacts with the $() and for receives something different then?16:01
Zoffix I think it's the Iterable role that makes `for` decide how to loop over it16:02
s: \(), 'map', \(*.say)16:02
SourceBaby Zoffix, Sauce is at https://github.com/rakudo/rakudo/blob/154d98551/src/core/Any-iterable-methods.pm6#L1716:02
lucasb for the record, things changed here:16:02
c: 71160596,71160596^ for \(1,2,3,:a,:b).item { .say }16:02
committable6 lucasb, ¦7116059: «1␤2␤3␤» ¦71160596^: «\(1, 2, 3, :a, :b)␤»16:02
lucasb https://github.com/rakudo/rakudo/commit/7116059675fa742312ee995f8ff00d64399c883c16:02
(well, for the Capture thing)16:03
Zoffix lucasb: you're calling "item" BEFORE giving `for` a non-Iterable thing.16:03
lucasb not the general class C { method list {...} } case16:04
Zoffix It doesn't have any effect on what happens after `for` converts your thing to an Iterable thing16:04
troys joined16:05
lucasb ok, I'll get it after a while :)16:05
I just think is strange that 'for' tries to make a non-Iterable thing into a Iterable a thing, while (1,2,3).item and [1,2,3].item are really iterable things and 'for' treats as itemized16:06
Zoffix You put bunch of oranges into a box. Then you put them into a bag and hand it to me, saying "here, eat this". It doesn't look like food, so I have to open up both the bag and the box to get to the oranges and by that time they're not in any boxes, so I eat them one by one.16:07
Geth ¦ doc: 09767255d5 | (JJ Merelo)++ | doc/Type/Junction.pod616:07
¦ doc: Moving @fluca1978's explanation to a method subsection 16:07
¦ doc:16:07
¦ doc: So that it can be indexed properly. Also added other two multis that16:07
¦ doc: use ~ in a rather more natural way. Closes #2053.16:07
¦ doc: review: https://github.com/perl6/doc/commit/09767255d516:07
synopsebot Link: https://doc.perl6.org/type/Junction16:07
sno left16:08
Zoffix With (1, 2, 3).item.... You take a bunch of oranges and put them in a cake and hand it to me, saying "here, eat this". It looks like food, so I eat it without having to get to individual oranges.16:08
s: \(), 'map', \(*.so, :item)16:10
SourceBaby Zoffix, Sauce is at https://github.com/rakudo/rakudo/blob/154d98551/src/core/Any-iterable-methods.pm6#L1716:10
lucasb Ok, so when someone says they eat a box of chocolates, the haven't literally eated a box :D16:10
j/k16:10
thanks Zoffix for the patience. I'll eventually get it16:10
Zoffix oh, whoops replied in the wrong channel16:15
Zoffix │ lucasb: actually my explanation was likely inaccurate16:15
Zoffix │ Looking at p6for desugar, it don't care about Iterable at all: https://github.com/rakudo/rakudo/blob/master/src/Perl6/Actions.nqp#L561-L57816:15
Zoffix │ But, Iterable provides the `.item` method that shoves things into container:16:15
Zoffix │ While \Mu's version is a no-op: https://github.com/rakudo/rakudo/blob/154d98551/src/core/Mu.pm6#L57416:15
m: .say for $ = \(1, 2, 3)16:15
camelia rakudo-moar 154d98551: OUTPUT: «\(1, 2, 3)␤»16:15
Zoffix At least now I know I'm good at making shit up in a way that makes sense :D16:16
Ah, now I what I confused it with. It's nodemap/deepmap that care about iterables: https://github.com/rakudo/rakudo/blob/master/src/core/Rakudo/Internals.pm6#L150016:18
mahafyi left16:20
andrzejku joined16:22
andrzejku_ left16:24
andrzejku_ joined16:26
andrzejku left16:29
Zoffix R#186216:34
synopsebot R#1862 [open] : https://github.com/rakudo/rakudo/issues/1862 [@LARRY] Some objects don't .item'ize even though they probably should 16:34
Zoffix lucasb: ^ FYI16:34
raschipi "zoffixznet opened this Issue 17 seconds from now"16:39
Zoffix: can I lend your time-travel machine/device?16:39
Zoffix I must now kill you. You know too much.16:39
raschipi I would already be dead if you were to actually kill me.16:41
lucasb Zoffix++ thanks for the issue16:43
Zoffix And R#1863 for a potential fix16:46
synopsebot R#1863 [open] : https://github.com/rakudo/rakudo/pull/1863 Always containerize stuff when asked to with .item 16:46
athenot joined16:49
pilne joined16:58
xinming joined17:01
wamba joined17:02
xinming_ left17:04
APic left17:05
Zoffix left17:05
ExtraCrispy left17:09
mempko joined17:12
domidumont joined17:17
jmerelo m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); say @otherphi[^10, |(20, 30 ... 100)]17:18
camelia rakudo-moar 154d98551: OUTPUT: «((-0.61803398874989484820458683436563811772030918 -0.61803398874989484820458683436563811772030918 -0.61803398874989484820458683436563811772030918 -0.61803398874989484820458683436563811772030918 -0.61803398874989484820458683436563811772030918 -0.618033…»17:18
raschipi m: say Φ, φ17:23
camelia rakudo-moar 154d98551: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Undeclared routines:␤ Φ used at line 1␤ φ used at line 1␤␤»17:23
jmerelo m: say $c.^name, " → ", $c for π, τ, e;17:28
camelia rakudo-moar 154d98551: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Variable '$c' is not declared␤at <tmp>:1␤------> say $c.^name, " → ", $c for π, τ, e; ␤»17:28
jmerelo m: say .^name, " → ", $_ for π, τ, e;17:28
camelia rakudo-moar 154d98551: OUTPUT: «Num → 3.141592653589793␤Num → 6.283185307179586␤Num → 2.718281828459045␤»17:28
raschipi m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); say @otherphi[1000] # I was talking to timotimo the other day about this. We watched the video that explains why this happens.17:29
camelia rakudo-moar 154d98551: OUTPUT: «1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847540880753868917521266338622235369317931800607667263544333890865959␤»17:29
jmerelo m: say $_, " → ", $_<> for <π τ e>;17:29
camelia rakudo-moar 154d98551: OUTPUT: «π → π␤τ → τ␤e → e␤»17:29
jmerelo m: say $_, " → ", $_.item for <π τ e>;17:30
camelia rakudo-moar 154d98551: OUTPUT: «π → π␤τ → τ␤e → e␤»17:30
jmerelo m: say $_, " → ", $_.Num for <π τ e>;17:30
camelia rakudo-moar 154d98551: OUTPUT: «Cannot convert string to number: base-10 number must begin with valid digits or '.' in 'π ' (indicated by ⏏)␤ in block <unit> at <tmp> line 1␤␤»17:30
athenot_ joined17:31
athenot left17:31
buggable New CPAN upload: master.zip by KTOWN https://cpan.metacpan.org/authors/id/K/KT/KTOWN/Perl6/master.zip17:33
raschipi m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); say @otherphi[0]; say @otherphi.first( * > 0 )17:36
camelia rakudo-moar 154d98551: OUTPUT: «-0.61803398874989484820458683436563811772030918␤Attempt to divide 1 by zero using div␤ in block <unit> at <tmp> line 1␤␤»17:36
raschipi Why does 'first( * > 0 )' atempts a div 0 ?17:37
timotimo it's probably just eagerifying a Failure from somewhere in there17:38
moritz raschipi: it's likely some Rat internal code that uses div17:38
raschipi m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); say @otherphi[1000] # But this one works17:38
camelia rakudo-moar 154d98551: OUTPUT: «1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847540880753868917521266338622235369317931800607667263544333890865959␤»17:38
Luneburg joined17:38
timotimo s: &infix:«>», \(<1/2>, 0)17:38
SourceBaby timotimo, Sauce is at https://github.com/rakudo/rakudo/blob/154d98551/src/core/Rat.pm6#L26117:38
timotimo m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 /17:39
camelia rakudo-moar 154d98551: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Missing required term after infix␤at <tmp>:1␤------> my @otherphi = (1 - @phis[200], 1 + 1 / <EOL> ␤ expecting any of:␤ prefix␤ term␤»17:39
timotimo derp17:39
m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); for @otherphi { say $_ > 0; CATCH { say $_.perl } }17:39
camelia rakudo-moar 154d98551: OUTPUT: «(timeout)False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤False␤Fa…»17:40
timotimo m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); for @otherphi.head(1000) { .say if $_ > 0; CATCH { say $_.perl } }17:40
camelia rakudo-moar 154d98551: OUTPUT: «X::Numeric::DivideByZero.new(using => "div", details => Any, numerator => 1)␤Attempt to divide 1 by zero using div␤ in block <unit> at <tmp> line 1␤␤»17:40
Luneburg "False"17:40
timotimo m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); for @otherphi.head(1000) -> $val { $val.say if $val > 0; CATCH { say $val.perl } }17:40
camelia rakudo-moar 154d98551: OUTPUT: «FatRat.new(1, 0)␤Attempt to divide 1 by zero using div␤ in block <unit> at <tmp> line 1␤␤»17:40
timotimo well, yeah17:40
m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); for @otherphi.head(1000).kv -> $idx, $val { $val.say if $val > 0; CATCH { say $idx; say $val.perl } }17:40
camelia rakudo-moar 154d98551: OUTPUT: «202␤Attempt to divide 1 by zero using div␤ in block <unit> at <tmp> line 1␤␤FatRat.new(1, 0)␤»17:40
Luneburg Guys, could someone take a quick look at my code? I'm having a problem and I'm not sure why17:41
timotimo m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); say @otherphi[200..210]>>.perl17:41
camelia rakudo-moar 154d98551: OUTPUT: «(FatRat.new(-1, 1) FatRat.new(0, 1) FatRat.new(1, 0) FatRat.new(1, 1) FatRat.new(2, 1) FatRat.new(3, 2) FatRat.new(5, 3) FatRat.new(8, 5) FatRat.new(13, 8) FatRat.new(21, 13) FatRat.new(34, 21))␤»17:41
timotimo Luneburg: sure17:41
Luneburg timotimo: Cool :D I'll put it in a pastebin17:42
lucasb left17:42
timotimo m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); say @otherphi[190..205]>>.perl17:42
camelia rakudo-moar 154d98551: OUTPUT: «(FatRat.new(-89, 144) FatRat.new(-55, 89) FatRat.new(-34, 55) FatRat.new(-21, 34) FatRat.new(-13, 21) FatRat.new(-8, 13) FatRat.new(-5, 8) FatRat.new(-3, 5) FatRat.new(-2, 3) FatRat.new(-1, 2) FatRat.new(-1, 1) FatRat.new(0, 1) FatRat.new(1, 0) FatRat…»17:42
timotimo m: say -1 + 1 / (-1)17:43
camelia rakudo-moar 154d98551: OUTPUT: «-2␤»17:43
timotimo m: say 1 + 1 / (-1)17:43
camelia rakudo-moar 154d98551: OUTPUT: «0␤»17:43
timotimo oh, 0/1 is fine, the 1/0 is the wrong one17:43
um, yeah17:43
it literally does divide 1 by 0 in that series17:43
Geth ¦ doc: f6577ddf39 | (JJ Merelo)++ | doc/Language/math.pod617:44
¦ doc: Adds arithmetic section, refs #114 17:44
¦ doc: review: https://github.com/perl6/doc/commit/f6577ddf3917:44
¦ doc: 4b9d5882e8 | (JJ Merelo)++ | doc/Language/math.pod617:44
¦ doc: Adds section on sequences refs #114 17:44
synopsebot Link: https://doc.perl6.org/language/math17:44
Geth ¦ doc: review: https://github.com/perl6/doc/commit/4b9d5882e817:44
¦ doc: f4a5417f7c | (JJ Merelo)++ | 2 files17:44
¦ doc: Finishes the first version of the math page 17:44
¦ doc:17:44
¦ doc: This refers to #114. Will check this page now and move on to the17:44
¦ doc: next. If think it can be improved, please open a different issue for17:44
¦ doc: that.17:44
¦ doc: review: https://github.com/perl6/doc/commit/f4a5417f7c17:44
timotimo raschipi: you see that?17:44
raschipi Yep, thanks17:44
Luneburg timotimo: https://0bin.net/paste/UGTs+Zm8lYuvstjn#XYo2qzJeyp70dFFn42rw24x7dJyPvXC3WkngqfOzFfR17:45
raschipi m: my @phis = (2.FatRat, 1 + 1 / * ... *); my @otherphi = (1 - @phis[200], 1 + 1 / * ... *); say @otherphi[204]17:45
camelia rakudo-moar 154d98551: OUTPUT: «2␤»17:45
Luneburg The problem is that "A" moves left no matter if I press "a" or "d"17:46
timotimo yup17:47
the = in your if statements is not what you want17:47
there's two reasons: = is assignment, not comparison17:47
but if you just replace it with ==, you'll notice that == is actually numerical comparison, rather than string comparison17:48
you'll want to use the eq operator instead of == or = there, then it should work17:48
Luneburg timotimo: Thanks!17:48
shareable6 left17:50
Geth ¦ doc: 06ff027b45 | (JJ Merelo)++ | doc/Language/math.pod617:59
¦ doc: Eliminates dangling =item 17:59
¦ doc: review: https://github.com/perl6/doc/commit/06ff027b4517:59
synopsebot Link: https://doc.perl6.org/language/math17:59
ingy Zoffix: any way to work around R#1515?18:03
synopsebot R#1515 [open] : https://github.com/rakudo/rakudo/issues/1515 Erroneous unhandled failures for runtime module loading 18:03
enheh_ Hello, I'm having difficulty installing rakudo-star-2018.04. It hangs after printing the line:18:04
===> Testing: LWP::Simple:ver<0.101>:auth<Cosimo Streppone>18:04
A little investigation found that it's hanging in t/get-unsized.t. It seems it never gets past the line:18:06
my $server := IO::Socket::INET.new: :listen, :localhost<localhost>, :0localport;18:06
jmerelo enheh_: platform?18:07
enheh_ Mac18:07
version 10.6 (yes, it's quite old!)18:07
jmerelo enheh_: could the port it's using be already occupied?18:07
enheh_: or some firewall getting in the way?18:08
enheh_ I don't know. How can I find out?18:08
As for the firewall, no.18:08
jmerelo enheh_: I would use lsof in Linux, but I don't know about Mac. Check first what is the value of the :0localport it's using.18:09
Zoffix joined18:09
timotimo if the port were already in use it'd throw an exception i believe18:10
but :0localport just uses any free port, right?18:10
jmerelo timotimo: probably... Then, firewall?18:10
Zoffix enheh_: I saw someone else say tests were hanging on MacOS in that module, with suspect new tests being to blame. I suggest you report the problem https://github.com/perl6/perl6-lwp-simple/issues and then just skip the tests during installation: zef --/test install LWP::Simple18:10
enheh_ Yes, this get-unsized.t has entirely new contents since 2018.0118:11
Zoffix oh, I wrote that one.. :S18:12
enheh_ Okay, I'll do that. Thanks!18:12
mst found the problem!18:12
Zoffix :)18:12
jmerelo waits anxiously for mst to reveal the problem.18:12
Zoffix ingy: only thing I can think of is a sledge hammer: Failure.^lookup("DESTROY").wrap: -> | {} This affects the entire program tho18:13
jmerelo: you missed the joke :)18:13
ingy: and what that does is wrap Failure.DESTROY method into an empty callable, so anytime it gets called it'd be a NOOP. The default one just emits that warning tho, so you're not missing any critical functionality by doing so.18:14
jmerelo Zoffix: I did. Some explanation, please?18:15
APic joined18:15
ingy Zoffix: I have a workaround I think but it is failing18:15
I'll gist it18:15
Zoffix jmerelo: <Zoffix> oh, I wrote that one.. :S <mst> found the problem!18:15
jmerelo Zoffix: :-)18:16
Zoffix enheh_: what version of perl6 are you on?18:16
enheh_ Trying to install rakudo star 2018.0418:17
Zoffix ah18:17
ingy Zoffix: this is my failing workaround: https://gist.github.com/ingydotnet/85ed90bbb17c89387f5c9e5c7d5a6d9118:18
Zoffix You can probably just delete that test file. I dunno if there's an option to skip module tests in rakudo star18:18
ingy I'm sure it's a noob error18:18
enheh_ Okay, that can work too.18:19
ingy ie what's wrong with this syntax: `require Foo; my $foo = Foo.new;`18:20
Zoffix It's wrong if Foo is not a class18:22
m: require Test; Test.new18:22
camelia rakudo-moar 154d98551: OUTPUT: «You cannot create an instance of this type (Test)␤ in block <unit> at <tmp> line 1␤␤»18:22
ingy Zoffix: it's a unit class18:23
Zoffix What's the code?18:23
ingy unit class TestMLBridge is TestML::Bridge;18:23
https://github.com/testml-lang/testml/blob/master/test/TestMLBridge.pm618:24
Zoffix Also, require returns the thing it required, so you could write `(require ::(%*ENV<TESTML_BRIDGE>)).new`18:24
ingy thanks18:24
Zoffix hm, yeah, I reproed the same problem now18:26
chrom_ joined18:26
Zoffix uh18:26
ingy so it's a bug?18:26
sauvin left18:26
Zoffix ah, nm, I was looking at p5 file in that dir18:27
ingy :P18:27
fwiw this works in my code: $!bridge = (require TestMLBridge).new;18:27
and R#1515 is not triggered in 10 runs :)18:28
synopsebot R#1515 [open] : https://github.com/rakudo/rakudo/issues/1515 Erroneous unhandled failures for runtime module loading 18:28
ingy so I'm good for now. thanks18:28
chrom_ hey guys, a short question: are ther any issues regarding promises and shell commands with qqx{}? I am reading a list of urls and would like to check http headers (using lynx with qqw{}) in a parallel way. So if there sone hints to give .. it would be very nice :)18:31
ingy Zoffix: well actually, just using `$!bridge = (require ::(%*ENV<TESTML_BRIDGE>)).new;` fixes the 1515 problem too. so no the workaround isn't needed.18:32
Zoffix ingy: and the other one, yeah, I think it's a bug. My understanding is the `package` version installed by `require` is supposed to be replaced by the class18:33
e: BEGIN 'sandbox/Foo.pm6'.IO.spurt: 'unit class Foo;'; use lib <sandbox>; require Foo; say Foo.HOW.^name18:33
evalable6 Zoffix, rakudo-moar 154d98551: OUTPUT: «Perl6::Metamodel::PackageHOW␤»18:33
Zoffix but it ain't and looks like it behaved like this for ages.18:33
rindolf left18:33
ingy leave it to ingy...18:34
sno joined18:34
Zoffix Filed as R#186518:35
synopsebot R#1865 [open] : https://github.com/rakudo/rakudo/issues/1865 require Foo; does not replace `package` with proper class 18:35
Zoffix Or maybe runtime is too late for it to replace it.18:35
chrom_ left18:38
Zoffix enheh_: are you still around? What does `say $*DISTRO.name` print on MacOS? I'm gonna skip that test and file an Issue18:39
enheh_ Okay, one moment...18:40
It says "macosx"18:41
Zoffix Thanks.18:41
enheh_ I was working on filing an issue. If you are filing one, should I stop then?18:42
Zoffix enheh_: I just filed one. You could add any additional info to it, if you have it: https://github.com/perl6/perl6-lwp-simple/issues/2818:43
Like operating system details, etc. I know the release manager of Rakudo Star tested it on MacOS and did not have any hangs, so it's not all MacOSes where the issue exists.18:44
enheh_ Okay. Zoffix++18:44
I'll do that. :)18:44
Geth ¦ perl6-lwp-simple: 3e34aae1f5 | (Zoffix Znet)++ | 2 files18:45
¦ perl6-lwp-simple: Temp-fudge new test file on MacOS 18:45
¦ perl6-lwp-simple:18:45
¦ perl6-lwp-simple: Fudge while https://github.com/perl6/perl6-lwp-simple/issues/2818:45
¦ perl6-lwp-simple: is being resolved18:45
¦ perl6-lwp-simple: review: https://github.com/perl6/perl6-lwp-simple/commit/3e34aae1f518:45
shareable6 joined18:46
raschipi "Temp". That means it will stay more than features.18:47
Geth ¦ perl6-lwp-simple: f1257d6d75 | (Zoffix Znet)++ | 2 files18:48
¦ perl6-lwp-simple: Fix incorrect argument to `plan` 18:48
¦ perl6-lwp-simple: review: https://github.com/perl6/perl6-lwp-simple/commit/f1257d6d7518:48
Zoffix With that attitude, sure it will :)18:49
raschipi Well, you can just go forward and take a quick look anyway.18:55
Zoffix raschipi: at what?18:57
I don't got an MacOS18:57
jmerelo left19:00
Zoffix left19:03
raschipi Because you have a time machine, you can take a peek.19:04
darutoko left19:05
domidumont left19:14
xi- left19:24
rodarmor left19:24
rodarmor joined19:25
pmmmm joined19:26
lucasb joined19:29
lucasb Zoffix: what does "for 'x' ~~ /./ { say 'yes' }" says in your Mu-item-cont-R1862 branch?19:30
Zoffix joined19:33
psychoslave joined19:33
Zoffix lucasb: I don't have that VM powered on, but I can tell it doesn't affect that code19:33
FROGGS joined19:33
PossumGuest6085719:34
jcallen_Guest1295819:34
AltreusGuest947219:34
SuccessGuest324319:34
DarthGandalfGuest1491819:34
ilbelkyrGuest9737019:34
Luneburg What was that?19:34
Zoffix m: my $m := 'x' ~~ /./; use nqp; dd nqp::iscont($m)19:34
camelia rakudo-moar 154d98551: OUTPUT: «0␤»19:34
xi- joined19:34
rindolf joined19:34
lucasb Zoffix: ah ok19:35
Zoffix m: Mu.^lookup("item").wrap: my method () is raw { $ = self }; for <x> ~~ /./ { say <yes> }19:36
camelia rakudo-moar 154d98551: ( no output )19:36
Zoffix m: Mu.^lookup("item").wrap: my method () is raw { $ = self }; for $(<x> ~~ /./) { say <yes> }19:36
camelia rakudo-moar 154d98551: OUTPUT: «yes␤»19:36
shareable6 left19:36
squashable6 left19:36
statisfiable6 left19:36
benchable6 left19:36
unicodable6 left19:36
coverable6 left19:36
releasable6 left19:36
greppable6 left19:36
Zoffix Luneburg: maintenance + issues after it. "There are ongoing issues with services that are being looked into"19:37
And I guess after maintenance users need to login to nickserv again and those people didn't so it booted them off the nick19:37
Guest97370ilbelkyr19:38
lucasb m: for $('x' ~~ /./) { say 'yes' }19:39
camelia rakudo-moar 154d98551: ( no output )19:39
lucasb m: for ('x' ~~ /./).item { say 'yes' }19:39
camelia rakudo-moar 154d98551: ( no output )19:39
Zoffix $( ) codegens to .item19:40
dct joined19:40
espadrine_ joined19:53
FROGGS left19:56
itaipu_ left20:03
perlbot left20:07
perlbot joined20:07
itaipu joined20:13
[Coke] m: use Test; check-name20:23
camelia rakudo-moar 154d98551: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Undeclared routine:␤ check-name used at line 1␤␤»20:23
athenot_ left20:25
athenot joined20:26
pecastro left20:29
Geth ¦ doc: coke assigned to JJ Issue xt/examples-compilation.t fails. https://github.com/perl6/doc/issues/205520:30
¦ doc: fe7a86fd47 | (Will "Coke" Coleda)++ | 2 files20:31
¦ doc: whitespace 20:31
¦ doc: review: https://github.com/perl6/doc/commit/fe7a86fd4720:31
¦ doc: ff9bc968c3 | (Will "Coke" Coleda)++ | doc/Language/math.pod620:31
¦ doc: Fix POD link 20:31
¦ doc: review: https://github.com/perl6/doc/commit/ff9bc968c320:31
¦ doc: 34aabd3013 | (Will "Coke" Coleda)++ | xt/code.pws20:31
synopsebot Link: https://doc.perl6.org/language/math20:31
Geth ¦ doc: learn new word 20:31
¦ doc: review: https://github.com/perl6/doc/commit/34aabd301320:31
psychoslave left20:32
releasable6 joined20:34
ChanServ set mode: +v20:34
greppable6 joined20:34
ChanServ set mode: +v20:34
coverable6 joined20:34
benchable6 joined20:34
unicodable6 joined20:34
ChanServ set mode: +v20:34
statisfiable6 joined20:34
undersightable6 left20:41
squashable6 joined20:41
ChanServ set mode: +v20:41
greppable6 left20:42
undersightable6 joined20:43
ChanServ set mode: +v20:43
releasable6 left20:43
greppable6 joined20:43
releasable6 joined20:43
ChanServ set mode: +v20:43
undersightable6 left20:43
undersightable6 joined20:44
Geth ¦ whateverable/master: 4 commits pushed by (Aleks-Daniel Jakimenko-Aleksejev)++20:46
¦ whateverable/master: a927030a06 | Support point releases 20:46
¦ whateverable/master: ababe47198 | Check MoarVM page on Wikipedia 20:46
¦ whateverable/master: 517679e4be | Highlight error as an error 20:46
¦ whateverable/master: e8d6ff47fb | Turn missing file Warnings into Errors 20:46
¦ whateverable/master: review: https://github.com/perl6/whateverable/compare/031cf5de521b...e8d6ff47fb7220:46
AlexDaniel lucasb: ↑ :)20:46
mrsolo left20:50
mrsolo joined20:50
bisectable6 left20:51
bisectable6 joined20:52
ChanServ set mode: +v20:52
lizmat hmmm.. looks like there are only 7 seats left in https://perlconference.us/tpc-2018-slc/session/making-your-perl-5-modules-work-in-rakudo-perl-6/20:54
yoleaux 16:28Z <Zoffix> lizmat: I recall like half a year ago you asking why QuantHash objects aren't Iterable. Did you ever figure it out? I notice lack of Iterable makes them get .item from Mu, which is a no-op, and thus you can't iterate over, say, a set as a single item: `dd $_ for $(set <a b c>); # OUTPUT: «:b␤:a␤:c␤»`20:54
Geth ¦ whateverable: bcad26d746 | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable.pm620:54
¦ whateverable: Ignore irc notices instead of replying 20:54
¦ whateverable:20:54
¦ whateverable: Otherwise bots unnecessarily reply to global notices.20:54
¦ whateverable: review: https://github.com/perl6/whateverable/commit/bcad26d74620:54
Zoffix lizmat: FWIW, I came to think QuantHash doing Iterable to be likely undesirable since I've sent that message20:57
m: -> *@stuff { dd @stuff }(set <a b c>)20:58
camelia rakudo-moar 154d98551: OUTPUT: «[("c","b","a").Set]␤»20:58
Zoffix m: -> *@stuff { dd @stuff }((set <a b c>) does Iterable)20:58
camelia rakudo-moar 154d98551: OUTPUT: «[:c, :b, :a]␤»20:58
lizmat Zoffix: yeah, read the github thread :-)20:58
Zoffix Ah, k :)20:58
raschipi Which thread? I looked back on the channel but can't find the link anymore...21:03
Sgeo__ joined21:04
lucasb R#1862 R#186321:04
synopsebot R#1862 [open] : https://github.com/rakudo/rakudo/issues/1862 [@LARRY] Some objects don't .item'ize even though they probably should 21:04
R#1863 [open] : https://github.com/rakudo/rakudo/pull/1863 Always containerize stuff when asked to with .item 21:04
AlexDaniel left21:05
AlexDaniel joined21:05
Sgeo_ left21:06
raschipi left21:12
Kaiepi left21:16
Kaiepi joined21:20
Luneburg left21:20
robertle left21:34
comborico1611 joined21:34
shareable6 joined21:38
espadrine_ left21:46
rindolf left21:59
tbrowder_ m: my $n=0x2000;say $n.chr22:11
camelia rakudo-moar 89a4cf0d9: OUTPUT: « ␤»22:11
tbrowder_ m: my $n=0x2000;my $m=$n.chr;my $n2=$m.ord;say $n==$n222:13
camelia rakudo-moar 89a4cf0d9: OUTPUT: «False␤»22:13
tbrowder_ m: my $n=0x2002:my $m=n.chr:my $n2=$m.ord;say $n==$n222:15
camelia rakudo-moar 89a4cf0d9: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤You can't adverb 0x2002␤at <tmp>:1␤------> my $n=0x2002:my $m=n.chr:my $n2=$m.ord;say $n==$n2 ␤ expecting any of:␤ pair value␤»22:15
n0tjack joined22:16
tbrowder_ m: my $n=0x2002;my $m=$n.chr;my $n2=$m.ord;say $n==$n222:17
camelia rakudo-moar 89a4cf0d9: OUTPUT: «True␤»22:17
tbrowder_ a bug??! ^^^\22:18
AlexDaniel m: say 0x2002.uniname22:22
camelia rakudo-moar 89a4cf0d9: OUTPUT: «EN SPACE␤»22:22
lucasb 0x2002.chr.ord == 0x2002 <-- seems a resoanable expectation22:22
AlexDaniel m: say 0x2000.uniname22:22
camelia rakudo-moar 89a4cf0d9: OUTPUT: «EN QUAD␤»22:22
AlexDaniel m: say 0x2000.chr.uniname.say22:22
camelia rakudo-moar 89a4cf0d9: OUTPUT: «EN SPACE␤True␤»22:22
tbrowder_ i’ve been working on some pod tests with space chars and found this possible bug when testing roundtripping hex ints. ints 0x2000 and 0x2001 don’t round trip, but i may be doing something wrong. the two hex ints are supposed to be unicode space chars22:22
AlexDaniel tbrowder_: looks like normalization to me?22:23
lucasb ah, sorry, misread22:23
AlexDaniel propdump: 0x2000 0x200222:24
unicodable6 AlexDaniel, https://gist.github.com/d67b0c59b8b11bdcc757d8d26d18435f22:24
tbrowder_ hm, maybe22:24
propdumping...22:29
m: 0x2000.uniprops22:30
camelia rakudo-moar 89a4cf0d9: OUTPUT: «Cannot resolve caller uniprops(Int); none of these signatures match:␤ (Str:D $str, Stringy:D $propname = "General_Category")␤ in block <unit> at <tmp> line 1␤␤»22:30
AlexDaniel tbrowder_: that's not what it's for22:31
m: say ‘hel∞lo’.uniprops22:31
camelia rakudo-moar 89a4cf0d9: OUTPUT: «(Ll Ll Ll Sm Ll Ll)␤»22:31
tbrowder_ m: 0x2000.chr.uniprops22:31
camelia rakudo-moar 89a4cf0d9: ( no output )22:31
tbrowder_ m: say 0x2000.chr.uniprops22:33
camelia rakudo-moar 89a4cf0d9: OUTPUT: «(Zs)␤»22:33
kurahaupo left22:33
tbrowder_ m: say 0x2001.chr.uniprops22:33
camelia rakudo-moar 89a4cf0d9: OUTPUT: «(Zs)␤»22:33
kurahaupo joined22:34
tbrowder_ m: say 0x2002.chr.uniprops22:35
camelia rakudo-moar 89a4cf0d9: OUTPUT: «(Zs)␤»22:35
pmurias left22:41
Kaiepi left22:44
Kaiepi joined22:44
tbrowder_ jnth confirmed those are two of the singleton normalization chars22:45
Herby_ joined22:55
Herby_ o/22:55
n0tjack left22:55
_28_ria joined22:58
dct left23:00
skids left23:00
Rich_Morin joined23:01
HaraldJoerg left23:03
lucasb m: say <1/2>.base(10,*)23:04
camelia rakudo-moar 89a4cf0d9: OUTPUT: «0.5␤»23:04
lucasb m: say <1/3>.base(10,*)23:04
camelia rakudo-moar 89a4cf0d9: OUTPUT: «(timeout)»23:04
Rich_Morin I'm getting a time out on http://www.perlfoundation.org - anyone know wazzup?23:04
itaipu left23:07
Geth ¦ whateverable: 5ca2ac89f4 | (Aleks-Daniel Jakimenko-Aleksejev)++ | bin/Undersightable.p623:07
¦ whateverable: Add perlfoundation.org to the list of checked urls 23:07
¦ whateverable: review: https://github.com/perl6/whateverable/commit/5ca2ac89f423:07
Herby_ left23:09
n0tjack joined23:10
n0tjack left23:26
lucasb left23:31
epony left23:45
epony joined23:46
kurahaupo left23:46
kurahaupo joined23:47
Sgeo_ joined23:55
Sgeo__ left23:57
stmuk joined23:59

Logs Search ←Prev date Next date→ Channels Documentation