#jython IRC Log


IRC Log for 2013-10-01

Timestamps are in GMT/BST.

[0:20] * lheuer1 (~Adium@f048098187.adsl.alicedsl.de) has joined #jython
[0:22] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 240 seconds)
[2:42] * lheuer1 (~Adium@f048098187.adsl.alicedsl.de) Quit (Quit: Leaving.)
[3:57] * sinistersnare is now known as sinsnare|zzZZzz
[5:26] * osc (~oscar@80-62-162-242-static.dk.customer.tdc.net) has joined #jython
[5:47] * lheuer (~Adium@f048098187.adsl.alicedsl.de) has joined #jython
[5:47] * lheuer (~Adium@f048098187.adsl.alicedsl.de) Quit (Changing host)
[5:47] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[5:51] * Oti (~ohumbel@adsl-84-227-111-222.adslplus.ch) Quit (Quit: Oti)
[5:54] * osc (~oscar@80-62-162-242-static.dk.customer.tdc.net) Quit (Ping timeout: 240 seconds)
[6:02] * rafau (ca81508a@gateway/web/freenode/ip. has joined #jython
[6:58] * osc (~oscar@ has joined #jython
[7:17] * ciziar (~textual@hd5b912b5.seluldx.dyn.perspektivbredband.net) has joined #jython
[7:18] * rafau (ca81508a@gateway/web/freenode/ip. Quit (Ping timeout: 250 seconds)
[8:41] * osc (~oscar@ Quit (Ping timeout: 260 seconds)
[8:51] * peke (peke@kapsi.fi) has joined #jython
[8:52] <peke> does anyone know why importing unicodedata takes ages? i have fairly powerfull machine and it's still two seconds:
[8:53] <peke> >>> import time
[8:53] <peke> >>> start = time.time(); import unicodedata; print time.time() - start
[8:53] <peke> 2.01700019836
[8:53] <peke> >>> start = time.time(); import re; print time.time() - start
[8:53] <peke> 0.0469999313354
[8:53] * osc (~oscar@ has joined #jython
[9:07] * purplefox (~purplefox@host-80-43-252-143.as13285.net) Quit (Quit: Leaving)
[9:10] * purplefox (~purplefox@host-80-43-252-143.as13285.net) has joined #jython
[9:35] * ciziar (~textual@hd5b912b5.seluldx.dyn.perspektivbredband.net) Quit (Quit: Computer has gone to sleep.)
[10:17] * osc (~oscar@ Quit (Ping timeout: 248 seconds)
[10:43] <vext01> hello
[11:08] <vext01> jimbaker: around?
[11:08] <vext01> i have tried the double interpreter approach we deiscussed
[11:09] * fluxdude (~fluxdude@unaffiliated/fluxdude) has joined #jython
[11:25] * osc (~oscar@80-62-162-242-static.dk.customer.tdc.net) has joined #jython
[11:33] <topi`> hi, is this something that Jython starts by default:
[11:33] <topi`> SEVERE: The web application [/mysite] appears to have started a thread named [weakref reaper] but has failed to stop it. This is very likely to create a memory leak.
[11:33] <topi`> I have no idea what "weakref reaper" might be
[11:47] <topi`> jimbaker: I tried "java UseClamped" .. but...
[11:47] <topi`> Exception in thread "main" java.lang.NoClassDefFoundError: org/python/core/PyProxy at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
[12:10] * lopex (uid4272@gateway/web/irccloud.com/x-rswfmskzthtntbrh) Quit (Ping timeout: 245 seconds)
[13:08] * mcurve (~quassel@ Quit (Read error: Connection reset by peer)
[13:11] * mcurve (~quassel@pop.nakinasystems.com) has joined #jython
[13:13] <jimbaker> peke, i know because i wrote unicodedata as a stopgap
[13:13] <jimbaker> currently it just parses the actual unicodedata text file, in python, because java 5 didn't have full support
[13:14] <jimbaker> someone should fix that since i believe it's all in java 6 or at the very least 7
[13:18] <jimbaker> topi`, that reaper thread is about closing resources. we should stop it however when the servlet is unloaded
[13:18] <vext01> jimbaker: it works btw
[13:18] <jimbaker> a bug is in order for that
[13:20] <vext01> the only thig that caught me out is that the interpreters share sys.argv
[13:20] <jimbaker> topi`, stop as in, provide some mechanism for the thread to be quietly waken and allowed to terminate
[13:20] <jimbaker> vext01, but you should be able to specify your own PySystemState if you want
[13:21] <vext01> ah i see
[13:21] <vext01> yes, i might do that
[13:21] <vext01> so thanks for the suggestion of double interpreting, made my life easier
[13:22] <jimbaker> vext01, np, i thought it would be to share this nice technique
[13:24] <jimbaker> vext01, so look at PySystemState#initialize - you get to build as desired
[13:24] <vext01> ah, that may not work actually
[13:24] <vext01> i tried using this
[13:24] <vext01> the sys.argv argument seemed to be ignored
[13:25] <vext01> presumably since it need to be called prior to instantiation of the first python interpreter
[13:25] <vext01> (probably is called in jython someplace)
[13:27] <vext01> hrm
[13:27] <vext01> i should be able to catch Java exception in Python?
[13:27] <vext01> the obvious way does not seem to work
[13:29] <vext01> lies
[13:29] <vext01> ignore me
[13:30] * kral|off is now known as kral
[14:09] * lopex (uid4272@gateway/web/irccloud.com/x-hnhlpcdhwppzdljz) has joined #jython
[14:18] * lopex (uid4272@gateway/web/irccloud.com/x-hnhlpcdhwppzdljz) Quit (Ping timeout: 240 seconds)
[14:44] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[14:53] * lopex (uid4272@gateway/web/irccloud.com/x-escfrztwjoqmtdbm) has joined #jython
[15:42] * sinistersnare (cddef8b0@gateway/web/cgi-irc/kiwiirc.com/ip. has joined #jython
[15:51] * Oti (~ohumbel@adsl-84-227-111-222.adslplus.ch) has joined #jython
[15:54] * osc (~oscar@80-62-162-242-static.dk.customer.tdc.net) Quit (Ping timeout: 248 seconds)
[16:09] * kral is now known as kral|off
[16:27] * sinistersnare (cddef8b0@gateway/web/cgi-irc/kiwiirc.com/ip. Quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[16:33] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[16:55] * ciziar (~textual@hd5b912b5.seluldx.dyn.perspektivbredband.net) has joined #jython
[16:56] * fluxdude (~fluxdude@unaffiliated/fluxdude) Quit (Quit: fluxdude)
[17:05] * mritz (~textual@ has joined #jython
[17:20] <jimbaker> vext01, PySystemState#initialize is static, but you should just be able to set argv as desired
[17:21] <jimbaker> you just need to do this after the initialization presumably
[17:22] * ciziar (~textual@hd5b912b5.seluldx.dyn.perspektivbredband.net) Quit (Ping timeout: 241 seconds)
[17:25] * sinistersnare (cddef8b0@gateway/web/cgi-irc/kiwiirc.com/ip. has joined #jython
[17:28] <vext01> jimbaker: http://paste.pound-python.org/show/AS7SrzkaPzl0RStKOcGQ/
[17:29] <vext01> i guess not
[17:29] <vext01> "Initializes the Jython runtime. This should only be called once, before any other Python objects (including PythonInterpreter) are created."
[17:30] <vext01> so once Jython is run, it's too late i reckon
[17:46] <jimbaker> vext01, http://paste.pound-python.org/show/1GLG11001xyDHTmBTyNz/
[17:46] <jimbaker> (gist is currently down)
[17:46] <jimbaker> so just a question of passing a desired PySystemState, then setting its argv separately
[17:47] <jimbaker> i could of course have retained a ref to this new PySystemState, but i'm accessing through PythonInterpreter since i'm not respecting accessibility
[17:47] <vext01> ah i seeee
[17:47] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[18:04] <vext01> jimbaker: thanks
[18:11] * sinistersnare (cddef8b0@gateway/web/cgi-irc/kiwiirc.com/ip. Quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[18:57] <vext01> jimbaker: funny side effect, -m pdb gives a trace of the host vm, not the embedded one :P
[18:57] <vext01> doh!
[19:22] * ivan` (~ivan@unaffiliated/ivan/x-000001) Quit (Ping timeout: 264 seconds)
[19:24] * Rondom (~rondom@2a01:488:66:1000:b24d:4f2f:0:1) Quit (Quit: No Ping reply in 180 seconds.)
[19:30] * JythonLogBot disconnected - trying to reconnect...
[19:30] -brooks.freenode.net- *** Looking up your hostname...
[19:30] -brooks.freenode.net- *** Checking Ident
[19:30] -brooks.freenode.net- *** No Ident response
[19:30] -brooks.freenode.net- *** Couldn't look up your hostname
[21:53] -barjavel.freenode.net- *** Looking up your hostname...
[21:53] -barjavel.freenode.net- *** Checking Ident
[21:53] -barjavel.freenode.net- *** No Ident response
[21:53] -barjavel.freenode.net- *** Couldn't look up your hostname
[21:53] * JythonLogBot (~PircBot@ has joined #jython
[21:53] * Topic is 'Try Jython 2.7b1 at http://tinyurl.com/d4s8qvd | This channel is logged: http://jython.extreme.st/irclogs/ | Please update the wiki: http://wiki.python.org/jython | Jython Book: http://jythonbook.com | Podcast: http://jython.org/jythonpodcast/'
[21:53] * Set by Juneau001!~Juneau@50-45-119-204.dklb.il.frontiernet.net on Tue Feb 12 23:33:36 UTC 2013
[21:53] -barjavel.freenode.net- [freenode-info] if you're at a conference and other people are having trouble connecting, please mention it to staff: http://freenode.net/faq.shtml#gettinghelp
[22:02] * mritz (~textual@ has left #jython
[22:18] * fwierzbicki1 (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) has joined #jython
[22:20] * fwierzbicki (~Adium@2600:1010:b01e:b794:c76:e7e3:2a70:b544) Quit (Ping timeout: 264 seconds)
[22:28] * ciziar (~textual@ has joined #jython
[22:32] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[22:45] * ciziar (~textual@ Quit (Quit: Computer has gone to sleep.)
[22:50] <sinsnare|zzZZzz> ok i figured how i can run the benchmarks
[22:50] <sinsnare|zzZZzz> so lets get cracking!
[22:50] * sinsnare|zzZZzz is now known as sinistersnare
[22:59] * fluxdude (~fluxdude@unaffiliated/fluxdude) has joined #jython
[23:15] * osc (~oscar@80-62-162-242-static.dk.customer.tdc.net) Quit (Read error: Operation timed out)
[23:44] <sinistersnare> ugh i still cant figure this out. im so close to importing the right package! i lead up to it, but when i import it, then call a 'print globals()' all i get is """'__package__': None, 'java': <java package java 0x2>""" and the rest of the regular globals


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