#jython IRC Log (v0.9)

Index

IRC Log for 2015-09-24

Timestamps are in GMT/BST.

[0:00] * gopar (~gopar@xnat-55.csumb.edu) Quit (Quit: Leaving)
[0:51] * xemdetia (xemdetia@nat/ibm/x-ayfzsfjrcpqgnqqc) Quit (Ping timeout: 255 seconds)
[0:58] * gopar (~gopar@c-73-162-171-146.hsd1.ca.comcast.net) has joined #jython
[3:28] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 265 seconds)
[3:42] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[4:10] * dew3y (U2FsdGVkX1@ma.sdf.org) has joined #jython
[4:14] * dew3y is now known as betsyro
[4:41] * betsyro is now known as betsyro_
[4:42] * betsyro_ is now known as betsyro_dev
[4:42] * betsyro_dev is now known as betsyro_dev_
[4:56] * betsyro_dev_ (U2FsdGVkX1@ma.sdf.org) Quit (Remote host closed the connection)
[4:56] * dew3y (U2FsdGVkX1@ma.sdf.org) has joined #jython
[5:05] * dew3y (U2FsdGVkX1@ma.sdf.org) Quit (Remote host closed the connection)
[5:25] * dew3y (U2FsdGVkX1@ma.sdf.org) has joined #jython
[5:32] * dew3y (U2FsdGVkX1@ma.sdf.org) Quit (Remote host closed the connection)
[5:33] * dew3y (U2FsdGVkX1@ma.sdf.org) has joined #jython
[5:39] * dew3y is now known as betsyro_proto
[5:40] * betsyro_proto is now known as betsyro_proto_
[5:41] * betsyro_proto_ (U2FsdGVkX1@ma.sdf.org) Quit (Remote host closed the connection)
[5:41] * cyraxjoe (~joe@189.224.180.33) Quit (Ping timeout: 244 seconds)
[5:41] * dew3y (U2FsdGVkX1@ma.sdf.org) has joined #jython
[6:16] * cyraxjoe (~joe@189.224.168.231) has joined #jython
[7:17] * pycer (~pycer@unaffiliated/pycer) has joined #jython
[7:17] * pycer (~pycer@unaffiliated/pycer) has left #jython
[7:25] * gopar (~gopar@c-73-162-171-146.hsd1.ca.comcast.net) Quit (Remote host closed the connection)
[10:33] * will_f (~will_f@unaffiliated/will-f/x-7960964) has joined #jython
[13:14] * will_f (~will_f@unaffiliated/will-f/x-7960964) Quit (Quit: Leaving)
[13:31] * xemdetia (xemdetia@nat/ibm/x-bvsukvdmidvgzbxm) has joined #jython
[14:23] * sanbor (~sanbor@181.229.96.120) has joined #jython
[14:23] <sanbor> hello there
[14:24] <sanbor> we recently added Jython to our project and it added like 3 seconds of startup time
[14:25] <sanbor> we did some profiling and looks like it's waiting in some condition
[14:26] <sanbor> is there some reason of why the interpreter is it doing so much work on startup?
[14:26] <sanbor> looks like it's parsing Python source code
[14:27] <sanbor> I was hoping that what they would do is just load the .class file inside the .jar
[16:23] * cyraxjoe (~joe@189.224.168.231) Quit (Ping timeout: 244 seconds)
[16:24] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 244 seconds)
[16:24] * ohumbel (5390f784@gateway/web/freenode/ip.83.144.247.132) Quit (Quit: Page closed)
[16:24] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[16:24] * ohumbel (5390f784@gateway/web/freenode/ip.83.144.247.132) has joined #jython
[16:27] * cyraxjoe (~joe@189.157.190.91) has joined #jython
[16:29] <sanbor> if I remove the .py files from the Jython jar, it doesn't even bother to load the .class files, it want's the .py
[16:29] <sanbor> why there are .class files in the jar if only cares about the .py?
[16:31] <xemdetia> sanbor, you should share how you are invoking jython
[16:31] <xemdetia> I don't think the usual helpful people really can understand how you are building it
[16:32] * cyraxjoe (~joe@189.157.190.91) Quit (Ping timeout: 240 seconds)
[16:33] <sanbor> I'm adding the jython-standalone-2.7.0.jar jar to the classpath
[16:33] <sanbor> then instantiating the jython interpreter
[16:34] * cyraxjoe (~joe@189.183.248.71) has joined #jython
[16:34] <xemdetia> and when is the delay happening? is it happening before you activate the jython interpreter?
[16:34] <sanbor> the way they explain here http://www.jython.org/jythonbook/en/1.0/JythonAndJavaIntegration.html
[16:35] <sanbor> it is happening during the activation of the python interpreter
[16:36] <sanbor> during the execution of PythonInterpreter interp = new PythonInterpreter();
[16:39] * cyraxjoe (~joe@189.183.248.71) Quit (Ping timeout: 264 seconds)
[16:40] * cyraxjoe (~joe@189.183.81.100) has joined #jython
[16:42] <sanbor> and an stack trace shows that Jython is parsing a bunch of py files, when it should use the .class in the jar
[16:42] <sanbor> it already has compiled versions of that .py files
[16:43] <xemdetia> well I don't think that's how it works
[16:44] <xemdetia> brb
[16:46] * sanbor (~sanbor@181.229.96.120) Quit (Ping timeout: 240 seconds)
[17:18] * sanbor (~sanbor@181.229.96.120) has joined #jython
[17:48] * gopar (~gopar@c-73-162-171-146.hsd1.ca.comcast.net) has joined #jython
[18:22] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 250 seconds)
[18:35] <xemdetia> sanbor, you might want to experiment with -Dpython.import.site=false
[18:35] <xemdetia> that seems to improve the behaviour
[18:35] <xemdetia> a import sys print('hello') sys.exit(0)
[18:36] <xemdetia> with -S (equivalent option passed through python) real 0m2.015s without -S real 0m4.191s
[18:37] <xemdetia> this prevents jython from trying to scan the host for other installed python packages that could be configured
[18:46] <xemdetia> or at least
[18:46] <xemdetia> better behaviour to what you are trying to do
[19:20] * sanbor (~sanbor@181.229.96.120) Quit (Ping timeout: 240 seconds)
[19:47] * cyraxjoe (~joe@189.183.81.100) Quit (Ping timeout: 264 seconds)
[19:49] * cyraxjoe (~joe@189.224.154.113) has joined #jython
[20:39] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[20:39] * ChanServ sets mode +o Arfrever
[21:41] * ztane (ztane@lakka.kapsi.fi) Quit (Ping timeout: 250 seconds)
[21:41] * ztane (ztane@2001:1bc8:1004:0:21e:bff:fe72:c12d) has joined #jython
[21:47] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[22:10] * ztane (ztane@2001:1bc8:1004:0:21e:bff:fe72:c12d) Quit (Ping timeout: 250 seconds)
[22:17] * ztane (ztane@lakka.kapsi.fi) has joined #jython
[22:42] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Quit: Konversation terminated!)
[22:42] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[22:43] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Client Quit)
[23:00] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[23:01] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Client Quit)
[23:01] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[23:30] * gopar (~gopar@c-73-162-171-146.hsd1.ca.comcast.net) Quit (Remote host closed the connection)
[23:47] * xemdetia (xemdetia@nat/ibm/x-bvsukvdmidvgzbxm) Quit (Ping timeout: 240 seconds)
[23:56] * ztane (ztane@lakka.kapsi.fi) Quit (Ping timeout: 240 seconds)
[23:58] * ztane (ztane@lakka.kapsi.fi) has joined #jython

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).