Camelia, the Perl 6 bug

IRC log for #moe, 2013-02-24

| Channels | #moe index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
03:48 bphillips joined #moe
04:19 hiratara joined #moe
06:39 moe [moe] stevan created subroutine-refactor (+3 new commits): http://git.io/-iZnAQ
06:39 moe moe/subroutine-refactor f206324 Stevan Little: clarifying docs
06:39 moe moe/subroutine-refactor acaf227 Stevan Little: add signatures
06:39 moe moe/subroutine-refactor 92a719a Stevan Little: parameters should be a formal thing
07:40 hiratara joined #moe
08:51 tobyink joined #moe
10:33 am0c joined #moe
10:54 tobyink joined #moe
11:27 pepl joined #moe
12:35 clintongormley joined #moe
15:01 stevan joined #moe
15:19 tempire joined #moe
16:20 stevan joined #moe
16:39 phaylon damn, MOPs are hard
16:39 tobyink joined #moe
16:40 phaylon anyone happen to have an opinion on the relation of classes and the mop in languages with classes as objects? :)
16:41 moritz classes are instances of meta classes, usually
16:42 phaylon yea, that's what I've thought
16:45 moritz but my knowledge is limited to about 4 MOPs, and most of those I only know on the surface
16:46 phaylon mine is limited to moose and some scheme ones :)
16:47 moritz I've read a bit about Moose, Common Lisp and Smalltalk MOPs, and I know the Perl 6 MOP a bit better
16:47 phaylon I just confused myself last night with tests for roles implemented by classes
16:47 phaylon Perl 6 has the HOW thingy for metastuff, right?
16:48 moritz yes
16:48 moritz which is roughly equivalent to Moose's ->meta
16:48 phaylon yea
16:53 phaylon so, $obj.does checks if the object implements a role, MyClass.does would check the class, and MyClass.meta.does or $obj.meta.does would check the meta objects
17:33 moe [moe] stevan pushed 2 new commits to subroutine-refactor: http://git.io/XOZfoQ
17:33 moe moe/subroutine-refactor 895fd09 Stevan Little: note to self to add defaults
17:33 moe moe/subroutine-refactor f0ef85d Stevan Little: complete the subroutine signatures and parameter stuff, and fix how we are doing closures as well
19:41 doy one thing i found from doing p5-mop is that things get a bit easier to understand when .meta is not a normal method
19:44 doy class_of($obj) instead or whatever
19:45 doy so $obj.does calls class_of($obj).does_role or something
19:45 doy MyClass.does checks what roles the metaclass does, not instances of MyClass
19:45 doy because MyClass is the meta object
19:46 doy (an instance of ::Class or whatever)
19:47 doy having .meta be a method makes you start getting confused about why $my_class_instance.meta and MyClass.meta return different things
20:00 moe [moe] stevan pushed 4 new commits to subroutine-refactor: http://git.io/M5apHA
20:00 moe moe/subroutine-refactor ed765ce Stevan Little: everything in the AST has signatures now
20:00 moe moe/subroutine-refactor 544f435 Stevan Little: fix the spelling issue
20:00 moe moe/subroutine-refactor 818e04a Stevan Little: refactoring MoeMethod and MoeSubroutine to be more sensible
20:00 moe [moe] stevan fast-forwarded master from 94a1dc4 to f206324: http://git.io/5voIFA
20:01 stevan jasonmay: you might want to look over that branch
20:01 stevan I changed a LOT of stuff
20:01 stevan but we now have proper signatures for methods and subroutines
20:15 tobyink joined #moe
20:20 jasonmay nice
20:22 stevan https://github.com/MoeOrganization/moe/co‚Äčmpare/f0ef85da78d7...191dff10d8c8#L2R304
20:22 stevan this is a little weird
20:23 stevan but works for now
20:23 doy has anyone figured out how to make sbt test not give a useless stacktrace whenever tests fail
20:23 stevan not really no
20:23 stevan doy: ^
20:23 doy it is pretty irritating
20:23 stevan doy: someone should write a better test harness ;)
20:23 stevan we need to expand on signatures to support not just positional stuff
20:24 doy that's not the test harness, it's part of sbt, it looks like
20:24 stevan no idea
21:19 am0c joined #moe
21:40 tobyink joined #moe
22:46 phaylon doy: my new toy language has .^meta, with .^ calling methods available on all objects no matter what they are and . for methods that are part of the normal interface
22:47 phaylon also, while implementing it I found out what you said above about MyClass being the meta object

| Channels | #moe index | Today | | Search | Google Search | Plain-Text | summary