Camelia, the Perl 6 bug

IRC log for #moarvm, 2013-10-19

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

All times shown according to UTC.

Time Nick Message
01:47 _ilbot joined #moarvm
01:47 Topic for #moarvm is now https://github.com/moarvm/moarvm | IRC logs at  http://irclog.perlgeek.de/moarvm/today
02:48 FROGGS joined #moarvm
07:16 FROGGS joined #moarvm
08:03 FROGGS .tell jnthn about the stagestats bug: it works when I close the handles after writing to it, but I am unable to close the ones that were written to in gc_free of MVMOSHANDLE or in tc_destroy
08:03 yoleaux FROGGS: I'll pass your message to jnthn.
08:04 FROGGS .tell jnthn though I can walk the handles easily in tc_destroy fwiw
08:04 yoleaux FROGGS: I'll pass your message to jnthn.
08:23 donaldh joined #moarvm
08:52 FROGGS /dev/MoarVM$ ./moar --version
08:52 FROGGS This is MoarVM version 2013.10
09:00 dalek MoarVM: e8d29fc | (Tobias Leich)++ | / (3 files):
09:00 dalek MoarVM: enable `moar --version
09:00 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/e8d29fcc92
09:00 dalek MoarVM: 3e9a1f2 | (Tobias Leich)++ | build/Makefile.in:
09:00 dalek MoarVM: whitespace cleanup
09:00 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/3e9a1f2bef
09:00 FROGGS moar --version
09:00 FROGGS This is MoarVM version 2013.10-2-g3e9a1f2
09:01 FROGGS btw, it defines MVM_VERSION, MVM_VERSION_MAJOR, MVM_VERSION_MINOR and MVM_VERSION_PATCH too
09:02 FROGGS afaics we'd only need to query it for the make-utility which was used, then we can have --gen-moar in nqp
09:02 FROGGS moritz: ^^
09:45 moritz FROGGS: thanks
10:42 jnthn FROGGS++ # version
10:46 BinGOs $ ./moar --version
10:46 BinGOs This is MoarVM version 2013.10-2-g3e9a1f2
10:48 BinGOs could do with a 'built for blahblah' there too.
10:49 jnthn Where blabblah is?
10:49 jnthn Architecture? OS?
10:49 BinGOs that type of thing yes
10:56 dalek Heuristic branch merge: pushed 62 commits to MoarVM/ext by jnthn
10:56 jnthn Branch ext updated
11:20 dalek MoarVM/ext: 028e727 | jnthn++ | docs/extops.markdown:
11:20 dalek MoarVM/ext: Updates to extops doc.
11:20 dalek MoarVM/ext:
11:20 dalek MoarVM/ext: Aligning it with VM changes and what's implemented so far.
11:20 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/028e727f84
11:45 FROGGS BinGOs: yes, I thought about showing the architecture and $*OS too # TimToady, that was for you :P
11:47 dalek MoarVM/ext: 4425ff7 | jnthn++ | lib/MAST/Nodes.nqp:
11:47 dalek MoarVM/ext: Add a place to register extops with signatures.
11:47 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/4425ff7b81
11:48 moritz fwiw for regex codegen it mouch be much easier if index() offset out of range didn't complain, but simply returned -1
11:49 moritz would it be OK if I patched it?
11:49 jnthn moritz: Is that bringing the smantics inline with nqp::index on Parrot/JVM?
11:49 jnthn *semantics
11:49 moritz jnthn: on parrot at least
11:49 moritz nqp-jvm: say(nqp::index('abc', 'a', 42))
11:49 camelia nqp-jvm: OUTPUT«-1␤»
11:50 jnthn nqp-msay(nqp::index('abc', 'a', 42)):
11:50 jnthn nqp-m: say(nqp::index('abc', 'a', 42)):
11:50 camelia nqp-moarvm: OUTPUT«Confused at line 2, near "say(nqp::i"␤panic␤»
11:50 jnthn nqp-m: say(nqp::index('abc', 'a', 42))
11:50 camelia nqp-moarvm: OUTPUT«(signal SEGV)index start offset out of range␤frame_name_0␤»
11:50 jnthn Yeah, patch it
11:53 dalek MoarVM: 81c654e | moritz++ | src/strings/ops.c:
11:53 dalek MoarVM: return -1 from index_s with start out of range
11:53 dalek MoarVM:
11:53 dalek MoarVM: this brings it in line with parrot and JVM, and easier for regex codegen
11:53 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/81c654ed61
12:06 dalek MoarVM/ext: befdf23 | jnthn++ | lib/MAST/Nodes.nqp:
12:06 dalek MoarVM/ext: More MAST infrastructure for extops.
12:06 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/befdf23758
12:23 FROGGS jnthn++ # extops
12:40 dalek MoarVM/ext: 8b05dfa | jnthn++ | build/Makefile.in:
12:40 dalek MoarVM/ext: Missing Makefile header dep.
12:40 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/8b05dfa53d
12:40 dalek MoarVM/ext: 8d4a27d | jnthn++ | / (2 files):
12:40 dalek MoarVM/ext: Update MAST node headers for MAST::ExtOp, etc.
12:40 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/8d4a27dc77
12:40 dalek MoarVM/ext: 3827834 | jnthn++ | src/mast/driver.c:
12:40 dalek MoarVM/ext: Grab ExtOp type in MAST compiler driver.
12:40 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/38278349b1
12:40 dalek MoarVM/ext: 9c11e4f | jnthn++ | nqp-cc/src/ (3 files):
12:40 dalek MoarVM/ext: Pass MAST::ExtOp along to assembler.
12:40 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/9c11e4f023
13:52 Ulti joined #moarvm
13:52 diakopter joined #moarvm
14:27 cognominal joined #moarvm
14:42 FROGGS joined #moarvm
14:48 colomon joined #moarvm
15:22 jnthn OK, between the ext branches of MoarVM and NQP we now have enough to mention extops in the compile/assembly process.
15:23 jnthn Still not yet writing the op name/sigs out into the bytecode file yet
15:23 jnthn s:2nd/yet//
15:24 jnthn Nor do we have the stuff in place to build a C library in Rakudo for the extop implementations. If somebody fancies taking that bit on, it'd be great. :)
15:49 grondilu joined #moarvm
15:52 colomon joined #moarvm
16:35 dalek MoarVM/ext: ca555e1 | jnthn++ | src/mast/compiler.c:
16:35 dalek MoarVM/ext: Emit MAST::ExtOp instructions.
16:35 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/ca555e1e80
16:35 dalek MoarVM/ext: 2aa241b | jnthn++ | / (6 files):
16:35 dalek MoarVM/ext: Implement settypecheckmode.
16:35 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/2aa241be3f
16:51 dalek MoarVM/ext: 1251d72 | jnthn++ | / (8 files):
16:51 dalek MoarVM/ext: setdispatcher and takedispatcher ops
16:51 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/1251d7244d
17:25 dalek MoarVM/ext: 4776fdd | jnthn++ | / (8 files):
17:25 dalek MoarVM/ext: Implement 2 missing capture-related ops.
17:25 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/4776fddbce
17:35 jnthn Hah, now we're at the point where progress on Rakudo on Moar depends on being able to *execute* an extop...
17:35 timotimo extop inside a BEGIN block?
17:35 jnthn yah, I guess so
17:35 jnthn Given we're in BOOTSTRAP
17:36 jnthn Hm, the scary thing about being in BOOTSTRAP is what comes after it :P
17:48 nwc10 build of Moar's ext branch fails on Linux:
17:48 nwc10 3rdparty/dyncall/dynload/l​ibdynload_s.a(dynload.o): In function `dlLoadLibrary':
17:48 nwc10 /home/nicholas/Perl/MoarVM/3rdparty​/dyncall/dynload/dynload_unix.c:43: undefined reference to `dlopen'
17:48 nwc10 3rdparty/dyncall/dynload/l​ibdynload_s.a(dynload.o): In function `dlFindSymbol':
17:48 nwc10 /home/nicholas/Perl/MoarVM/3rdparty​/dyncall/dynload/dynload_unix.c:49: undefined reference to `dlsym'
17:48 nwc10 3rdparty/dyncall/dynload/l​ibdynload_s.a(dynload.o): In function `dlFreeLibrary':
17:48 nwc10 /home/nicholas/Perl/MoarVM/3rdparty​/dyncall/dynload/dynload_unix.c:55: undefined reference to `dlclose'
17:48 nwc10 I assume that there's a -ldl missing
17:48 nwc10 did it work for someone else on *nix?
17:49 jnthn Presumably not gerd
17:49 jnthn uh
17:49 jnthn Presumably not_gerd
17:49 jnthn :)
17:50 moritz what's an extop?
17:50 moritz an op that's defined outside of moar?
17:50 jnthn Yeah
17:50 jnthn Think dynops
17:51 jnthn apart from we ended up calling them extops
17:51 jnthn And no .ops file :)
17:57 arnsholt Come to think of it, it's weird that the libdyncall build starts failing out of the blue...
17:58 FROGGS nwc10: I've got the same issues
17:59 jnthn nwc10: Try https://gist.github.com/jnthn/7059268/raw/ff3217​25174a3dbe004af522d3021db53f0b8e9b/gistfile1.txt
18:00 jnthn arnsholt: Don't think we were actually depending on it until now
18:00 arnsholt Ah, right
18:07 jnthn bbl
18:16 nwc10 jnthn: yes, that is working
18:17 FROGGS joined #moarvm
18:24 nwc10 jnthn: with ext in MoarVM and nqp, and moar-support in Rakudo I get to this:
18:24 nwc10 Bytecode validation error at offset 866, instruction 140:
18:24 nwc10 invalid extension opcode 1024 - should be less than 1024
18:24 nwc10 frame_name_0
18:24 nwc10 make: *** [blib/Perl6/BOOTSTRAP.moarvm] Error 112
18:24 * nwc10 hopes that this is what you would expect
19:11 diakopter so..
19:11 diakopter jnthn: I haven't looked at it.. how closely did you follow that .markdown
19:16 * diakopter goes to look at the commits
19:16 jnthn diakopter: Not in the exact naming/factoring, but very much the same in spirit.
19:17 jnthn diakopter: not_gerd's bits follow even clsoer
19:17 jnthn diakopter: We got rid of op banks since the doc was written; I did some updates related to that but there's more to come.
19:17 diakopter what about gerd's branch
19:17 dalek MoarVM/ext: a772991 | jnthn++ | build/setup.pm:
19:17 dalek MoarVM/ext: Fix build on Linux; nwc10++ for reporting.
19:17 dalek MoarVM/ext: review: https://github.com/MoarVM/MoarVM/commit/a7729918c5
19:18 jnthn diakopter: I updated gerd's branch and have been adding to it
19:18 jnthn diakopter: That is, my work is in addition to what he did, adding the next bits.
19:18 diakopter oh; I thought he had a different branch
19:18 jnthn nwc10: Yes, that is the exact error I get
19:19 jnthn diakopter: ext was the one that seemed to contain the work I remembered him having done :)
19:19 jnthn And it looked correct :)
19:19 diakopter oic :)
19:23 jnthn Well, apart from where it looked wrong... :)
19:23 jnthn But that was details. :)
20:13 benabik joined #moarvm
21:17 ggoebel8 joined #moarvm
21:23 ggoebel9 joined #moarvm
21:32 woolfy left #moarvm
21:34 woolfy joined #moarvm
23:18 BenGoldberg joined #moarvm
23:18 BenGoldberg r: utf8.!methods.say
23:19 camelia rakudo e55c66: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/swE0XaRZoJ␤Confused␤at /tmp/swE0XaRZoJ:1␤------> [32mutf8.[33m⏏[31m!methods.say[0m␤    expecting any of:␤        postfix␤        dotty method or postfix␤»
23:19 BenGoldberg r: utf8.^methods.say
23:19 camelia rakudo e55c66: OUTPUT«decode encoding new elems bytes chars Numeric Int list subbuf unpack contents of Str at_pos Bool Stringy gist perl␤»
23:19 BenGoldberg Oops, wrong channel

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