github.com/moarvm/moarvm | IRC logs at irclog.perlgeek.de/moarvm/today
Set by moderator on 28 October 2013.
00:03 FROGGS joined 00:15 colomon joined 00:31 benabik joined 01:28 ggoebel13 joined 01:33 ssutch joined 02:34 johnny5_ joined 02:57 colomon joined 03:18 colomon joined 03:36 johnny5_ joined 03:43 colomon joined, johnny5_ joined
diakopter hi 04:29
johnny5_ h 04:48
hi
diakopter johnny5_: what's up 04:56
johnny5_ diakopter: not much just thinking of how I should re-work some code. 05:05
diakopter: you? did you get the grant for adding some features to P6?
05:14 johnny5_ joined 05:24 johnny5_ joined 05:48 johnny5_ joined 06:53 FROGGS joined 07:19 ssutch joined 08:13 lizmat joined 09:30 FROGGS[mobile] joined
dalek arVM: 517efaa | jimmy++ | build/config.c.in:
Add missing MVMROOT
09:44
FROGGS[mobile] JimmyZ++ 09:45
jnthn moarning o/ 09:56
FROGGS[mobile] Hi jnthn
lizmat jnthn!
jnthn First day of cloudy weather on vacation /o\\ 09:57
So I might actually get some prep in for my APW talks :)
lizmat what an opportunity ! 09:58
:-)
jnthn Of course, I can still sit out on the balcony and watch city life go by :)
lizmat sounds like a plan to me :-) 09:59
nwc10 jnthn: do you have enough new holiday snaps yet to make the talks? 10:00
jnthn nwc10: yes :) 10:01
nwc10 OK then, holiday over, get hacking! :-) 10:02
jnthn :P
nwc10 are you able to sit out on the balcony *and* prepare talks? 10:03
jnthn Yes, because the wifi works from here, and my power adapter is long enough to reach to a socket inside :) 10:04
nwc10 cool
good choice of hotel
jnthn Apartment, but yes :)
Or apart-hotel I guess
Dunno what you call these things. They have a bunch of apartments and then an office and when you show up they take you for a few minute walk to where you'll actually stay :) 10:05
moritz cloud-hotel :-)
jnthn haha 10:06
lizmat
.oO( wasn't that only on the top floor ?)
moritz yesterday I read an interview with my employer's CEO, and he talked about building data centers. And the interviewer asked him: "but is it really cloud computing if it happens inside a data center?" 10:07
jnthn hah! 10:08
Bet the interviewer felt really clever about that one :) 10:09
moritz I too found it very clever, best laugh I had that day :-) 10:10
10:38 colomon joined 11:17 woolfy left 11:26 woolfy joined, woolfy left
diakopter 1 while $*SCHEDULER.outstanding 12:01
jnthn: recommended best practice? :)
jnthn "never write code like this unless you're writing spectests" :P 12:04
Typically, you never directly work with $*SCHEDULER anyway. 12:05
I just wanted to (a) test it in isolation, and (b) get it in better shape before working on / writing tests for the things it depends on. 12:06
& 12:16
moritz Just Ducking Schedule It! 12:17
12:30 toropov joined 12:40 FROGGS joined
[Coke] rp: say 'D' -'F' 12:51
camelia rakudo-parrot d9e79f: OUTPUTĀ«Cannot convert string to number: base-10 number must begin with valid digits or '.' in 'āD' (indicated by ā)␤ in method Numeric at gen/parrot/CORE.setting:11954␤ in sub infix:<-> at gen/parrot/CORE.setting:3939␤ in sub infix:<-> at gen/parro…»
12:59 reclova joined 13:01 FROGGS joined 13:28 jnap joined 13:41 benabik joined
FROGGS[mobile] jnthn: btw, do you have anything for me to do? 14:35
14:38 Tom_____ joined
jnthn FROGGS[mobile]: Hmm. Rakudo on Moar's current blocker is getting some of the signature binder in place but there's one pre-req for that in NQP you could look at 14:40
QAST::Block has a custom_args property
Which means "don't emit arg processing instructions, I'll do it myself" 14:41
QAST -> MAST ignores it so far
FROGGS[mobile] okay
jnthn I think if we spot that case we simply emit a checkarity 0, -1 and that's it
(that is, any number of args is OK) 14:42
that still triggers the flattening logic, which needs to happen
FROGGS[mobile] k, task accepted :o)
FROGGS coffee+task, awesome! 16:04
diakopter wow, on mobile and non-mobile! 16:05
FROGGS yeah, I am soooo 2013! 16:07
jnthn: do we need to do getcode/capturelex and getcode/takeclosure when custom_args is in effect? 16:19
I'd think no 16:20
jnthn Those are orthogonal 16:24
yes, we still need them
lexical handling and parameter handling are not related
FROGGS hmmm, the diff is not very readable... gist.github.com/FROGGS/c7e950459e834a147cb8 16:29
I updated the gist with changed (wrong) indentation, so the diff is actually readable 16:36
nqp: say(nqp::getpid()) # I think I am doing that know... that is something I can test 16:41
camelia nqp-moarvm: OUTPUT«Error while compiling op getpid (source text: "nqp::getpid()"): No registered operation handler for 'getpid'␤frame_name_1083␤»
..nqp-parrot: OUTPUT«13815␤»
..nqp-jvm: OUTPUT«13803␤»
diakopter FROGGS: getting pid on windows.. is that a libC thing or libuv thing or hacky or what? 16:43
timotimo FROGGS: jnthn said checkarity 0, -1, you have 0, 1 ... is that a problem?
FROGGS diakopter: I will know soon
timotimo: hehe, probably yes *g*
FROGGS changes it 16:44
jnthn FROGGS: that looks about right
FROGGS cool 16:45
dalek arVM: e3e33c2 | (Tobias Leich)++ | / (8 files):
added nqp::getpid
17:50
18:23 Tom_ joined
FROGGS humm, say() on windows is sort a noop, ehh? 18:29
arg! 18:30
single quotes 18:31
diakopter: getpid() work like a charm :o)
diakopter heh ok
nqp-m: say(nqp::getpid)
camelia nqp-moarvm: OUTPUT«Error while compiling op getpid (source text: "nqp::getpid"): No registered operation handler for 'getpid'␤frame_name_1083␤»
18:41 FROGGS joined
FROGGS jnthn: what is fc? irclog.perlgeek.de/moarvm/2013-10-29#i_7781759 18:45
arnsholt fold case
When you're doing unicode, just downcasing isn't sufficient 18:46
FROGGS hmmm, there is a case folding table... 18:48
19:19 odc joined
diakopter nqp-m: say(nqp::getpid) 19:27
camelia nqp-moarvm: OUTPUT«Error while compiling op getpid (source text: "nqp::getpid"): No registered operation handler for 'getpid'␤frame_name_1083␤»
FROGGS :/ 19:28
diakopter: control rebuild moar # :P
moritz FROGGS: installation of moar fails :( 19:53
I configured with perl Configure.pl --prefix=$HOME/nqp-moarvmvm/install --optimize
and it does
/usr/bin/perl -MExtUtils::Command -e mkpath /bin
/usr/bin/perl -MExtUtils::Command -e cp moar /bin
/usr/bin/perl -MExtUtils::Command -e chmod 755 /bin/moar
Cannot chmod 755 /bin/moar:No such file or directory at /usr/share/perl/5.14/ExtUtils/Command.pm line 274.
PREFIX = # nothing after that 19:55
moritz is glad he doesn't build & install as root 19:57
FROGGS /bin/moar does not feel right
moritz empty PREFIX also doesn't feel right
FROGGS moritz: can you paste the src/gen/config.c ? 19:59
moritz FROGGS: moritz.faui2k3.org/tmp/config.c 20:02
add_entry(tc, config, "config", "--prefix=/home/p6eval/nqp-moarvmvm/install --optimize");
add_entry(tc, config, "prefix", "")
seems I misspelled the prefix, and it doesn't exist 20:03
but that shouldn't produce an empty prefix, right?
FROGGS no, prefix should be set 20:04
well 20:05
is it possible that abs_path() sets it to an empty string when it does not exist? 20:06
moritz p6eval@host07:~$ perl -MCwd=abs_path -wE 'say abs_path "/no/such/path"'|wc -c 20:07
1
FROGGS meh 20:08
moritz probably File::Spec->rel2abs would be the better choice
FROGGS yeah 20:09
moritz I'll patch it
dalek arVM: 11d8ad8 | moritz++ | Configure.pl:
[Configure] fix for non-existing --prefix

abs_path produces the empty string in such cases, use File::Spec->rel2abs instead
20:11
20:12 lizmat joined 20:13 woolfy joined
FROGGS moritz++ 20:14
nqp: say(nqp::getpid) # \\o/
camelia nqp-parrot: OUTPUT«19932␤»
..nqp-jvm: OUTPUT«19920␤»
..nqp-moarvm: OUTPUT«19919␤»
timotimo \\o/ 20:32
FROGGS :o) 20:33
20:33 woolfy joined
FROGGS I love these small things 20:33
diakopter timotimo: speaking of duplicate ops, someone implemented ordat when getcp_s alrady wuz thar 20:35
/* XXX what to do with synthetics? return them? */ 20:36
well, that's a good question.. 20:37
TimToady can ponderously weigh in
diakopter groans under the weight of that pun
timotimo i didn't duplicate no ops! 20:38
diakopter I was just continuing the slightly-related topic from #perl6
timotimo :) 20:39
20:42 cognominal joined 20:51 ssutch joined
timotimo No registered operation handler for 'eqat' - huh. i thought nqp-moar had this 20:55
FROGGS nqp-m: nqp::eqat_s()
camelia nqp-moarvm: OUTPUT«Error while compiling op eqat_s (source text: "nqp::eqat_s()"): No registered operation handler for 'eqat_s'␤frame_name_1108␤»
timotimo nqp: nqp::say(nqp::eqat("foo", "fo", 0))
camelia nqp-parrot: OUTPUT«Error while compiling op eqat (source text: "nqp::eqat(\\"foo\\", \\"fo\\", 0)"): No registered operation handler for 'eqat'␤current instr.: '' pc 58571 (gen/parrot/stage2/QAST.pir:21439) (gen/parrot/stage2/QAST.nqp:3584)␤»
..nqp-moarvm: OUTPUT«Error while compiling op eqat (source text: "nqp::eqat(\\"foo\\", \\"fo\\", 0)"): No registered operation handler for 'eqat'␤frame_name_1108␤»
..nqp-jvm: OUTPUTĀ«Method 'type' not found for invocant of class 'NQPMu'␤ in coerce (gen/jvm/stage2/QAST.nqp:4097)␤ in as_jast (gen/jvm/stage2/QAST.nqp:2981)␤ in (gen/jvm/stage2/QAST.nqp:3678)␤ in compile_all_the_stmts (gen/jvm/stage2/QAST.nqp:3666)␤ in as_jast (gen/jvm…»
timotimo so moarvm has the function, but not the op. 20:56
20:58 BenGoldberg joined
FROGGS timotimo: it is not mapped, yes 20:58
jnthn timotimo: Having a moarop and having nqp:: ops mapped to them are two separate things 20:59
timotimo would you like to do it for me, FROGGS?
it takes the haystack, the needle and the wanted offset
returns 0 if it's not found, 1 otherwise
actually, it returns 1 if it's found
0 otherwise (like index out of bounds etc)
FROGGS timotimo: it is just one line to map it 21:00
timotimo in that case i can probably do it myself :)
FROGGS like: QAST::MASTOperations.add_core_moarop_mapping('eqaddr', 'eqaddr');
in nqp/src/vm/moar/QAST/QASTOperationsMAST.nqp
maybe add it around line 1710 21:01
(order does not matter here) 21:02
21:02 lizmat joined
timotimo good call, thanks 21:02
21:09 benabik joined 21:14 woolfy joined
timotimo FROGGS: it seems like i'll have to actually create a moarvm op first 21:19
to bind MVM_string_equal_at
FROGGS timotimo: there is, in src/core/interp.c 21:20
timotimo hm
FROGGS OP(eqat_s):
GET_REG(cur_op, 0).i64 = MVM_string_equal_at(tc,
timotimo ah, it's called eqat_s
FROGGS yeah
timotimo silly me. thanks!
FROGGS yw :o)
21:32 dalek joined 21:41 woolfy joined 21:55 woolfy left 23:50 benabik joined