#jython IRC Log (v0.9)

Index

IRC Log for 2010-11-11

Timestamps are in GMT/BST.

[0:18] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 276 seconds)
[0:33] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 245 seconds)
[0:33] * stakkars (~tismer@i577B59A4.versanet.de) Quit (Quit: stakkars)
[0:39] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Quit: Ex-Chat)
[0:41] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[0:47] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[1:02] * njoyce (~njoyce@124-148-55-201.dyn.iinet.net.au) has joined #jython
[1:13] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[1:15] * nick (~njoyce@124-150-69-193.dyn.iinet.net.au) has joined #jython
[1:16] * nick is now known as Guest32696
[1:16] * njoyce (~njoyce@124-148-55-201.dyn.iinet.net.au) Quit (Read error: Connection reset by peer)
[1:20] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[1:21] * stakkars (~tismer@i577B59A4.versanet.de) has joined #jython
[1:23] * Guest32696 (~njoyce@124-150-69-193.dyn.iinet.net.au) Quit (Remote host closed the connection)
[1:23] * njoyce (~njoyce@124-150-69-193.dyn.iinet.net.au) has joined #jython
[2:41] * njoyce (~njoyce@124-150-69-193.dyn.iinet.net.au) Quit (Ping timeout: 276 seconds)
[2:45] * njoyce (~njoyce@203-217-47-171.dyn.iinet.net.au) has joined #jython
[3:08] * njoyce (~njoyce@203-217-47-171.dyn.iinet.net.au) Quit (Ping timeout: 255 seconds)
[3:13] <bowenl2> i enjoy jython
[3:25] * njoyce (~njoyce@202-173-164-97.dyn.iinet.net.au) has joined #jython
[3:43] * njoyce (~njoyce@202-173-164-97.dyn.iinet.net.au) Quit (Ping timeout: 240 seconds)
[3:49] * natlus (~simon@62.75.162.98) Quit (Ping timeout: 255 seconds)
[3:49] * natlus (~simon@transgaming.de) has joined #jython
[3:50] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) has joined #jython
[5:17] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 245 seconds)
[5:27] * njoyce (~njoyce@203-214-86-108.dyn.iinet.net.au) has joined #jython
[5:48] * njoyce (~njoyce@203-214-86-108.dyn.iinet.net.au) Quit (Ping timeout: 240 seconds)
[5:50] * njoyce (~njoyce@124-150-87-139.dyn.iinet.net.au) has joined #jython
[6:02] * njoyce (~njoyce@124-150-87-139.dyn.iinet.net.au) Quit (Remote host closed the connection)
[6:25] <bowenl2> i'm sorry to see nobody here shares my enthusiasm for jython. i would suspect that an irc channel in freenode would probably be the most enthusiastic place to gather and discuss open source stuff.
[6:31] <agronholm> bowenl2: you haven't actually said anything that warrants commenting
[6:32] <bowenl2> so usually i actually use netbeans for java development, but part of this project got developed in python, then i remembered i love python and that it's hard-ish to deploy and doesn't have stuff like jdbc obviously
[6:33] <bowenl2> so it's ending up being in jython, which i'm now enthusiastic about. is eclipse less bad with pydev less bad than netbeans?
[6:33] <agronholm> I understand that pydev > netbeans
[6:33] <agronholm> I use pydev myself
[6:34] <agronholm> although pydev has dozens of bugs
[6:34] <bowenl2> like with netbeans, when you have a class inherit from another class with its python support it can't even figure out the autocomplete for the inherited methods
[6:34] <agronholm> that's what I mean
[6:35] <bowenl2> and i'm really lazy and this is getting in the way of both my laziness and productivity at the same time, paradoxically
[6:35] <bowenl2> so i decided to go on irc
[6:35] <agronholm> I know what you mean
[6:36] <agronholm> I once tried to get the pydev source and fix the problems myself but I couldn't figure it out
[6:36] <agronholm> I've never done any eclipse plugin development
[6:36] <agronholm> so it was way over my head
[6:37] <bowenl2> i admire ibm for taking on the insane task of implementing a cross platform gui for java that actually rendered native widgets and has a decent interface
[6:38] <bowenl2> but if you actually try to deploy something with rcp, jface and swt (which has a platform dependent jar), over the internet, it's not cool
[6:38] <bowenl2> it's lotsa megabytes
[6:39] <agronholm> and at least on my ubuntu, swt suffers from strange issues
[6:40] <agronholm> like if the screen saver activates and I deactivate it, I can't type unless I unfocus and then focus eclipse again
[6:40] <bowenl2> on mine, swing suffers from having its menus not outlined at all, and the background of the menu is white, as is the white background of the textarea i'm typing in
[6:41] <agronholm> is that on the default theme or the gtk+ theme?
[6:41] <bowenl2> it was the default on 10.04
[6:42] <bowenl2> yeah one of the themes works correctly for that but had one other issue i can't remember about
[6:42] <agronholm> the "system" theme has the same issues as you described
[6:43] <bowenl2> i should actually fix this issue but programming is hard
[6:43] <agronholm> yes...
[6:44] <bowenl2> sincerely though, jython is awesome except for the fact that i just discovered it's unbelievably slow in general. how the heck does it implement multiple inheritance and yet be run on the jvm?!?!
[6:47] <agronholm> yeah it is slow
[6:47] <agronholm> and it does not implement multiple inheritance for java classes
[6:47] <agronholm> you can only inherit from multiple python superclasses
[6:47] <bowenl2> ohhhhh gotcha
[6:48] <bowenl2> what about a java and some python classes
[6:48] <bowenl2> like a jframe and a bunch of stuff
[6:48] <agronholm> one java + multiple python = ok
[6:48] <agronholm> I do that a lot
[6:48] <bowenl2> whoever programmed this is completely insane
[6:48] <agronholm> or multiple java interfaces, that's ok too of course
[6:48] <bowenl2> it's actually brilliant
[6:49] <agronholm> and filled with compromises and workarounds
[6:51] <bowenl2> that sounds like the dating scene at an engineering university
[6:52] <bowenl2> especially as a computer science major
[6:52] <bowenl2> i can't believe how familiar i am with jython already!
[6:54] * robbyoconnor (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) has joined #jython
[6:54] * robbyoconnor (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) Quit (Changing host)
[6:54] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[7:19] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) Quit (Quit: enebo)
[8:08] * thobe (~Adium@212-162-171-110.skbbip.com) has joined #jython
[8:08] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[8:43] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 245 seconds)
[9:00] * njoyce (~njoyce@124-150-87-139.dyn.iinet.net.au) has joined #jython
[9:03] * jabley_ (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[9:03] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Read error: Connection reset by peer)
[9:03] * jabley_ is now known as jabley
[9:07] * Imek (~joe@host-195-188-251-108.reversezone.co.uk) has joined #jython
[9:11] * pjenvey (~pjenvey@underboss.org) Quit (Quit: ZNC - http://znc.sourceforge.net)
[9:12] * pjenvey (~pjenvey@underboss.org) has joined #jython
[9:28] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[9:43] * wmeissner (~wmeissner@C-59-100-105-210.bri.connect.net.au) has joined #jython
[10:06] * stakkars (~tismer@i577B59A4.versanet.de) Quit (Ping timeout: 272 seconds)
[10:09] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[10:14] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[10:55] * seberg (~sebastian@vpn-3061.gwdg.de) has joined #jython
[10:56] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[11:01] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[11:02] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[11:20] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 245 seconds)
[11:54] * wmeissner (~wmeissner@C-59-100-105-210.bri.connect.net.au) Quit (Quit: wmeissner)
[11:56] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[12:32] * njoyce (~njoyce@124-150-87-139.dyn.iinet.net.au) Quit (Remote host closed the connection)
[12:42] * njoyce (~njoyce@124-150-87-139.dyn.iinet.net.au) has joined #jython
[13:03] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[13:10] * seberg (~sebastian@vpn-3061.gwdg.de) Quit (Ping timeout: 240 seconds)
[15:00] * mcella (~mcella@ip-176-81.sn2.eutelia.it) has joined #jython
[15:24] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) has joined #jython
[15:40] * verterok (~ggonzalez@190.188.243.32) has joined #jython
[15:40] * verterok (~ggonzalez@190.188.243.32) Quit (Changing host)
[15:40] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[15:54] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) Quit (Quit: enebo)
[16:34] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Quit: Leaving.)
[17:16] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[17:21] * jcp (~jw@bzflag/contributor/javawizard2539) Quit (Ping timeout: 245 seconds)
[17:22] * jcp (~jw@bzflag/contributor/javawizard2539) has joined #jython
[17:26] * seberg (~sebastian@vpn-3203.gwdg.de) has joined #jython
[17:39] * seberg (~sebastian@vpn-3203.gwdg.de) Quit (Quit: Ex-Chat)
[17:39] * seberg (~sebastian@vpn-3203.gwdg.de) has joined #jython
[17:57] * stakkars (~tismer@89.204.137.21) has joined #jython
[18:21] * Imek (~joe@host-195-188-251-108.reversezone.co.uk) Quit (Quit: Good night, and have a pleasant tomorrow.)
[18:33] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 276 seconds)
[18:41] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[18:46] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[19:06] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[19:13] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) has joined #jython
[19:44] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) Quit (Ping timeout: 255 seconds)
[19:51] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) has joined #jython
[19:59] * stakkars (~tismer@89.204.137.21) Quit (Remote host closed the connection)
[20:00] * stakkars (~tismer@i59F7DEB0.versanet.de) has joined #jython
[20:24] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[20:26] * stakkars (~tismer@i59F7DEB0.versanet.de) Quit (Quit: stakkars)
[20:30] * stakkars (~tismer@i59F7DEB0.versanet.de) has joined #jython
[20:37] * cyril_ (~cyril@tal33-1-82-226-197-59.fbx.proxad.net) has joined #jython
[20:37] <cyril_> Hi eveybody !
[20:40] <cyril_> So, I have this pretty big Python library that I would love to use in a Java program, and I thought jython would come in handy. Though it makes it easy to use Java code inside Python code, the opposite seems a little bit more difficult. Do I realy have to write a factory or use the Python Interpreter, as I have read on the Web ?
[20:41] <agronholm> yes
[20:41] <agronholm> java is a clumsy language
[20:42] <agronholm> that's why jython exists
[20:42] <cyril_> Oh, Java really is not my cup of tea :p
[20:43] * jimbaker (~jimbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[20:44] <cyril_> Using the PythonInterpreter java class would not force me to do huge modifications to the Python library code, since I could use the execfile() method, but do you think I could easily use the library (almost as if it was a Java one) ?
[20:59] * mcella (~mcella@ip-176-81.sn2.eutelia.it) Quit (Remote host closed the connection)
[21:02] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) Quit (Quit: enebo)
[21:10] * jimbaker (~jimbaker@64.134.11.216) has joined #jython
[21:12] * groves (~groves@nat.earth.threerings.net) has joined #jython
[21:37] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[22:01] * mcella (~mcella@212.183.177.75) has joined #jython
[22:08] <pr3d4t0r> cyril_: It depends on your container.
[22:08] <pr3d4t0r> cyril_: Some containers (e.g. Spring, Mule) already have JSR-223 support included.
[22:09] <cyril_> I'm not exactly familiar with Java nor that notion of "containers". Could you give me some pointers ?
[22:10] <pr3d4t0r> cyril_: Sure.
[22:10] * jimbaker (~jimbaker@64.134.11.216) Quit (Quit: jimbaker)
[22:11] <pr3d4t0r> cyril_: Will this run in a stand-alone application, on a server, where? What's the Java part about?
[22:13] * enebo (~enebo@c69-58-70-2.cust.broadbandip.net) has joined #jython
[22:16] <cyril_> Basically, a friend of mine is hacking on a Java project, which aims at providing braille partitions for blind people. It uses XML files (the musicxml format). She needs to be able to print the partition, by generating a file in some weird format. She found a Python toolkit that does the job, and would love to be able to use it in Java instead of having to rewrite the toolkit in Java. So it is basically a standalone application.
[22:16] <pr3d4t0r> cyril_: OKi.
[22:16] <pr3d4t0r> cyril_: Why not use it in Python?
[22:16] <pr3d4t0r> cyril_: It makes no sense to add a Java layer to this if you aren't proficient at it yet.
[22:17] <pr3d4t0r> cyril_: You'll get better performance and fewer moving parts if you keep it in Python.
[22:17] <cyril_> Well, since the whole application is written in Java, she only has two options
[22:17] <pr3d4t0r> . . .
[22:17] <cyril_> 1) Use the toolkit "as is", even if it needs some kludging
[22:17] <cyril_> 2) Rewrite the toolkit in Java :(
[22:17] <pr3d4t0r> cyril_: Oh, got it.
[22:18] <pr3d4t0r> cyril_: Yeah, I got it.
[22:18] <pr3d4t0r> cyril_: Check these before you go further:
[22:18] <pr3d4t0r> cyril_: 1. For what version of Java is the Braille program? You want Java 6 as the minimum requirement.
[22:19] <pr3d4t0r> cyril_: 2. Identify if this is a stand-alone or web app.
[22:19] <pr3d4t0r> cyril_: 3. If it's a web app, find out if it's running on a container like Tomcat or something else.
[22:19] <pr3d4t0r> cyril_: 4. If it's in a container, find out if they're using Spring.
[22:19] <pr3d4t0r> cyril_: Then you have 2 choices:
[22:20] <pr3d4t0r> cyril_: a) If it's stand-alone, then just use the javax.scripting.* classes (you want the scripting factory) for creating the Jython instance, then bring the code in, and you're good to go.
[22:20] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[22:21] <pr3d4t0r> cyril_: b) If it's in a container with Spring, you can add Jython support on a configuration file with minimal grief; something like: <bean:scriptinng source='mypythonicstuff.py' engine='jython' /> and the code is automagically available to you.
[22:24] <cyril_> pr3d4t0r, Well, it's a standalone application that runs with the latest version of Java, so I'll probably go with the javax.scripting.* classes, it seems great.
[22:25] <cyril_> it seems to be a nice way of doing what I need, though it may not be that clean :p
[22:25] * mcella (~mcella@212.183.177.75) Quit (Remote host closed the connection)
[22:31] * jimbaker (~jimbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[22:52] * jimbaker (~jimbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[22:58] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Read error: Connection reset by peer)
[22:58] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[23:05] <cyril_> pr3d4t0r, Should setting my classpath to the directory where jython.jar can be found be enough ?
[23:06] * seberg (~sebastian@vpn-3203.gwdg.de) Quit (Quit: Ex-Chat)
[23:10] <pr3d4t0r> cyril_: Yes, add jython.jar to the classpath.
[23:11] <pr3d4t0r> cyril_: Then package all your .py classes in a separate .jar file and add that to the classpath as well.
[23:13] <cyril_> pr3d4t0r, Well, I've listed all Script Engines known by Java, and it only knows the ECMAScript engine, though I'm adding jython.jar and jython-engine.jar to the classpath
[23:13] <cyril_> pr3d4t0r, Gonna be a long night.
[23:16] * jimbaker (~jimbaker@c-67-190-49-237.hsd1.co.comcast.net) has joined #jython
[23:20] <jimbaker> bowenl2: glad to hear you like jython
[23:20] <jimbaker> we are making some efforts to improve its performance significantly. shanka is working with me on this project
[23:22] <jimbaker> we are not ready yet to say how much improvement. but we are in the process of some experiments with respect to what could be gained by type specialization and invokedynamic. jython's code objects (much like cpython's) gives us a lot of flexibility in doing this incrementally
[23:22] <jimbaker> hopefully we will have some interesting results by pycon
[23:23] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Read error: Connection reset by peer)
[23:24] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[23:29] <pr3d4t0r> jimbaker: invokedynamic is like waiting for Godot in Java.
[23:29] <jimbaker> pr3d4t0r: not necessarily
[23:29] <jimbaker> there's an implementation available for java 6
[23:30] <jimbaker> it will give us the polymorphic cache support that jruby has had to build independently; and if we use an agent approach, comparable performance to java 7 today
[23:31] <jimbaker> that will diverge as the java 7 builds get better, but it's still pretty good
[23:31] <jimbaker> and much better than what we have in jython today
[23:33] <jimbaker> pr3d4t0r: basically what will happen w/ java 7 is that the premise of indy is to get much better inlining
[23:33] <jimbaker> now if this were to support jython or jruby only, i would think you would see very little progress. but the real reason for indy is almost certainly for app servers. and that's something oracle cares a great deal about
[23:35] <pr3d4t0r> jimbaker: Agreed.
[23:35] <pr3d4t0r> jimbaker: I'm just tired of waiting ;)
[23:35] <pr3d4t0r> jimbaker: I was playing with calibre this morning; 100% Python. Very nice app.
[23:35] <jimbaker> pr3d4t0r: as a jython implementer, i must be patient :)
[23:36] <jimbaker> it's a long slog to get this stuff out, and then even more, much more, to see it adopted
[23:36] * maxb_ (~maxb@jabberwock.vm.bytemark.co.uk) has joined #jython
[23:41] * maxb (~maxb@jabberwock.vm.bytemark.co.uk) Quit (*.net *.split)
[23:46] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[23:53] * maxb_ is now known as maxb
[23:57] <cyril_> pr3d4t0r, Works like a charm, thanks !
[23:59] * enebo (~enebo@c69-58-70-2.cust.broadbandip.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).