#jython IRC Log (v0.9)

Index

IRC Log for 2011-05-17

Timestamps are in GMT/BST.

[2:40] <fwierzbicki> pjenvey: is jenkins down? My local work on the print function caused a regression that I noticed and fixed by checking regrtest - but I'm worried that there might be others that the more detailed Jenkins report might show...
[2:41] * fwierzbicki misses the clean build
[2:42] * fwierzbicki is happy for the increased testing though
[5:19] * thobe (~Adium@c83-249-235-76.bredband.comhem.se) has joined #jython
[5:51] * shashank (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Quit: Leaving.)
[5:51] * shashank1 (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[7:19] * shashank1 (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 240 seconds)
[8:36] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Ping timeout: 252 seconds)
[10:25] * wmeissner (~wmeissner@2406:a000:f005:9e00:225:ff:fe4d:e0c3) Quit (Quit: wmeissner)
[10:35] * lopex (531346b2@gateway/web/freenode/ip.83.19.70.178) has joined #jython
[13:11] * kuja (~kuja@unaffiliated/kuja) has joined #jython
[13:26] * kuja (~kuja@unaffiliated/kuja) Quit (Quit: Bye)
[13:26] * kuja (~kuja@unaffiliated/kuja) has joined #jython
[14:14] * DrSyzygy (~mik@unseen-university.ankh-morpork.se) has joined #jython
[14:20] <DrSyzygy> I'm trying to use jython on MacOSX. Somehow it's gotten to a state where I can start up the interpreter fine, but given any statement whatsoever (import XXX, 2+3, anything I could think of...) it will hang indefinitely. I'm on Snow Leopard (MacOSX 10.6), with Apple's Java dist, and Jython 2.5.2.
[15:52] * lopexx (lopex@84-10-213-252.dynamic.chello.pl) has joined #jython
[16:09] * shashank (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[16:10] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[16:13] * lopex (531346b2@gateway/web/freenode/ip.83.19.70.178) Quit ()
[16:13] * lopexx (lopex@84-10-213-252.dynamic.chello.pl) Quit ()
[16:13] * lopex (lopex@84-10-213-252.dynamic.chello.pl) has joined #jython
[16:21] * shashank (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Quit: Leaving.)
[16:23] <pjenvey> fwierzbicki - jenkins is down for now
[16:24] <fwierzbicki> pjenvey, ah ok, no worries
[16:28] * shashank (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[16:29] * offbyone (u910@gateway/web/irccloud.com/x-hitcllvdoandlqvz) has joined #jython
[16:30] <offbyone> Hey, folks. Suppose I wanted to use Jython for a service implementation in a web application... is this possible/reasonable/a good idea? If so, how can I provide Jython class instances to the application server classloader so that it'll know to instantiate them?
[16:37] <agronholm> offbyone: I hope speed is not a concern
[16:37] <agronholm> because jython is A LOT slower than java
[16:38] <agronholm> also it does not work that way
[16:38] <offbyone> agronholm: Not at the moment, no. 20-30 requests per second.
[16:38] <offbyone> I was sort of afraid of that. I'd really like to use Jython for the business logic in my application.
[16:38] <agronholm> even that much might be difficult
[16:38] <agronholm> you need object factories
[16:38] <agronholm> the jython book covers that
[16:42] <offbyone> Is there any way to register the class so that it can be instantiated by the classloader? I suspect not, now that I look at those pages :/
[16:44] <agronholm> java cannot see jython classes
[16:45] <offbyone> I thought that might be the case. Is that a "hopeful future feature" or a JVM-level impossiblity?
[16:45] <agronholm> project clamp seeks to address this
[16:45] <agronholm> but it's been on hold for quite a long time
[16:45] <agronholm> now that 2.6 development is underway, there is light at the end of the tunnel again
[16:47] <offbyone> I see; 2009 seems to be the last active commit.
[16:47] <offbyone> That's disappointing; I was really looking forward to a faster business logic development cycle w/ a Java web stack.
[16:48] <agronholm> plenty of people are using jython for that
[16:48] <agronholm> just not me
[16:50] <offbyone> There must be some nasty hoops being jumped through to do that, then.
[16:50] <agronholm> go read the book
[16:50] <offbyone> Do you know of a github or bitbucket project off the top of your head that I could mine for examples?
[16:50] <offbyone> I am reading the book :)
[16:50] <agronholm> I'm the wrong person to ask
[16:50] <offbyone> L
[16:51] <offbyone> K
[16:51] <fwierzbicki> offbyone, note that the book is open source and here: http://www.jython.org/jythonbook/en/1.0/
[16:53] <fwierzbicki> offbyone, the relevant part is here: http://www.jython.org/jythonbook/en/1.0/JythonAndJavaIntegration.html#using-jython-within-java-applications
[16:53] <fwierzbicki> offbyone, we do intend to have a better solution, but it won't be there very soon.
[16:55] <offbyone> fwierzbicki: I see that you're the guy working on clamp (according to github); is there documentation on the intended approach anywhere? I'm interested in how you intend to implement it, as well as how integration with containers -- spring, for example, or other java web frameworks -- will be done.
[16:56] <fwierzbicki> offbyone, I'm not really working on clamp lately
[16:56] <agronholm> I doubt there will be special integration with any such thing
[16:56] <fwierzbicki> offbyone, ultimately there will be a better solution with invokedynamic which will be much simpler to implement
[16:57] <fwierzbicki> jimbaker is the one around here that knows the most about that path.
[16:57] <offbyone> Okay.
[16:58] <fwierzbicki> offbyone, googling on invokedynamic will probably give you an idea (and it might look like it is only for Java 7 but invokedynamic is already present in the latest hotspot for Java 6
[16:58] <fwierzbicki> )
[16:59] <fwierzbicki> at best this would appear in Jython 2.6 though I think.
[17:01] <fwierzbicki> DrSyzygy, does running a file work? (as in "jython foo.py" where foo.py has some simple python code in it?
[17:01] <fwierzbicki> )
[17:02] <fwierzbicki> keep forgetting to close my parens - would ruin my whole day if I left it like that :)
[17:03] <agronholm> (yeah, like this
[17:05] <offbyone> )
[17:13] <fwierzbicki> ha
[17:14] <offbyone> well, someone had to do it.
[17:14] <fwierzbicki> :)
[17:25] * thijstriemstra (~thijs@h183107.upc-h.chello.nl) has joined #jython
[17:32] * sitkack (~sitkack@bigfish-208-077-153-006.bigfishgames.com) Quit (Read error: Connection reset by peer)
[17:32] * sitkack (~sitkack@bigfish-208-077-153-006.bigfishgames.com) has joined #jython
[17:48] * voidspace (~voidspace@python/psf/voidspace) has joined #jython
[17:51] <voidspace> hmmm... difference between CPython and jython (2.5.1) in object equality comparison
[17:51] <voidspace> http://paste.pocoo.org/show/390743/
[17:51] <voidspace> worth filing an issue over?
[17:51] <voidspace> I have a mock test failure because of this
[17:54] <voidspace> easy for me to fix the failing test, but I wonder if you want an issue about it...
[17:59] <fwierzbicki> voidspace, yeah that's worth an issue
[17:59] <voidspace> fwierzbicki: okeydokey
[17:59] <fwierzbicki> voidspace, thanks!
[18:00] <voidspace> fwierzbicki: do compiled java bytecode files *need* to end with a filename ".class" ?
[18:00] <pjenvey> voidspace - we match CPython when i try it over here
[18:00] <voidspace> fwierzbicki: because $py.class is a nuisance :-)
[18:01] <voidspace> pjenvey: right
[18:01] <voidspace> fwierzbicki: unittest(2) test discovery currently doesn't work with jython, but I'll fix it - but $py.class is the reason :-)
[18:01] <fwierzbicki> voidspace: ha yeah they are a nuisance - but it's history.
[18:01] <pjenvey> that was with 2.5.2+ though
[18:01] <pjenvey> http://paste.pocoo.org/show/390748/
[18:01] <voidspace> pjenvey: ah, so it is already fixed
[18:01] <voidspace> pjenvey: okay, looks like I should just update then
[18:02] <fwierzbicki> voidspace: a few more like these and we'd start thinking about a 2.5.3
[18:02] <pjenvey> yea
[18:03] <fwierzbicki> voidspace, perhaps we could re-evaluate $py.class for 3.x - but it's too ingrained in 2.x
[18:03] <voidspace> fwierzbicki: I was using 2.5.1 - looks like it is fixed in 2.5.2 already
[18:03] <voidspace> fwierzbicki: okay
[18:03] <fwierzbicki> voidspace, ah cool
[18:11] * voidspace (~voidspace@python/psf/voidspace) has left #jython
[18:47] <DrSyzygy> fwierzbicki: Yes.
[18:47] <DrSyzygy> Running a scriptfile works.
[18:48] <DrSyzygy> Takes longer than I had anticipated, but it goes through.
[18:58] * KayT3 (~KayT3@63.84.81.41) has joined #jython
[19:04] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[19:12] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: [IRSSI] A thousand friends are to few, one enemy is one to many.)
[19:16] * shashank (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 260 seconds)
[19:24] <fwierzbicki> DrSyzygy, does it output anything at all (for example "...")?
[19:25] <DrSyzygy> Not even ...
[19:25] <DrSyzygy> Type "help", "copyright", "credits" or "license" for more information.
[19:25] <DrSyzygy> >>> print 2+3
[19:25] <DrSyzygy> And a blank new line.
[19:25] <DrSyzygy> Has been the totality of my display since last I wrote in the channel.
[19:27] <fwierzbicki> DrSyzygy, weird - I haven't encountered anything like that -- when you first installed and ran it did you see all the *sys-package-manager* things?
[19:27] * shashank (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[19:27] <fwierzbicki> DrSyzygy, not that I have any ideas
[19:27] <DrSyzygy> Yup.
[19:27] <fwierzbicki> DrSyzygy, this is lame, but did you try to reinstall it?
[19:27] <DrSyzygy> Thrice.
[19:27] <fwierzbicki> DrSyzygy, oh wow
[19:27] <DrSyzygy> Yeah.
[19:28] <DrSyzygy> It's kinda obnoxious ??? I was hoping to be able to use it for a software demo I need to do in ~2 weeks, but at this rate I can't even use it myself. :-/
[19:28] <fwierzbicki> That's a very odd problem - I'm having trouble even thinking of a way to debug
[19:28] <DrSyzygy> Quite. :-P
[19:29] <fwierzbicki> my first impulse would be that there is something that isn't able to write to the filesystem - but it's pure speculation
[19:29] <DrSyzygy> I can't imagine why that'd be. There's plenty of HD space, and nothing else that has issues...
[19:31] <fwierzbicki> DrSyzygy, could you try running with "-S" (disables site loading)
[19:31] <fwierzbicki> shot in the dark
[19:32] <fwierzbicki> also do you have a JYTHONPATH set up?
[19:32] <DrSyzygy> No JYTHONPATH unless the installer did that. I'll check on that, and on -S, and report back. My wife is pulling at me now - gtg.
[19:33] <fwierzbicki> DrSyzygy, later, I'll try to think of a debug option....
[19:35] <fwierzbicki> oh might help if you try:
[19:36] <fwierzbicki> jython -v
[19:36] <fwierzbicki> just to see some output
[19:36] <fwierzbicki> anyway I'll check back later
[19:44] <fwierzbicki> ah found one better try:
[19:44] <fwierzbicki> jython -v -v
[19:45] <fwierzbicki> even now I find things I didn't know about -- Jython is such a big and old project :)
[20:17] <DrSyzygy> fwierzbicki: http://pastebin.com/8sLA15Df
[20:17] <DrSyzygy> And then it hangs.
[20:18] <DrSyzygy> -S doesn't help.
[20:52] <fwierzbicki> nothing unusual there - is there anything in the directory you are running in?
[20:52] * fwierzbicki baffled
[20:53] <DrSyzygy> Same thing from different directories.
[20:53] <fwierzbicki> ok
[20:55] <DrSyzygy> Sleepytime. ttyl
[20:59] <fwierzbicki> DrSyzygy, ok good night
[20:59] <fwierzbicki> this bit in your paste seems strange: initializer: 'META-INF/services/org.python.core.JythonInitializer' not found on sun.misc.Launcher$AppClassLoader@3326b249
[20:59] <fwierzbicki> initializer: 'META-INF/services/org.python.core.JythonInitializer' not found on sun.misc.Launcher$AppClassLoader@3326b249
[20:59] <fwierzbicki> but it may be an OSX thing that I don't know about - I should try jython on OSX and see if I get it
[21:00] <fwierzbicki> anyway I'll keep thinking about how to debug
[21:01] <fwierzbicki> oops no, I get the JythonInitializer message too
[21:31] * KayT3 (~KayT3@63.84.81.41) Quit (Quit: Leaving)

Index

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