Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-lwp-gsoc, 2015-02-25

| Channels | #perl6-lwp-gsoc index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:40 FROGGS joined #perl6-lwp-gsoc
01:40 dalek joined #perl6-lwp-gsoc
01:52 FROGGS joined #perl6-lwp-gsoc
01:52 dalek joined #perl6-lwp-gsoc
02:49 ilbot3 joined #perl6-lwp-gsoc
02:49 Topic for #perl6-lwp-gsoc is now logs at http://irclog.perlgeek.de/perl6-lwp-gsoc/
07:52 FROGGS joined #perl6-lwp-gsoc
08:13 sergot hey
08:13 sergot I don't have permissions to push this patch
08:13 sergot in moarvm
08:14 sergot I can create a PR
08:18 FROGGS please do... but please write a good commit message
08:18 FROGGS the title should be like you'd write it into a changelog, and the body should explain the what, why and how
08:46 sergot ok :)
08:47 FROGGS look at jnthn's commits - he's not just pushing stuff out there, he teaches a little bit of knowledge with every commit
08:54 sergot ok
08:54 sergot I can only make a PR for CStruct
08:54 sergot and separately a PR for cpp brach wit CPPStruct
08:55 FROGGS correct
08:55 sergot ok :)
08:59 sergot does a CStruct have attributes?
08:59 sergot or how do we call it?
08:59 sergot a class has attributes, not sure what we say when talkking about structs
09:02 FROGGS it's called members
09:02 FROGGS but year, structures in C are about attributes/members
09:08 sergot https://github.com/MoarVM/MoarVM/pull/177
09:08 sergot is it ok?
09:10 FROGGS the explanation is wrong
09:11 sergot what do you mean?
09:13 FROGGS gimme a minute, got a call
09:15 sergot okok
10:13 FROGGS okay...
10:13 FROGGS the problem is the following
10:13 FROGGS in case the struct has members, we allocate the size of the members, right?
10:14 FROGGS after that, the members get initialized, i.e. int32 get's set to zero etc
10:15 FROGGS but when there are no members, we allocate a single byte, but never initialize it
10:15 FROGGS so we probably read that uninitialized piece of mem somewhere, and then we read garbage
10:23 sergot ohhh
10:31 FROGGS at least, that's what I think
13:28 dalek joined #perl6-lwp-gsoc
15:14 sergot let's create a small TODO list for cpp stuff
15:18 sergot what is wrong with longdouble?
15:21 FROGGS a longdouble is using the P6num representation, and that can't handle 128 numbers atm
15:22 sergot ok, is there anything I can do?
16:40 FROGGS joined #perl6-lwp-gsoc
16:41 FROGGS sergot: if you are bored, you could try to implement a simple case of name mangling for windows
16:41 FROGGS http://en.wikipedia.org/wiki/Visual_C%2B%2B_name_mangling
16:41 FROGGS that's a good read
16:44 FROGGS like, try to get from "sub h(int32,int8) { }" to "?h@@YAXHD@Z"
16:45 FROGGS <FROGGS> m: sub h(int32,int8) { }; say &h.name; say &h.signature.params».type
16:45 FROGGS <camelia> rakudo-moar 404d22: OUTPUT«h␤(int32) (int8)␤»
16:46 FROGGS just write a sub that takes &foo, and tries to get the the said string, by taking routine name and parameter types into account
21:59 dalek joined #perl6-lwp-gsoc

| Channels | #perl6-lwp-gsoc index | Today | | Search | Google Search | Plain-Text | summary