pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/ Set by Tene on 29 July 2008. |
|||
00:04
[particle] left,
eternaleye joined
00:09
strelok7 left
|
|||
FireMinion | is there any testing frameworks like Test::Simple or Test::More build for perl6 yet? | 00:10 | |
00:14
sri_work_ joined
|
|||
TimToady | sure | 00:15 | |
see svn.pugscode.org/pugs/t | 00:16 | ||
lambdabot | Title: pugs - Revision 22745: /t | ||
FireMinion | excellent , Thanks TimToady | 00:17 | |
TimToady | and we'll probably be building the basic testing calls right into Perl 6 eventually | 00:18 | |
FireMinion | That be good | 00:19 | |
Planning to start writing some modules in perl6 and want some basic testing at least | 00:20 | ||
TimToady | the proposal is to have a testing adverb that can turn any built-in comparison operator into a test | ||
but we already have 18,000 tests or so for you to look at | |||
FireMinion | Should be enough of a reference for me | 00:22 | |
00:24
sri_work left
|
|||
wayland76 | I have some code where $fullimplementationname contains the name of a class, and I have a line that says... | 00:25 | |
self.implementation = macro { quasi { {{{ $fullimplementationname }}}->new(|$params); } }; | |||
But naturally that doesn't work in Rakudo yet | |||
Is there another way to instantiate the class without macros? | |||
00:26
pcbuetow is now known as pbuetow
|
|||
ruoso | wayland76, well... at first I should correct ->new to .new ;) | 00:26 | |
00:27
mjk left
|
|||
ruoso | wayland76, but I'm having a hard time understanding what you're trying to do | 00:28 | |
00:32
pbuetow left
|
|||
wayland76 | Ok, I have a class (?) that we could call "Tree::Axis". It wants to delegate everything to another class, but which other class depends on the options passed to the .new() method of Tree::Axis | 00:34 | |
So Tree::Axis.new() constructs the string $fullimplementationname, and then tries to create an instance of that class | 00:35 | ||
ruoso | I'd guess ::($fullimplementationname).new() | 00:37 | |
ruoso sleep & | |||
wayland76 | I'm still getting "Statement not terminated properly" | 00:38 | |
But maybe it's a bug :) | |||
Have a good sleep :) | |||
00:38
justatheory left
00:39
justatheory joined
|
|||
FireMinion | bah who needs sleep...... | 00:39 | |
TimToady | "Statement not terminated properly" is what rakudo says when it can't think of anything better to say, which is usually :) | 00:40 | |
it just means, "there was a syntax error somewhere near here" | 00:41 | ||
STD will generally give you a more informative error message, assuming it's actually in error | |||
00:41
eternaleye left
|
|||
wayland76 | TimToady: Thanks, I've gotten it often enough to figure that :) | 00:42 | |
It tends to do that when you keep writing code with macros in it :) | |||
FireMinion | maybe it's not ready for it yet wayland76 | 00:43 | |
00:43
eternaleye joined
|
|||
wayland76 | FireMinion: That's right; macros are the last thing on the Rakudo ROADMAP | 00:43 | |
pugs_svn | r22746 | lwall++ | [STD] fix parameter parsing problem noted by moritz++ | 00:44 | |
TimToady | was the last thing on the pugs map too | ||
wayland76 | which is why none of my code works, except the code that's running into problems with loops and recursion :) | ||
TimToady | as far as I know, STD is the only thing that even parses macors | 00:45 | |
*macros | |||
wayland76 | (and that doesn't work either :) ) | ||
...and humans :) | |||
FireMinion | I am still trying to get a good enough grasp of the concepts in the new syntax | ||
wayland76 | (Humans can even parse "Macros the Black" ) | ||
TimToady | btw, the latest change found an error in the test suite | 00:46 | |
wayland76 | FireMinion: Oh, me too :). | ||
TimToady | Can't put required parameter after optional parameters at ../../t/blocks/currying.t line 47: | ||
------> sub __hyper ($op?, Array @a, Array @b) { | |||
wayland76 | great :) | ||
FireMinion | thanks TimToady | ||
00:47
sri_work_ is now known as sri_kraih
|
|||
FireMinion | I got another error right now in the Test.pm module which I'm trying to figure out | 00:47 | |
wayland76 | TimToady++ :) | ||
pugs_svn | r22747 | lwall++ | [currying.t] move misplaced optional parameter to end (only used by name anyway) | 00:49 | |
00:51
sri_kraih is now known as sri_work,
sri_work is now known as sri_kraih
00:52
TimToady left
00:53
TimToady joined
00:57
sri_kraih left,
sri_work joined
|
|||
wayland76 | Btw, I just saw the message on p6l about Assigning and passing $/ | 01:00 | |
And I noticed that the following code prints "Str" | 01:01 | ||
rakudo: if ("f" ~~ m/f/) { my $m = $/; say $m.WHAT() } | |||
p6eval | rakudo 31963: OUTPUT[Str] | ||
TimToady | you mean p6c? | ||
wayland76 | Sorry, p6u | 01:02 | |
[email@hidden.address] | |||
I'm only on p6u and p6l, so I've missed any other messages that might be going around :) | |||
I was running into this while trying to figure out a way around the looping/recursion bug :) | 01:03 | ||
But now I'll just wait for the looping/recursion bug to be fixed instead :) | |||
01:06
mj41 left
|
|||
TimToady | decommuting & | 01:07 | |
01:08
eternaleye left
01:11
meppl left
01:16
eternaleye joined
01:20
Limbic_Region left
01:29
hercynium joined
01:34
mberends joined
01:42
Entonian joined
01:52
Entonian left
01:53
alester joined
02:06
alester left
02:10
Ehtyar left
02:20
kanru left
02:28
kanru joined
02:34
alanhaggai joined
02:38
Psyche^ joined,
alester joined
02:39
alanhaggai_ joined,
alanhaggai left,
alanhaggai_ is now known as alanhaggai
02:54
Patterner left,
Psyche^ is now known as Patterner
03:01
Psyche^ joined
03:02
elmex_ joined
03:03
Patterner left,
AzureStone_ left,
FireMinion left,
ting left,
lumi left,
clkao left,
lisppaste3 left,
pasteling left,
kane_ left,
Guest70230 left,
yahooooo left,
orafu left,
cxreg left,
gantrixx left,
jiing_ left,
literal left,
c1sung left,
Psyche^ is now known as Patterner
03:04
Patterner left,
Patterner joined,
AzureStone_ joined,
FireMinion joined,
ting joined,
clkao joined,
lisppaste3 joined,
lumi joined,
pasteling joined,
kane_ joined,
Guest70230 joined,
yahooooo joined,
orafu joined,
literal joined,
gantrixx joined,
c1sung joined,
jiing_ joined,
cxreg joined,
Psyche^ joined,
Patterner left,
Psyche^ is now known as Patterner,
sri_work is now known as sri_kraih
03:05
cookys left,
audreyt left,
audreyt joined,
cookys_ joined
03:08
sri_kraih left,
sri_work joined
03:09
sri_work is now known as sri_kraih,
sri_kraih left,
sri_work joined
03:11
sri_work left,
sri_kraih joined
03:13
Jmax left
03:14
Jmaxxx joined
03:16
elmex left,
elmex_ is now known as elmex
03:27
mberends left
03:42
hercynium left
03:59
PZt left
04:02
PZt joined
04:03
PZt left
04:04
PZt joined
04:10
alanhaggai left,
alanhaggai_ joined,
alanhaggai_ is now known as alanhaggai
04:11
apeiron left
05:16
justatheory left
05:24
alester left
05:33
alanhaggai_ joined
05:34
alanhaggai left,
alanhaggai_ is now known as alanhaggai,
xuser left,
kcwu left,
jauaor left,
jauaor joined,
xuser joined,
kcwu joined
06:13
rhr left
06:33
zamolxes joined
06:41
smg left
07:16
[particle] joined
07:30
AzureStone_ left
07:36
AzureStone joined,
abra joined
07:38
ZuLuuuuuu joined
|
|||
pugs_svn | r22748 | azawawi++ | [STD_syntax_highlight] no more podchecker warnings | 07:43 | |
08:11
smg joined
08:21
schmalbe joined
|
|||
wayland76 | If we ever make a POD viewer, in which you can /see/ the doco, we should call it seedpod :) | 08:39 | |
08:44
abra left,
abra joined
08:57
cpfr left,
cpfr joined
09:03
pedrob joined
09:08
preflex left
|
|||
moritz_ | good morning | 09:08 | |
09:10
preflex joined
|
|||
moritz_ | is a class of type "Class"? | 09:10 | |
pugs_svn | r22749 | moritz++ | [t] some cleanups, moved oo/attributes/class.t to spec, and cleaned up. | 09:20 | |
09:23
mj41 joined
|
|||
pugs_svn | r22750 | moritz++ | [t] move oo/class/literal.t to spec/ | 09:24 | |
09:26
iblechbot joined
09:28
pedrob left
|
|||
pugs_svn | r22751 | moritz++ | [t] some cleanup in instance.t | 09:30 | |
moritz_ | @tell azawawi many of the links in the synpsis are broken, because they contain a superfluous t/ in the path (for example in S12) | 09:32 | |
lambdabot | Consider it noted. | ||
10:21
abra left
|
|||
moritz_ | perlgeek.de/blog-en/perl-6/syntax-h...ghter.html | 10:25 | |
lambdabot | Title: blog | Perlgeek.de Blog :: A Syntax Highlighter for Perl 6 | ||
10:25
AzureStone_ joined
10:27
AzureStone left,
xuser left,
kcwu left,
jauaor left
10:28
AzureStone joined,
jauaor joined,
xuser joined,
kcwu joined
10:39
azawawi joined
|
|||
azawawi | hi lambdabot ;-) | 10:40 | |
lambdabot | azawawi: You have 1 new message. '/msg lambdabot @messages' to read it. | ||
10:44
AzureStone left
10:52
iblechbot left
|
|||
ruoso | moritz_++ # very informative blog posts.... | 10:54 | |
azawawi | hi ruoso | 11:03 | |
moritz_++ # thx | 11:04 | ||
11:06
zamolxes_ joined,
zamolxes left
11:07
fridim_ joined
11:13
Alias_ joined
11:17
Alias_ left,
Alias_ joined
11:18
Alias_ left
11:19
Alias_ joined
|
|||
ruoso | hi azawawi | 11:21 | |
jauaor wonders which blog post | 11:22 | ||
ruoso | jauaor, the one posted here just before you join ;) | 11:23 | |
perlgeek.de/blog-en/perl-6/syntax-h...ghter.html | |||
lambdabot | Title: blog | Perlgeek.de Blog :: A Syntax Highlighter for Perl 6 | ||
jauaor | :-D | ||
Thanks! | |||
ruoso misses a construct like a recurse map... | 11:26 | ||
@foo = recurse-map { .isa } { .variants } $object | 11:27 | ||
lambdabot | Maybe you meant: faq ft todo yow | ||
ruoso | somethign like that | ||
pugs_svn | r22752 | ruoso++ | [smop] implementation of Class.can($methodname, $capture?) and Class.dispatch... | 11:42 | |
ruoso | for people wanting to write Perl 6 code, there's an important task now, which is to write all the built-in types in Perl 6... it's starting in pugs/v6/smop/src-s1p/ | 11:47 | |
11:48
zamolxes_ left
|
|||
ruoso | azawawi, do you think you could put a STD-syntax-highlight for the files (the ones that parse, of course) in v6/smop/src-s1p ? | 11:48 | |
I mean... put it into a public place... | |||
azawawi | ruoso: yeah why not | ||
azawawi checking it | |||
11:50
smtms left
11:52
adc_Penner joined
|
|||
moritz_ | ruoso: if it's important, write about and. And also about how to test what you write. | 11:54 | |
lambdabot | moritz_: You have 1 new message. '/msg lambdabot @messages' to read it. | ||
moritz_ | azawawi: I think html for t/spec/ is enough, since nearly all of t/* will be moved there anyway | 11:55 | |
12:01
pmurias joined
|
|||
ruoso | moritz_, well, the first test is that it should parse | 12:01 | |
but it's mostly abstract at the moment... | 12:02 | ||
because there are circular dependencies that will only be solved as all the types are declared | |||
the idea is declaring all the types, | 12:03 | ||
pmurias | it's more spec task then an implementation one atm | ||
ruoso | yes... indeed.. | 12:04 | |
but at the same time, a lot of actual implementation needs to be made | 12:07 | ||
like how method dispatch work | |||
(which is defined in Class.pm) | |||
how Object.new works... | |||
(which is defined in Object.pm and Class.pm) | 12:08 | ||
pmurias | ruoso: the last check in can seems strange | 12:23 | |
ruoso | my last check in? | ||
pmurias | if (! .^!methods.{$name}.multi) { | 12:24 | |
it might be correct that an only methods hides all more derived multi ones | 12:27 | ||
but how to overwrite a multi with a multi in such a scheme is not clear to me | 12:30 | ||
ruoso | I don't think you can | 12:40 | |
unless you use the same signature | |||
12:41
ZuLuuuuuu left,
iblechbot joined
12:42
Alias__ joined
|
|||
azawawi | ruoso: feather.perl6.nl/~azawawi/html_smop/src-s1p/ | 12:43 | |
lambdabot | Title: Index of /~azawawi/html_smop/src-s1p | ||
pasteling | "azawawi" at 212.38.152.37 pasted "./smop_highlight" (47 lines, 1.5K) at sial.org/pbot/32858 | 12:44 | |
pugs_svn | r22753 | azawawi++ | [STD_syntax_highlight] Added smop_highlight which highlights *.pm | 12:46 | |
r22753 | azawawi++ | [STD_syntax_highlight] code in v6/smop/src-s1p | |||
12:46
smtms joined
|
|||
ruoso | azawawi, interesting that it doesn't highlight much | 12:49 | |
azawawi | ruoso: errors, see the output i sent earlier | 12:50 | |
ruoso: pod comments are not yet supported via standard STD.pm | 12:52 | ||
12:52
Bzek joined
|
|||
azawawi | ruoso: List.pm fails in STD parsing. is that right? | 12:54 | |
ruoso | yeah yeahj | 12:55 | |
azawawi, I thought it would find the =begin and =end | |||
azawawi | i think we should discuss it with pmurias | 12:57 | |
i can hack it with a special type _comment if you want but i wanted it to be more standard... | 12:58 | ||
ruoso | but what it has that it's not standard? | 12:59 | |
12:59
Alias_ left
|
|||
azawawi | i meant by that not getting that information from STD.pm | 13:00 | |
ruoso | what I don't get is what is the difference from the pods in the tests | ||
? | |||
azawawi | ah comp_unit | 13:01 | |
ruoso, can u give me a specific example? | 13:02 | ||
ruoso | why isn't it blue? | 13:03 | |
moritz_ | ruoso: STD.pm matches POD and comments as (implicit) <.ws> that doesn't appear in the parse tree. Thus the HTML output shows it as part of the rule in which it was matched | ||
azawawi looking at feather.perl6.nl/~azawawi/html_smop...ss.pm.html | |||
lambdabot | Title: ./STD_syntax_highlight ../../v6/smop/src-s1p/Class.pm | ||
moritz_ | ruoso: the syntax hilighter uses an evil hack: it colors statement_list blue, and everything below in different colors, because most comments appear at that level | ||
ruoso: if there's a comment at a different level in the parse tree, it won't show up in blue | 13:04 | ||
ruoso | oh... I got it | 13:05 | |
but I'm missing some colors... | |||
is everything colored right? | |||
moritz_ | only the tokens for which colors are defined | 13:06 | |
btw it's "True", not "true" | 13:07 | ||
azawawi | the problem is in block; it is black... you make it blue and everything works | 13:08 | |
moritz_ | but it will also make the curlies blue, no? | 13:09 | |
azawawi | unfortunately yeah... | 13:10 | |
either we use a modified STD.pm and risk not getting the latest fixes; or we try to hack it in STD_syntax_highlight | 13:11 | ||
13:11
jauaor left
|
|||
pmurias | azawawi: with a minor change to gimme5 we could make it treat <.foo> as <foo> | 13:11 | |
azawawi: we can use a modified gimme5 | 13:12 | ||
moritz_ | I think that TimToady would welcome a --keepall option to gimme5 | ||
pmurias | which would have a $KEEPALL variable to skip bind everything | ||
i have to do math now but i'll hack it in later if TimToady has nothing against such an option | 13:13 | ||
azawawi | great | ||
pmurias: i managed to hack it work with --simple but most <span> were not closed (i.e. bad html) | 13:14 | ||
azawawi is thinking what to order for lunch? ;-) | 13:15 | ||
pmurias | azawawi: you mean --simple generates bad html? | 13:22 | |
moritz_ | it seems that --simple is actually more complicated ;) | 13:24 | |
azawawi | pmurias: my version generates bad html but works | ||
moritz_: --simple is complicated ;-) | |||
azawawi wonders if sleep deprevation and hunger can be a reason why --simple is complicated ;-) | 13:25 | ||
moritz_ recommends a good meal and sleep to ponder over that question ;) | 13:26 | ||
pugs_svn | r22754 | pmurias++ | [STD_syntax_highlight] --simple closes spans properly | 13:27 | |
pmurias was suferring from an abused sleep schedule yesterday when he wrote that bugish code | |||
ruoso | isn't there a way to detect "unparsed" code in STD match tree? | ||
azawawi tests --simple over foo.pl | 13:28 | ||
moritz_ | ruoso: no. Problem is, some tokens match text correctly without capturing | ||
pmurias | ruoso: and pod and comments and whitespace are bundled together | ||
ruoso | hmm... ok... it's seen as whitespace | 13:29 | |
and whitespaces are not captured | |||
moritz_ | what one could do is try to hook a reduction action into ws that stores the offset and matched branch, or something | ||
but I guess that :keepall is the better alternative | 13:30 | ||
pmurias | yes | ||
azawawi | pmurias: one thing why --simple is a bit complicated is that CSS actually helps you with parent/child coloring | ||
ruoso | but anyway... wasn't the code in Object.pm for instance supposed to have more colors? | ||
pmurias | azawawi: does it spit out incorrect output? | ||
azawawi | nop | ||
13:31
alester joined
|
|||
pmurias | it's more complicated as it tries to be smarter | 13:31 | |
math for real& | |||
13:31
pmurias left
|
|||
ruoso | ok... I know what the problem is... | 13:32 | |
I'm too much used to emacs coloring scheme | |||
which is considerably richer than vi's | |||
13:33
pbuetow joined
|
|||
ruoso | for instance, it highlights some known keywords | 13:33 | |
like 'my', 'for', 'sub' | |||
13:33
alanhaggai left
|
|||
ruoso | and it also highlights arrays and hashes differently | 13:33 | |
and the scalar has a different color when it's declared | 13:34 | ||
like 'my $foo' | |||
13:39
ChanServ sets mode: +o diakopter,
diakopter sets mode: +o TimToady,
diakopter sets mode: -o diakopter
|
|||
azawawi going out for a meal... cya later | 13:39 | ||
13:39
azawawi left
13:43
alester left
14:04
ZuLuuuuuu joined
14:06
alanhaggai joined
14:27
rhr joined
14:38
alester joined
14:43
abra joined,
alester left
15:02
[particle] left
15:06
Limbic_Region joined
15:08
ZuLuuuuuu left
|
|||
TimToady | moritz_: no, there's not a Class type in official p6. a class is represented by a protoobject of the same type as the object | 15:12 | |
15:13
alanhaggai_ joined,
alanhaggai left,
alanhaggai_ is now known as alanhaggai
|
|||
ruoso | in SMOP, Class is a meta-type | 15:13 | |
TimToady | if you call in Class people will get confused | 15:14 | |
*it | |||
ruoso | I was calling it P6Meta first, | ||
then I renamed to Class... | 15:15 | ||
TimToady | why? | ||
ruoso | because it's what define how classes work | ||
it is what govern the "class" keyword | |||
TimToady | maybe it's ClassHow or some such | ||
ruoso | MetaClass | 15:16 | |
? | 15:17 | ||
TimToady | then people will think it defines how Class works, and there isn't one :) | ||
Howclass maybe | 15:19 | ||
though that's not quite right either | |||
more like Declclass | |||
but this is all under pre-caffiene disclaimer | 15:20 | ||
could maybe go for Dclass, Drole, Dmodule, etc' | 15:22 | ||
s/'/./ | |||
re KEEPALL | 15:23 | ||
ruoso | which abstraction is abstracter than Class? | ||
TimToady | I still think you guys want a decorated _ array | ||
what is a Class? | |||
ruoso | hmm... ok... I think the greater confusion is mixing prototype-based and class-based oo | 15:24 | |
15:24
justatheory joined
|
|||
ruoso | Perl 6 uses the Class-based lingo, but it's quite prototype-based | 15:24 | |
TimToady | it uses class-based lingo, not Class-based :) | 15:25 | |
ruoso | heh | ||
TimToady | are you asking about the type of .HOW objects? | 15:26 | |
ruoso | right... the HOW for classes will be Class | 15:27 | |
(as SMOP currently names) | |||
TimToady | and that is what is not a classical class, which is why I'm objecting | ||
diakopter | Classness | ||
TimToady | that would work, if we'd stuck with my earlier suggest of howness :) | 15:28 | |
Knowclass maybe | 15:29 | ||
diakopter | Classiness | ||
Classence | 15:30 | ||
TimToady | Classic | ||
fullermd | Declasse | ||
ruoso | the problem is that the class keyword does not describe a class, but a protoobject... | ||
TimToady | é | ||
diakopter | Classete | 15:31 | |
Classeme | |||
15:31
justatheory left
|
|||
TimToady | Classhalfempty | 15:32 | |
Halfclassed | |||
diakopter | Outclassed? :P | ||
TimToady | Declassified | ||
diakopter | ProtoClass ? | 15:34 | |
TimToady | I still think if it's returned by HOW it should be something with "how" in it | 15:35 | |
ruoso | maybe ClassHow is not a bad idea | 15:36 | |
since it's a knowhow | |||
heh | |||
TimToady | it very much says "I am the *implementation* of class, not *a* class" | 15:37 | |
diakopter | CowBrownNow.HOW | ||
TimToady | Cow<Brown>.HOW :now | ||
15:37
azawawi joined
|
|||
ruoso | knowhow ClassHOW {...} | 15:38 | |
TimToady | even better HuffMAN coding, more remote from normal | ||
azawawi | @tell lambdabot hi | ||
lambdabot | Nice try ;) | ||
ruoso | and that makes me realize that the API for HOW should be a little bit different | 15:39 | |
something like... | |||
TimToady | @tell time | ||
lambdabot | Consider it noted. | ||
ruoso | register($keyword, $name, *%attributes) | ||
diakopter | @tell it noted. | ||
lambdabot | Consider it noted. | ||
ruoso | where $keyword would be 'method', 'attribute', 'submethod' | 15:40 | |
and $name would be the name of the thing | |||
and *%attributes would contain the signature, traits, and the code... | |||
ruoso thinking in Catalyst::Controller having its own HOW | |||
which defines 'action's instead of 'method's | 15:41 | ||
ruoso lunch & | |||
diakopter | @messages | ||
lambdabot | You don't have any new messages. | ||
diakopter | @tell diakopter . | ||
lambdabot | You can tell yourself! | ||
diakopter | I know; that's what I was doing. | 15:42 | |
TimToady | @till diakopter | ||
lambdabot | Consider it noted. | ||
diakopter | @pointy [''] | 15:45 | |
lambdabot | Improperly terminated character constant at "'']" (column 2) | ||
diakopter | @src larry | 15:46 | |
lambdabot | Source not found. That's something I cannot allow to happen. | ||
diakopter | @src TimToady | ||
lambdabot | Source not found. Your mind just hasn't been the same since the electro-shock, has it? | ||
15:48
pedrob joined
|
|||
TimToady | I wonder if I should install a rule in STD that carps if someone tries to use the word "Class"... | 15:49 | |
"Perl 6 has no Class at line 42" | |||
Limbic_Region | why TimToady - because you have not Class and neither should anyone else? | ||
:P | |||
15:49
abra left
|
|||
Limbic_Region | you beat me to the punch | 15:49 | |
TimToady | actually, tomorrow I probably have two classes... | ||
since I just got a call from Sharon, who can't teach her class | 15:50 | ||
diakopter | oh, not 2 sections of the same class. | ||
lambdabot | diakopter: You have 1 new message. '/msg lambdabot @messages' to read it. | ||
diakopter | @messages | ||
lambdabot | TimToady said 8m 30s ago: | ||
Limbic_Region hasn't taught in years | |||
diakopter | @tell pugs plumbit | 15:51 | |
lambdabot | Consider it noted. | ||
diakopter | pugs: '' | ||
p6eval | pugs: OUTPUT[/home/evalenv/pugs/pugs: error while loading shared libraries: libsmop.so: cannot open shared object file: No such file or directory] | ||
diakopter | @tell p6eval erm | ||
lambdabot | Consider it noted. | ||
diakopter | pugs: ' | 15:52 | |
p6eval | pugs: OUTPUT[/home/evalenv/pugs/pugs: error while loading shared libraries: libsmop.so: cannot open shared object file: No such file or directory] | ||
lambdabot | p6eval: You have 1 new message. '/msg lambdabot @messages' to read it. | ||
diakopter | @girl19 | 15:53 | |
lambdabot | I have been into not actually hacking, but social engineering | ||
ruoso | TimToady, anyway... did you think how new keywords like 'class' and 'knowhow' are going to be defined in Perl 6? Considering, for instance, the Catalyst controller which have actions... how would that be defined? | 15:58 | |
controller Foo { action bar is Path('/') { ... } } | 15:59 | ||
actually it would be more like | 16:01 | ||
controller Foo { action bar does Path('/') { ... } } | |||
TimToady | macro package_declarator:<controller> | 16:03 | |
or just derive a grammar | 16:04 | ||
ruoso | right... that's on the parsing part | ||
how to give meaning to that? | 16:05 | ||
TimToady | a macro can turn that into anything else. and a grammar can have random actions. beyond that, I don't really care | 16:06 | |
ruoso | ok... I thought there would be something *after* the parse that would have the chance to add meaning.... | 16:07 | |
but that's probably very compiler-specific | |||
TimToady | something has to be left for the programmer to do :) | ||
and one of my assets/liabilities as a language designer is that I'm not actually much into meta-ness | 16:08 | ||
ruoso | maybe the compiler should leave some hooks to let the user overwrite the meaning of some AST nodes | 16:09 | |
that will probably be easier after the compiler bootstraps | 16:11 | ||
pugs_svn | r22755 | ruoso++ | [smop] mv Class.pm ClassHOW.pm, as suggested by TimToady++ | 16:16 | |
16:20
pedrob left
16:21
pedrob joined
16:23
PZt left
16:25
jhorwitz joined,
_Jedai_ joined
16:27
explorer joined
16:28
apeiron joined
16:42
Jedai left,
Jedai joined
16:43
cognominal left
16:45
|Jedai| left,
schmalbe left
16:53
Bzek left
17:09
[particle] joined
17:27
smtms left,
pedrob left
17:35
smtms joined
17:40
Limbic_Region left
17:54
ZuLuuuuuu joined
18:00
[particle] left,
TreyHarris is now known as Trey
18:02
zamolxes joined
|
|||
azawawi | pmurias: ping | 18:19 | |
18:43
pedrob joined
18:48
zamolxes left
19:07
Alias__ left
19:09
jauaor joined
19:10
cognominal joined
|
|||
pugs_svn | r22756 | azawawi++ | [STD_syntax_highlight] finally implemented the complicated --simple ;-) | 19:14 | |
r22756 | azawawi++ | [STD_syntax_highlight] results are not optimal but it generates correct html. | |||
azawawi | @tell pmurias --simple is done see r22756 | 19:20 | |
lambdabot | Consider it noted. | ||
azawawi | @seen particle | 19:30 | |
lambdabot | I haven't seen particle. | ||
azawawi | @seen [particle] | ||
lambdabot | I saw [particle] leaving #perl6 1h 29m 13s ago, and . | ||
azawawi | @tell [particle] size results between --simple and full mode are feather.perl6.nl/~azawawi/simple_test/ | ||
lambdabot | Consider it noted. | ||
19:32
pmurias joined
|
|||
pmurias | azawawi: pong | 19:33 | |
lambdabot | pmurias: You have 1 new message. '/msg lambdabot @messages' to read it. | ||
azawawi | pmurias: it turned out we need to push rules to pop them out ;-) | ||
pmurias: simple ;-) | 19:34 | ||
ruoso | std: class Foo { multi submethod FOO (Int $a) {...}} | 19:43 | |
p6eval | std 22756: OUTPUT[parsed] | ||
19:44
[particle] joined,
rindolf joined
|
|||
pmurias | ruoso: overwriting a multi method completly is important | 19:46 | |
ruoso | pmurias, maybe if you declare the subclass method as only | ||
pmurias, I think proto also does it... | 19:47 | ||
pmurias | it could | ||
pugs_svn | r22757 | ruoso++ | [smop] submethod takes precedence over traversing the method hierarchy | 19:48 | |
19:49
[particle] left
|
|||
azawawi | pmurias: fyi, --simple generates 20%-30% of full html file so far even though it is not optimal | 19:49 | |
ruoso | pmurias, what I'm not sure is if a superclass declare a method as multi, does the subclass sees the default as multi also? | 19:50 | |
or it only composes the multi variants if you explicitly says "multi method" | |||
pmurias | not sure, it seems a language design issue | 19:51 | |
19:51
ZuLuuuuuu left
|
|||
ruoso | std: class Foo { multi method bar (Int $a) {say 1} }; class Bar { method bar (Str $b) { say 2 } }; Bar.bar(2); | 19:51 | |
p6eval | std 22757: OUTPUT[parsed] | 19:52 | |
ruoso | is Bar.bar a multi method or not? | ||
that seems like a question for TimToady... ;P | |||
pugs_svn | r22758 | rhr++ | [t/spec] add S06-signature/unpack-array.t | 19:54 | |
r22758 | rhr++ | STD doesn't seem to like this | |||
19:55
alanhaggai left
|
|||
ruoso | pmurias, but you think the current ClassHOW.dispatch is sane?? | 19:56 | |
pugs_svn | r22759 | ruoso++ | [smop-s1p] missed renaming the knowhow declaration\ | 20:07 | |
ruoso | I'm assuming a method is only a multi if explicitly declared that way... I'm not considering magically finding out if a superclass defines a method as multi to automatically turn this method into a multi also | 20:09 | |
this is somewhat different from how multi subs work, but multi sub is about the lexical scope, not arbitrary relationships with potentially many many other objects | |||
pugs_svn | r22760 | ruoso++ | [smop-s1p] making Object.pm more real-like | 20:14 | |
r22761 | ruoso++ | [smop-s1p] BUILDALL receives |@protoobjects and |%initialize | 20:19 | ||
ruoso | I really think Object.pm is in the shape it was supposed to be | ||
20:21
alester joined
|
|||
pugs_svn | r22762 | ruoso++ | [smop-s1p] $repr //= "p6opaque" in Object.CREATE | 20:24 | |
ruoso | it's cool that Object.pm doesn't use the REPR API | 20:25 | |
only the HOW API... and that keeps the REPR API completely contained in the HOW implementation | 20:26 | ||
which make REPR API only relevant as a standard if we consider sharing the implementation of metaclasses | |||
(which I, honestly, think is a very interesting thing to do) | |||
20:27
azawawi left,
jauaor left
|
|||
pugs_svn | r22763 | ruoso++ | [smop-s1p] .^!does should not be traversed when finding methods or attributes... it is responsability of the composition process to install the methods and attributes in the composed prototype | 20:31 | |
20:32
alester left
|
|||
pugs_svn | r22764 | ruoso++ | [smop-s1p] missed to fix ^attributes on last commit | 20:33 | |
moritz_ | TimToady: uhm, S02 mentions Class in the list of mutable types | 20:36 | |
pmurias | ruoso: i think standardization of the REPR API shouldn't be hard as people don't generally care much about it | ||
it = the REPR API | |||
pugs_svn | r22765 | ruoso++ | [smop-s1p] protoobjects sent to BUILDALL, including WHENCE, are evaluated as closures when its WHAT === the prototype in which BUILD will be called | 20:40 | |
ruoso | pmurias, I'm not too much worried about it myself... | ||
pmurias, but I do think it would be cool if we could share metaclass implementations among different runtimes of Perl 6 | 20:41 | ||
specially because I see that as a really cool way of doing interesting things... | 20:42 | ||
i.e. Catalyst::Controller in Perl 6 would be a metaclass, not a superclass | |||
eternaleye | This is odd | ||
pugs: say hi | |||
p6eval | pugs: OUTPUT[/home/evalenv/pugs/pugs: error while loading shared libraries: libsmop.so: cannot open shared object file: No such file or directory] | ||
ruoso | eternaleye, pmurias accidentally didn't make smop dependency off by default | 20:43 | |
eternaleye | Oh, okay | ||
ruoso | you should be able to solve it by running make in v6/smop | ||
20:43
pbuetow left
|
|||
pmurias | ruoso: smop dependency is off by default | 20:44 | |
20:45
zamolxes joined
|
|||
pmurias | the pugs in the evalbot is built to use a static library and smop is now a shared one | 20:45 | |
ruoso | ahm... ok... so a simple rebuild would solve | ||
pmurias | no | ||
it needs the LD_LIBRARY_PATH set | 20:46 | ||
20:46
pbuetow joined
|
|||
pmurias | it discovered that libsmop is a shared one during the regular rebuild | 20:46 | |
pugs_svn | r22766 | ruoso++ | [smop-s1p] WHENCE is evaluated before BUILDALL and sent as named arguments... the test of matching the type of the protoobject would not work with it, because it is simply a closure | ||
moritz_ | evalbot control restart | 20:48 | |
20:48
p6eval left
|
|||
pugs_svn | r22767 | moritz++ | [evalbot] set LD_LIBRARY_PATH | 20:48 | |
20:48
p6eval joined
|
|||
moritz_ | pugs: say 1 | 20:48 | |
p6eval | pugs: OUTPUT[1] | ||
pugs_svn | r22768 | ruoso++ | [smop-s1p] the protoobjects also need to have the whence called .() not the protoobject itself | 20:49 | |
pmurias | ruoso: re dispatch multis actually choose the most specific type | ||
20:50
r0bby left
21:02
pcbuetow joined
21:03
snooper joined
21:06
[particle] joined
21:10
pbuetow left,
snooper left
|
|||
pmurias | ruoso: a strange error broke mildew | 21:18 | |
21:21
ispy_ joined
21:22
pcbuetow is now known as pbuetow
21:23
alester joined
21:26
ispy_1 joined
21:37
alester left
21:44
ispy_ left
|
|||
ruoso later | 21:48 | ||
22:06
adc_Penner left,
rindolf left
22:07
justatheory joined
22:09
ruoso left
22:10
ispy_1 left
22:22
ispy_ joined
22:32
fridim_ left
22:38
pmurias left
22:41
sri_kraih left
22:42
sri_kraih joined
22:45
sri_kraih left,
sri_kraih joined
|
|||
pugs_svn | r22769 | rhr++ | [STD] allow anonymous unpacked arrays in sigs per S06:1330 | 22:53 | |
22:54
smg left
23:11
sri_kraih_ joined
23:13
sri_kraih left,
iblechbot left
23:17
sri_kraih_ left
23:21
sri_kraih joined
23:23
[particle] left
23:27
jhorwitz left,
sri_kraih left,
sri_kraih joined
23:29
pbuetow left
23:33
jauaor joined
23:34
sri_kraih left,
sri_kraih joined
23:39
sri_kraih left,
sri_kraih joined
23:52
PZt joined
23:55
sri_kraih left,
sri_kraih joined
23:57
sri_kraih left,
sri_kraih joined
|