Perl 6 - the future is here, just unevenly distributed

IRC log for #parrot, 2014-10-08

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
01:35 FROGGS joined #parrot
01:46 FROGGS_ joined #parrot
02:21 sorear joined #parrot
02:33 bighugedog joined #parrot
02:46 kid51 joined #parrot
03:08 wagle joined #parrot
05:33 FROGGS joined #parrot
06:33 rurban joined #parrot
07:09 rurban1 joined #parrot
07:14 rurban joined #parrot
07:22 rurban FROGGS: I can now confirm your perl6-p --target=pir -e '{ sub prefix:<\o/>($) { say 42 }; \o/1 }' >nullpmc.pm.pir problem with \\o
07:23 FROGGS joined #parrot
07:26 rurban That's very likely a nqp-p bug
07:30 rurban nqp double-quotes the lex name because it is in a string. wrong: .lex "&prefix:<\\o/>", $P103 old/good: .lex "&prefix:<\o/>"
07:32 FROGGS okay...
07:38 rurban but I'm checking it in parrot first. looks fishy in parrrot also
07:39 rurban the parrot testcases only deal with single-quoted names, like .lex 'foo' not .lex "foo"
07:45 rurban nope, it's defineitly a parrot bug with double-quoted names only. single-quoted names, like .lex '&prefix:<\o/>', $P103 do work fine
07:48 FROGGS okay... when you can point me to the right places in parrot I might be able to propose a patch...
07:56 rurban I filed a parrot issue #1095
07:56 FROGGS nice
07:57 rurban but I have no permissions to view or add to https://rt.perl.org/Ticket/Display.html?id=116643
07:57 FROGGS Coke: can you arrange that?
07:58 rurban probably not. p5p blocked me from RT
07:58 FROGGS O.o
07:58 FROGGS so you are the guy that posts that russian spam :o)
07:58 rurban nope, I dared to criticize perl5
07:59 FROGGS ahh
07:59 rurban when I start criticizing perl6 they will block me also. The new age
07:59 FROGGS hehe
07:59 FROGGS I keep an eye on you then *g*
08:01 rurban yes, critics are only allowed to do blog posts, so that everyone will see it.
08:02 FROGGS " Reportedly this worked in parrot before, but it could be a nqp change also." that is not true
08:02 FROGGS I said that I can *make* it work by changing the generated .pir file
08:04 rurban "I get the "Null PMC access" errors only when putting the declaration in an extra block."
08:04 rurban the extra block came from nqp
08:04 FROGGS no
08:04 rurban not? this causes it to be stored in a .lex now
08:04 FROGGS "sub prefix:<\o/>($) { }" works while "{ sub prefix:<\o/>($) { } }" doesnt
08:05 rurban yes, because if in a block it needs to be a .lex
08:05 rurban And my guess is that this block came from nqp, not parrot. parrot always had this quoting problem is my theory
08:05 FROGGS so there is no rakudo or nqp change that uncovers this problem
08:06 rurban and the workaround would be to use single-quotes around .lex names
08:06 FROGGS hmmm
08:06 FROGGS and then only one backslash?
08:06 rurban yes
08:07 FROGGS then we can't use parrot's .escape method anymore :/
08:07 FROGGS or we fiddle with the result of .escape, but that feels icky
08:07 rurban in the meantime I will try to get at the bottom of the "\o" issue, which is a binary character
08:08 FROGGS and also, I had expected that the second test from issue #1095 would fail, not the third
08:08 rurban me also
08:08 rurban so it's definitely weird
08:08 FROGGS yeah
08:14 dalek parrot/rurban/doublequoted-names-gh1095: 2947443 | rurban++ | t/compilers/imcc/syn/clash.t:
08:14 dalek parrot/rurban/doublequoted-names-gh1095: [test] add testcase for double-quoted lex names GH #1095
08:14 dalek parrot/rurban/doublequoted-names-gh1095:
08:14 dalek parrot/rurban/doublequoted-names-gh1095: in perl6 the correctly double-quoted .lex "foo\\o", $P3 name fails to work.
08:14 dalek parrot/rurban/doublequoted-names-gh1095: see https://rt.perl.org/Public/Bug/Display.html?id=116643
08:14 dalek parrot/rurban/doublequoted-names-gh1095: this might be caused by the switch from globals to lexicals, as this statement
08:14 dalek parrot/rurban/doublequoted-names-gh1095: is now enclosed in a block.
08:14 dalek parrot/rurban/doublequoted-names-gh1095:
08:14 dalek parrot/rurban/doublequoted-names-gh1095: in parrot the binary character \0 causes problems in lexnames with roundtrips.
08:14 dalek parrot/rurban/doublequoted-names-gh1095: review: https://github.com/parrot/parrot/commit/29474437ae
08:15 FROGGS eww, I've just seen this:
08:15 FROGGS .lex "&prefix:<\o/>", $P103
08:15 FROGGS $P5004 = "&prefix:<\\o/>"($P5003)
08:15 FROGGS this is from the pir code that works, mind
08:15 FROGGS so, only .lex seems buggy
08:15 FROGGS (I guess)
08:17 rurban yes. before it was a global. with the switch to .lex it started failing was my guess
08:25 FROGGS =item C<void declare_lex_preg(STRING *name, INTVAL preg)>
08:25 FROGGS Declare a lexical variable that is an alias for a PMC register.  The PIR
08:25 FROGGS compiler calls this method in response to a ".lex STRING, PREG" directive.
08:25 FROGGS where is that pir compiler?
08:27 rurban hmm, nobody uses that…
08:27 rurban oh, nqp does: vm/parrot/pmc/nqplexinfo.pmc
08:29 rurban we probably need to add some testcases for our lexinfo.pmc
08:39 rurban I'm adding a test for this method in parrot now
08:51 rurban hmm, I also don't see nqp nor perl6 using declare_lex_preg
08:54 FROGGS I just stumbled upon that while searching for how .lex is implemented
09:04 rurban but it works ok
09:05 rurban I'm adding more torture tests...
09:23 slavorg joined #parrot
09:55 dalek joined #parrot
10:10 dalek parrot/rurban/lexqnames-gh1095: 234386d | rurban++ | / (4 files):
10:10 dalek parrot/rurban/lexqnames-gh1095: [test] Added LexInfo.declare_lex_preg and more imcc/syn/clash.t tests
10:10 dalek parrot/rurban/lexqnames-gh1095:
10:10 dalek parrot/rurban/lexqnames-gh1095: For GH #1095
10:10 dalek parrot/rurban/lexqnames-gh1095:
10:10 dalek parrot/rurban/lexqnames-gh1095: global names do work fine, only lexicals not.
10:10 dalek parrot/rurban/lexqnames-gh1095: Note I do not know how to reliable get the correct target register index for
10:10 dalek parrot/rurban/lexqnames-gh1095: declare_lex_preg in pure pir, and how to initialize it.
10:10 dalek parrot/rurban/lexqnames-gh1095: Setting it crashes the ctx.
10:10 dalek parrot/rurban/lexqnames-gh1095: review: https://github.com/parrot/parrot/commit/234386d8de
10:14 bighugedog joined #parrot
10:19 dalek parrot/rurban/make-codas: f750baa | rurban++ | config/ (2 files):
10:19 dalek parrot/rurban/make-codas: [build] Change darwin build flags to enable gdb debugging
10:19 dalek parrot/rurban/make-codas:
10:19 dalek parrot/rurban/make-codas: compile parrot_old static. use this for debugging with gdb.
10:19 dalek parrot/rurban/make-codas: keep -undefined dynamic_lookup only for dynamically loaded bundles.
10:19 dalek parrot/rurban/make-codas: honor cmdline flags for --ld and --link.
10:19 dalek parrot/rurban/make-codas:
10:19 dalek parrot/rurban/make-codas: and move deletion of generated config and makefiles from archclean
10:19 dalek parrot/rurban/make-codas: to realclean/distclean. we want to delete all object and executables
10:19 dalek parrot/rurban/make-codas: only there.
10:19 dalek parrot/rurban/make-codas: review: https://github.com/parrot/parrot/commit/f750baa668
10:19 dalek parrot/rurban/make-codas: c959b8a | rurban++ | / (9 files):
10:19 dalek parrot/rurban/make-codas: [cage] add makefile codas also to the Defines.mak
10:19 dalek parrot/rurban/make-codas: review: https://github.com/parrot/parrot/commit/c959b8a4ea
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: d2ad859 | rurban++ | config/ (2 files):
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: [build] Change darwin build flags to enable gdb debugging
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096:
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: compile parrot_old static. use this for debugging with gdb.
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: keep -undefined dynamic_lookup only for dynamically loaded bundles.
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: honor cmdline flags for --ld and --link.
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096:
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: and move deletion of generated config and makefiles from archclean
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: to realclean/distclean. we want to delete all object and executables
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: only there.
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096:
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: See [GH #1096]
10:23 dalek parrot/smoke-me/darwin-gdb-gh1096: review: https://github.com/parrot/parrot/commit/d2ad8596cf
10:28 travis-ci joined #parrot
10:28 travis-ci [travis-ci] parrot/parrot#1114 (smoke-me/darwin-gdb-gh1096 - f750baa : Reini Urban): The build has errored.
10:28 travis-ci [travis-ci] Change view : https://github.com/parrot/parrot/compare/smoke-me/darwin-gdb-gh1096
10:28 travis-ci [travis-ci] Build details : http://travis-ci.org/parrot/parrot/builds/37380598
10:28 travis-ci left #parrot
10:43 travis-ci joined #parrot
10:43 travis-ci [travis-ci] parrot/parrot#1115 (smoke-me/darwin-gdb-gh1096 - d2ad859 : Reini Urban): The build passed.
10:43 travis-ci [travis-ci] Change view : https://github.com/parrot/parrot/commit/d2ad8596cf9f
10:43 travis-ci [travis-ci] Build details : http://travis-ci.org/parrot/parrot/builds/37380644
10:43 travis-ci left #parrot
10:46 rurban travis had a weird hickup
11:00 bighugedog joined #parrot
11:15 d4l3k_ joined #parrot
11:17 dalek joined #parrot
11:18 dalek parrot: da59708 | rurban++ | / (9 files):
11:18 dalek parrot: [cage] add makefile codas also to the Defines.mak
11:18 dalek parrot: review: https://github.com/parrot/parrot/commit/da59708135
11:18 autark_ joined #parrot
11:33 travis-ci joined #parrot
11:33 travis-ci [travis-ci] parrot/parrot#1116 (master - da59708 : Reini Urban): The build passed.
11:33 travis-ci [travis-ci] Change view : https://github.com/parrot/parrot/compare/3638f9715523...da597081356f
11:33 travis-ci [travis-ci] Build details : http://travis-ci.org/parrot/parrot/builds/37384375
11:33 travis-ci left #parrot
11:38 dalek parrot: 92fd147 | rurban++ | config/gen/makefiles/root.in:
11:38 dalek parrot: [build] opsrenumber.pl is long gone
11:38 dalek parrot:
11:38 dalek parrot: remove the make target
11:38 dalek parrot: review: https://github.com/parrot/parrot/commit/92fd147ee3
11:54 travis-ci joined #parrot
11:54 travis-ci [travis-ci] parrot/parrot#1117 (master - 92fd147 : Reini Urban): The build passed.
11:54 travis-ci [travis-ci] Change view : https://github.com/parrot/parrot/compare/da597081356f...92fd147ee3d2
11:54 travis-ci [travis-ci] Build details : http://travis-ci.org/parrot/parrot/builds/37386236
11:54 travis-ci left #parrot
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: 679ffc7 | rurban++ | t/compilers/imcc/syn/clash.t:
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: [test] add testcase for double-quoted lex names GH #1095
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096:
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: in perl6 the correctly double-quoted .lex "foo\\o", $P3 name fails to work.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: see https://rt.perl.org/Public/Bug/Display.html?id=116643
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: this might be caused by the switch from globals to lexicals, as this statement
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: is now enclosed in a block.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096:
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: in parrot the binary character \0 causes problems in lexnames with roundtrips.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: review: https://github.com/parrot/parrot/commit/679ffc7fab
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: 1a0d496 | rurban++ | / (4 files):
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: [test] Added LexInfo.declare_lex_preg and more imcc/syn/clash.t tests
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096:
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: For GH #1095
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096:
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: global names do work fine, only lexicals not.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: Note I do not know how to reliable get the correct target register index for
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: declare_lex_preg in pure pir, and how to initialize it.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: Setting it crashes the ctx.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: review: https://github.com/parrot/parrot/commit/1a0d49691b
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: 1d8d02a | rurban++ | config/ (2 files):
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: [build] Change darwin build flags to enable gdb debugging
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096:
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: compile parrot_old static. use this for debugging with gdb.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: keep -undefined dynamic_lookup only for dynamically loaded bundles.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: honor cmdline flags for --ld and --link.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096:
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: and move deletion of generated config and makefiles from archclean
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: to realclean/distclean. we want to delete all object and executables
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: only there.
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096:
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: See [GH #1096]
12:09 dalek parrot/smoke-me/darwin-gdb-gh1096: review: https://github.com/parrot/parrot/commit/1d8d02ac19
12:24 travis-ci joined #parrot
12:24 travis-ci [travis-ci] parrot/parrot#1118 (smoke-me/darwin-gdb-gh1096 - 1d8d02a : Reini Urban): The build passed.
12:24 travis-ci [travis-ci] Change view : https://github.com/parrot/parrot/compare/679ffc7fabc3^...1d8d02ac191e
12:24 travis-ci [travis-ci] Build details : http://travis-ci.org/parrot/parrot/builds/37388734
12:24 travis-ci left #parrot
14:58 Coke rurban: I can only make people bugadmins on perl6 RT. I don't have any finer grained control.
15:53 Chirag joined #parrot
16:12 rurban Coke: no prob
16:13 rurban I am now at the bottom of the imcc parser bugs with quoted names. Updated https://github.com/parrot/parrot/issues/1095
16:15 dalek parrot/rurban/lexqnames-gh1095: a41c105 | rurban++ | t/compilers/imcc/syn/clash.t:
16:15 dalek parrot/rurban/lexqnames-gh1095: [test] add testcase for immc parser bug even with globals
16:15 dalek parrot/rurban/lexqnames-gh1095:
16:15 dalek parrot/rurban/lexqnames-gh1095: Also updated [GH #1095]
16:15 dalek parrot/rurban/lexqnames-gh1095: review: https://github.com/parrot/parrot/commit/a41c105263
16:30 FROGGS joined #parrot
18:25 dalek parrot/rurban/lexqnames-gh1095: 4219e53 | rurban++ | / (2 files):
18:25 dalek parrot/rurban/lexqnames-gh1095: [test] just clarifying comments about the parser
18:25 dalek parrot/rurban/lexqnames-gh1095: review: https://github.com/parrot/parrot/commit/4219e537fc
18:30 FROGGS rurban++
18:51 rurban joined #parrot
19:23 FROGGS Linked: parrot-ops2c
19:23 FROGGS ./ops2c --dynamic src/dynoplibs/bit.ops --quiet
19:23 FROGGS make: ./ops2c: Kommando nicht gefunden
19:23 FROGGS make: *** [src/dynoplibs/bit_ops.c] Fehler 127
19:23 FROGGS :o(
19:23 FROGGS hmmm
19:23 FROGGS maybe I need to reconfigure?
19:23 FROGGS probably
19:47 FROGGS I am testing this right now: https://gist.github.com/FROGGS/8339a718c471294aea47
19:47 FROGGS parrot tests are fine, nqp built and rakudo builds right now...
19:48 FROGGS I am surprised that it compiles at all, so I wonder if that will even fix our problem here
19:53 FROGGS okay, rakudo also compiles but the bug stays :o)
21:00 khisanth_ joined #parrot
22:24 kid51 joined #parrot
23:59 dalek joined #parrot

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

Parrot | source cross referenced