#jython IRC Log


IRC Log for 2013-12-18

Timestamps are in GMT/BST.

[0:03] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[0:09] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[0:10] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[0:24] * mike_af (~mike_af@ has joined #jython
[0:57] * mike_af (~mike_af@ Quit (Read error: Connection reset by peer)
[0:58] * mike_af (~mike_af@c-75-73-50-154.hsd1.mn.comcast.net) has joined #jython
[1:02] * mike_af (~mike_af@c-75-73-50-154.hsd1.mn.comcast.net) Quit (Ping timeout: 272 seconds)
[1:57] * willvw (uid20852@gateway/web/irccloud.com/x-cqvkmdrrvwhnqomt) has joined #jython
[2:24] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[3:24] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[3:26] * robbyoconnor (~wakawaka@200.sub-70-208-73.myvzw.com) has joined #jython
[3:26] * robbyoconnor (~wakawaka@200.sub-70-208-73.myvzw.com) Quit (Changing host)
[3:26] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[3:30] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[3:38] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 265 seconds)
[3:54] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[3:56] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[4:14] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 248 seconds)
[4:16] * ivan` (~ivan@unaffiliated/ivan/x-000001) Quit (Ping timeout: 252 seconds)
[4:24] * ivan` (~ivan@unaffiliated/ivan/x-000001) has joined #jython
[4:43] * sinsnare|away is now known as sinistersnare
[4:44] <sinistersnare> jimbaker, youre probably asleep, but i was wondering if you wanted me to mention anything in the talk. I think the slides will be relatively short, and ill do a live coding session (itll go OK hopefully...) to show the effects
[4:44] <sinistersnare> but if you have anything to add, id love to hear what you have to say, or anyone else here in #jython :)
[4:53] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[5:41] <jimbaker> sinistersnare, about to go to sleep. when are you giving your talk?
[5:57] <jimbaker> ok, here's what kept me up: https://gist.github.com/jimbaker/8017874
[5:57] <jimbaker> the significance is that i have taken netty 4, which does a very nice job of support a nonblocking view of the world when working with sockets, and layered on top of it some basic blocking semantics
[5:58] <jimbaker> using Future#sync where possible, condition variable otherwise
[5:58] <jimbaker> anyway, this means that we should be able to implement socket/ssl/select on top of netty 4. so this is very good :)
[5:58] <jimbaker> topi`, ^^^
[5:59] <jimbaker> more on my design thoughts tomorrow :)
[7:09] * lheuer (~Adium@f048140150.adsl.alicedsl.de) has joined #jython
[7:09] * lheuer (~Adium@f048140150.adsl.alicedsl.de) Quit (Changing host)
[7:09] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[7:36] * lheuer1 (~Adium@f048141211.adsl.alicedsl.de) has joined #jython
[7:38] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 240 seconds)
[7:48] * lheuer1 is now known as lheuer
[7:48] * lheuer (~Adium@f048141211.adsl.alicedsl.de) Quit (Changing host)
[7:48] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[8:25] * lheuer1 (~Adium@f048141211.adsl.alicedsl.de) has joined #jython
[8:30] * lheuer1 (~Adium@f048141211.adsl.alicedsl.de) Quit (Quit: Leaving.)
[8:55] * indra (~indra@124-171-107-248.dyn.iinet.net.au) has joined #jython
[9:12] * JStoker (jstoker@unaffiliated/jstoker) Quit (*.net *.split)
[9:14] * JStoker (jstoker@unaffiliated/jstoker) has joined #jython
[9:14] <indra> i have a question about the zxJDBC connection context manager implementation
[9:15] <indra> http://www.jython.org/jythonbook/en/1.0/DatabasesAndJython.html#connections about the with statement states that using "with zxJDBC.connect(...) as conn:" will close the connection
[9:16] <indra> but it appears not to from my testing and looking at the code now it appears the context manager for the connection object only commits/rollback the connection but not close it.
[9:16] <indra> should using "with zxJDBC.connect() as conn:" actually close the connection or is the jythonbook incorrect?
[9:18] * JStoker (jstoker@unaffiliated/jstoker) Quit (*.net *.split)
[9:23] * JStoker (jstoker@unaffiliated/jstoker) has joined #jython
[10:22] <topi`> jimbaker: isn't netty a servlet container? well, maybe that won't rule out using its methods/snippets
[10:25] <topi`> indra: indeed, I've also noticed that ... zxjdbc does NOT close the connection when used in conjunction w/ with:
[10:25] <topi`> indra: however, I switched to using jyjdbc instead. google it up.
[10:26] <topi`> indra: this might be due to some side effect from the changes between jython 2.5.x and 2.7.x
[10:43] * fluxdude (~fluxdude@unaffiliated/fluxdude) has joined #jython
[10:54] <indra> topi`, cool might give that a go
[10:56] * indra (~indra@124-171-107-248.dyn.iinet.net.au) Quit (Quit: Leaving)
[11:00] <topi`> indra: there are some catches there, too
[11:00] <topi`> let me do a writeup about going zxjdbc -> jyjdbc
[12:43] * Oti (~ohumbel@adsl-84-227-99-202.adslplus.ch) Quit (Ping timeout: 240 seconds)
[12:44] * Oti (~ohumbel@adsl-84-227-99-202.adslplus.ch) has joined #jython
[14:21] * zz_whg is now known as whg
[14:50] * mike_af (~mike_af@50-77-49-46-static.hfc.comcastbusiness.net) has joined #jython
[15:01] <jimbaker> topi`, i think netty in the past used to be much heavier
[15:02] <jimbaker> but netty 4 has a completely refactored api. the only slightly heavy part is the threadpool (maybe 2, for boss and worker), but we need only allocate if users are using the socket module
[15:03] <jimbaker> so should be perfectly compatible w/ lots of usage models
[15:04] <jimbaker> yes, please go with jyjdbc. we really should remove, or at least heavily deprecate, zxjdbc
[15:05] * paolo (~Paolo@net-37-117-0-137.cust.dsl.vodafone.it) has joined #jython
[15:07] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[15:07] <jimbaker> topi`, https://gist.github.com/jimbaker/8017874#file-nettyclient-py-L69 is the relevant part here, along with the shutdown in line 78 - this is the only piece that allocates threads (and could conflict with containers)
[15:15] <jimbaker> topi`, a somewhat similar example is the use of http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread) in PySystemState
[15:17] <jimbaker> so presumably this would fail in most containers, but it fails in a reasonable fashion - simply cannot guarantee that open files are closed when running under a container. such behavior is typical of a script, not say a well behaved django app
[15:18] <jimbaker> likewise, if we cannot allocate a threadpool due to SecurityException, the import of socket/ssl/select fails, but this is little different than other parts of jython
[15:27] * JythonLogBot disconnected - trying to reconnect...
[15:27] -moorcock.freenode.net- *** Looking up your hostname...
[15:27] -moorcock.freenode.net- *** Checking Ident
[15:27] -moorcock.freenode.net- *** No Ident response
[15:27] -moorcock.freenode.net- *** Couldn't look up your hostname
[22:15] -moorcock.freenode.net- *** Looking up your hostname...
[22:15] -moorcock.freenode.net- *** Checking Ident
[22:15] -moorcock.freenode.net- *** No Ident response
[22:15] -moorcock.freenode.net- *** Couldn't look up your hostname
[22:15] * JythonLogBot (~PircBot@ has joined #jython
[22:15] * 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/'
[22:15] * Set by Juneau001!~Juneau@50-45-119-204.dklb.il.frontiernet.net on Tue Feb 12 23:33:36 UTC 2013
[23:03] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[23:10] <jimbaker> love any feedback on this design doc, https://gist.github.com/jimbaker/8017874
[23:10] <jimbaker> for complete impl of socket/ssl/select
[23:22] <jimbaker> i'm going to move that doc into a proper repo at some point soon just to be able to track it better
[23:22] <jimbaker> topi`, ^^^


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