#jython IRC Log

Index

IRC Log for 2014-07-31

Timestamps are in GMT/BST.

[0:47] * paolo (~paolo@unaffiliated/paolo) Quit (Ping timeout: 240 seconds)
[0:47] * paolo (~paolo@2a03:8180:1001:b2:25::12c) has joined #jython
[0:47] * paolo (~paolo@2a03:8180:1001:b2:25::12c) Quit (Changing host)
[0:47] * paolo (~paolo@unaffiliated/paolo) has joined #jython
[0:54] * smaudet (~smaudet@cpe-98-28-33-4.columbus.res.rr.com) has joined #jython
[5:54] * smaudet (~smaudet@cpe-98-28-33-4.columbus.res.rr.com) Quit (Ping timeout: 256 seconds)
[8:28] * jimbaker_ (~jbaker@188.188.84.128) has joined #jython
[10:26] * xemdetia (xemdetia@nat/ibm/x-eijfkmzconieogri) has joined #jython
[10:45] * jimbaker_ (~jbaker@188.188.84.128) Quit (Quit: Computer has gone to sleep.)
[11:03] * mbooth (~mbooth@cpc68386-shef10-2-0-cust10.17-1.cable.virginm.net) Quit (Ping timeout: 260 seconds)
[11:17] * xemdetia (xemdetia@nat/ibm/x-eijfkmzconieogri) Quit (Ping timeout: 260 seconds)
[11:23] * smaudet (~smaudet@206-51-157-254.nktelco.net) has joined #jython
[11:28] * mbooth (~mbooth@80-193-72-41.paternoster.mezzonet.net) has joined #jython
[12:01] * xemdetia (xemdetia@nat/ibm/x-vbfkipziceozfdhj) has joined #jython
[13:44] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 250 seconds)
[14:05] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[14:08] * jimbaker_ (~jbaker@94-226-10-205.access.telenet.be) has joined #jython
[14:22] * jimbaker_ (~jbaker@94-226-10-205.access.telenet.be) Quit (Quit: Computer has gone to sleep.)
[14:47] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 255 seconds)
[15:06] * jimbaker_ (~jbaker@94-226-10-205.access.telenet.be) has joined #jython
[15:14] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[15:58] * zz_whg (whg@nat/ibm/x-trkhtjhhectrfcln) Quit (Quit: ZNC - http://znc.in)
[15:59] * zz_whg (whg@nat/ibm/x-kxgsbuelycwbbjwt) has joined #jython
[15:59] * zz_whg is now known as whg
[15:59] * whg (whg@nat/ibm/x-kxgsbuelycwbbjwt) Quit (Changing host)
[15:59] * whg (whg@unaffiliated/whg) has joined #jython
[16:01] * jimbaker_ (~jbaker@94-226-10-205.access.telenet.be) Quit (Quit: Computer has gone to sleep.)
[16:03] * jimbaker_ (~jbaker@94-226-10-205.access.telenet.be) has joined #jython
[16:06] * whg (whg@unaffiliated/whg) Quit (Quit: ZNC - http://znc.in)
[16:07] * zz_whg (whg@nat/ibm/x-ulchfobvjaodvbhw) has joined #jython
[16:07] * zz_whg is now known as whg
[16:07] * whg (whg@nat/ibm/x-ulchfobvjaodvbhw) Quit (Changing host)
[16:07] * whg (whg@unaffiliated/whg) has joined #jython
[16:20] * jimbaker_ (~jbaker@94-226-10-205.access.telenet.be) Quit (Quit: Computer has gone to sleep.)
[16:23] * jimbaker_ (~jbaker@94-226-10-205.access.telenet.be) has joined #jython
[16:26] * jimbaker_ (~jbaker@94-226-10-205.access.telenet.be) Quit (Client Quit)
[16:51] * mbooth (~mbooth@80-193-72-41.paternoster.mezzonet.net) Quit (Ping timeout: 250 seconds)
[16:52] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[16:56] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 264 seconds)
[17:00] * xemdetia_ (xemdetia@nat/ibm/x-fyklkreqeeepvyla) has joined #jython
[17:03] * xemdetia (xemdetia@nat/ibm/x-vbfkipziceozfdhj) Quit (Ping timeout: 260 seconds)
[17:27] * ohumbel (5390f784@gateway/web/freenode/ip.83.144.247.132) Quit (Quit: Page closed)
[17:31] * mbooth (~mbooth@host-92-27-118-160.static.as13285.net) has joined #jython
[17:36] * smaudet (~smaudet@206-51-157-254.nktelco.net) Quit (Read error: Connection reset by peer)
[17:57] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[17:59] * leafstorm (~leafstorm@short.csc.ncsu.edu) has joined #jython
[18:00] <leafstorm> hey, I'm trying to create a custom callable type to optimize Java method calls
[18:00] <leafstorm> the goal is, you create it like FastGetter('java.lang.String', 'length')
[18:00] <leafstorm> from within Python, and it reflects everything at construct time
[18:01] <leafstorm> then, when you call it with an object, it converts it to the Java class you passed in with __tojava__,
[18:01] <leafstorm> calls the method using Java reflection, and uses Py.java2py to convert it back to a PyObject
[18:02] <leafstorm> I've figured out what __call__ methods I need to override and whatnot
[18:02] <leafstorm> problem is, I have no clue how to make Jython recognize the fact that it's callable
[18:02] <leafstorm> when I just had it using a normal constructor, the __call__ method didn't appear
[18:02] <leafstorm> (and also __str__ and __repr__ caused an infinite recursion error)
[18:03] <leafstorm> when I tried to use all the @ExposedWhatever annotations,
[18:03] <leafstorm> not only did __call__ not appear, but __str__ and __repr__ now segfault my JVM :-/
[18:03] <leafstorm> (and before anyone asks, yes, I really would like to do it this way)
[18:04] <leafstorm> (we have Jython code that's calling Python functions that wrap getter and setter methods in hot loops)
[18:04] <leafstorm> (this is an educational environment using Jython)
[18:05] <leafstorm> anyway, how do I take a Java class that implements the right __call__ methods and whatnot, and make Jython recognize it as callable?
[18:05] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 240 seconds)
[18:06] * mbooth (~mbooth@host-92-27-118-160.static.as13285.net) Quit (Ping timeout: 264 seconds)
[18:19] <leafstorm> here's the source: https://gist.github.com/leafstorm/14787d09876c60ead95c
[18:19] * mbooth (~mbooth@host-92-27-118-160.static.as13285.net) has joined #jython
[18:37] * xemdetia__ (xemdetia@nat/ibm/x-nissbleiodbawzdy) has joined #jython
[18:41] * xemdetia_ (xemdetia@nat/ibm/x-fyklkreqeeepvyla) Quit (Ping timeout: 256 seconds)
[18:46] * mbooth (~mbooth@host-92-27-118-160.static.as13285.net) Quit (Ping timeout: 264 seconds)
[18:51] * xemdetia__ is now known as xemdetia
[19:05] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[19:29] * r0bby_ is now known as robbyoconnor
[19:56] * paolo (~paolo@unaffiliated/paolo) Quit (Read error: Connection reset by peer)
[20:06] * paolo (~paolo@unaffiliated/paolo) has joined #jython
[21:15] * xemdetia_ (xemdetia@nat/ibm/x-ximjosjjsmswacro) has joined #jython
[21:19] * xemdetia (xemdetia@nat/ibm/x-nissbleiodbawzdy) Quit (Ping timeout: 255 seconds)
[22:00] * xemdetia_ (xemdetia@nat/ibm/x-ximjosjjsmswacro) Quit (Ping timeout: 272 seconds)
[22:51] * xemdetia (xemdetia@nat/ibm/x-navfqagkqbtsvprf) 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.