#jython IRC Log (v0.9)

Index

IRC Log for 2012-02-01

Timestamps are in GMT/BST.

[0:09] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[0:17] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Remote host closed the connection)
[0:32] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[0:46] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[0:46] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[0:47] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[0:48] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[0:54] * juneau001 (~juneau@50-103-50-0.dklb.il.frontiernet.net) has joined #jython
[1:00] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[1:02] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[1:08] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Remote host closed the connection)
[1:08] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[1:14] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[5:27] * stakkars_ (~tismer@p5DDB6985.dip.t-dialin.net) has joined #jython
[5:28] * stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) Quit (Ping timeout: 244 seconds)
[5:28] * stakkars_ is now known as stakkars
[6:23] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[8:20] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[9:06] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[9:06] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[11:06] * juneau001 (~juneau@50-103-50-0.dklb.il.frontiernet.net) Quit (Quit: juneau001)
[12:12] * juneau001 (~juneau@131.225.24.80) has joined #jython
[13:51] * wmeissner (~wmeissner@ppp59-167-223-31.static.internode.on.net) Quit (Quit: wmeissner)
[14:33] * whack_ (~whack@71-89-64-135.dhcp.eucl.wi.charter.com) has joined #jython
[15:23] * stakkars_ (~tismer@i59F73FD6.versanet.de) has joined #jython
[16:17] * webar7 (~webart@CPE0080c8f208a5-CM001371173cf8.cpe.net.cable.rogers.com) has joined #jython
[16:17] <webar7> hi ... I have a silly newbie question: what advantage would there be to running django on jython ... besides "access to java" .. does it provide some kind of j2ee deployment management or ... does having jvm in the mix mean it can handle massive numbers of connections in some more efficient way than than cpython interpreter?
[16:42] * stakkars_ (~tismer@i59F73FD6.versanet.de) Quit (Quit: schnarch)
[17:13] <jimbaker> webar7, you can deploy to it a standard jee app server (via a mgmt tool that bundles your django app as a war file) and access java. it's possible you could take advantage of better connection pooling, but i doubt there's really much advantage there
[17:25] * shashank (~shashank@67-40-143-127.hlrn.qwest.net) has joined #jython
[17:53] * shashank (~shashank@67-40-143-127.hlrn.qwest.net) Quit (Ping timeout: 245 seconds)
[18:09] <GHellings> Is JBoss supported for the J2EE deployment? I've had issues with getting JBoss to properly serve with modjy that I haven't been able to resolve.
[18:10] <GHellings> Specifically, following the documentation in the jython book for Glassfish but doing the same thing on JBoss gives me this error when I try to run the application "modjy.modjy_exceptions.ApplicationException: Invalid placeholder in string: line 9, col 3218"
[18:11] <fwierzbicki> GHellings: it's worth reporting a bug or mailing the jython-users list with that - the author of modjy doesn't watch irc but does watch those.
[18:12] <GHellings> fwierzbicki, Ok, I'll do that. I just wanted to check if there was something I was definitely missing. :)
[18:13] <fwierzbicki> GHellings: there may be but he'd be the one who'd know :)
[18:13] <GHellings> Fair enough :)
[18:30] <webar7> jimbaker, interesting ... java's "enterprise" orientation (jee says it all) puts in banks, gov't, fortune500 firms etc. and I always wonder if python benefits in some technical or marketing/mindshare sort of way from the jython "bridge"
[18:31] <webar7> I guess no one needs to know what's inside the .war
[18:36] <whack_> hello
[18:43] <jimbaker> webar7, when you think about all the bytecode engineering that's done in "enterprise" java these days, it's really not much different
[18:59] <webar7> jimbaker, i.e. you mean the hacks the patches and the plethora of "standards" ... I thought Oracle planned to put a stop to it ;-)
[18:59] <jimbaker> webar7, never going to happen! :)
[19:00] * shashank (~shashank@ucb-np2-157.colorado.edu) has joined #jython
[19:00] <webar7> jimbaker, it is pretty cool to see Lisp. python, ruby (along with various scripty java dialects) running on the JVM
[19:01] <jimbaker> at this point, i think of it as the jvm ecosystem, with a few well-defined standards (java class files, jars and their layout), which enable the such things as jruby, clojure, etc to run well
[19:02] <webar7> jimbaker, interesting point ... and one editor to bind them all ... Emacs
[19:02] <webar7> errm Eclipse
[19:02] <webar7> sorry mix them up all the time :)
[19:03] <jimbaker> sure, it's probably eclipse. although we still have some work to do to seamlessly integrate java with say jython. ("import django.*" into a java project is one goal)
[19:03] <whack_> hey guys, i understand how to access libraries, but how can i access class variables of the program that runs the jython interpreter in it?
[19:04] <whack_> fairy new at this :S really stumped
[19:04] <webar7> whoa that would be cool
[19:05] <webar7> just write a small java file and put import jythong import django in it and then write the rest in python?! ... CLR .Net eat your heart out
[19:06] <jimbaker> whack_, not certain what you mean
[19:06] * webar7 mistakenly went to see Lars von Trier film "Melancholia" ... ever since the Eclipse logo freaks me out
[19:10] <whack_> sorry ill explain better, i have a game that runs its physics step, then the jython interpreter is called which does some map scripting and things needed to do in game are currently saved to a variable and then once the main loop of the script is finished the game reads the variable and does different actions- however i'd like to implement "getSoldierPosition()" functions in the script and my current approach is limited to saving this
[19:10] <whack_> request and then sending the data to the interpreter the following loop
[19:11] <whack_> right now if i were to request the position something would be appended to the var and then sent to the script later, i would want to request the data from realtime
[19:20] <whack_> i tried sending all data possibly needed out of frustration which obviously didnt work, i suppose i could add sql but that seems overkill
[19:39] * juneau001 (~juneau@131.225.24.80) Quit (Quit: Take care...)
[19:41] <jimbaker> whack_, are you trying to access the variable between python and java? conceptually there's no problem here, so trying to see how this isn't working
[19:43] <whack_> yes. see I have some different objects in my game which I suppose I couldnt find a way to access from jython, I tried giving full object path to some and they werent able to be found
[19:48] <jimbaker> whack_, so long as you have a ref to the given object, the python code should be able to access. you may need to alter respectJavaAccessibility
[19:55] <whack_> hmm. it seems not to work, i think its because of lack of sleep. (: and not importing java.lang maybe? can you give a short example of how to access a variable from a running java program from within the jython interpreter?
[19:56] <jimbaker> whack_, there's no global root where you can just access a variable in java. i wonder if that's the source of the problem? so long as you have a ref, you can access
[19:57] <jimbaker> it has nothing to do with java.lang, for example
[20:04] <whack_> okay, so just pass my engine class to it, aha
[20:05] <whack_> now, will it stay synchronized or do i have to manage that myself?
[20:08] <jimbaker> whack_, synchronized is a property of how the java code is compiled, with specific support from java bytecode. you have to be aware of it, but i suppose it will just work as you expect
[20:28] * juneau001 (~juneau@50-103-50-0.dklb.il.frontiernet.net) has joined #jython
[21:19] * enebo (~enebo@75-168-50-253.mpls.qwest.net) has joined #jython
[22:08] * whack_ (~whack@71-89-64-135.dhcp.eucl.wi.charter.com) Quit (Quit: Leaving)
[22:57] * shashank (~shashank@ucb-np2-157.colorado.edu) Quit (Ping timeout: 240 seconds)
[23:37] * Katharsis (~Katharsis@s42.linuxpl.com) Quit (Read error: Operation timed out)
[23:37] * Katharsis (~Katharsis@s42.linuxpl.com) has joined #jython
[23:59] * enebo (~enebo@75-168-50-253.mpls.qwest.net) Quit (Quit: enebo)

Index

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