Camelia, the Perl 6 bug

IRC log for #moarvm, 2013-07-31

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

All times shown according to UTC.

Time Nick Message
00:18 benabik joined #moarvm
01:12 FROGGS_ joined #moarvm
02:46 dalek MoarVM/readlineintfh2: cd6f2d5 | jimmy++ | / (10 files):
02:46 dalek MoarVM/readlineintfh2: added Windows-compatible version of linenoise, and so updated to newest linenoise. Now it works on Windows.
02:46 dalek MoarVM/readlineintfh2:
02:46 dalek MoarVM/readlineintfh2: NOTE: refreshMultiLine() didn't work on Windows yet, but we don't need this future now.
02:46 dalek MoarVM/readlineintfh2: review: https://github.com/MoarVM/MoarVM/commit/cd6f2d50af
02:50 JimmyZ ^^ I didn't test on linux, I have no linux box :-)
02:53 dalek MoarVM/readlineintfh2: 95975f4 | jimmy++ | nqp-cc/nqp-src/NQPHLL.nqp:
02:53 dalek MoarVM/readlineintfh2: uncomment more code in NQPHLL.nqp
02:53 dalek MoarVM/readlineintfh2: review: https://github.com/MoarVM/MoarVM/commit/95975f42fe
03:00 dalek MoarVM/readlineintfh2: 1085cd2 | jimmy++ | 3rdparty/linenoise/linenoise.c:
03:00 dalek MoarVM/readlineintfh2: small fixes
03:00 dalek MoarVM/readlineintfh2: review: https://github.com/MoarVM/MoarVM/commit/1085cd288e
03:11 dalek MoarVM/readlineintfh: 10b0f88 | jimmy++ | / (2 files):
03:11 dalek MoarVM/readlineintfh: small fixes
03:11 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/10b0f8820e
03:18 dalek MoarVM/readlineintfh: 0f03de9 | jimmy++ | 3rdparty/linenoise/ (3 files):
03:18 dalek MoarVM/readlineintfh: added linenoise to 3rdparty
03:18 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/0f03de90e8
03:18 dalek MoarVM/readlineintfh: 3d868dd | jimmy++ | / (7 files):
03:18 dalek MoarVM/readlineintfh: added readlineintfh op
03:18 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/3d868dd69d
03:18 dalek MoarVM/readlineintfh: 355a98f | jimmy++ | src/io/fileops.c:
03:18 dalek MoarVM/readlineintfh: small refactor, FROGGS++
03:18 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/355a98fb2e
03:18 dalek MoarVM/readlineintfh: cd6f2d5 | jimmy++ | / (10 files):
03:18 dalek MoarVM/readlineintfh: added Windows-compatible version of linenoise, and so updated to newest linenoise. Now it works on Windows.
03:18 dalek MoarVM/readlineintfh:
03:18 dalek MoarVM/readlineintfh: NOTE: refreshMultiLine() didn't work on Windows yet, but we don't need this future now.
03:18 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/cd6f2d50af
03:24 dalek MoarVM/readlineintfh2: 02ac1ba | jimmy++ | / (2 files):
03:24 dalek MoarVM/readlineintfh2: small fixes
03:24 dalek MoarVM/readlineintfh2: review: https://github.com/MoarVM/MoarVM/commit/02ac1ba31a
03:45 crab2313 joined #moarvm
03:59 crab2313 joined #moarvm
04:40 diakopter JimmyZ: how much ram do you have? you an use virtualbox to install linux
04:40 diakopter or vmware player
04:41 diakopter vmware player is generally better
04:45 birdwindupbird joined #moarvm
04:50 JimmyZ diakopter: I have a virtualbox, didn't set up moarvm yet
05:05 dalek MoarVM/readlineintfh: d4eed58 | jimmy++ | / (2 files):
05:05 dalek MoarVM/readlineintfh: small fixes
05:05 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/d4eed58efc
05:07 JimmyZ ok, now it builds no linux
05:10 JimmyZ https://gist.github.com/zhuomingliang/6119449 , if anyone wants to test on linux
05:10 JimmyZ :P
05:41 JimmyZ s/no/on/
06:33 dalek MoarVM/readlineintfh2: 6144dc5 | jimmy++ | / (2 files):
06:33 dalek MoarVM/readlineintfh2: small fixes
06:33 dalek MoarVM/readlineintfh2: review: https://github.com/MoarVM/MoarVM/commit/6144dc558a
06:35 JimmyZ readline now works well with ctrl+key on windows :-)
07:25 FROGGS[mobile] joined #moarvm
07:42 FROGGS joined #moarvm
07:59 FROGGS gmorning #moarvm
08:00 dalek MoarVM/readlineintfh: a854226 | jimmy++ | / (2 files):
08:00 dalek MoarVM/readlineintfh: small fixes
08:00 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/a854226e4f
08:01 FROGGS JimmyZ++ # \o/
08:01 JimmyZ FROGGS: good moarning
08:01 FROGGS *g*
08:01 JimmyZ FROGGS: please test on linux if you have time, https://gist.github.com/zhuomingliang/6119449
08:02 JimmyZ It works pretty well on windows now
08:03 FROGGS sure, I will
08:19 odc joined #moarvm
08:52 FROGGS JimmyZ: there are just one/two minor issues
08:53 FROGGS 1) it crashes when doing CTRL+c
08:53 FROGGS 2) it does funny things when you type a tab
08:53 FROGGS when you then press the up-key, the blinking cursor has the size of a tab
08:54 FROGGS and if you type chars before a tab, it displays these chars after the tab too, when you press enter then, it doesnt display these chars at all
08:54 JimmyZ FROGGS: weird, I din't change any code on linux
08:55 JimmyZ FROGGS: could you change linenoise.c to the original one and try again?
08:56 FROGGS sure
08:59 FROGGS JimmyZ: it does the same
09:02 JimmyZ FROGGS: so not me break it
09:02 FROGGS nope
09:02 JimmyZ FROGGS: actually windows ver is aslo broken
09:02 FROGGS looks like linenoise is not well maintained when looking at the github repo
09:03 JimmyZ FROGGS: I fixed it
09:09 FROGGS are you going to push this upstream?
09:09 JimmyZ nope
09:09 JimmyZ there are two upstream
09:09 JimmyZ one for lua and one for redis on windows
09:09 FROGGS ohh
09:10 JimmyZ maybe one for linenoise itself too...
09:11 JimmyZ FROGGS: feel free to push to these there upstreams :P
09:11 JimmyZ *three
09:11 FROGGS I'd thought about linenoise itself
09:11 JimmyZ FROGGS: yeah, that's better
09:12 FROGGS would be nice to have tests for it though
09:12 JimmyZ yeah
09:13 FROGGS would that work that you open something like "nqp -e" as a pipe in, say Perl 5, and do some "real testing" there?
09:14 * JimmyZ doesn't know
09:14 FROGGS k
09:15 JimmyZ E:\opensource\MoarVM\nqp-cc>echo sdfsdf | nqp nqp-moar-cc.nqp test.nqp
09:15 JimmyZ sdfsdf
09:16 JimmyZ works well
09:22 FROGGS cool
09:22 FROGGS and it doesnt segfault for you at the end?
09:23 JimmyZ it doesn't
09:31 JimmyZ badthing is that I don't know how to decode GBK encoding
09:32 JimmyZ so I can't type chinese in readline
09:32 FROGGS well, I can't either :P
09:33 JimmyZ maybe someday I will steal ideas from mb_* function in PHP
09:35 JimmyZ FROGGS: could you try press esc and see whether it will be segfault?
09:36 FROGGS ESC does nothing
09:36 JimmyZ ok
09:45 crab2313 joined #moarvm
10:34 crab2313 joined #moarvm
11:00 yoleaux joined #moarvm
12:06 benabik joined #moarvm
13:13 ggoebel joined #moarvm
13:54 crab2313 joined #moarvm
13:59 JimmyZ FROGGS: looks like there is segfault when I press ctrl+c on win32 also, I got in the the msvc debugger
14:01 FROGGS JimmyZ: I think that is because ctrl+c isnt catched ba isnull and !defined, and then dies when attempting to print it
14:03 JimmyZ FROGGS: I don't think so, I press ctrl+s, noting happend
14:03 JimmyZ nothing
14:04 JimmyZ ctrl-c is system interrupt
14:04 FROGGS comment out the nqp::say($code)
14:04 FROGGS it acts like pressing enter then
14:04 FROGGS (on my box)
14:05 JimmyZ comment out also segfault
14:05 FROGGS hmmm
14:16 dalek MoarVM/readlineintfh: 5300215 | jimmy++ | 3rdparty/linenoise/linenoise.c:
14:16 dalek MoarVM/readlineintfh: added support for HOME and END keys and prevent duplicate consecutive lines,
14:16 dalek MoarVM/readlineintfh: originally the patch is from Dvir Volk, see https://github.com/antirez/linenoise/pull/21
14:16 dalek MoarVM/readlineintfh:
14:16 dalek MoarVM/readlineintfh: also added ctrl-r search for linenoise,
14:16 dalek MoarVM/readlineintfh: originally the patch is from Jalil Karimov, see https://github.com/antirez/linenoise/pull/29
14:16 dalek MoarVM/readlineintfh: I changed it starting from last line, also added Windows support for ctrl-r
14:16 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/530021532e
14:16 JimmyZ ^^ You will like it :P
14:17 FROGGS :o)
14:17 FROGGS JimmyZ++
14:24 JimmyZ it really good, we almost don't need readline lib any more.
14:35 dalek MoarVM/readlineintfh: 846a227 | jimmy++ | 3rdparty/linenoise/linenoise.c:
14:35 dalek MoarVM/readlineintfh: make some function static
14:35 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/846a227356
15:36 JimmyZ FROGGS: I think I know why it segfault
15:38 JimmyZ FROGGS: it needs add signal/sigaction to catch SIGINT
15:39 FROGGS aha, okay
15:41 JimmyZ I'm not sure, for windows see http://msdn.microsoft.com/en-us/library/w​indows/desktop/ms682541%28v=vs.85%29.aspx
16:12 dalek MoarVM/readlineintfh: 40ad29c | jimmy++ | 3rdparty/linenoise/linenoise.c:
16:12 dalek MoarVM/readlineintfh: fixed win32 segfault when press ctrl-c
16:12 dalek MoarVM/readlineintfh: review: https://github.com/MoarVM/MoarVM/commit/40ad29cf6b
16:16 JimmyZ FROGGS: I got a patch to fix linux segfault
16:16 JimmyZ FROGGS: pull lastest commit , and try
16:17 JimmyZ -    raw.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG);
16:17 JimmyZ +    raw.c_lflag &= ~(ECHO | ICANON | IEXTEN);
16:17 JimmyZ good night
16:17 FROGGS gnight
16:17 FROGGS will do when I am at home
16:22 diakopter howdy channel
16:23 benabik diakopter: greetings and salutations
18:18 Alpha64 joined #moarvm
18:21 FROGGS joined #moarvm
18:25 Alpha64_ joined #moarvm
19:21 Alpha64 joined #moarvm
19:25 Guest1337 joined #moarvm
20:12 colomon joined #moarvm
20:20 FROGGS joined #moarvm
20:42 benabik joined #moarvm
20:48 benabik joined #moarvm
22:11 benabik joined #moarvm
23:13 benabik joined #moarvm
23:24 FROGGS JimmyZ: it works with the patch you gave me:
23:24 FROGGS <JimmyZ> -    raw.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG);
23:24 FROGGS <JimmyZ> +    raw.c_lflag &= ~(ECHO | ICANON | IEXTEN);
23:25 FROGGS and now it even displays something when pressing ESC
23:25 FROGGS "it works" means that ctrl+c shuts it down properly
23:25 FROGGS ohh, but up/down doesnt work anymore
23:27 FROGGS hmmm, actually that pasted patch doesnt matter..., I have the same behaviour with latest HEAD

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