Camelia, the Perl 6 bug

IRC log for #bioclipse, 2009-11-16

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

All times shown according to UTC.

Time Nick Message
08:09 Gpox joined #bioclipse
08:15 mgerlich joined #bioclipse
08:33 sneumann__ joined #bioclipse
08:52 jonalv joined #bioclipse
08:52 jonalv moin
08:52 zarah privet jonalv
09:25 Titou0612 joined #bioclipse
09:54 egonw joined #bioclipse
10:55 samuell joined #bioclipse
11:02 Gpox joined #bioclipse
11:12 Titou0612 joined #bioclipse
11:52 masak joined #bioclipse
11:52 masak ahoj!
11:56 samuell tjohej!
11:59 masak I'm on vacation! :)
12:11 samuell (Oh... lucky you! :) )
12:11 masak I will still have fairly high IRC presence. at least until I leave for Latvia.
12:33 sneumann__ joined #bioclipse
13:04 ChanServ joined #bioclipse
13:07 egonw joined #bioclipse
13:14 ChanServ joined #bioclipse
13:18 ChanServ joined #bioclipse
13:51 Gpox joined #bioclipse
13:59 Titou0612 left #bioclipse
14:45 ChanServ joined #bioclipse
15:01 ChanServ joined #bioclipse
15:01 samuell joined #bioclipse
15:02 samuell (Oops, seems I forgot to log on again after accidentally closing my IRC-Cli)
15:02 samuell I got a question regarding manager methods:
15:03 samuell Is there any problems taking arguments in this way:
15:03 samuell queryProlog( String prologFunction, String[] prologArguments )
15:03 samuell (Manager method)
15:03 samuell And how would you call such a method from the JS console?
15:03 jonalv samuell: yes from JavaScript there is a problem with a creating a Java array
15:04 samuell Ah, Ok... I guess that's what I'm experiencing right now...
15:04 jonalv samuell: yes, groovy would have made things easier...
15:05 samuell Hmmm, then, what about:
15:05 samuell queryProlog( String[] prologArguments ) )
15:05 samuell queryProlog( String[] prologArguments )
15:05 jonalv samuell: have you managed to create a JavaScript array of Strings_
15:05 samuell Well, I tried
15:05 samuell var prologArgs = [ "126.7", "127.0", "[13C]", "Title" ];
15:05 samuell But I can't get it to work...
15:06 jonalv &me wonders how that thing looks when it reaches Java...
15:06 samuell http://bioclipse.pastebin.com/m20a6901c
15:06 zarah samuell's link is also http://tinyurl.com/y8e4oeb
15:07 jonalv seems you ahve stumbled upon another bug there...
15:07 samuell Ok... yeah, well it seems it doesn't find the correct signature, right?
15:07 jonalv well you shouldn't
15:07 samuell Or something else...
15:08 samuell Ok?
15:08 jonalv It would be intresting to see if it is possible to write a Java method that takes a JavaScript array as input though
15:08 samuell Yeah, it would be very useful
15:09 jonalv the Java type String[] is not the same as what you get from var v = ["s", "t"] in JavaScript
15:10 samuell IC
15:11 samuell Thanks... I'll see if I can solve it some other way for the moment... but I really quite much would need to be able to send differing numbers of arguments
15:12 jonalv samuell: yea try to find out if the JavaScript array get's translated into some Java class when it is sent into Java
15:14 samuell jonalv: Yeah... sounds like a good hint
15:14 samuell Thanks
15:14 samuell jonalv++
15:17 jonalv git pull
15:17 jonalv "fatal: Where do you want to fetch from today?"
15:17 jonalv lol
15:17 jonalv git++
15:18 samuell :)
15:20 samuell jonalv: You know what.... the following works:
15:20 samuell var prologArgs = [ "hasShiftRange", "126.7", "127.0001", "[13C]", "Title" ];
15:20 samuell blipkit.queryProlog( prologArgs );
15:21 samuell With the java method:
15:21 samuell queryProlog( String[] args )
15:21 jonalv samuell: that's cool
15:21 jonalv samuell: but now I am confused I thought you said that didn't work
15:22 samuell It didn't work whan sending one String and one String[]
15:22 samuell Like so:
15:22 samuell queryProlog( String prologFunction, String[] prologArguments )
15:22 samuell A bit strange....
15:23 jonalv yea could be something with varagrs bug I can't see what and how
15:23 jonalv (which btw probably is something you want to use)
15:23 samuell Ok... varargs?
15:24 * jonalv hopes he dropeed the right name now...
15:24 samuell Yeah... it seems so ( http://java.sun.com/j2se/1.5.0/d​ocs/guide/language/varargs.html )
15:24 zarah samuell's link is also http://tinyurl.com/35zxnj
15:24 jonalv google java varargs
15:24 zarah jonalv: http://java.sun.com/j2se/1.5.0/d​ocs/guide/language/varargs.html
15:24 samuell Yep :)
15:24 samuell Thanks
15:25 jonalv samuell: I don't know if JavaScript (rhino) will hadnle that though.
15:25 samuell Ok
15:26 samuell Well... I will do quite good with this last solution too (sending all args in an array)
15:27 samuell Will check varargs though... in case it can make things even nicer
16:19 Gpox joined #bioclipse
16:38 dsurdyk joined #bioclipse
18:48 samuell Strange... a function which runs successfully when run from the JS console, gets a lot of
18:48 samuell ERROR: Out of (null) stack (ungraceful overflow)
18:48 samuell error when run from inside a JS file.
18:59 samuell No, the problem seems to be if switching between executing things in the JS console and from a JS file.
18:59 samuell I can start in either of them, and continue... but if I then do the same thing in the other one, Bioclipse crashes with the error:
18:59 samuell ERROR: Out of (null) stack (ungraceful overflow)ERROR: Out of (null) stack (ungraceful overflow)ERROR: ...
19:00 * samuell got to eat some Lunch/Dinner now
19:09 * samuell is eating dinner at my desk
19:27 samuell Are the JS console, and the execution of JS files, done in the same thread?
19:28 samuell Ok... will have to save this question for tomorrow.
20:01 CIA-53 bioclipse.blipkit: Samuel Lampa master * r4b4d646 / (3 files): Started work on queryProlog method that takes any number of arguments - http://bit.ly/9OlMc
20:01 CIA-53 bioclipse.blipkit: Samuel Lampa master * r4b4d646 / (3 files): Started work on queryProlog method that takes any number of arguments - http://bit.ly/9OlMc
20:36 samuell Hmm... my CIA service hook at github doesn't seem to work automatically ... only works when I click "test service"
21:04 * samuell goes home
21:36 dsurdyk left #bioclipse

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