#jython IRC Log

Index

IRC Log for 2015-04-13

Timestamps are in GMT/BST.

[5:32] * DanC_ (~dconnolly@user1.kumc.edu) Quit (Ping timeout: 264 seconds)
[5:37] * DanC_ (~dconnolly@user1.kumc.edu) has joined #jython
[5:43] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 264 seconds)
[7:51] * mbooth (~mbooth@redhat/mbooth) has joined #jython
[10:20] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[13:46] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[14:17] * xemdetia (xemdetia@nat/ibm/x-yjbvxcdzrhqbksna) has joined #jython
[14:27] * m01_ (~quassel@2a02:2658:1011:1::2:4044) has joined #jython
[14:33] * eatkin (~eatkin@166.70.212.121) has joined #jython
[14:36] <jimbaker> eatkin, good to see you here!
[14:38] <eatkin> thanks
[14:42] <jimbaker> eatkin, https://github.com/jimbaker/clamped is the starter project for the integration
[14:43] <jimbaker> although https://github.com/jimbaker/hellowsgi is probably a friendlier intro to this type of introduciton
[15:01] * nathan_ (cdd07a3a@gateway/web/freenode/ip.205.208.122.58) has joined #jython
[15:09] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 276 seconds)
[15:11] * stewori (stefan@gateway/conference/pycon/x-gespwyawbeqnrthx) has joined #jython
[15:14] * stewori (stefan@gateway/conference/pycon/x-gespwyawbeqnrthx) Quit (Quit: Leaving.)
[15:15] * stewori (stefan@gateway/conference/pycon/x-findprquldxcvqej) has joined #jython
[15:29] <jimbaker> nathan_, welcome to #jython
[15:29] <jimbaker> here's the bug i suggest you look at http://bugs.jython.org/issue2322
[15:30] <jimbaker> the jython specific dev guide is https://wiki.python.org/jython/JythonDeveloperGuide
[15:30] <jimbaker> the ported guide is http://www.jython.org/devguide/
[15:30] <nathan_> got it. thank you
[15:31] <jimbaker> nathan_, if you run into any issues in the dev guide, or have any ideas on how to improve - and ideally combine - please tell us
[15:31] <nathan_> got it
[15:31] <jimbaker> agronholm, we probably should point to http://www.jython.org/devguide/ as primary on jython.org
[15:31] <jimbaker> fwierzbicki, any thoughts?
[15:36] <jimbaker> nickmbailey, in my attempt to be as busy as possible, i will also talk with glyph re twisted this week
[15:37] <nickmbailey> sweet :)
[15:45] <m01_> hi people. I'm having some trouble getting a piece of Java code to use Jython to call a Python function
[15:46] <m01_> I followed the method explained here: http://www.jython.org/jythonbook/en/1.0/JythonAndJavaIntegration.html#more-efficient-version-of-loosely-coupled-object-factory
[15:46] <m01_> which seems to load the Python stuff without using the PythonInterpreter
[15:47] <m01_> I got that working, but then it didn't work on another system and I realised that there was a leftover foo.py$.class file lying around. after deleting that file it doesn't work on my original system either anymore
[15:47] <jimbaker> m01_, are you here at the sprints with us? or following remotely?
[15:47] <m01_> oh neither, I just stumbled across this IRC channel and thought to ask a question I had..
[15:47] <jimbaker> but in general, i recommend people consider using the clamp package
[15:47] <jimbaker> which is the successor to this approach
[15:47] <jimbaker> https://github.com/jimbaker/clamped
[15:48] <m01_> ah.
[15:48] <m01_> I'll have a look at that
[15:49] <m01_> I can't use that with vanilla python code, can I?
[15:50] <jimbaker> m01_, some work to go, but clamp is much more mature than what is documented in the book, especially around performance. at the very least, it's what will be supported in the future
[15:50] <jimbaker> m01_, right, it does expect you're specifying the java interfaces and/or class to be extended
[15:51] <jimbaker> agronholm, https://www.youtube.com/watch?v=hLm3garVQFo
[15:51] <jimbaker> is the talk i gave yesterday
[15:51] <m01_> I see
[16:08] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) Quit (Quit: Leaving.)
[16:08] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[16:11] <fwierzbicki> jimbaker: yeah I think the devguide is the better guide for now. Not sure about post git migration, I'll have to think about that. Probably it can be modified for git (though then it may not make as much sense to use cpython's dev guide as a base)
[16:12] <fwierzbicki> BTW the beginnings of a Jython3 is here: https://hg.python.org/sandbox/jython3
[16:12] <jimbaker> enebo, any thoughts on https://github.com/enebo/Purugin and porting that work to jython?
[16:12] <fwierzbicki> But it still has a lot of antlr work to go before it will be a useful starting point for others
[16:13] <jimbaker> eatkin, this is "Ruby Minecraft Plugin support on top of bukkit"
[16:15] <enebo> jimbaker: I still need to make it work again :)
[16:15] <enebo> jimbaker: but I see no reason why Jython could not do the same thing
[16:16] <enebo> jimbaker: There is a largely Bukkit-compatible replacement for Bukkit now (name escapes me — I can probably make it work again in a day or so)
[16:16] <jimbaker> enebo, eatkin mentioned something like minecraftforge
[16:17] <jimbaker> (we are in the pycon sprints this week)
[16:17] <enebo> jimbaker: I think the nice think about Purugin and same would be said of Jython-based one is heavily coercing the underlying API to map to our languages
[16:17] <enebo> oh yeah...fun
[16:17] <jimbaker> yeah, it's a bit much right now
[16:18] <enebo> yeah forge is fine but I found the API to be less than desirable
[16:18] <enebo> It is doubly cool since you can do client and server mods
[16:18] <enebo> but doing something as simple as sending a message to the player is two APIs and not what I expected like, player.send_message
[16:19] <enebo> but if you do want to use forge and want to try you can see a branch I have on Purugin which bootstraps JRuby with forge
[16:19] <enebo> It does not actually do anything other than load JRuby runtime but it is probably a useful start to bootstrap Jython
[16:19] <m01_> so I re-discovered the simple solution to my problem.. if I setup the JYTHONPATH to point to the directory with my python code, it works fine. Now I just need to figure out how to change the JYTHONPATH from within the Java code, without using a PythonInterpreter.. changing PySystemState's .path doesn't seem to be enough
[16:23] <enebo> jimbaker: ah yeah I think you can still use Spigot + CraftBukkit even with Minecraft 1.8. So I should probably work on this since then I will not have to rewrite very much in Purugin since it is like 90% craftbukkit and 10% internals of bukkit
[16:26] * m01_ is watching jimbaker's talk
[16:37] <jimbaker> m01_, interesting issue
[16:39] <jimbaker> enebo, it would be fantastic if you could make this change, because we could purugin as a guide. especially for me, since i'm completely new to minecraft dev :)
[16:39] <enebo> jimbaker: yeah I have been so swamped with jruby 9k work I have not had the energy to do any night hacking
[16:49] <jimbaker> nathan_, http://bugs.jython.org/issue2250
[16:58] <jimbaker> enebo, i fully understand being swamped. i will add you to the email with josiah and eatkin, but just mostly for moral support/keep you in the loop
[17:01] <enebo> jimbaker: ok cool
[18:18] * stewori (stefan@gateway/conference/pycon/x-findprquldxcvqej) Quit (Quit: Leaving.)
[18:53] * nathan_ (cdd07a3a@gateway/web/freenode/ip.205.208.122.58) Quit (Ping timeout: 246 seconds)
[19:37] * stewori (stefan@gateway/conference/pycon/x-dxwytchxtpyrkuvw) has joined #jython
[21:14] * stewori (stefan@gateway/conference/pycon/x-dxwytchxtpyrkuvw) Quit (Quit: Leaving.)
[21:14] * stewori (stefan@gateway/conference/pycon/x-pvlhnqetnqsfnxvg) has joined #jython
[21:36] * zesus (zesus@80.69.172.77) has joined #jython
[21:38] * zesus_ (zesus@peruna.fi) Quit (Write error: Broken pipe)
[22:13] <agronholm> jimbaker: I talked to stefan about httplib breaking, have you done something about it yet?
[22:14] <agronholm> I was wondering whether I should revert httplib and just apply the patch
[22:14] <agronholm> or figure out how to make it work with our ssl.py
[22:34] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[22:36] <agronholm> jimbaker: I'm gonna just revert. slap me if you disapprove :)
[22:38] * DanC_ (~dconnolly@user1.kumc.edu) has left #jython
[23:28] * stewori (stefan@gateway/conference/pycon/x-pvlhnqetnqsfnxvg) 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.