github.com/moarvm/moarvm | IRC logs at irclog.perlgeek.de/moarvm/today
Set by moderator on 3 August 2013.
00:31 FROGGS joined 01:14 ggoebel joined 01:38 benabik joined 01:42 Alpha64_ joined 01:45 Alpha64__ joined 02:07 FROGGS joined 02:21 Alpha64__ left
dalek arVM/readlineintfh2: d3a19e8 | jimmy++ | 3rdparty/linenoise/linenoise.c:
code cleanups
02:34
04:41 birdwindupbird joined
diakopter is not surviving refactoring hell 06:02
JimmyZ aloha 06:11
06:14 FROGGS joined
JimmyZ FROGGS: good morning 06:15
I take an look at BuildEnvironment.pm on Moarvm and uv.gyp, and think it's easy to create BuildEnvironment.pm file for libuv with support linux and windows 06:19
diakopter JimmyZ: actually
segomos is working on that
I forgot to mention 06:20
JimmyZ oh
great
diakopter hopefully he will submit a pull request soon
JimmyZ e
diakopter segomos: *pull request to a new branch
JimmyZ yeah, uv.gyp is about 500 lines 06:21
it' aslo create some .proj or .vcxproj files, but I really don't like it 06:23
I like Makefile :P
diakopter Method 'ws' not found for invocant of class 'QAST::MASTRegexCompiler' 06:36
could someone implement ws? 06:39
JimmyZ diakopter: you can, only one line 06:42
diakopter paste it? :)
JimmyZ # a :rxtype<ws> node is a normal subrule call
method ws($node) { self.subrule($node) } 06:43
diakopter ok 06:44
thx
JimmyZ np
diakopter Method 'dba' not found for invocant of class 'QAST::MASTRegexCompiler' 06:46
06:46 not_gerd joined
not_gerd o/ 06:46
diakopter not_gerd: howdy :)
not_gerd: did you notice I mentioned you in moarvm source code?
not_gerd diakopter: yes, I saw ;)
diakopter oh good :)
did I do it right? 06:47
not_gerd it was a pleasant surprise
diakopter: all good
JimmyZ: github.com/MoarVM/MoarVM/pull/43
diakopter use the utf8 parser I mean
JimmyZ I saw too, some string code
not_gerd diakopter: sure, the code was written to be used 06:48
just don't sue me if there's a bug ;)
diakopter supposedly the artistic license protects from that 06:49
06:49 crab2313 joined
diakopter JimmyZ: where did you find the ws method to copy 06:49
not_gerd JimmyZ: is that correct: github.com/MoarVM/MoarVM/blob/read...ise.c#L271 06:50
assignment in if()s are.. iffy ;)
JimmyZ diakopter: nqp\\src\\vm\\parrot\\QAST\\Compiler.nqp
not_gerd: it's right, in if() is not accepted :P 06:52
diakopter just needs another ()
JimmyZ s/in/but in/
diakopter (says clang)
.tell jnthn I have some corrections for your syllabus for the rakudo/nqp workshop.. you forgot to s/Day/Week/g 06:54
yoleaux diakopter: I'll pass your message to jnthn.
diakopter .tell lizmat I have some corrections for your syllabus for the rakudo/nqp workshop.. you forgot to s/Day/Week/g
yoleaux diakopter: I'll pass your message to lizmat.
dalek arVM/readlineintfh2: 2df25bb | (Gerhard R)++ | 3rdparty/linenoise/linenoise.c:
[3rdparty/linenoise] Get rid of some magic numbers
06:57
arVM/readlineintfh2: 88aa8d9 | (Gerhard R)++ | 3rdparty/linenoise/linenoise.c:
[3rdparty/linenoise] Change WIN32 to the more portable _WIN32
arVM/readlineintfh2: 939a8c0 | (Gerhard R)++ | 3rdparty/linenoise/linenoise.c:
[3rdparty/linenoise] Pull in io.h on win32 for _isatty
arVM/readlineintfh2: 008b2f8 | jimmy++ | 3rdparty/linenoise/linenoise.c:
Merge pull request #43 from gerdr/gerdr/linenoise

Cleanup and win32 fixes for linenoise
diakopter ugh, I need a disassembler, not just a bytecode dumper 06:58
JimmyZ or moarvm debug 06:59
*debugger
diakopter yeah that too
JimmyZ not_gerd++ 07:00
07:00 FROGGS joined
FROGGS diakopter / JimmyZ / jnthn: do you mind if the cross compiler without the --output option would spit its result to stdout rather to temp.moarvm? 07:14
diakopter seems fine to me. just make sure to add the output option to the Test driver 07:19
for the moar tests
FROGGS k 07:20
JimmyZ to a.out ? 07:21
:P
FROGGS hehe >.<
diakopter to *GEN by default, let's say 07:22
diakopter hopes no one gets that one 07:23
FROGGS O.o
diakopter as/400 07:24
FROGGS diakopter: are you talking in bytecode to me? 07:30
diakopter as/400 is an ibm systsem 07:31
FROGGS I had an IBM PCD-2M once 07:33
diakopter *cystem 07:34
09:13 crab2313 joined
diakopter I might have an nqp ready to bootstrap soon 09:53
lizmat oh wow! 09:54
JimmyZ diakopter++ 09:55
I'm looking forward to it
FROGGS diakopter++ 09:56
diakopter At Frame 16, Instruction 380, op 'no_op' has invalid number (4) of operands; needs 0. 09:57
FROGGS you deserve more but that'd be catched as spam
diakopter hrm
no-op these four operands please
not_gerd is working on basic cross-compilation and MinGW64 support 09:58
diakopter wat 09:59
not_gerd APR doesn't like MinGW64 10:00
I'm hoping to fix that, as well as building MoarVM in case of buildsys != hostsys
ie adding --build and --host to Configure.pl and passing this down to the 3rdparty configure scripts 10:01
JimmyZ not_gerd: we will do apr => libuv
not_gerd JimmyZ: sure, but what's the ETA? 10:02
JimmyZ for now, I'm using nmake and msvc
FROGGS not_gerd: I'd guess not more than two months...
@others: tell me if my gut-feeling is wrong :o) 10:03
diakopter eh
I'd say more
FROGGS k
diakopter: what is your expectation?
diakopter just that the api will be difficult to get right 10:04
FROGGS k
diakopter C:\\Users\\mwilson\\src\\MoarVM>perl6 tools\\update_ops.p6 10:07
Parsed 8 op banks with 532 total ops
Wrote ops.h, ops.c, and Ops.nqp
10:10 jnthn joined
diakopter jnthn: wb! 10:10
10:15 woosley left 11:14 crab2313 joined
JimmyZ good evening 11:22
FROGGS: ping 11:26
JimmyZ ponders to fork libuv and patch it 11:30
FROGGS JimmyZ: ola
what do you wanna patch libuv for?
11:31 crab2313 joined
JimmyZ FROGGS: gist.github.com/zhuomingliang/6077134, 'no' parot 11:32
*part
FROGGS ahh, I see 11:33
JimmyZ windows support will be always annoying :( 11:42
FROGGS yeah, but needed 11:43
JimmyZ want to join in ? 11:44
:P
FROGGS maybe... I'll decide after seeing your first commits :P 11:45
JimmyZ I maybe do it this weekend 11:48
FROGGS cool, by benchmarks should be done by then :o) 11:49
JimmyZ good 11:50
12:19 benabik joined 12:23 arnsholt joined
not_gerd mostly works: perl Configure.pl --build i686-pc-cygwin --host x86_64-w64-mingw32 --mingw && make 12:41
JimmyZ not_gerd: that's great 12:54
not_gerd strawberry perl doesn't work yet because we rely on $^O instead of %config in places where we shouldn't 12:58
not_gerd also needs to properly fix APR 12:59
JimmyZ doesn't know who use mingw32 to patch MoarVM 13:01
not_gerd thoughts on configuration refactor: gist.github.com/gerdr/6184541 13:31
JimmyZ not_gerd: I think we can steal some idea from uv.gyp in libuv 13:36
a json file
some add_defines(), add_link_tags(), add_file_to_compile_source() function would be fine, methinks 13:38
or add_link_setting 13:39
and add_link_library()
and add_include_dir[s]() 13:40
not_gerd anyway, I'm off... 13:47
o/
13:47 not_gerd left 14:06 crab2313 joined 14:34 colomon joined 15:37 FROGGS joined
diakopter JimmyZ: but... 17:45
JimmyZ: segomos is working on the libuv thing
segomos i was going to play around with it, i can work on other stuff too 17:47
if needed
FROGGS well, hacking in missing features and binding it to moarvm are two different task (which can happen totally in parallel) 17:48
tasks*
diakopter this is true 18:13
segomos cool, have libuv building with moarvm - i'll work on wtf i'm actually doing..i need to dig into this and figure out why apr wants a memory pool 18:25
diakopter well we might actually have to keep apr in addition to libuv 18:26
if jimmyz's list is correct
segomos for?
diakopter subprocess interactions, maybe
segomos process stuff?
diakopter guid/uid yeah
segomos okay
diakopter not sure
need jnthn to chime in
jnthn I'd rather not keep both.
segomos i didn't remove APR and i don't have libuv stuff building OS specific, i just included darwin and a couple others 18:27
diakopter darwin, linux, windows, all 64 is enough for now
32 later if we want
segomos yea win won't build, i don't have the # statements in there for OS yet
diakopter segomos++
segomos ./lz
lunch time though 18:28
diakopter jnthn: I made a bunch of progress on the refactor. it builds cleanly now, at least, and passed all the moar tests 18:37
except two thread ones that it's now failing (at least it no longer hangs!)
jnthn diakopter++
diakopter but I can't get it to run the nqp tests... 18:38
oh wait, I'll just disable those additional .nqp in the Makefile as they're not necessary
jnthn aww
diakopter well it's just b/c it wasn't finishing building NQP.pm 18:39
dies with (too many operands (4) to noop)
darn.
now every nqp test is dying with This representation (MVMCode) does not support elems 18:40
musta done something wrong-o
time to take a look at the multi-thousand line diff
lizmat small steps, grasshopper, small steps! 18:43
diakopter can't really
huge refactor
can't have StaticFrames and CompUnits be both repr/GC-managed and not, simultaneously 18:44
jnthn: I found a bunch of places MVM_ASSIGN_REF needed to be... at least I *think* so. 18:49
we'll need to review this commit thoroughly, perhaps together
once it actually works...
I found a C trick I didn't know about 18:52
you can typedef a named struct to another name before actually declaring it
highly convenient
@#%&)@(*# this will take hours to track down 18:55
(using solely the code-reading method)
segomos what c trick? 19:53
diakopter (the next line in the irclog) 19:54
(seemed neat to me) :)
20:58 colomon joined
segomos i like the biers at the bottom of some of these pl filez 21:10
diakopter jnthn: someone noticed your .pm results 21:18
jnthn ;) 21:21
Feels fair. Hack on configure, get beer tips. 21:22
segomos i feel weird about this shit compiling 21:34
i also don't know how to test
diakopter ? :)
jnthn: did you look at not_gerd's gist above?
segomos build uvlib, hack around in the build stuff, changed the open/close methods in io/fileops.c to use uvlib and it compiles fine
diakopter oh heh. 21:35
well what objects does it place in the OSHandle
after opening a filehandle
segomos in MVMOSHandle ?
i added a uv_fs_t* to the struct called file_req and it assigns that 21:36
diakopter ok
is that object threadsafe?
if not, need to add a mutex on the object also
segomos i'll check it out
diakopter (was going to need to do that with apr also)
jnthn: okay, I tracked it down (the problem I was having) 21:39
jnthn diakopter: No, didn't look yet
diakopter jnthn: it has to do with the void :want
well, how I "fixed 21:40
"fixed" it
FROGGS ohh 21:41
I'm eager to see your commit then :o)
segomos do you have an fileops tests? 21:52
FROGGS I've got something locally... 21:57
ohh, no, *I had* something
I did a git clean -xdf a week ago >.< 21:58
ohh, hold on
dalek arVM: cfc1eaa | (Tobias Leich)++ | nqp-cc/t/nqp/77- (2 files):
added file-io tests

These need to be fudged to work on nqp@jvm, since it has no chdir yet.
22:03
FROGGS segomos: ^^
diakopter FROGGS: no, I was saying I *didn't* fix it 22:29
FROGGS I read it as: the problem is how you "fixed" it... so when you push your stuff, it will be properly fixed... 22:30
diakopter the problem is that how I fixed it was wrong
or in some way related to some other problem that's causing the breakage 22:31
FROGGS right, I got it already 22:32
diakopter ah, oh :)
segomos FROGGS: thanks, i'll take a look
diakopter: is there a reason that MVM_file_info tries to open the file first? 22:45
22:45 benabik joined 23:52 FROGGS joined