Camelia, the Perl 6 bug

IRC log for #moarvm, 2013-06-02

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

All times shown according to UTC.

Time Nick Message
00:11 lee__ joined #moarvm
02:22 FROGGS joined #moarvm
04:16 japhb_ joined #moarvm
06:10 `patch` joined #moarvm
07:47 cognominal joined #moarvm
09:00 tgt joined #moarvm
09:24 Guest1337 joined #moarvm
09:55 nwc10 for reasons I don't understand (so probably a 1 char error) the most recent commit which changes to dynamic libraries has the side effect of messing up the APR configuration such that apr.h isn't built
09:56 nwc10 (more than one Linux distribution, and it's not because apr.h is installed in /usr/include)
10:00 cognominal joined #moarvm
10:08 tomyan joined #moarvm
10:35 nwc10 t/qast/qast_arguments.t fails tests 10 and 12 on 32 bit Linux (at least little endian)
10:35 nwc10 given that test 10 fails because it gets 562949953421337, when it expected 25, and
10:35 nwc10 $ perl -le 'printf "%x\n", 562949953421337'
10:35 nwc10 2000000000019
10:35 timotimo joined #moarvm
10:36 nwc10 it's something to do with reading 64 bits, when only 32 were actually written
10:36 nwc10 (and possibly the other 32 bits were part of some other value)
10:39 timotimo i'm having build trouble; apparently the location of apr.h is different in debian from others; mine is in /usr/include/apr-1.0/apr.h and the build script doesn't expect that. suggested fix?
10:39 nwc10 APR is bundled
10:39 nwc10 on HEAD, something's a bit borked
10:39 timotimo is there a known good commit for me to try out?
10:39 nwc10 change into ./3rdparty/apr and run ./configure there
10:40 nwc10 19a12faab4164b1412d65bdf7480af570476790d might be better
10:40 nwc10 but everywhere I've built, APR isn't installed by the system
10:40 eternaleye nwc10: `apr-1-config --includes` will give the proper include path for apr
10:40 nwc10 so I don't know if the MoarVM build system can cope with a machine where APR is installed, particularly if it's a "wrong" version
10:41 eternaleye nwc10: apr doesn't use pkg-config yet, more's the pity
10:41 eternaleye nwc10: There's also --version, so we can check if it's the right one.
10:43 eternaleye nwc10: In general, if you want to find build deps, try pkg-config first, then specific ${foo}-config tools, then hardcoding various locations
10:43 eternaleye Lessons from packaging and admin.
10:43 eternaleye (If you're on CMake or autotools things change slightly, though)
10:50 timotimo i was able to make it after configuring apr
11:11 timotimo make: *** [NQPP5QRegex.pbc] Segmentation fault
11:11 timotimo whoops?
11:11 timotimo (nqp-cc/Configure.pl --gen-nqp)
11:35 BrowserUk joined #moarvm
11:36 BrowserUk What are the "essential units" of P6 code?
11:45 timotimo bells and whistles
11:48 nwc10 I think everyone who can answer that question sensibly is in Austin Texas, and probably asleep
11:50 BrowserUk nwc10: I'll leave my machine up for a few hours and see what comes.
11:50 nwc10 also, I'm failing to think of my own flippant funny answer :-(
11:53 eternaleye BrowserUk: I'd say the essential *nature* is a combination of "Different things should look different, similar things should look similar", "There's more than one way to do it", and "Difficult things should be easy, impossible things should merely be difficult." - That is, exactly the same as Perl 5, but with a few more years of experience behind it.
11:53 timotimo you should deny that bells and whistles make up all of Perl6 and suggest something like nooks and crannies instead
11:54 nwc10 I was thinking about "line noise, but now in Unicode"
11:54 eternaleye timotimo: Not touching *that* one with a barge pole, to paraphrase an old ASR post :P
11:55 nwc10 but I believe that the context of the question is about what low level OPs a Perl 6 VM should be built from
11:55 timotimo i interpreted it like nwc10 did
11:56 timotimo but instead of being helpful i decided to say something silly
11:56 eternaleye Well, in that case I'd say either "Basic math, string handling, platform callout capability, and control flow" or "About the same as any other language VM"
12:08 moritz t/moar/threads.t fails test 6 here
12:09 moritz is that known/expected?
12:11 nwc10 moritz: I found that it failed 2 tests when build "optimised" and not when not
12:11 colomon joined #moarvm
12:27 tgt joined #moarvm
12:32 BrowserUk How about: Blocks & Expressions.
12:33 BrowserUk OR evenL Blocks of expressions.
12:54 lizmat joined #moarvm
13:34 tomyan joined #moarvm
13:36 grondilu joined #moarvm
13:42 BrowserUk Of course, expressions come down to operators and arguments -- which as P6 internally is OO -- translates to objects & methods ( and arguments; which or more objects.)
13:44 BrowserUk But blocks can contain other blocks. Conditional block; looping blocks; bare blocks;
13:45 BrowserUk But what if a block is just another object (say of class Code).
13:46 BrowserUk Then an "if statement" is just a call to the 'if' method of the controlled block; passing another block that is the condition argument.
13:47 grondilu In file included from src/moarvm.h:5:0, from src/core/args.c:1:
13:47 grondilu 3rdparty/apr/include/apr_general.h:28:17: fatal error: apr.h: No such file or directory
13:47 grondilu compilation terminated.
13:47 grondilu make: *** [src/core/args.o] Error 1
13:48 grondilu I guess I should install the apache portable runtime, right?
13:48 BrowserUk Ditto for  a While Loop(1 argument block); and a for loop (3 argument blocks); and a foreach loop ( 1 argument block)
13:49 nwc10 grondilu: try cd 3rdparty/apr && ./configure
13:49 nwc10 something is messing up the configuration
13:49 BrowserUk So, expressions are just (lists of) objects+methods+arguments; and blocks are the same.
13:50 BrowserUk So the VM opcodes could be just those required to create classes; add methods and invoke them.
13:51 * grondilu is running cd 3rdparty/apr && ./configure
13:52 grondilu ./configure ended with no error
13:52 nwc10 make should work
13:53 * grondilu runs make again (in the top directory)
13:53 moritz I have a grammar fix. CAN HAZ COMMIT BIT PLZ?
13:53 moritz (or do you folks prefer pull requests?)
13:54 eternaleye nwc10: One thing I'd *really* like would be --with-apr={system,bundled}, because if anyone ends up packaging this for my distro it'll be me. And bundled libs are an abomination.
13:54 grondilu ld failed now
13:54 grondilu /usr/bin/ld: cannot find -lapr-1
13:54 grondilu collect2: error: ld returned 1 exit status
13:54 grondilu make: *** [moarvm] Error 1
13:55 grondilu I don't have APR installed (I don't think so anyway).  Shouldn't the configure script have dectected that?
13:55 * grondilu checks apt-cache policy libapr1
13:55 grondilu libapr1: Installed: (none) Candidate: 1.4.6-4
13:56 nwc10 eternaleye: I don't have commit access. I'm just the one awake. I guess jnthn and a couple of others would need to be "persuaded", but I suspect that they'll agree
13:56 nwc10 for all I know someone will do it at the hackathon this week
13:58 eternaleye Mm
14:07 pmichaud good moarning
14:07 moritz good morning, pmichmoar
14:07 pmichaud (apr)  I'll be pushing/trying really hard to come up with a system where apr isn't bundled.
14:08 pmichaud I'm thinking I'll do a similar thing in the nqp repo... bundling other packages in source repos is really not a good idea.  We can do better.
14:08 grondilu no sure is related but the configure script in 3rdparty/apr does not parse my os version correctly
14:08 grondilu 3.9-2.towo-siduction-686
14:09 * moritz can't parse that either
14:09 grondilu ^ uname -r
14:09 * grondilu is running siduction (http://siduction.org)
14:10 grondilu (sid-derived OS)
14:11 pmichaud moritz: github is down at the moment
14:12 moritz pmichaud: no hurry
14:12 pmichaud angry unicorns all over the place.
14:17 colomon joined #moarvm
14:18 rurban joined #moarvm
14:21 icovnik joined #moarvm
14:22 birdwindupbird joined #moarvm
14:23 grondilu line 18844, I replaced the sed command with s/\(.\)\.\(.\)[\.-]\(.).*/\1\2\3/
14:24 grondilu instead of s/\(.\)\.\(.\)\.\(.).*/\1\2\3/
14:28 moritz are there any moarvm LHFs?
14:30 colomon a question many of us at the hackathon want to know.  :)
14:35 FROGGS joined #moarvm
14:50 hoelzro joined #moarvm
15:00 japhb_ joined #moarvm
15:09 jnthn morning o/
15:10 jnthn whoa, lots to backog here
15:28 FROGGS moarning *g*
15:28 lizmat joined #moarvm
15:33 moritz github is back up agian... CAN HAZ COMMIT BIT PULEZ? kthx!
15:35 masak JimmyZ++ # https://github.com/MoarVM/MoarVM/pull/1
15:40 pmichaud moritz: you have commitbit
15:40 FROGGS jnthn: btw, you dont have to care about build problems, I have experience with cross platform stuff due to my p5 SDL module
15:40 jnthn FROGGS: You're offering to improve the build things? :) \o/
15:40 jnthn Nice :)
15:40 pmichaud does this mean I don't have to do it?  ;-)
15:41 FROGGS well, I usually have 10 or more VMs for different OSes to do sometesting
15:47 jnthn +1 if somebody wants to implement --with-apr={system,bundled}
15:47 jnthn (still backlogging...)
15:52 FROGGS k
15:52 FROGGS jnthn: what should be the default?
15:55 pmichaud I don't like that formulation
15:55 pmichaud by default it should use the system apr
15:56 pmichaud but there may also want to be a --gen-apr, which means to generate one locally
15:56 pmichaud similar to how we do --gen-nqp and --gen-parrot
15:56 pmichaud iirc, --with-xyz  is supposed to provide the location of xyz
15:56 pmichaud checking
15:58 pmichaud oh, the standard also allows keywords to be there
16:11 dalek joined #moarvm
16:12 moritz now if somebody adds http://feather3.perl6.nl:50​00/dalek?t=freenode,moarvm to a github post-commit hook, dalek should report commits in here
16:15 jnthn I think I maybve already did
16:15 jnthn checking
16:16 * masak .oO( dalek me maybe )
16:16 jnthn ah, I'll hit the tst button
16:16 dalek MoarVM: 036ce9c | jimmy++ | src/6model/reprs/P6num.c:
16:16 dalek MoarVM: fixed copy-pasto
16:16 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/036ce9c6df
16:16 dalek MoarVM: b91d79f | (Carl Mäsak)++ | src/6model/reprs/P6num.c:
16:16 dalek MoarVM: Merge pull request #1 from zhuomingliang/patch-1
16:16 dalek MoarVM:
16:16 dalek MoarVM: fixed copy-pasto
16:16 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/b91d79f3e0
16:16 dalek MoarVM: 4bafb0a | moritz++ | docs/arg-passing.markdown:
16:16 dalek MoarVM: [docs] grammar fix
16:16 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/4bafb0a602
16:16 jnthn yay
16:16 masak \o/
16:23 vmspb joined #moarvm
16:42 pmichaud I'd be okay with  --with-apr=gen   then, where "gen" means download an appropriate version of apr
16:43 jnthn pmichaud: You really want it out of the repo? :)
16:44 pmichaud out of the main repo, yes.
16:44 jnthn ok
16:44 pmichaud I'm thinking we should handle 3rdparty libs similar to how we currently handle parrot/nqp in nqp/rakudo
16:44 pmichaud i.e., if you have it, use it, otherwise fetch from a known location and build real quick
16:50 Guest1337 joined #moarvm
16:56 pmichaud but somehow I feel like --gen-apr is more consistent with --gen-parrot and --gen-nqp
17:02 FROGGS true
17:03 jnthn Works for me.
17:30 tomyan joined #moarvm
17:31 pmichaud also, --gen-apr might even allow for version specifiers, similar to what we do with the other --gen-*'s
17:44 FROGGS yeah, good point
17:44 FROGGS I'll look into it these days
17:45 jnthn ++FROGGS
17:48 FROGGS I made an issue: https://github.com/MoarVM/MoarVM/issues/2
17:50 colomon github down again?  I got a unicorn with that link, and now ... nope, third try worked to pull my source.
17:52 colomon still get a unicorn for FROGGS issue...
17:54 FROGGS O.o
17:54 FROGGS everything fine for me
17:55 masak github keeps coming and going, it seems.
17:59 BrowserUk left #moarvm
18:08 colomon joined #moarvm
18:30 FROGGS joined #moarvm
20:08 BrowserUk joined #moarvm
20:10 BrowserUk left #moarvm
20:11 timotimo i'm still getting a segfault when trying to --gen-nqp
20:11 jnthn timotimo: Do you have an old install hanging around?
20:12 timotimo might be, yes
20:12 timotimo well, very probably
20:12 timotimo can i use rak-jvm-support for regular parrot rakudo?
20:13 jnthn timotimo: You can build a Parrot Rakudo provided you use the jvm-support branch of Rakudo
20:13 jnthn I'm gonna try and get these merged soon
20:14 timotimo neat.
20:57 tomyan joined #moarvm
20:58 eiro joined #moarvm
20:59 eiro hello everyone
20:59 colomon o/
20:59 arnsholt joined #moarvm
21:09 jnthn o/
21:23 dalek MoarVM: 1b4bd2d | (Marc Chantreux)++ | .gitignore:
21:23 dalek MoarVM: git ignore tags file
21:23 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/1b4bd2d581
21:23 dalek MoarVM: 74e2c80 | (Marc Chantreux)++ | build/Config/APR.pm:
21:23 dalek MoarVM: build the apr lib even in linux
21:23 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/74e2c80b07
21:23 dalek MoarVM: eca8ac5 | jonathan++ | / (2 files):
21:23 dalek MoarVM: Merge pull request #3 from eiro/master
21:23 dalek MoarVM:
21:23 dalek MoarVM: now compile under linux
21:23 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/eca8ac507c
21:30 Guest1337 joined #moarvm
22:09 BrowserUk joined #moarvm
22:18 Guest1337 joined #moarvm
22:29 labster joined #moarvm
22:29 tomyan joined #moarvm
23:02 BrowserUk left #moarvm
23:05 timotimo it seems i had to get a newer parrot to make the nqp cross compiler compile
23:05 timotimo er, make nqp compile
23:18 colomon joined #moarvm
23:34 FROGGS joined #moarvm
23:42 japhb_ joined #moarvm

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