#jython IRC Log (v0.9)

Index

IRC Log for 2011-06-24

Timestamps are in GMT/BST.

[0:15] * juneau001 (~juneau@50-45-114-190.dklb.il.frontiernet.net) has joined #jython
[0:31] * jabley (~jabley@cpc8-farn7-2-0-cust186.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[1:11] * Trundle (~andy@python/site-packages/trundle) Quit (Remote host closed the connection)
[1:30] * shashank (~shashank@67-40-52-2.hlrn.qwest.net) Quit (Read error: Connection reset by peer)
[2:05] * mrud (uli@grml/developer/mru) has joined #jython
[2:26] * chris_ (~chris@vodsl-9119.vo.lu) has joined #jython
[2:27] * chris_ is now known as Guest28199
[2:32] * acuozzo (4a6b7e58@gateway/web/freenode/ip.74.107.126.88) has joined #jython
[2:33] <acuozzo> Anything?
[2:38] <acuozzo> Re-ask: Does anyone know of any good/idiomatic (/new!) Jython code for me to read? SourceForge and Google haven't been helpful.
[2:49] <luizribeiro> hi acuozzo
[2:50] <luizribeiro> what kind of Jython code you want to read?
[2:51] <luizribeiro> Jython is used on many different projects
[2:52] <luizribeiro> from FOSS projects like django to proprietary software like application servers from IBM (WAS)
[2:53] <luizribeiro> Jython is also used on GUESS (a graph exploration software): http://graphexploration.cond.org/
[2:54] <luizribeiro> I'm currently working on extending Jython with a few additional operators for graph structures (in a similar way to GUESS), as part of GSoC 2011
[2:55] <luizribeiro> (I'm working with Gephi, which is also a graph manipulation and visualization software: http://www.gephi.org/)
[2:55] <acuozzo> luizribeiro: Sorry, I was away from the computer.
[2:55] <luizribeiro> hope I was useful somehow :)
[2:55] <luizribeiro> acuozzo: oh, no problem
[2:56] <acuozzo> I guess I'm trying to give the "code reading" thing a shot.
[2:57] <acuozzo> So any good/new/idiomatic Jython is fine by me! I'll take a look at what you mentioned.
[2:57] <luizribeiro> GUESS is probably not a good way to learn Jython, though. it has many modifications to Jython's core :)
[2:57] <acuozzo> I come primarily from a low-level systems programming background (C, assembly).
[2:58] <luizribeiro> hmmm, cool
[2:58] <luizribeiro> are you used with Java development?
[2:58] <luizribeiro> *used to
[2:58] <acuozzo> Actually, yes. I'm a rather experienced Java developer, but I really don't like the language itself.
[2:59] <luizribeiro> heh, same here
[2:59] <luizribeiro> :)
[3:00] <acuozzo> I decided on Jython (over Python 3.x) because I really dig SWT.
[3:00] <luizribeiro> Jython is really nice. you get all of the Java API's strengths with the conciseness of Python
[3:01] <acuozzo> I don't see why people say that you can't write C extensions. What about JNI?
[3:01] <luizribeiro> oh, writing C extensions to Jython?
[3:01] <acuozzo> Yes, sorry for the poor wording.
[3:02] <acuozzo> Jython doesn't have any issues with native methods, does it?
[3:02] <luizribeiro> not that I am aware of
[3:02] <acuozzo> Awesome!
[3:03] <Guest28199> Hi! I made Java class which represents a vector (math), and I implemented __add__, __mul__..., which allows me to nicely compute my stuff using Jython. I would now like to turn this class into a Jython list, so that I can access individual elements using syntax like A[i]. How can I do this? I am good at Java, but not familiar with Jython internals. I had a quick look at PyList, PySequence, PySequenceList... sources, but there is little documentation and
[3:03] <Guest28199> cannot distinguish which class I should extend... Please help! :)
[3:03] <luizribeiro> I've read somewhere else that better support to C extensions is planned
[3:03] <acuozzo> I'll be back in a bit.
[3:03] <luizribeiro> but don't take my word as granted, I'm very new to Jython (I started working with it just a few months back)
[3:05] <luizribeiro> Guest28199: I believe you can override the __getitem__ method, in order to have access with the syntax you said
[3:07] <Guest28199> Oh! It would be great if this so easy to do! I will try this immediately. Thanks! :)
[3:07] <luizribeiro> Guest28199: take a look here: http://diveintopython.org/object_oriented_framework/special_class_methods.html#d0e12822
[3:08] <luizribeiro> even though it's a book about Python, this applies to Jython too
[3:08] <luizribeiro> you'll probably want to override the __setitem__ method too, so that you can do stuff like A[i] = foo
[3:11] <Guest28199> Yes, thank you!
[3:16] <luizribeiro> you're welcome :)
[3:19] <Guest28199> I started with a pure Java program, and I must admit I was surprised how simple it was to use my classes from Jython. Now again things are much simpler than what I expected. This is really great about Jython! :)
[3:33] <Guest28199> It works indeed with __getitem__. Very intuitive and very simple! Thanks again! Have a nice day! :)
[3:34] <luizribeiro> indeed, it's very easy to integrate Jython within a Java app, thanks to reflection :)
[3:34] * Guest28199 (~chris@vodsl-9119.vo.lu) has left #jython
[3:34] <luizribeiro> awesome! you too :)
[3:34] <luizribeiro> I'm going to sleep now, bye :)
[5:01] * shashank (~shashank@67-40-52-2.hlrn.qwest.net) has joined #jython
[5:20] * acuozzo (4a6b7e58@gateway/web/freenode/ip.74.107.126.88) has left #jython
[6:32] * stakkars (~tismer@host28-201-static.30-87-b.business.telecomitalia.it) Quit (Ping timeout: 240 seconds)
[7:07] * shashank (~shashank@67-40-52-2.hlrn.qwest.net) Quit (Ping timeout: 260 seconds)
[8:00] * jabley (~jabley@cpc8-farn7-2-0-cust186.6-2.cable.virginmedia.com) has joined #jython
[8:18] * stakkars (~tismer@93.189.143.198) has joined #jython
[8:37] * stakkars (~tismer@93.189.143.198) Quit (Ping timeout: 258 seconds)
[9:07] * agronholm (~demigod@87-93-124-102.bb.dnainternet.fi) has joined #jython
[10:02] * lopex (lopex@84-10-213-252.dynamic.chello.pl) has joined #jython
[10:42] * jcp (alex@bzflag/contributor/javawizard2539) Quit (Ping timeout: 264 seconds)
[10:50] * jcp (alex@bzflag/contributor/javawizard2539) has joined #jython
[10:51] * Trundle (~andy@python/site-packages/trundle) has joined #jython
[11:55] * stakkars (~tismer@93.189.143.199) has joined #jython
[12:27] * stakkars (~tismer@93.189.143.199) Quit (Quit: schnarch)
[12:47] * juneau001_ (~juneau@50-45-120-228.dklb.il.frontiernet.net) has joined #jython
[12:49] * juneau001 (~juneau@50-45-114-190.dklb.il.frontiernet.net) Quit (Ping timeout: 246 seconds)
[12:49] * juneau001_ is now known as juneau001
[14:41] * shashank (~shashank@67-40-52-2.hlrn.qwest.net) has joined #jython
[15:25] * enebo (~enebo@184-97-192-70.mpls.qwest.net) has joined #jython
[16:06] * lopex (lopex@84-10-213-252.dynamic.chello.pl) Quit (Ping timeout: 258 seconds)
[16:10] * lopex (lopex@84-10-213-252.dynamic.chello.pl) has joined #jython
[16:32] * lopex (lopex@84-10-213-252.dynamic.chello.pl) Quit ()
[17:09] * jabley (~jabley@cpc8-farn7-2-0-cust186.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[17:40] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[18:28] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: [IRSSI] When you do something, you should burn yourself up completely, like a good bonfire, leaving no trace of yourself.)
[19:22] * lopex (lopex@84-10-213-252.dynamic.chello.pl) has joined #jython
[20:18] * lopexx (lopex@84-10-213-252.dynamic.chello.pl) has joined #jython
[20:19] * lopex (lopex@84-10-213-252.dynamic.chello.pl) Quit (Ping timeout: 252 seconds)
[20:20] * lopexx (lopex@84-10-213-252.dynamic.chello.pl) Quit (Client Quit)
[20:20] * lopex (lopex@84-10-213-252.dynamic.chello.pl) has joined #jython
[20:28] * enebo (~enebo@184-97-192-70.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[20:28] * enebo (~enebo@184-97-192-70.mpls.qwest.net) has joined #jython
[21:47] * BullShark (User@unaffiliated/robotcow) has joined #jython
[21:50] * stakkars (~tismer@host28-201-static.30-87-b.business.telecomitalia.it) has joined #jython
[22:08] * enebo (~enebo@184-97-192-70.mpls.qwest.net) Quit (Quit: enebo)
[22:08] * lopex (lopex@84-10-213-252.dynamic.chello.pl) Quit (Ping timeout: 244 seconds)
[22:37] * lopex (lopex@84-10-213-252.dynamic.chello.pl) 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 (github).