#jython IRC Log

Index

IRC Log for 2014-05-28

Timestamps are in GMT/BST.

[1:26] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[1:36] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) Quit ()
[1:53] <jimbaker> pjenvey, i'm pretty certain that as we see more singlejar style deployments this will come up. if a SecurityManager exception is raised, that will be less obscure than a dispatch on None
[1:53] <jimbaker> (i write this as an enabler of singlejar style deployments...)
[1:54] <jimbaker> so at this point, i could be persuaded to do a temp file executable wrapper. presumably this is a portable concept to non *nix systems
[2:22] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Quit: Konversation terminated!)
[6:13] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[7:09] <paolo> jimbaker: i'm trying the hello world example on clamp/fireside.
[7:09] <paolo> do i have necessarily to use https://bitbucket.org/jimbaker/jython-socket-reboot
[7:09] <paolo> ?
[7:11] <paolo> using the original jython instead of the reboot fork i get this:
[7:12] <paolo> $ jython setup.py install singlejar
[7:12] <paolo> AttributeError: 'module' object has no attribute 'CERT_REQUIRED'
[8:06] * chrisseaton (~chrisseat@213.205.236.18) has joined #jython
[9:08] * chrissea_ (~chrisseat@213.205.233.146) has joined #jython
[9:10] * chrisseaton (~chrisseat@213.205.236.18) Quit (Ping timeout: 240 seconds)
[9:24] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 255 seconds)
[9:26] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[9:27] * chrissea_ (~chrisseat@213.205.233.146) Quit (Ping timeout: 252 seconds)
[10:29] * lheuer1 (~Adium@g227048127.adsl.alicedsl.de) has joined #jython
[10:31] * lheuer1 (~Adium@g227048127.adsl.alicedsl.de) Quit (Client Quit)
[10:39] * lopex (uid4272@gateway/web/irccloud.com/x-yuxhnngirggunbkc) Quit (Ping timeout: 245 seconds)
[10:41] * lopex (uid4272@gateway/web/irccloud.com/x-pzhdaynuzcrowxfv) has joined #jython
[11:39] <topi`> I stumbled upon a weird issue: trying to import org.joda.time but it fails (no module named joda) even though my CLASSPATH is full of jars and one of those jars is joda-time-2.2.jar
[11:39] <topi`> same with the spring classes, no module named org.springframework
[11:39] <topi`> is there something *else* I need to setup than just CLASSPATH full of jars?
[11:39] <agronholm> topi`: yeah, you need to add every single jar in the classpath
[11:39] <agronholm> putting a directory full of jars on the classpath does nothing
[11:40] <agronholm> blame java
[11:40] <topi`> aah, I think I haven't seen all these "sys-package-mgr" messages
[11:40] <topi`> which should happen before I can import nay
[11:40] <topi`> any
[11:40] <topi`> agronholm: I used jim's "alljars" shortcut to populate the CLASSPATH
[11:41] <topi`> so that I get it formatted like foo-bar.0.1.jar:baz-0.2.jar:.
[11:41] <topi`> you get the idea
[11:41] <agronholm> what OS
[11:41] <agronholm> the classpath format is OS dependent...
[11:41] <topi`> debian/wheezy
[11:41] <agronholm> okay, should work then
[11:41] <topi`> but I think it works now if I use the dist/bin/jython instead of launching via java -jar dist/bin/jython.jar
[11:41] <topi`> I thought they were equal, but perhaps now
[11:42] <agronholm> yup, the latter way is not recommended
[11:42] <topi`> yeah, import org.joda.time works now
[11:42] <agronholm> the jython launcher exists for a reason
[11:42] <agronholm> several in fact
[11:42] <topi`> yeah. I had forgotten that. sorry <:)
[11:52] <topi`> how do I create a Implementation class (at interactive)?
[11:53] <topi`> if I need to do a FooImpl, can it be done like this:
[11:53] <topi`> class FooImpl(Foo): pass
[12:06] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) has joined #jython
[12:42] * zz_whg is now known as whg
[12:44] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) Quit ()
[12:48] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 276 seconds)
[12:52] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) has joined #jython
[12:59] <topi`> if I deploy several jython-using servlets, would it be a good idea to put the jython.jar in tomcat's shared lib dir?
[12:59] <topi`> and does it affect my clamping (I guess the path to jython.jar is determined at clamp time, not deploy time)?
[13:10] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) Quit ()
[13:12] <whg> topi`: If you singlejar it, don't you get the jython jar bundled in there for you?
[13:54] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) has joined #jython
[13:58] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[14:05] <paolo> could anyone explain the difference between running a wsgi application using modjy vs clamp/fireside?
[14:06] <paolo> i was able to configure the hello world app using clamp and fireside and i'd like to stick to it
[14:07] <paolo> for deployment i'd just use apache as reverse proxy in front of tomcat in front of clamp/fireside/my app
[14:07] <paolo> does it make sense?
[14:12] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[15:03] * smaudet (~smaudet@206-51-157-254.nktelco.net) has joined #jython
[15:23] * echaz (~echaz@216.203.6.11) has joined #jython
[15:33] <echaz> So I am a python programmer for about a year, and I just learned about the GIL. This is really disturbing to me.
[15:33] <echaz> how beta is jython 2.7 really?
[16:16] <jimbaker> paolo, my jython-socket-reboot branch has been merged in. probably best if i delete it
[16:16] <jimbaker> or maybe better, i will simply change the README to the effect and delete everything else
[16:39] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[16:53] <jimbaker> echaz, as you may know there's no GIL in jython
[16:53] <jimbaker> re beta - well there are some issues. perhaps the most important that we recently fixed with the recent beta 3 is support easy_install (directly) and pip (via a branch i have, waiting one more fix before we can get upstreamed into the official pip, https://github.com/jimbaker/pip)
[16:53] <jimbaker> i do think it's worth trying out. we are running it with an interesting system at rackspace that i work on, and right now, we are mostly fixing issues around making deployment better, such as this bug - http://bugs.jython.org/issue2143
[17:40] * ebarrett (~edd@88-105-202-27.dynamic.dsl.as9105.com) Quit (Ping timeout: 252 seconds)
[17:42] * ebarrett (~edd@88-106-242-230.dynamic.dsl.as9105.com) has joined #jython
[18:17] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) Quit ()
[18:21] <echaz> thanks jimbaker. I appreciate it.
[18:22] <echaz> If I have a python package, how often should I expect to see something not work?
[18:22] <jimbaker> echaz, it depends on whether it has a c dependency
[18:23] <echaz> that's fair
[18:23] <jimbaker> the jyni project has looked at adding c extension api support
[18:23] <jimbaker> and i plan to do the same for cffi
[18:24] <jimbaker> http://jyni.org/ (usable for limited testing now) and https://github.com/jythontools/jiffy (currently just a placeholder)
[18:25] <echaz> so I guess the real question for today is,
[18:25] <jimbaker> but if it's pure python, i would expect it to work
[18:25] <echaz> am I willing to throw out the python extensions to gain multi threading and Java packages
[18:26] <echaz> (I think the answer is yes, but I am only one voice of many)
[18:26] <jimbaker> echaz, right. in general for jython, the value proposition is because you want to use the jvm ecosystem
[18:26] <echaz> thanks
[18:27] <jimbaker> so we focus heavily on compatibility cpython, with the idea that your code can also import in interesting java packages, or be deployed on the jvm, especially as part of something like hadoop or storm
[18:41] <jimbaker> interesting - jep 102 (enhanced process mgmt) is finally underway - someone should clean up the jep list, it's about as confusing as python peps as to what actually has been done
[18:41] <jimbaker> http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-March/thread.html#26004
[18:53] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[18:57] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) has joined #jython
[18:59] * oscar_toro (~Thunderbi@80-62-162-242-static.dk.customer.tdc.net) Quit (Ping timeout: 252 seconds)
[19:23] <jimbaker> maybe someone here is interested, especially if this means adding jython support as well - the skills definitely transfer - http://heroku.theresumator.com/apply/BNyjui/JVM-Languages-Developer.html
[19:25] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[19:26] * echaz1 (~echaz@216.203.6.11) has joined #jython
[19:28] * echaz (~echaz@216.203.6.11) Quit (Ping timeout: 252 seconds)
[19:28] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) Quit ()
[20:00] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) has joined #jython
[20:06] * echaz1 (~echaz@216.203.6.11) Quit (Quit: Leaving.)
[20:17] * echaz (~echaz@216.203.6.11) has joined #jython
[20:17] * echaz (~echaz@216.203.6.11) Quit (Client Quit)
[20:27] * echaz (~echaz@216.203.6.11) has joined #jython
[20:28] * echaz (~echaz@216.203.6.11) Quit (Client Quit)
[21:01] * smaudet (~smaudet@206-51-157-254.nktelco.net) Quit (Ping timeout: 246 seconds)
[21:10] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) Quit (Ping timeout: 240 seconds)
[21:46] * whg is now known as zz_whg
[22:33] * fwierzbicki (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) Quit (Quit: Leaving.)
[22:41] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[22:44] * mike_af (~mike_af@unaffiliated/mike-af/x-5454762) has joined #jython
[22:50] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[23:10] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Quit: Konversation terminated!)
[23:46] * mike_af (~mike_af@unaffiliated/mike-af/x-5454762) Quit (Remote host closed the connection)
[23:54] * chrisseaton (~chrisseat@79-76-252-14.dynamic.dsl.as9105.com) 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.