Zoffix | Calling a method on a role puns it, right? | 00:58 | |
m: say Positional[Numeric].ACCEPTS: Positional[Int] | |||
camelia | True | ||
Zoffix | m: say Positional[Numeric].^pun.ACCEPTS: Positional[Int] | ||
camelia | False | ||
Zoffix | m: say Positional[Numeric].self.ACCEPTS: Positional[Int] | 01:00 | |
camelia | False | ||
Zoffix | m: use nqp; dd nqp::istype(Positional[Int], Positional[Cool]) | 01:01 | |
camelia | 1 | ||
Zoffix | Is it supposed to do that? | ||
FWIW this was rt.perl.org/Ticket/Display.html?id=128866 | 01:09 | ||
Zoffix is going through tickets he marked as "easy; try to fix" a year ago.... Obviously my judgement on what constitutes "easy" was off heh | 01:10 | ||
mst: are you around? What was the Perl 5 module you told me to use when I complained that I had to `use` a ton of modules? | 01:25 | ||
Oh. I can connect to my office box and check! | 01:29 | ||
don't remember where the hell I used it | 01:37 | ||
Ah! It was closer home: github.com/perl6/modules.perl6.org...lass.pm#L3 | 01:38 | ||
mst: never mind. it was Import::Into | |||
Damn. Almost bed time and I'm bugless for today. | 02:34 | ||
ZofBot: find me a bug to fix, bruh | |||
ZofBot | Zoffix, path; tmpdir Returns a string representation of the first writable directory from a list of possible temporary directories | ||
Zoffix | ZofBot: that's a lie! It also checks .x and .r! | 02:35 | |
ZofBot | Zoffix, ] Nesting of metaoperators Anywhere you may use an ordinary infix operator, you may use the infix operator enclosed in square brackets with the same meaning | ||
Zoffix | Cool. Good to know. | ||
Well, time for bed. But I got one in my crosshairs. | 02:59 | ||
Gonna catch you tomorrow, bug! You have one day to live! | |||
TimToady looks forward to repairing a tire with a screw sticking out of the tread tomorrow... | 03:15 | ||
it's been very much a hardware week here; first replacing two tiny capacitors in a power supply, then one huge capacitor in my air conditioner condenser unit | 03:16 | ||
TimToady will also have to replace the furnace controller at some point, since the old one is currently working only by yanking the connectors to one side using a rubber band, and the base of the connector the other direction by wedging in the tail of a plastic dinosaur | 03:24 | ||
(obviously a loose connection in the circuit board, but I'll just replace the whole controller, since the bits that would need resoldering are not terribly accessibly) | |||
but this week we only needed the cooler, so that's what died, of course | 03:25 | ||
at least our car was smart enough to tell us it was getting a flat tire, which is something... | 03:26 | ||
ObiWanGoldberg | tirepressuremonitor++? | 03:34 | |
samcv | guys the servers are down | 04:58 | |
docs.perl6.org and design.perl6.org :-( | |||
Zoffix, you have access to those servers right? | 04:59 | ||
[Tux] | This is Rakudo version 2017.04.3-172-gf2af3db16 built on MoarVM version 2017.04-57-g8d8a09b9 | 05:55 | |
csv-ip5xs 3.087 | |||
test 12.789 | |||
test-t 4.332 - 4.376 | |||
csv-parser 13.053 | |||
stmuk | samcv: they work for me now | 05:57 | |
samcv | docs seems back up now | 05:58 | |
Geth | star: c8326966aa | (Steve Mynott)++ | tools/star/release-guide.pod note 2017.04 release in release-guide.pod |
07:39 | |
samcv | stmuk, yeah it was down and got back up like a bit ago. but i tested on those is it down websites and was down for places other than me. and were the only sites that didn't load on my laptop | 07:54 | |
though hack.p6c.org loaded but that's on a diff server | |||
hmm change i made to compunit was fine until i tried to install it | 07:59 | ||
lizmat will be mostly offline until late Monday afternoon | 08:44 | ||
(JIT for next week's P6W) | 08:45 | ||
Geth | nqp/master: 13 commits pushed by (Pawel Murias)++ review: github.com/perl6/nqp/compare/c60df...e1ba263e92 |
09:22 | |
nqp: cd0e37a8c4 | (Pawel Murias)++ | src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/P6intInstance.java [jvm] Implement cloning a P6int |
09:23 | ||
Zoffix | samcv: yeah, I do | 09:41 | |
samcv | sites are back up. you can disregard that | 09:42 | |
Zoffix | seems to work fine now. | ||
Either I'm having a bad case of deja vu or RT is re-sending a bunch of emails from a few days ago :/ | 09:49 | ||
Well, actually I have root access to the box the sites are hosted on, but if they were flat on their face, that sounds like access to "hypervisor" or whatever is needed and I don't have that. moritz does tho | 09:53 | ||
Great... "rainfall warning"... and my umbrella's broke | 09:59 | ||
ZofBot: 2 inches... is that a lot? | |||
ZofBot | Zoffix, IO coercer Path names are just strings ("Str") | ||
jnthn | Yes :P | 10:04 | |
Zoffix | Uber it is, then :) | 10:06 | |
moritz | /win 4 | 10:15 | |
buggable | moritz, Thank you for entering Accidental /win Lottery! The next draw will happen in 3 weeks, 6 days, 13 hours, 44 minutes, and 38 seconds | ||
moritz | buggable++ | ||
pmurias | what are the prizes in the 'Accidental /win Lottery'? | 10:17 | |
tadzik | an irssi script that with safeguards? ;) | 10:18 | |
but see, the robots ridicule us now, it's just a joke. Next thing, the moment you paste your nickserv identify accidentally, a bot is going to identify, ghost it, change the password and demand ransom | 10:20 | ||
moritz | oh, good idea tadzik :-) | 10:22 | |
Zoffix | pmurias: they include everything you could possibly need to get through life. | ||
buggable: draw | 10:23 | ||
buggable | Zoffix, The next Accidental /win Lottery draw will happen in 3 weeks, 6 days, 13 hours, 36 minutes, and 59 seconds. Currently have 3 ballots submitted by 3 users! | ||
tadzik | moritz: it could probably be well disguised as useful, rather than malicious too :) āYou seem to have accidentally pasted your password. I will now keep your account secure for you, please provide a picture with a shoe on your head for verificationā | 10:24 | |
moritz | ... and 0.1btc processing fee | 10:25 | |
Geth | nqp: 9c4bd91316 | (Pawel Murias)++ | src/vm/js/nqp-runtime/core.js [js] Fix style violation found by make js-lint |
10:58 | |
nqp: 54d7e211ac | (Pawel Murias)++ | 7 files [js] Tweak multi caches to cache rw containers separately |
|||
Zoffix | m: (1, |(1...*)).iterator.is-lazy.say | 11:38 | |
camelia | False | ||
Zoffix | Should that be true? | ||
m: (1, |(1...*)).is-lazy.say | 11:39 | ||
camelia | True | ||
Zoffix | Cause that is true | ||
Maxing it true fixes a bug with slurpies, but I wonder if it's a bad idea | 11:40 | ||
Well, the fix is calling .reify-until-lazy on $!todo instead of just calling is-lazy on it and that makes me wonder what point is-lazy is | 11:41 | ||
ZofBot: tell me I'm right | |||
ZofBot | Zoffix, The mystical class from which all other classes are derived (ē”) | ||
Zoffix | Sounds like a name for an RPG | ||
s/Maxing/Making/; | 12:03 | ||
Oh. Never mind. | 12:05 | ||
m: say [1, 5, |(1..*)].map(*.self).join | |||
camelia | ... | ||
Zoffix | m: say [1, 5, |(1..*)].iterator.iz-lazy.say | ||
camelia | No such method 'iz-lazy' for invocant of type '<anon|439200352>' in block <unit> at <tmp> line 1 |
||
Zoffix | m: say [1, 5, |(1..*)].iterator.is-lazy.say | 12:06 | |
camelia | True True |
||
Zoffix | oh | ||
m: say [1, 5, |(1..**)].iterator.is-lazy.say | |||
camelia | Cannot resolve caller Real(HyperWhatever: ); none of these signatures match: (Mu:U \v: *%_) in block <unit> at <tmp> line 1 |
||
Zoffix | m: say [1, 5, |(1...*)].iterator.is-lazy.say | ||
camelia | True True |
||
Zoffix | ... | ||
m: (1, |(1...*)).iterator.is-lazy.say | |||
camelia | False | ||
Zoffix | m: (1, |(1...*)).join.say | ||
camelia | 1... | ||
Zoffix | Yeah. Thank. It works but in my bug doesn't so likely 'cause is not iterator being false is-lazy | 12:07 | |
s/Thank/That/; | |||
OTOH: | 12:09 | ||
m: (1...*).List.put | |||
camelia | ... | ||
Zoffix | m: (1, |(1...*)).List.put | ||
camelia | 1 ... | ||
Zoffix | oh | ||
nm | |||
m: dd (1, |(1...*)).List.Seq | 12:26 | ||
camelia | Cannot .elems a lazy list in block <unit> at <tmp> line 1 Actually thrown at: in block <unit> at <tmp> line 1 |
||
Zoffix | rakudo (nom)$ ./perl6 -e 'm: dd (1, |(1...*)).List.Seq' | ||
(1, 1, 2, 3, 4, 5, 6, 7, 8, 9... lazy list) | |||
my local version is right-er, right? | |||
moritz: how come trying to visit the log site too fast returns a 403? Like opening #perl6-dev and #perl6 logs at the same time. If you do it really fast, no 403, if you do it fast-ish, you get a 403 on whichever page loaded second, if you keep refreshing the 403 it stays a 403 and if you wait a bit, it goes away? Also, noticing this on desktop browsers only. Don't seem to happen on my smartphone, in Opera | 12:42 | ||
browser. | |||
kinda annoying when you wanna catch up with a couple of channels. | 12:43 | ||
Is this some sort of anti-scraper protection? | |||
moritz | Zoffix: rate limiting, maybe | 12:47 | |
Zoffix | Ah | ||
ugh. Well, I fixed my bug, but now say (1, |(1...*)).List.Seq[^10] appears to hang :'( | 12:51 | ||
can't win | |||
oh, even (1, |(1...*))[^10] hangs :S | 12:53 | ||
Ahhh. I know why! | |||
After 3 hours of messing around, looks like I have a fix. Affects code in all *slurpies :/ I could use a `make bench` right about now :/ | 13:37 | ||
Geth | rakudo/nom: 5e6b38789a | (Zoffix Znet)++ | src/core/List.pm Reify until lazy when making a flat slurpy Fixes RT#128201: rt.perl.org/Ticket/Display.html?id=128201 The hang in the ticket is due to .map/.join in .gist not seeing .is-lazy of the original arg. So when making a slurpy, we reify $!todo until lazy, so that if we have lazy stuff, we set is lazy for slurpy's iterator. |
13:48 | |
synopsebot6 | Link: rt.perl.org/rt3/Public/Bug/Display...?id=128201 | ||
roast: 5653ebb91b | (Zoffix Znet)++ | S06-signature/slurpy-params.t Test .gist on slurpies given inf lists does not hang RT#128201: rt.perl.org/Ticket/Display.html?id=128201 Rakudo fix: github.com/rakudo/rakudo/commit/5e6b38789a |
13:49 | ||
synopsebot6 | Link: rt.perl.org/rt3/Public/Bug/Display...?id=128201 | ||
Zoffix | .ask lizmat would you check this commit github.com/rakudo/rakudo/commit/5e6b38789a ? It fixes the bug, but I fixed it more by attrition that knowing what I'm doing. | 13:50 | |
yoleaux | Zoffix: I'll pass your message to lizmat. | ||
Zoffix | gah | 14:06 | |
Just had a convo in #zofbot by mistake instead of here with no one but a dozen of bots to listen to me -_- | |||
m: sub (*@) {}(gather { say "hi"; take 42 }) | |||
camelia | ( no output ) | ||
Zoffix | ^ I said this starts saying "hi" with my commit. But probably it should anyway because this does: | ||
m: @ = gather { say "hi"; take 42 } | 14:07 | ||
camelia | hi | ||
Zoffix & | |||
MasterDuke_ | i did a profile-compile of perl6 -e '' and looked at the top allocators of BOOTStrs | 14:19 | |
i then went through and made a bunch of variables 'str' that weren't before in those routines | |||
the only thing that seemed to make a difference was making the `$key` parameter of `force_value` in World.nqp a str | |||
it reduced the total number of BOOTStr allocations from 557 to 521 | 14:20 | ||
but none of my changes ever changed the BOOTStr count in a heap profile of perl6 -e '' | 14:21 | ||
thought the VMString size did go from 2,092,600 to 2,092,830 | 14:22 | ||
why didn't changes to any of the other top routines make a difference? | 14:23 | ||
jnthn | Heap profile as in --profile=heap? | 14:26 | |
That is always taken after a GC | |||
So stuff that's allocated but thrown away shortly afterwards won't show up there | |||
The heap profiler isn't an allocation profiler | 14:27 | ||
It provides counts of what's being held in memory | |||
And kept alive by something at the time of the snapshot | |||
MasterDuke_ | ah, i guess that would explain why i don't see so many differences in it's results | 14:29 | |
but why not in the regular profiles? | 14:30 | ||
jnthn | That I'm less sure about. | ||
Though | 14:31 | ||
If you write | |||
MasterDuke_ | i.e., some of the top BOOTStr allocating routines had a couple `my $var := "string"` which i changed to `my str $var := "string"` | ||
jnthn | my str $x := ... | ||
And then foo($x) | |||
And foo is declared | |||
sub foo($thing) { } | |||
Then it'll be boxed | |||
And if it's passed somewhere twice it'll be boxed twice | |||
So it's easy to come out worse | |||
MasterDuke_ | hm, guess i need to follow those vars and see what's done with them | 14:32 | |
this i odd. i just changed $scope and $decl to `str`s in compile_var ( github.com/perl6/nqp/blob/master/s....nqp#L1512 ), and they aren't passed into another other routine, but profile afterwards shows 11 more BOOTStrs allocated | 15:08 | ||
Zoffix | buggable: eco installer | 16:22 | |
buggable | Zoffix, Found 3 results: App::redpanda, Sparrowdo::Cpm, App::InstallerMaker::WiX. See modules.perl6.org/#q=installer | ||
Zoffix | buggable: eco installer::Wix | ||
buggable | Zoffix, Nothing found | ||
Zoffix | buggable: eco maker::Wix | ||
buggable | Zoffix, App::InstallerMaker::WiX 'Tool to make basic WiX installers for Perl 6 apps, bundling MoarVM/Rakudo.': github.com/jnthn/p6-app-installermaker-wix | ||
Zoffix | buggable: eco wix | ||
buggable | Zoffix, App::InstallerMaker::WiX 'Tool to make basic WiX installers for Perl 6 apps, bundling MoarVM/Rakudo.': github.com/jnthn/p6-app-installermaker-wix | ||
Zoffix | qast: āøOp: :op<say>, āøSVal: :value<Hi> | 16:27 | |
SourceBaby | Zoffix, OUTPUT: Ā«Hiā¤Ā» | ||
Zoffix | hehe. Now I just need to figure out how to type āø on this box too :} | 16:28 | |
timotimo | give it a texas variant :) | ||
Zoffix | qast: āøOp: :op<say>, āøSVal: :valueĀ«HiĀ» | 16:29 | |
SourceBaby | Zoffix, OUTPUT: Ā«Hiā¤Ā» | ||
Zoffix was trying to see if Ā» was a thing in nqp... | |||
[Coke] | I see github.com/fayland/perl6-Business-CreditCard has a logo in the modules page; but the logo isn't mentioned in the META file. is it just assumed based on filename? Can we change that so you can specify a relative path or URL? | 16:56 | |
perlpilot | looks like it just looks in the repo for logotype/logo_32x32.png (with possibly other variations) | 16:58 | |
Zoffix | [Coke]: logos aren't specified by META; if you got "logotype/logo_32x32.png" file, it's used as a logo | 16:59 | |
That's the only variation | |||
perlpilot | ah | ||
Zoffix has logos in most of his modules | 17:00 | ||
buggable: author zoffix | |||
buggable | Zoffix, Did not find any dists for zoffix | ||
Zoffix | buggable: author zoffixznet | ||
[Coke] | I would prefer that was config'able (esp. since I've never had a logotype directory in any project ever.) | ||
buggable | Zoffix, Found 38 dists for zoffixznet. See temp.perl6.party/buggable/13461453...03614.html | ||
timotimo | it'd be cool if you could also have an svg along the png | ||
(have both so that not everything that wants to display module lists has to be able to render svg) | |||
Zoffix would rather toss it entirely :} | 17:01 | ||
perlpilot | logos would be a nice addition to the META spec as optional ancillary info | 17:02 | |
Zoffix | whyyy | 17:03 | |
timotimo | yeah, have a data: url in a field inside the json :P | ||
perlpilot | Zoffix: why not? | 17:04 | |
Zoffix | Just scrolling through the modules.perl6.org, I'd say we're violating a dozen or so copyright laws, with all the proprietary logos | ||
timotimo | perlpilot: maybe because we generate one big .json file from all meta jsons :) | ||
Zoffix | perlpilot: it's very simple: complex stuff sucks | ||
perlpilot | can't argue with that. :) | 17:05 | |
Zoffix | Wonder why Trait::IO renders in a huge row :/ | 17:06 | |
oh, wait, it's the... *drum roll*, the apparently bustified logo_32x32.png | |||
I think | 17:07 | ||
Yeah, it's 400px x 400px | |||
The n00b that coded that website really messed up | |||
timotimo | :D :D :D | 17:08 | |
perlpilot | yikes. | ||
timotimo | that is utterly fantastic | ||
a smart way to get attention for your module | |||
just have it take up one screen-page | |||
Zoffix sets a picture of a huge cock as logotype... | 17:09 | ||
This one should do: ct.weirdnutdaily.com/ol/wn/sw/i39/2...86d139.jpg | |||
perlpilot | Zoffix: speaking of Trait::IO ... what's with the 5 levels of nqp::ctxcaller? | 17:10 | |
Zoffix | Why are people asking me about it? | ||
You're the second person to ask me that. | |||
Because that many levels is needed. | |||
timotimo | that's a huge cock this guy has between his legs | 17:11 | |
Zoffix | :") | 17:12 | |
perlpilot | Zoffix: I figured it was needed. Help me understand why :) | ||
Zoffix | perlpilot: I'm guessing many callers between the block being run and users code. I took it from another core trait and added a level or two | 17:13 | |
*that many | |||
It needs to reach the variable in user's code so it goes up the call stack looking for it | 17:23 | ||
*the block the variable is in | |||
So it could stick a phaser into it | |||
Prolly should have more checks than just a name. All the intermediate layers probably have variables in 'em | 17:24 | ||
Oh wait, never mind. | |||
It goes RIGHT to the scope with the variable and finds it by name and calls .close on it | 17:25 | ||
to close the handle | |||
m: my $x = 42; my $y = 42; die unless $x == $y == 42 | 17:44 | ||
camelia | ( no output ) | ||
Zoffix | TIL that's a syntax error in Perl 5 (can't chain ==)... | ||
Or, I guess, I've been using Perl 6 long enough to be spoiled enough to be surprised when such chaining doesn't work :) | |||
timotimo | :) | 17:45 | |
yeah, chaining operators is pretty cool | |||
Zoffix | [Coke]: um, your comment only showed up after I merged. What's wrong with SO's license? Isn't it just MIT? So we stuff it to LICENSE section and move on, no? | 18:38 | |
yoleaux | 18:35Z <[Coke]> Zoffix: please check my comment on doc pr # 1296 | ||
[Coke] | Zoffix: you seem to respond in discussions I'm not talking to you in. | 18:39 | |
But yes, commit e8ae3b is a fine way to deal with the issue, thanks. | |||
Zoffix | OK | 18:40 | |
[Coke]: well, I'm not in #perl6. You are in #perl6-dev :) | |||
.ask samcv is bustitude with some ops on docs site known? Like docs.perl6.org/routine/..%5E is a 404 (that's ..^ op) | 18:47 | ||
yoleaux | Zoffix: I'll pass your message to samcv. | 18:48 | |
MasterDuke_ | how very terrible is gist.github.com/MasterDuke17/c0718...74f03fff25 for rt.perl.org/Ticket/Display.html?id=112396 ? | 19:14 | |
Zoffix has no idea | 19:15 | ||
MasterDuke_ | m: 3 ==> sin() ==> say() | 19:29 | |
camelia | 0.141120008059867 | ||
MasterDuke_ | m: 3 ==> &sin ==> &say | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Sorry, do not know how to handle this case of a feed operator yet. at <tmp>:1 ------> 033 ==> &sin ==> &say7ā5<EOL> |
||
MasterDuke_ | ^^^ gives the same result as the first with the patch i gisted above | 19:30 | |
but the conditional i added, `elsif $_.isa(QAST::Op) && $_.op eq 'ifnull' && $_[0].isa(QAST::Var) && nqp::substr($_[0].name, 0, 1) eq '&' {`, doesn't seem all that elegant | 19:31 | ||
timotimo | i never .isa | 19:32 | |
and nqp::eqat is way better than substr + eq | |||
Zoffix | .oO( is it supposed to be just the same as a routine call?; feels too magical to automatically convert it into a call ) |
||
m: my &x = 42 but Callable; &x() | 19:33 | ||
camelia | No such method 'CALL-ME' for invocant of type 'Int+{Callable}' in block <unit> at <tmp> line 1 |
||
MasterDuke_ | moritz, masak, jnthn: pinging you guys since your conversation is what prompted the ticket | 19:39 | |
moritz | MasterDuke_: I don't know if we paint ourselves into a proverbial corner if we special-case that. Maybe a better error message would be the safer solution | 19:49 | |
but I don't feel very strongly either way | |||
[Coke] | moritz: www.youtube.com/watch?v=ussCHoQttyQ | 20:11 | |
Zoffix: is that worse than: | 20:12 | ||
m: my $x = 42; &$x() | |||
camelia | No such method 'CALL-ME' for invocant of type 'Int' in block <unit> at <tmp> line 1 |
||
Zoffix doesn't understand the question | 20:13 | ||
MasterDuke_ | i could alway stick the conditional i added into the error branch and add something like `. Did you mean 'sub()'?` if true | 20:14 | |
[Coke] | just taking your previous m: and showing what happens if you use $x instead of &x - if you're suggesting that is LTA somehow, this is a similar thing to consider. | 20:15 | |
TimToady | m: my $x = 42; $x(); # don't need the & at all | 20:24 | |
camelia | No such method 'CALL-ME' for invocant of type 'Int' in block <unit> at <tmp> line 1 |
||
MasterDuke_ | TimToady: do you have an opinion on the feed question? | 20:25 | |
jnthn | Unicode hack of the: www.reddit.com/r/rust/comments/5pe...t/dcsgk7n/ | 20:28 | |
*of the day | |||
MasterDuke_: The comment in RT #112396 about STD having accepted it doesn't really seem to be relevant, in so far as it can be valid syntax but not valid semantics. :) | 20:30 | ||
synopsebot6 | Link: rt.perl.org/rt3/Public/Bug/Display...?id=112396 | ||
jnthn | Which is in fact what the push error is about | ||
The report is kinda amusing | 20:31 | ||
Uses feed operator | |||
Gets error that makes sense if you know they push on to variables | |||
Says it's LTA | |||
Notes doesn't know anything about feed operators :P | |||
But yeah, I think we could probably say that anything with an & sigil is very unlikely to be a push target | 20:32 | ||
I don't think magically turning a noun into a verb is the right way to go, though | |||
TimToady agrees | |||
jnthn | I could live with spotting the & sigil and giving an error suggesting probable confusion | 20:33 | |
MasterDuke_ | k | 20:34 | |
jnthn notes that a $ will auto-viv to an array on push, an @ will be an array and so work, and a % also has a push method | |||
I'd never really thought about sticking a hash at the end of a feed operator but thanks to Hash.push it probably does something useful and sensible :-) | |||
Zoffix | [Coke]: no, my suggestion was that not everything & is necessarily something you can call to automagically turn it into a call | ||
m: my $mmutableTreeListįøElementTį³ = 42; dd $mmutableTreeListįøElementTį³ | 20:36 | ||
camelia | Int $mmutableTreeListįøElementTį³ = 42 | ||
Zoffix | haha :) nice one | ||
MasterDuke_ | jnthn: would you say that in fact verbing weirds nouns? | 20:37 | |
jnthn | Zoffix: Thought you might enjoy that :) | ||
MasterDuke_: What? :-) | |||
MasterDuke_ | jnthn: an attempt at making a joke about your statement turning a noun into a verb isn't right. "verbing weirds nouns" is a quote from Calvin & Hobbes | 20:45 | |
jnthn | MasterDuke_: Ah, I didn't know the reference. :-) But I'm not into prescriptivisting, so I don't think it weirds them at all. :-) | 20:48 | |
TimToady | note that even English has to use "ing" and "s" to do that, which is equivalent to requiring () in Perl 6 | 20:50 | |
MasterDuke_ | how does this look: `perl6 -e '3 ==> &sin ==> &say'` locally prints `Sorry, do not know how to handle this case of a feed operator yet. Did you mean '&sin()'?` | 20:56 | |
jnthn | It's a bit of a lie 'cus we do we know exactly what case it is. :) | 20:57 | |
MasterDuke_ | just replace the message? | 20:58 | |
jnthn | Yeah | ||
"A feed may not sink values into a code object. Did you mean to a call like 'sin()' instead?" | 20:59 | ||
oops | |||
"A feed may not sink values into a code object. Did you mean a call like 'sin()' instead?" | |||
MasterDuke_ | while i'm at it, any reason not to stick some info about the object in the message in the usual case? like the QAST type? | 21:04 | |
oh, and the error says the first thing in the feed, but the caret always points to the EOL, any way to fix that? | 21:05 | ||
jnthn | I don't think QAST nodes mean anything to the typical user | ||
Maybe we'd be better enumerating what is allowed since there aren't many options :) | |||
The caret can usually be got righter by calling .panic/.sorry or whatever on a more appropriate match object | 21:06 | ||
Rather than just $/ | |||
MasterDuke_ | "Sorry, do not know how to handle this case of a feed operator yet. Only routine calls and variables with a '.push' are allowed." ? | 21:08 | |
jnthn | Seems like an improvement | 21:09 | |
MasterDuke_ | variables that can '.push'? | 21:11 | |
jnthn | Guess that is shorter and says just as push | ||
*just as much | |||
MasterDuke_ | that was a little unclear. this is what i currently have added: "Only routine calls and variables that can '.push' are allowed." | 21:13 | |
but it could be "Sorry, do not know how to handle this case of a feed operator yet, only routine calls and variables that can '.push'" | 21:14 | ||
jnthn | I think the second , would want to be a ; if we do that | 21:15 | |
Oh, wait :) | |||
Maybe the "yet" should go away too | 21:16 | ||
In that there's more wrong things you can write than NYI things | |||
Could just say something like "Only routine calls or variables that can '.push' may appear either side of feed operators." | |||
MasterDuke_ | cool, will put that | 21:19 | |
the .panic is currently called on the same $/ that's passed into make_feed() | 21:20 | ||
but inside it loops over "stages" of $/<infix><sym> | 21:22 | ||
and working on the .ast | 21:23 | ||
any way to get back at the appropriate part of the $/ other than keeping a parallel array around? | 21:25 | ||
jnthn | the thing it gets the .ast from for the stage will be a match object | ||
MasterDuke_ | yeah, but it sticks the .ast in @stages and then loops over that to do the work | 21:26 | |
jnthn | Oh | ||
Can we maybe just stick the original thing in @stages and then call .ast on it in the loop? | |||
s/original thing/match/ | 21:27 | ||
MasterDuke_ | yeah, probably, i'll give it a shot | ||
samcv | .tell Zoffix dunno about the docs. when i checked before it was all fine. i'm curious what the files on the server are called? | 22:28 | |
yoleaux | samcv: I'll pass your message to Zoffix. | ||
samcv | .tell Zoffix page works docs.perl6.org/routine/...html it just needs .html to be at the end | ||
yoleaux | samcv: I'll pass your message to Zoffix. | ||
samcv | hmm maybe the rewriting isn' working? though for now we can maybe make the pages end in .html for every page that has a dot in the name? hm | 22:30 | |
you aren't supposed to end a domain name with a period though | |||
timotimo | domain names ought to be like .org.perl6.www | 22:33 | |
Zoffix | . | 22:34 | |
yoleaux | 22:28Z <samcv> Zoffix: dunno about the docs. when i checked before it was all fine. i'm curious what the files on the server are called? | ||
22:28Z <samcv> Zoffix: page works docs.perl6.org/routine/...html it just needs .html to be at the end | |||
samcv | Zoffix, it's now reported github.com/perl6/doc/issues/1298 | 22:35 | |
timotimo, that would be nice | |||
Zoffix | I think we just need to put the dot back into the $COLON rewriter. I'll take a look later tonight. | 22:36 | |
samcv | we can just use .html? | 22:37 | |
Zoffix | We can't willy-nilly mess with URLs because a lot of things link to them. | 22:39 | |
s/them/pages on doc site/; | |||
samcv | hm | 22:40 | |
also Zoffix it's only ones that end in a period | |||
anywhere else is fine | 22:41 | ||
Zoffix | No, the `%`/`%%` ops are also busted | 22:42 | |
Rather, their links are | |||
samcv | i mean the page is still at that point | 22:43 | |
anything else broken Zoffix ? | |||
i think i'm gonna try and fix it right now | |||
Zoffix | samcv: don't know of any other ones. The percent ones are github.com/perl6/doc/issues/1295 and the pages work if you do %25 or %25%25, but the link from search just links to bare % | 22:46 | |
samcv | ok great thanks | ||
Zoffix | Oh, the % one is a separate Issue: github.com/perl6/doc/issues/1286 | ||
samcv | ok working on now | 22:48 | |
Geth | roast: 4f515b898d | (Zoffix Znet)++ (committed using GitHub Web editor) | S04-exceptions/fail.t Toss outdated comment It's 9 years old... and I guess `use fatal` *is* standard now, as it's in a bunch of places in roast. |
22:50 | |
MasterDuke_ | hm, after some interruptions retooled make_feed to .ast the parts in the loop that works on them, but calling $_.panic() (instead of $/.panic) still puts the caret at the EOL | 22:57 | |
Zoffix | This feels like a WAT: github.com/perl6/doc/issues/1290 | 23:28 | |
... like a WAT can of worms. | 23:29 | ||
'cause what I'd want to do is add :nohandler on the nqp::while loop handling... but, hell, are we gonna add them to all the things that accept Callables (e.g. .splice comes to mind) | 23:31 | ||
hell knows what else | |||
+ phasers | 23:34 | ||
MasterDuke_ | there's at least some thought that phasers should work in grep. rt.perl.org/Ticket/Display.html?id=131060 | 23:35 | |
samcv | ok new atom-language-perl6 release. regex highlighting fixes | 23:36 | |
Zoffix | samcv++ | ||
Made a @LARRY ticket for loop controls/phasers in routines that accept Callables. IMO we should default to these being "undefined behaviour" and just implement handlers for stuff where it makes sense: rt.perl.org/Ticket/Display.html?id=131261 | 23:48 | ||
samcv: spotted another doc Issue about broken URLs, though it seems to be the same `..` stuff: github.com/perl6/doc/issues/1283 | 23:58 | ||
samcv | yeah that's the same thing | ||
yeah bduggan posted a link to that on my ticket |