|
SVK users: search.cpan.org/dist/SVN-Mirror/ | paste: sial.org/pbot/perl6 | pugs.blogs.com | pugscode.org | pugs.kwiki.org | www.treehugger.com/files/th_images/paradigm.jpg Set by audreyt on 17 August 2006. |
|||
|
00:02
Limbic_Region joined
|
|||
| araujo | Juerd, yes | 00:11 | |
| TreyHarris | araujo: memory helps a *lot*. i went from 512 to a gig and compile time dropped by half | 00:16 | |
| but it still takes 35 or 45 minutes on my PPC 1.5 | 00:17 | ||
| araujo | yeah, more memory will do it | 00:24 | |
|
00:39
zgh joined
01:06
markstos_ joined
|
|||
| araujo | hi markstos_ | 01:07 | |
| markstos_ | hello araujo | ||
| araujo | markstos_, just read perl6 will have function currying :-) | ||
| that is another very haskellish feature , which i am happy to see here | 01:08 | ||
| markstos_ | araujo: Where can I read more about how this will look and work in Perl6? | 01:09 | |
| araujo | markstos_, oh, i just read it as a new feature listed on the faqs of perl6 ... i still dont find any further explanation | 01:10 | |
| svnbot6 | r12749 | markstos++ | CGI.pm: Use method, not submethod, because we do what these behaviors to be inherited. | ||
| r12750 | markstos++ | ChangeLog updates | |||
| araujo | i would like to, so, if anyone knows.... | ||
| markstos_ | Let me grep the specification.. | ||
| dolmans | markstos_: S06/Currying | 01:11 | |
| markstos_ | feather.perl6.nl/syn/S06.html#Currying | 01:12 | |
| lambdabot | Title: S06 | ||
| markstos_ | Jes. Just found it. | ||
| s/Jes/Yes. | |||
| araujo | cool | 01:17 | |
|
01:18
kanru joined
|
|||
| araujo starts the fun reading the code ..... "how to do this monadically? ..." :-) | 01:30 | ||
|
01:30
theorbtwo joined
|
|||
| markstos_ | I'm getting started on feather and syntax highlighting isn't working for me. I get an error on line 42 of syntax/syntax.vim: E216: No such group or event: filetypedetect BufRead | 01:43 | |
| That familiar to anyone ? | |||
| I tried copying audrey's syntax/syntax.vim to my ~/.vim, but that didn't help. | |||
| I also tried removing my own .vimrc, but I still get the issue, indicating some kind of system level problem. | 01:45 | ||
| markstos_ ponders this | |||
| Here's a bug report and fix for the issue. Perhaps it's related to the OS upgrade earlier today: | 01:48 | ||
| www.ubuntuforums.org/showthread.php?t=161862 | |||
| ingy | hola | 01:56 | |
| I just did a file transfer of a 10GB file.... | 01:57 | ||
| which took a long time | |||
| the transfer stalled with a few MBs to go | |||
| seriaously 99.999 | |||
| so what transfer util will recover from where I left off? | 01:58 | ||
| obra | rsync may | ||
| ingy | hi obra | ||
| I hate mac so much I just went out and ought a new macbook to teach em a lesson | 02:00 | ||
| I think I'll be integrating libyaml into the new YAML.pm | 02:02 | ||
| it looks ready | |||
| also thinking about a javascript port... | 02:03 | ||
| obra | cool. How does libyaml differ from libsyck? | 02:04 | |
|
02:04
theorbtwo joined
|
|||
| ingy | obra: it's a streaming API | 02:07 | |
| it's built the way that yaml tools were indented to be built | 02:08 | ||
| ;) | |||
| libyaml - data the way that ingy indented it | 02:09 | ||
| the other difference is that it probably is much closer to spec correct, and has much better error reporting (I'm guessing) | 02:10 | ||
| libsyck is some whimsical approximation of YAML 1.0 | 02:11 | ||
| obra | cool. | 02:12 | |
|
02:12
cognominal joined
|
|||
| obra | streaming yaml would be very interesting | 02:12 | |
| ingy | well it's not just for streaming | 02:13 | |
| it's just that the low level (read hard) stuff is streaming | |||
|
02:13
weinig joined
02:19
weinig joined
|
|||
| markstos_ | Why doesn't this work as expected? | 02:33 | |
| ?eval sub foo(%h) { say %h.perl } foo(1=>2,2=>3)' | |||
| evalbot_12750 | Error: unexpected "'" expecting ":", term postfix, comment, operator, postfix conditional, postfix loop, postfix iteration, ";" or end of input | ||
| markstos_ | ?eval sub foo(%h) { say %h.perl } foo(1=>2,2=>3) | ||
| evalbot_12750 | Error: No compatible subroutine found: "&foo" | ||
| ayrnieu | ?eval sub foo(%h) { say %h.perl }; foo(1=>2,2=>3) | 02:34 | |
| evalbot_12750 | Error: No compatible subroutine found: "&foo" | ||
| TreyHarris | ?sub foo(Pair $h, Pair $y) { say ($h, $y).perl }; foo(1=>2,2=>3) | 02:36 | |
| lambdabot | Parse error | ||
| TreyHarris | ?eval sub foo(Pair $h, Pair $y) { say ($h, $y).perl }; foo(1=>2,2=>3) | ||
| evalbot_12750 | OUTPUT[((1 => 2), (2 => 3)) ] Bool::True | ||
| markstos_ | It works if I define 1=>2,2=>3 as a hash explicitly has a hash beforehand, and pass the hash in. | ||
| TreyHarris | you're not passing in a hash | ||
| you're passing in two pairs | |||
| markstos_ | But that's the typical way to pass in named arguments, right? | 02:37 | |
| Should I be defining each known key of the hash in the subroutine sig ? | |||
| TreyHarris | you have two problems | ||
| one, you have to make your hash slurpy: | 02:38 | ||
| ?eval sub foo(*%hash) { say %hash.perl }; foo(1=>2,2=>3) | |||
| evalbot_12750 | OUTPUT[{} ] Bool::True | ||
| markstos_ thinks he has 2 problems, plus the barking dog across the street that won't shut up. | |||
| TreyHarris | but that still doesn't work | ||
| because pairs of random data can't possibly be named args | |||
| markstos_ | I tried the slurpy. That didn't work. | ||
| TreyHarris | they have to be identifiers: | ||
| ?eval sub foo(*%hash) { say %hash.perl }; foo(a=>2,b=>3) | |||
| evalbot_12750 | OUTPUT[{("a" => 2), ("b" => 3)} ] Bool::True | ||
| TreyHarris | there. | ||
| markstos_ | What's the difference between that and the version above? you changed the key names? | 02:39 | |
| TreyHarris | yes | ||
| '1' and '2' aren't valid identifiers | 02:40 | ||
| markstos_ | why would that make a difference? | ||
| Ah. | |||
| TreyHarris | named params must be idents | ||
| markstos_ | idents? | ||
| TreyHarris | identifiers | ||
| markstos_ | Anyway, my keys in my applications don't need to be numbers. | ||
| ayrnieu | ?eval [1=>2, '1'=>2] | 02:41 | |
| evalbot_12750 | [(1 => 2), ("1" => 2)] | ||
| TreyHarris | ?eval %(1=>2, '1'=>3) | 02:42 | |
| evalbot_12750 | {("1" => 3),} | ||
| ayrnieu | that's not actually intended, is it? | 02:43 | |
| TreyHarris | that's correct behavior | 02:44 | |
| of a default hash | |||
| because 1 and '1' are the same hash keys | |||
| zgh | i though hashes in perl6 dodn't automatically stringify the keys | ||
| ayrnieu | ?eval %(1=>2, '2'=>3) | 02:45 | |
| zgh | s/dodn't/didn't/ | ||
| evalbot_12750 | {("1" => 2), ("2" => 3)} | ||
| zgh | that's kind of disappointing | ||
| where are the key-type-agnostic hashes in perl6 | |||
| TreyHarris | zgh: they do currently in pugs. let me consult the synopses, but i'd expect that to be the default behavior, it would be extraordinarily surprising to perl 5 programmers. | 02:46 | |
| i believe that .SKID controls (but .SKID is currently unimplemented) | |||
| ayrnieu | a perl5 programmer would expect scalars, yes. | ||
|
02:47
mako132_ joined
|
|||
| TreyHarris | markstos_: to continue what i was saying first: | 02:47 | |
| ?eval sub foo($a?, *%hash) { say %hash.perl }; foo(a=>2,b=>3) | |||
| evalbot_12750 | OUTPUT[{("b" => 3),} ] Bool::True | ||
| zgh | i'm a perl5 programmer, but i have used languages where hash keys were immutable objects or whtever instead of hashes | ||
| it's not THAT surprising | |||
| ayrnieu | zgh - yes, yes, but a perl5 programmer would expect scalars to act like scalars. | 02:48 | |
| zgh | instead of hashes? | ||
| i meant instead of strings sorry lol | |||
| well numbers are scalars | |||
| (some) objects are, yes | |||
| TreyHarris | notice the first key was not output, because it was bound to $a. slurpy hashes are meant to grab all named parameters, so only parameters that could be otherwise named are grabbed | ||
| zgh | ? | ||
| i can't say i ever found perl5 hashes lacking...i think the theorist in me likes having whatver types I want in a key | 02:49 | ||
| ayrnieu | zgh - as long as one of those types is 'scalar', everyone is happy. | 02:50 | |
| zgh | ayrnieu: how very true! | ||
| TreyHarris | zgh: according to S09, you write "my %hash{*}" to indicate that you want to accept keys of any type | 02:53 | |
| otherwise they are strings | |||
| this is not yet implemented. | |||
| zgh | TreyHarris: hey cool! thanks for looking that up. | 02:54 | |
| TreyHarris | the default hash is "my Any %hash{Str}" | ||
| zgh | TreyHarris: okay that makes a lot of sense. | ||
| not at all surprising to a perl5 programmer while still thrilling the theorists. yay! | 02:55 | ||
| TreyHarris | yes-- TimToady++ is very good at doing that | ||
| kind of like how the issue of whether failing subs should throw exceptions or return undef was resolved | 02:56 | ||
| they return undefs that autothrow exceptions if you try to use them for any other than testing for truth or definedness | 02:57 | ||
| so you can still do if thingThatMightThrow() -> $x { $x.useIt() } | 02:58 | ||
|
03:01
weinig is now known as weinig|zZz
03:21
zgh joined
03:27
zgh joined
03:32
zgh joined
|
|||
| pasteling | "markstos_" at 12.176.101.89 pasted "bug? multi-dispatch works differently for subs and methods when passing a scalar when a slurpy has is expected" (31 lines, 511B) at sial.org/pbot/19291 | 03:33 | |
| markstos_ | The method dispatching in that paste seems wrong. Even though I call foo(1), I get dispatched to foo (), which explicitly says it has no arguments. (How do I check the arguments when the signature says they are none?) | 03:34 | |
| TreyHarris | heh, it just segfaults me :-) | 03:35 | |
| markstos_ | Doh. | ||
| TreyHarris | the sub gets "in hash sub but not a hash", and the method gets "none"? | 03:36 | |
| markstos_ | Yep. | ||
| TreyHarris | oh | ||
| yes | |||
| markstos_ | yes, bug? | ||
| TreyHarris | that's correct, though admittedly surprising | ||
| markstos_ sighs. | |||
| TreyHarris | remember, like in perl 5, methods are subs with an extra argument for the invocant | ||
| markstos_ | Ok. | 03:37 | |
| TreyHarris | MMD will never dispatch to a nonconformant subroutine. | ||
| so it tries to figure out what's most conformant | |||
| yes, it *is* a bug now that i think about it | |||
| but it's trying to do the right thing | |||
| markstos_ | That makes more sense. | ||
| ..that it's a bug. | |||
| How would I examine the args in method foo (), since they aren't in the signature ? | 03:38 | ||
|
03:39
zgh joined
|
|||
| TreyHarris | in the first you have the signature (Foo:), and in the second, (Foo: Any Hash{*}). you called it with (Foo: Int). it should have failed, but instead it dispatched the first. the second time you had signatures () and (Any Hash{*}), and you tried to pass (Int). it should have failed as well. | 03:40 | |
| i think it has something to do with this: | |||
| ?eval multi sub foo ($a) { say "yep" }; foo(3) | |||
| evalbot_12750 | OUTPUT[yep ] Bool::True | ||
| TreyHarris | ?eval multi sub foo () { say "yep" }; foo(3) | 03:41 | |
| evalbot_12750 | Error: No compatible subroutine found: "&foo" | ||
| markstos_ | Those results look reasonable. | ||
| TreyHarris | guess it was fixed since i last tried it :-) | 03:42 | |
| hm | |||
| markstos_ | It's the method case that seems b0rked. | ||
| TreyHarris | well, they're both borked because it's not reasonable to set a hash to the value 1 | ||
| markstos_ | In may case, I think I think I'll leave that test failing in the CGI::App suite, and note that I think it's due to a pugs bug. | ||
| TreyHarris | but even if it's just doing mmd by arg counting, yes, it's borked | 03:43 | |
|
03:44
zgh joined
|
|||
| markstos_ | All I wanted to do was die with an nice error about using the wrong number of args, but I can't do that, because it it's dispatched to foo(), where I don't know how to examine the args, since they aren't in the signature.... | 03:44 | |
| TreyHarris | introspection is very lacking at present. | ||
| audreyt keeps saying that's her first priority after captures and the object model | |||
| markstos_ | So far I haven't run into a show stopper for my own work, just some mysterious detours... | 03:45 | |
| TreyHarris sighs | 03:46 | ||
| I've let my pugs get almost a week out of date | |||
| and I wanted to write a little explorer to help me look at changes in an easier format than raw svn commands | |||
| but pugs is segfaulting or giving me "illegal hardware instruction" in my explorer | |||
| markstos_ | Ug. | 03:47 | |
| TreyHarris | well, it won't be too hard to quickly translate to perl 5 | 03:48 | |
|
03:48
Aankhen`` joined
03:51
zgh joined
04:00
zgh joined
04:03
Aankh|Clone joined
04:05
zgh joined
04:11
zgh joined
04:18
zgh joined
04:29
zgh joined
04:32
xinming joined
04:34
zgh joined
04:41
zgh joined
04:49
zgh joined
04:51
kanru joined
|
|||
| audreyt | Limbic_Region: cause of win32 sudden death found | 05:12 | |
| max limit of concurrent open dirhandle exhausted | |||
| if you print $dir now, then eager evaluation guarantees that dirhandle can be closed early | |||
| if you don't, then the system has to maintain those dirstream in thunk | |||
| xinming | audreyt: could you please fix the q:x { } bug? :-/ q:x won't do right thing if the process data contains utf8. :-/ | 05:13 | |
|
05:14
kasei joined
|
|||
| audreyt | sure. a sec | 05:14 | |
| xinming | audreyt++ | ||
| kasei | can anyone give me some help using PCR? | 05:18 | |
| audreyt | kasei: post to p6c maybe? or nopaste the error | 05:21 | |
| kasei | well, there's no error to paste... i suspect i just have some misunderstanding about p6 rules. | 05:22 | |
| it's something that would be super easy in p5 regex, but i'd like to use subrules, and just not working as i expect. | 05:23 | ||
|
05:23
rashakil joined
|
|||
| audreyt | nopaste the code then? | 05:28 | |
| svnbot6 | r12751 | audreyt++ | * UTF16 Little-Endian detection was typo'ed. | ||
| kasei | code snippet here: kasei.us/temp/pcr.pl | 05:30 | |
| the relativeURI rule failes to match more than one character. i imagine it's a trivial mistake... | |||
| audreyt | looking | 05:31 | |
| xinming | audreyt: :-/ I think the bug is still there. | 05:33 | |
| audreyt: q:x { echo ä½ å„½ }; would return nothing... | |||
| pugs t/builtins/quote_basic.t | 05:34 | ||
| audreyt | xinming: sure, it's fixed, I'm committing | 05:38 | |
| xinming | audreyt: thanks | ||
| ayrnieu | (hey, neat, that Chinese actually displays here.) | 05:39 | |
| xinming | ayrnieu: we use utf-8, so, displaying multi-byte characters should be no problem. | 05:40 | |
| ayrnieu: and BTW, in perl6, there would be a native language dialect probably... :-) | 05:41 | ||
| ayrnieu: which means, we can write perl 6 in our own language.. :-P | |||
| audreyt | what, you mean Perl is not your native language? | 05:45 | |
| :) | |||
| kasei: sorry, still installing PCR dependencies on this win32 | |||
| kasei | no worries. thanks for taking the time. | 05:47 | |
| xinming | audreyt: No, I mean, we can write a perl 6 dialect which replaces sub and say with native language keywords, I've ever found an interesting program which is written in Chinese in perl 5 from you. :-) | 05:49 | |
| audreyt | er, yeah, that must be Lingua::Sinica::PerlYuYan | ||
| btw, r12752 is for you :) | |||
| xinming | thanks | 05:50 | |
| svnbot6 | r12752 | audreyt++ | * qx// now works with non-ASCII characters as well, promted by xinming++ | ||
| audreyt | kasei: the moose moosed because <uchar>* assumes <ws> between each <uchar> | 05:51 | |
| I'm not sure if that should be the case, actually | |||
| but it is currently the case. | 05:52 | ||
| so if you change Rule->install to Regex->install | |||
| (also, you can put <?uchar> instead of <uchar>) | |||
| since you are capturing the outer sum anyway | |||
| then it'd work. | 05:53 | ||
| xinming | How can I see the difference you edit in src? I mean with your last commit... | ||
| kasei | audreyt: thanks! | 05:54 | |
| xinming | hmm, Ok, I'll try myself. :-/ | ||
| audreyt | svn diff -r 12751:12752 | 05:55 | |
| like that? | |||
| kasei: np :) | |||
| audreyt goes back playing with opendir | |||
| svk desc 12752 # for svk people | 05:56 | ||
| xinming | thanks | 05:57 | |
| found that... | |||
| audreyt | (bbiab) | ||
|
06:21
mauke joined
07:01
agentzh joined
|
|||
| agentzh | markstos: pugs' docs/feather/syn_index.html maps to feather's ~agentzh/syn/index.html just because the pugs working copy on feather is living in Audrey's home where i don't have write access. you know, i have to generate *.html into syn/ using smartlinks.pl. :) | 07:03 | |
| markstos: now that you have a feather account, feel free to do the pod ==> html conversion yourself. :) you may check the script ~agentzh/update to see an example. | 07:07 | ||
| markstos: btw, thanks for your recent work on the documentation! :D | 07:08 | ||
| agentzh ponders the idea of writing a util/get-irc-logs.pl | 07:09 | ||
| colabti.de's search page is not satisfactory at all. | 07:10 | ||
| gaal | audreyt: moose! how did you diagnose the dirhandle problem? just curious :) | 07:17 | |
| $client & | 07:28 | ||
| agentzh | does anyone here often run "make smoke" on feather? | 07:34 | |
| i just want to reuse his/her tests.yml to render the .html files | 07:35 | ||
| svnbot6 | r12753 | trey++ | [syn_index.html] | 07:36 | |
| r12753 | trey++ | Fixed spelling. | |||
|
07:44
Bit-Man joined
|
|||
| svnbot6 | r12754 | agentz++ | [util/smartlinks.pl] | 07:48 | |
| r12754 | agentz++ | - minor fixes | |||
|
08:05
elmex joined
08:17
elmex_ joined
08:18
larsen joined
08:35
kane-xs joined
|
|||
| agentzh | has anyone done something interesting with the #perl6 logs? | 08:42 | |
|
08:43
xerox joined
|
|||
| ayrnieu | agentzh - interesting like ortdotlove.net/c.html ? | 08:46 | |
| lambdabot | Title: C @ Freenode stats by orbitz | ||
| agentzh | looking | ||
| ah, yeah! | 08:47 | ||
| it was generated by the pisg program...ah, nice~~ | 08:48 | ||
| ayrnieu: thanks! | |||
| ayrnieu | welcome :-) That page is pretty cute. | 08:49 | |
| agentzh | heh, it's also written in perl. :D | 08:50 | |
| i'd like to generate a stats page for #perl6. :) | |||
| we have all the log files on colabti.de. :) | 08:51 | ||
| xerox | We have those for #haskell too ! :D www.cse.unsw.edu.au/~dons/irc/haskell-06.html | 08:52 | |
| lambdabot | Title: #haskell @ freenode.org stats by dons | ||
| xerox | agentzh: add a patch for `the most used suffix', it'll be `++' here :D | ||
| ayrnieu | xerox - tibbe also makes sailors blush, 0.0% of the time. | 08:53 | |
| agentzh | aye | ||
|
08:53
marmic joined,
nubio joined
|
|||
| svnbot6 | r12755 | agentz++ | [util] | 09:03 | |
| r12755 | agentz++ | - added get-irc-logs.pl which can download log files of | |||
| r12755 | agentz++ | the specified channel (defaulting to #perl6) from | |||
| r12755 | agentz++ | colabti.de | |||
| r12756 | agentz++ | [util/get-irc-logs.pl] | |||
| r12756 | agentz++ | - minor output format fixes | |||
| agentzh | bbiab & | 09:04 | |
|
09:04
agentzh left
09:12
elmex joined
09:47
awwaiid joined
09:56
dolmans joined
10:06
buetow joined
10:12
xerox joined
10:18
Aankh|Clone is now known as Aankhen``
|
|||
| svnbot6 | r12757 | kudra++ | Placeholder | 10:22 | |
| clkao | audreyt: svk gone crazy or? | 10:51 | |
| svnbot6 | r12758 | kudra++ | Weekly summary | 10:58 | |
|
10:59
ludan joined
|
|||
| svnbot6 | r12759 | agentz++ | [util/get-irc-logs.pl] | 11:01 | |
| r12759 | agentz++ | - commented out debugging code | |||
|
11:03
kanru2 joined,
TimToady joined
11:09
agentzh joined
|
|||
| svnbot6 | r12760 | kudra++ | Spell checked | 11:09 | |
|
11:12
DaGo joined
|
|||
| agentzh | TimToady: it seems to me that you're running pugs smoke regularly (thought also manually). would you be kind enough to always put your latest (compressed) tests.yml on a fixed position on the web? | 11:23 | |
| *though | 11:24 | ||
|
11:27
kanru2 is now known as kanru
11:30
soisoisoi joined
|
|||
| Juerd | feather.perl6.nl/~juerd/stats/ | 11:33 | |
| lambdabot | Title: #perl6 @ SomeIRCNet stats by MAINTAINER | ||
| Juerd | I have no idea how to keep it updated, though. It doesn't say that :) | ||
| agentzh | ah! | 11:38 | |
| Juerd | Long live bash scripting, by the way. It's so easy to do complicated things if you have a lot of small but incredibly useful tools, and can glue them together. | 11:39 | |
| agentzh | *nod* | 11:40 | |
| Juerd | for url in `curl | perl -nle`; do perl -e'system "wget -O ... ..."'; done | ||
| (roughly) | |||
| A Windows users would first start looking for a tool to download everything on a page, and spend at least 10 minutes on just that. | 11:41 | ||
| s/users/user/ | |||
|
11:43
wilx` joined
11:45
elmex joined
|
|||
| gaal lols at some appropriate "random" quotes on that stats page: | 11:46 | ||
| eg. putter: "anyone willing to hear a mmd story?" | 11:47 | ||
| and TimToady: "there's a one-word metaform from Mr Rogers: "Can you say ___?"" | |||
| agentzh | hehe | ||
| svnbot6 | r12761 | kudra++ | Added one additional location to distributions | 11:48 | |
|
11:48
wilx` is now known as wilx
11:57
markstos_ joined
|
|||
| agentzh | ?eval while 1 {} | 12:01 | |
| ?uptime | 12:02 | ||
| lambdabot | uptime: 2 days, 7 hours, 59 minutes and 49 seconds | ||
| svnbot6 | Running for 531838 seconds. | ||
| evalbot_12761 | (no output) | ||
| Running for 251480 seconds. | |||
| agentzh | heh | ||
|
12:08
baest joined
|
|||
| agentzh | ?eval my $a = 3 | 12:11 | |
| ?eval $a + 4 | |||
| evalbot_12761 | \3 | ||
| Error: Undeclared variable: "$a" | |||
|
12:16
p6bot_ joined
|
|||
| xinming | :-/ | 12:21 | |
| I've specified p6bot to go into perlchina... :'( | 12:22 | ||
| try again... :-/ | |||
| agentzh | diakopter: are you working on trypugs right now? | 12:24 | |
|
12:28
diakopter joined
|
|||
| agentzh | diakopter: are you working on trypugs right now? | 12:35 | |
| markstos_ | Juerd++ ... he just fixed vim on feather. | 12:36 | |
| Juerd | :) | ||
| markstos++ # told me how | |||
| markstos_ | Interwebthingie++ had the answer | ||
| This is unexpected. If I quote my key, the args disappear. If I leave the key bare, they work: | 12:53 | ||
| ?eval sub foo (*%args) { warn %args.perl; } foo( a => 'b' ); foo( 'a' => 'b' ); | |||
| evalbot_12761 | Error: Cannot cast from VUndef to Handle (VHandle) | ||
| markstos_ | Oh. That's not what I get on feather... | ||
| Let's see which one is the problem. | 12:54 | ||
| ?eval sub foo (*%args) { warn %args.perl; } foo( a => 'b' ); | |||
| evalbot_12761 | Error: Cannot cast from VUndef to Handle (VHandle) | ||
| markstos_ | ?eval sub foo (*%args) { warn %args.perl; } foo( 'a' => 'b' ); | ||
| evalbot_12761 | Error: Cannot cast from VUndef to Handle (VHandle) | ||
| markstos_ | Both! That seems perhaps /more/ broken. | 12:55 | |
| Passing arbitrary name/value pairs to a subroutine has proven more difficult than I imagined! | |||
| agentzh | ?eval sub foo (*%a) { warn %a.perl } foo(:a<b>) | 12:57 | |
| markstos_ | So how /does/ one pass arbitrary name/value pairs to a subroutine in Perl6? | ||
| evalbot_12761 | Error: Cannot cast from VUndef to Handle (VHandle) | ||
| markstos_ | Let me try that on feather. | 12:58 | |
| agentzh | markstos_: it used to work. :/ | ||
| markstos_ | That works here! Let me check the pugs revision I'm using. | 12:59 | |
| r12728 | |||
| agentzh | i've used slurpy hash args in pugs' Test.pm. | ||
| markstos_ | So something broke recently, it seems | ||
| agentzh | and all the tests in t/02-test-pm/5-todo.t passed at that time. | 13:00 | |
| not sure about the status right now. | |||
| audreyt and gaal are currently working on this part, say captures and signatures. | 13:01 | ||
| markstos_ backs up working pugs on feather for fear of impeding breakage. | |||
| agentzh | so it may be temporarily broken. :) | ||
| markstos_ | Where is the evalbot actually running pugs from ? | 13:02 | |
| Juerd | sub foo (Pair *@pairs) { ... } | ||
| agentzh | ~audreyt/pugs | ||
| Juerd | When I call foo with a list of pairs, do they need to be in double parens? | ||
| Or is there another way to break named argument parsing? | 13:03 | ||
| foo <== foo => 'bar', perhaps? | |||
| markstos_ | That doesn't seem right. That's where /I/ was just testing from, and a different revision and result were reported. | 13:04 | |
| On feather /usr/bin/pugs is a symlink to ~audreyt/pugs/pugs | |||
| Anyway, the :a<b> syntax is what I needed. You made my tests pass, agentzh! | |||
| agentzh++ | |||
| agentzh | markstos_: ahh, nice to hear that. :) | 13:05 | |
| bedtime & | |||
|
13:05
agentzh left
13:11
scook0 joined
13:16
drbean joined
13:37
xdg joined
13:46
onsen joined
13:59
iblechbot joined
14:02
wilx joined
|
|||
| svnbot6 | r12762 | kudra++ | Although this week is already posted, URL corrected for next week | 14:05 | |
|
14:06
discordja joined
|
|||
| diakopter | agentzh: sort of | 14:31 | |
| oh; gone to bed. | |||
|
14:37
jferrero joined
|
|||
| nothingmuch | audreyt: can i have an invite to pugs.blogs.com? id like to poke around the interface to see how stuff could be automated for ann | 14:40 | |
|
14:45
miyagawa_ joined
15:15
kanru joined
15:18
miyagawa_ joined
15:43
weinig|zZz is now known as weinig,
rgs joined
15:53
nubio_ joined
|
|||
| svnbot6 | r12763 | nothingmuch++ | template for YAML summaries | 16:14 | |
| Teratogen | perl 6 should qualify for ISO9000 | 16:16 | |
| wilx | Why? | 16:19 | |
| Isn't that the standard about quality? | |||
| Teratogen | so it can be used to write software for medical devices, etc. | ||
|
16:22
_SamB_ joined
|
|||
| nothingmuch | Teratogen: it makes no sense, that's for businesses | 16:24 | |
| IIRC | |||
| more related to production | |||
| and to management | |||
|
16:28
nubio__ joined
|
|||
| Teratogen | I guess so, then | 16:28 | |
| xinming | hmm, anyone here build pugs on feather? | 16:31 | |
|
16:40
nubio__ is now known as nubio
17:28
nothingmuch joined
17:49
DaGo joined
17:58
mako132_ joined
|
|||
| svnbot6 | r12764 | gaal++ | * sub_arg_errors.t - add four failing test cases (in preparation for | 18:21 | |
| r12764 | gaal++ | a proper Signature parser) | |||
|
18:22
nothingmuch joined
18:25
weinig is now known as weinig|bbl,
traecer joined
18:33
baest joined
18:36
nothingmuch joined
18:37
traecer joined
18:39
traecer left,
traecer joined
18:46
spoop joined
18:53
mako132_ joined
18:55
justatheory joined
19:01
awwaiid joined
19:03
marksto1 joined
19:11
nothingmuch joined
|
|||
| svnbot6 | r12765 | nothingmuch++ | svn props for summaries | 19:11 | |
|
19:11
awwaiid joined
19:12
awwaiid joined
19:13
foo\ joined
19:25
b_jonas joined
|
|||
| TimToady | agentzh: see wall.org:~larry/tests.yml.gz for latest | 19:30 | |
| I'm also looking into inserting the data as a blob comment at the end of smoke.html so it'll just get uploaded with the smoke. | 19:31 | ||
| bbl & | |||
| marksto1 | It'd be nice of S09 provided a reference to what PDL means in this context. I suspect it's different than the "Perl Data Language", located at pdl.perl.org/ | 19:44 | |
| lambdabot | Title: PDL - The Perl Data Language | ||
| Juerd | Please check your feather e-mail | search.cpan.org/dist/SVN-Mirror/ | paste: sial.org/pbot/perl6 | pugs.blogs.com | pugscode.org | pugs.kwiki.org | www.treehugger.com/files/th_images/paradigm.jpg | 19:50 | |
| Juerd | TimToady: You too, please | 19:51 | |
| gaal | Juerd: ask people to ack it if you want to be sure they'd seen it... | 19:52 | |
| Juerd | gaal: I can tell just by looking at directories. | ||
| gaal: Either: | |||
| * The message has been forwarded. I assume people check their normal email regularly. | 19:53 | ||
| * The message has been read, it is either deleted or in ~/Maildir/cur | |||
| * The message has not yet been read, it is in ~/Maildir/new | |||
| gaal | asking for active ACK raises the likelyhood of action. :) | 19:55 | |
| also, that way you don't have to worry they missed it (filtering, oversight) even though it was forwarded | 19:56 | ||
| bbl& | |||
|
19:58
autark joined
20:01
Limbic_Region joined,
ruz joined
20:06
justatheory joined
20:17
Selva_ joined
20:23
weinig|bbl is now known as weinig
20:27
araujo joined
|
|||
| araujo | hello | 20:27 | |
| marksto1 | Hello araujo | ||
|
20:28
marksto1 is now known as markstos_
20:29
Selva_ left
|
|||
| araujo | hi markstos_ | 20:31 | |
| :-) | |||
|
20:36
larsen joined
21:00
foo\ joined
21:17
crem joined
|
|||
| markstos_ | Should this be a syntax error instead? | 21:21 | |
| ?eval warn @.perl | |||
| evalbot_12765 | Error: Cannot cast into Hash: VRef <Sub:0x896318c> | 21:22 | |
| Juerd | Not a syntax error. Rather, that it can't call .perl on the current invocant for there is none. | ||
| markstos_ | Ah. Does that mean that .method is the same as self.method ? | 21:23 | |
| Juerd | No, .method is the same as $_.method | ||
| But $.method is the same as self.method | |||
| As is @.method, but then with array semantics | |||
| markstos_ | Ok. I see the consistency there. | ||
| b_jonas | "$.method"? seriously? | 21:24 | |
| markstos_ is testing it now. | 21:25 | ||
| It doesn't work yet. | 21:26 | ||
| ?eval class Foo { method a { $.b } method b { say "worked!" } } my $a = Foo.new; $a.a; | |||
| evalbot_12765 | \undef | ||
| markstos_ | If you change "$.b" to self.b, it works. | ||
| b_jonas | or just to ".b" I guess | 21:27 | |
| markstos_ | ?eval class Foo { method a { .b } method b { say "worked!" } } my $a = Foo.new; $a.a; | ||
| evalbot_12765 | OUTPUT[worked! ] Bool::True | ||
| Juerd | b_jonas: Yes, seriously. $.method, @.method, and %.method will call self.method. | ||
| markstos_ | So, $_ is set to the invocant there ? I guess so. | ||
| Juerd | Which is very useful, given that "has $.foo;", "has @.foo;", and "has %.foo;" create an accessor method called "foo" | 21:28 | |
| markstos_ | Juerd, but it doesn't work now if it's true, as my example showed. self.b. | ||
| s/self.b// | |||
| Juerd | Then you can access it via $.foo, @.foo, and %.foo respectively. Useful, isn't it? | ||
| markstos_: I speak about Perl 6, not Pugs. | |||
| markstos_ | You mean, the spec, not the implementation. | 21:29 | |
| Juerd | Pugs lags behind the specs, naturally :) | ||
| markstos_ | Sure. | ||
| dinner guests. & | |||
| Juerd | Though this has been specced for quite a while | ||
| Pugs development has been about internal changes the past time | |||
| b_jonas | what? so $.foo means both a scalar instance variable and a method call of self? | 21:33 | |
| b_jonas looks up in S12 | 21:34 | ||
| I don't understand. Does this mean that when you declare a public attribute to a class with 'has $.foo;' then a public accessor method of name foo is also created? | 21:37 | ||
| Juerd | b_jonas: No, only a method call. | 21:38 | |
| b_jonas: With "has", it is special syntax. | |||
| b_jonas: Yes. | |||
| b_jonas | ah, I see | ||
| "Public attributes have a secondary sigil of "dot", indicating the automatic generation of an accessor method of the same name. " | |||
| I should read before I ask | 21:39 | ||
| Juerd | And if you don't use the dot, the method is not created, and you have a normal variable, only instance-specific. | ||
| Also known as "private" | |||
| b_jonas | I think I'll like this syntax | 21:41 | |
| It's perl6ish. | |||
|
21:49
ruz joined
|
|||
| araujo | [1 .. Inf][3] .... shouldn't that work? | 22:00 | |
|
22:04
diakopter_ joined
|
|||
| cmarcelo | araujo: I think 1..Inf isnt working yet.. | 22:14 | |
|
22:14
clkao joined
22:16
clkao joined
22:22
glasser joined
22:23
obra_work joined
22:26
obra_work is now known as obra
22:51
diakopter_ left
23:04
soisoisoi joined
23:08
christo joined
23:09
christo left
23:34
ruz joined
23:38
bsb joined
|
|||
| araujo | cmarcelo, ok .. but it is supposed to work right? | 23:50 | |
|
23:51
mako132_ joined
23:54
markstos_ joined
|
|||
| cmarcelo | araujo: since [1..5][3] works, I think with Inf it should work too.. but isn't clear to me yet the difference in p6 between (1..5) and [1..5], if exists.. | 23:54 | |
| avar | you can do @( @array[1..5][3] ) ? | 23:55 | |
|
23:55
jferrero joined
|
|||
| cmarcelo | > [1..5][3] | 23:57 | |
| lambdabot | The function `[1 .. 5]' is applied to one arguments, | ||
| but its type `[... | |||
| cmarcelo | ?eval [1..5][3] | ||
|
23:57
DaGo joined
|
|||
| evalbot_12765 | \4 | 23:57 | |
| cmarcelo | ?eval (1..5)[3] | ||
| evalbot_12765 | \4 | ||