Camelia, the Perl 6 bug

IRC log for #parrot, 2012-08-18

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
02:05 whiteknight left #parrot
02:40 contingencyplan joined #parrot
02:47 contingencyplan joined #parrot
03:01 l3l1p joined #parrot
03:19 contingencyplan joined #parrot
03:21 contingencyplan joined #parrot
03:36 contingencyplan joined #parrot
03:51 contingencyplan joined #parrot
04:03 contingencyplan joined #parrot
04:04 benabik joined #parrot
04:33 particle joined #parrot
05:33 fperrad joined #parrot
05:39 fperrad_ joined #parrot
05:48 benabik joined #parrot
06:08 JimmyZ joined #parrot
07:42 Khisanth joined #parrot
07:43 dalek rakudo/parrot-iocleanup1-take2: 942e670 | moritz++ | src/core/IO/Socket/INET.pm:
07:43 dalek rakudo/parrot-iocleanup1-take2: explicitly set encoding on sockets
07:43 dalek rakudo/parrot-iocleanup1-take2: review: https://github.com/rakudo/rakudo/commit/942e670caf
07:43 dalek rakudo/parrot-iocleanup1-take2: 7090070 | moritz++ | src/core/IO/Socket.pm:
07:43 dalek rakudo/parrot-iocleanup1-take2: Do not trans_encoding in IO::Socket.recv
07:43 dalek rakudo/parrot-iocleanup1-take2: review: https://github.com/rakudo/rakudo/commit/709007078e
07:44 moritz msg whiteknight I still have zero passing rakudo socket on io_cleanup1 commit 6d12b98f, still get "got: ''" on all tests. I see why you might get Unicode trouble if other stuff works for you, the parrot-iocleanup1-take2 branch of rakudo might or might not fix that for you -- no way for me to tell :(
07:44 aloha OK. I'll deliver the message.
08:26 dalek rakudo/nom: 9db2d9b | jonathan++ | src/core/IO.pm:
08:26 dalek rakudo/nom: Fix cwd() to transncode the result. Avoids a problem that gets in the way of Panda on Windows.
08:26 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/9db2d9beb7
09:31 lucian joined #parrot
10:26 alvis joined #parrot
10:36 tuxit joined #parrot
12:22 brrt joined #parrot
12:27 whiteknight joined #parrot
12:44 brrt hi whiteknight
12:58 whiteknight good morning brrt
12:58 brrt hows life :-)
12:59 whiteknight msg moritz what platform are you on? I might be able to test this on a better platform to replicate your failures
12:59 aloha OK. I'll deliver the message.
12:59 whiteknight brrt: good enough. Low on sleep but good otherwise
12:59 brrt yeah, i know how that feels
12:59 moritz whiteknight: debian testing, amd64
12:59 brrt hey, i have a segfault in parrot with nqp on x86-64
13:00 brrt actually, during the building of nqp
13:00 whiteknight moritz: Okay, that's pretty darn similar to my kit. I wonder why we get such different results
13:00 whiteknight brrt: on master?
13:01 brrt yeah, i think so
13:01 brrt address out of bounds
13:01 brrt in hash
13:01 whiteknight brrt: And what platform are you on?
13:01 brrt linux (fedora 17), x86-64
13:02 brrt i'll post a backtrace
13:04 kid51 joined #parrot
13:04 brrt its extremely hot out here.. and i'm quite sleepy though
13:05 whiteknight bleh
13:05 whiteknight moritz: those sockets failures you're seeing, those are on nom, right?
13:06 moritz whiteknight: nom with one custom patch from the parrot-iocleanup1 rakudo branch
13:06 whiteknight what's the one custom patch?
13:06 moritz commit d0dc2d33d0a5eabc1a781b52c253d1f1d85d0a61, explicit set encoding on sockets
13:06 whiteknight ok
13:06 moritz or should i not need it?
13:10 brrt issue posted :-)
13:10 brrt also
13:10 brrt does not happen 'all the time'
13:11 brrt so
13:11 brrt not really the most repeatable of bugs
13:12 brrt .. may not be a parrot bug
13:15 whiteknight moritz: I don't know. let me test around and see what's going on
13:15 whiteknight brrt: backtrace would be great
13:18 dalek rakudo/macros-d2: 0512eca | masak++ | src/ (3 files):
13:18 dalek rakudo/macros-d2: intermediate commit
13:18 dalek rakudo/macros-d2:
13:18 dalek rakudo/macros-d2: Pushed to help jnthn debug a hang.
13:18 dalek rakudo/macros-d2: review: https://github.com/rakudo/rakudo/commit/0512ecae3e
13:20 UncleFester6 joined #parrot
13:20 UncleFester6 dukeleto: ping
13:21 dalek nqp/jnthn-debug-macros-d2-on-this: 1be56d4 | masak++ | src/QAST/ (9 files):
13:21 dalek nqp/jnthn-debug-macros-d2-on-this: intermediate code for debugging
13:21 dalek nqp/jnthn-debug-macros-d2-on-this:
13:21 dalek nqp/jnthn-debug-macros-d2-on-this: For some reason, this hangs inside src/QAST/Unquote.nqp
13:21 dalek nqp/jnthn-debug-macros-d2-on-this: review: https://github.com/perl6/nqp/commit/1be56d43bb
13:25 dalek rakudo/nom: 2bbe527 | jonathan++ | src/core/IO.pm:
13:25 dalek rakudo/nom: Fix a few more Windows/OS PMC/encoding issues for tadzik++.
13:25 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/2bbe527235
13:37 brrt backtrace is posted with issue :-)
13:37 brrt https://github.com/parrot/parrot/issues/815
13:43 dalek parrot/whiteknight/io_cleanup1: d10ef89 | Whiteknight++ | src/io/ (6 files):
13:43 dalek parrot/whiteknight/io_cleanup1: Fix several build warnings in src/io/*. Several comparisons with older datatypes expect to be non-negative so cast things to size_t explicitly. Mark a few parameters unused
13:43 dalek parrot/whiteknight/io_cleanup1: review: https://github.com/parrot/parrot/commit/d10ef8922b
13:43 dalek parrot/whiteknight/io_cleanup1: c9c0625 | Whiteknight++ | src/io/ (8 files):
13:43 dalek parrot/whiteknight/io_cleanup1: silence several errors received with g++, mostly involving IO_VTABLE initialization where we play a little bit loose with const qualifiers.
13:43 dalek parrot/whiteknight/io_cleanup1: review: https://github.com/parrot/parrot/commit/c9c0625e02
13:44 whiteknight brrt: what compiler do you use?
14:01 whiteknight brrt: And this is on unpatched master?
14:04 brrt joined #parrot
14:04 brrt msg whiteknight I use gcc 4.7
14:04 aloha OK. I'll deliver the message.
14:06 whiteknight okay
14:07 whiteknight brrt: I can't reproduce your segfault. I've built that file about  dozen times now
14:07 brrt i've totally forgotten what i was planning to do today w/regards to mod_parrot
14:07 whiteknight heh
14:07 brrt i'll see what checkout i have
14:08 UncleFester6 whiteknight: ping
14:09 brrt i have da9adfa03b21611da353a8627cd52cc6f4ed204d as my head
14:13 UncleFester6 whiteknight: I was hoping to ask a question about the parrot base64 library and character encodings ...
14:16 whiteknight UncleFester6: pong
14:18 whiteknight UncleFester6: what's the question?
14:18 UncleFester6 I posted a bug report yesterday about Base64 and the way it does encoding to codepoints.  I think the basic problem is that Base64 encoding should be on ByteBuffer with some string interfaces.
14:19 whiteknight yes, that makes sense
14:19 whiteknight Rosella has a Base64 implementation which might be more correct. I'm testing that now
14:21 UncleFester6 thanks - I just wanted to verify I was headed in the right direction ...
14:25 whiteknight UncleFester6: yes, the Rosella implementation is correct if you want to use that
14:26 JimmyZ joined #parrot
14:27 UncleFester6 Rosella is winxed?  Might there still be room for native pir or Perl6 implementations?
14:28 whiteknight oh yes, there's always room for other implementations too
14:32 dalek Rosella: 8f1783e | Whiteknight++ | src/test/Asserter.winxed:
14:32 dalek Rosella: [Test] Update Asserter.__default_message to format the string for more expressive error messages
14:32 dalek Rosella: review: https://github.com/Whiteknig​ht/Rosella/commit/8f1783e4ca
14:32 dalek Rosella: 9f92884 | Whiteknight++ | t/net/MimeBase64.t:
14:32 dalek Rosella: [Net] Add a test for MimeBase64 showing a UTF8 character encoded, which causes problems in other implementations
14:32 dalek Rosella: review: https://github.com/Whiteknig​ht/Rosella/commit/9f92884073
15:59 lucian joined #parrot
16:33 UncleFester6 joined #parrot
16:34 dukeleto ~~
16:34 dukeleto UncleFester6: howdy. I like your nick :)
16:35 dukeleto UncleFester6: are you @donaldxs on github ?
16:35 UncleFester6 thanks did you see my discussion with whiteknight? - (ronaldxs)
16:37 UncleFester6 dukeleto: I noticed you started a new parrot branch related to base64 - are you planning further work in the area?
16:39 dalek parrot/gh813_base64_utf8: 279b61b | dukeleto++ | t/library/mime_base64.t:
16:39 dalek parrot/gh813_base64_utf8: Improve and refactor failing #813 enc_sub test
16:39 dalek parrot/gh813_base64_utf8: review: https://github.com/parrot/parrot/commit/279b61b232
16:40 dukeleto UncleFester6: i just ported your example code to a failing test
16:40 dukeleto UncleFester6: anybody else is free to make the test pass :)
16:40 dukeleto UncleFester6: i am not sure I know enough to make it pass
16:41 dukeleto UncleFester6: do you think it is worth it to have tests for enc_sub on other utf8 strings? Or possibly different encodings?
16:41 UncleFester6 My essential point to whiteknight is that base64 is intended to ecode binary stuff
16:42 UncleFester6 including images, audio as well as string encodings
16:43 UncleFester6 So the base64 stuff should IMHO be encoding ByteBuffer instead of string
16:43 dukeleto UncleFester6: ah, interesting. If we made that change, what should happen when you try to encode("some string") ?
16:44 UncleFester6 but since string is a common usage there should also be an interface to utf8/utf16/ucs2 encode strings into ByteBuffers for base64 encode
16:44 dukeleto UncleFester6: should it throw an exception that only ByteBuffers can be encoded?
16:44 UncleFester6 did my last sentence make sense ?
16:44 dukeleto UncleFester6: i assume there is a way to convert strings -> ByteBuffers and back?
16:44 dukeleto UncleFester6: yes, i think i understand what you are saying
16:44 UncleFester6 one moment ...
16:45 * dukeleto hasn't used ByteBuffers much, but is familiar with what they do
16:47 UncleFester6 sample .pir gist here https://gist.github.com/3388310
16:48 UncleFester6 I don't know parrot that well ...
16:49 dalek parrot/gh813_base64_utf8: 81f57c6 | dukeleto++ | t/library/mime_base64.t:
16:49 dalek parrot/gh813_base64_utf8: Improve the name and description of mime_base64.t
16:49 dalek parrot/gh813_base64_utf8: review: https://github.com/parrot/parrot/commit/81f57c6c5b
16:49 dukeleto UncleFester6: seems reasonable
16:51 UncleFester6 Any one last final point for whitknight if he comes across our chat ...  his Rosella/winxed base64 still wants and string encoding for the "decode" function which I claim is off ...
16:51 UncleFester6 You can decode pure binary data as well as strings so you might want a string encoding but you might just want a binary buff back too ...
16:51 l3l1p joined #parrot
16:53 UncleFester6 thanks for taking time to chat about this .. I am tempted to try to do a Pure Perl6 implementation of base64 with this approach for now and might try .pir later ...
16:55 dukeleto UncleFester6: that is a good point
16:55 dukeleto UncleFester6: about wanting to decode to binary
16:56 dukeleto UncleFester6: https://github.com/moritz/Perl6-MIME-Base64
16:56 dukeleto UncleFester6: what about that?
16:56 dukeleto UncleFester6: looks like that is the currently maintained fork from @snarkyboojum
16:57 UncleFester6 If you look at the code it depends on the current Parrot MIME::Base64 library so no help
16:57 dukeleto UncleFester6: blarg, that just calls down to Q:PIR { }
16:57 dukeleto UncleFester6: just saw :)
16:57 UncleFester6 It once had a pure perl implementation which I might try to revive and update
16:58 UncleFester6 s/perl/perl6
16:58 dukeleto UncleFester6: if you have time, you might want to send an email to parrot-dev with some of your comments above. Many parrot devs don't IRC and just live on the mailing list. You might get some good/helpful feedback
16:59 dukeleto UncleFester6: in any case, good luck!
17:17 UncleFester6 left #parrot
17:28 UncleFester6 joined #parrot
17:29 UncleFester6 left #parrot
19:57 benabik_ joined #parrot
20:07 contingencyplan joined #parrot
20:12 contingencyplan joined #parrot
20:22 contingencyplan joined #parrot
21:14 benabik ~~
22:04 contingencyplan joined #parrot
22:07 whiteknight joined #parrot
23:14 benabik joined #parrot
23:50 dalek nqp: 6255819 | pmichaud++ | src/QAST/Operations.nqp:
23:50 dalek nqp: Enable parsing of :nohandler in QAST::Op while/etc loops.
23:50 dalek nqp: review: https://github.com/perl6/nqp/commit/62558198bb
23:50 dalek nqp: b1d897d | pmichaud++ | src/QAST/Operations.nqp:
23:50 dalek nqp: Add :nohandler option to PAST::Op loop nodes.
23:50 dalek nqp: review: https://github.com/perl6/nqp/commit/b1d897df70
23:57 lucian joined #parrot

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

Parrot | source cross referenced