#jython IRC Log (v0.9)

Index

IRC Log for 2010-08-04

Timestamps are in GMT/BST.

[0:11] * ttmrichter (~ttmrichte@111.173.97.187) has joined #jython
[0:28] * headius (~headius@fa66.ips.PaulBunyan.net) Quit (Quit: headius)
[0:32] * headius (~headius@fa66.ips.paulbunyan.net) has joined #jython
[0:32] * headius (~headius@fa66.ips.paulbunyan.net) Quit (Client Quit)
[0:35] * jimbaker (~jbaker@ucb-np1-54.colorado.edu) Quit (Quit: jimbaker)
[0:48] * classfoo (~classfoo@58.49.52.114) has joined #jython
[1:00] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[1:28] * tristanbuckner (~tristan@38.99.42.113) Quit (Quit: tristanbuckner)
[4:18] * pigletto (~quassel@109.243.221.64) has joined #jython
[6:29] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[6:54] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Remote host closed the connection)
[6:54] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[6:56] * mds1 (~seiler@131.220.126.195) has joined #jython
[6:56] * mds1 (~seiler@131.220.126.195) has left #jython
[7:16] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[7:27] * thobe (~Adium@212-162-171-110.skbbip.com) has joined #jython
[7:54] * agronholm_ (~agronholm@87-95-73-246.bb.dnainternet.fi) has joined #jython
[7:56] * agronholm (~agronholm@87-93-23-20.bb.dnainternet.fi) Quit (Ping timeout: 276 seconds)
[8:14] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[9:04] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[9:09] * stakkars (~tismer@i577B7825.versanet.de) Quit (Ping timeout: 258 seconds)
[9:15] * stakkars (~tismer@i59F7FE99.versanet.de) has joined #jython
[9:59] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[10:09] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Quit: jabley)
[10:14] * classfoo (~classfoo@58.49.52.114) Quit (Remote host closed the connection)
[10:19] * juneau001 (~juneau@pool-72-69-76-157.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[10:34] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[11:10] * juneau001 (~juneau@FESS-116326-2175079-dp.dhcp.fnal.gov) has joined #jython
[11:12] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[12:05] * pigletto (~quassel@109.243.221.64) Quit (Remote host closed the connection)
[12:37] * agronholm_ (~agronholm@87-95-73-246.bb.dnainternet.fi) Quit (Quit: L??hd??ss??)
[12:48] * agronholm_ (~agronholm@87-95-73-246.bb.dnainternet.fi) has joined #jython
[13:14] * agronholm_ (~agronholm@87-95-73-246.bb.dnainternet.fi) Quit (Quit: L??hd??ss??)
[13:39] * agronholm (~demigod@87-95-73-246.bb.dnainternet.fi) has joined #jython
[14:07] * enebo (~enebo@174-30-241-66.mpls.qwest.net) has joined #jython
[14:29] * skay (~skay@pat1.orbitz.net) has joined #jython
[14:45] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Quit: Leaving.)
[14:59] * gqlewis_ (~gqlewis@h242.94.82.166.static.ip.windstream.net) has joined #jython
[15:22] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[15:37] * jimbaker (~jbaker@c-67-173-240-173.hsd1.co.comcast.net) has joined #jython
[15:48] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[16:05] * lheuer (~heuer@unaffiliated/lheuer) Quit (Quit: Closing Time)
[16:08] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[16:08] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[16:09] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Client Quit)
[16:35] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[16:36] * gqlewis_ (~gqlewis@h242.94.82.166.static.ip.windstream.net) Quit (Remote host closed the connection)
[16:36] * gqlewis_ (~gqlewis@h242.94.82.166.static.ip.windstream.net) has joined #jython
[16:38] * ttmrichter (~ttmrichte@111.173.97.187) Quit (Quit: Quitting)
[17:15] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[17:16] * Phil_FL (~Phil_FL@mia-gw.peer1.net) has joined #jython
[17:32] * tristanbuckner (~tristan@38.99.42.113) has joined #jython
[17:41] * headius (~headius@fa66.ips.PaulBunyan.net) has joined #jython
[17:44] * jimbaker (~jbaker@c-67-173-240-173.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[17:47] * headius (~headius@fa66.ips.PaulBunyan.net) Quit (Read error: Connection reset by peer)
[17:47] * headius (~headius@fa66.ips.PaulBunyan.net) has joined #jython
[17:50] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Quit: jabley)
[18:20] * pigletto (~quassel@dut34.neoplus.adsl.tpnet.pl) has joined #jython
[19:04] * headius (~headius@fa66.ips.PaulBunyan.net) Quit (Quit: headius)
[19:05] * headius (~headius@fa66.ips.paulbunyan.net) has joined #jython
[19:18] * pigletto (~quassel@dut34.neoplus.adsl.tpnet.pl) Quit (Remote host closed the connection)
[19:18] * pigletto (~quassel@dut34.neoplus.adsl.tpnet.pl) has joined #jython
[19:31] * juneau001 (~juneau@FESS-116326-2175079-dp.dhcp.fnal.gov) Quit (Quit: juneau001)
[19:33] * worldhlord (~eldragon@84.79.67.254) has joined #jython
[19:33] <worldhlord> http://www.sec.gov/comments/s7-08-10/s70810.shtml
[19:33] <worldhlord> if python is fortressed by the govt' SEC then Jython's future will be profitably collapsed, xD
[19:36] <worldhlord> bankers -> govt's python for cashflows -> interpreted slowly by cpython -> accelerated by speedy developments of Jython using internal compiler java -> ??? -> profit!
[19:36] <pjenvey> yea
[19:36] <pjenvey> do you know when they'll make a final decision on that?
[19:36] <worldhlord> don't think twice, the decision was made.
[19:37] * jaraco (~jaraco@drake.jaraco.com) has joined #jython
[19:37] * jaraco (~jaraco@drake.jaraco.com) has left #jython
[19:38] <pjenvey> last I heard it sounded like it was just at the propsal stage
[19:50] <worldhlord> see the criticism in http://www.sec.gov/comments/s7-08-10/s70810-89.pdf & http://www.sec.gov/comments/s7-08-10/s70810-78.pdf
[20:00] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[20:01] <pjenvey> worldhlord - Damn ACM, Philip Wadler is a haskell guy, so of course he thinks somethinmg like f# would be more appropriate =P
[20:01] <worldhlord> M$ wanna IronPython, M$ wanted more XML data-oriented
[20:02] <pjenvey> heh. I think it said they wanted comments by August 2nd
[20:02] <worldhlord> http://www.sec.gov/comments/s7-08-10/s70810-126.pdf <-- from M$
[20:03] <worldhlord> http://www.sec.gov/comments/s7-08-10/s70810-15.htm <-- about the pitfalls of python for buggy programs, xD
[20:03] * jimbaker (~jbaker@64.134.11.141) has joined #jython
[20:04] <pjenvey> python haters gonna hate
[20:07] <agronholm> I still can't help but to wonder why cpython is so much slower than java
[20:07] <agronholm> is it because of reference counting?
[20:08] <jimbaker> agronholm: ref counting is more tied up with the GIL
[20:09] <jimbaker> it does present problems for unladen swallow, because the LLVM doesn't really work that well w/ ref counting, as i understand it
[20:09] <jimbaker> (in terms of its JIT op)
[20:09] <agronholm> that was one of the primary reasons why the project failed iirc
[20:10] <jimbaker> yes
[20:10] <jimbaker> although i don't want to do any FUD on other python projects
[20:11] <jimbaker> so let's just say, it presents difficult challenges for them, which may be addressed in the future
[20:11] <jimbaker> the problem is, ref counting is very much tied to a lot of optimizations in cpython. so it's hard to just pull it out w/o making it immediately slower
[20:12] <agronholm> well the way I see it, refcounting is a dead end performance wise
[20:13] <worldhlord> the advantage of jython is two-fold: 1) to use govt-approved code 2) to interoperate with complex java projects
[20:13] <jimbaker> you can roll out some simple optimizations w/ it. some good examples are seen in iteration support
[20:14] <jimbaker> but yes, that pulls cpython even more into the perf deadend
[20:14] <worldhlord> but i like more groovy than jython, :(
[20:14] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[20:15] <jimbaker> worldhlord: we can't help you much here :)
[20:16] <jimbaker> i haven't looked at the SEC proposal, but presumably they want a pure python program as executable pseudocode representing a security
[20:16] <jimbaker> so no java backdoors
[20:17] <jimbaker> the question is, how much people would abuse this by intentionally obfuscating the security definition
[20:19] <jimbaker> still it seems like a good approach, starting with a turing complete language. microsoft's proposal would simply get stuck in making yet another language embedded in xml, which basically sucks
[20:20] <worldhlord> M$ sucks
[20:21] <jimbaker> agronholm: to summarize, cpython is essentially slow because of 1. the bytecode interpreter; 2. dynamic dispatch
[20:21] <worldhlord> groovy is very similar to jython but more oriented to java-interoperativility.
[20:21] <agronholm> dunno how dynamic dispatch could be avoided in a dynamic language
[20:22] <jimbaker> the biggest problems with jython would be 1. dynamic dispatch; 2. dynamic objects, specifically the fact that __dict__ is a concurrent hash map
[20:23] <jimbaker> we can't avoid dyn dispatch, but of course we can make it work much better with JITs. especially observing that they tend to be stable. hence invokedynamic.
[20:24] <jimbaker> for #2, the best bet is to use java objects where possible, whether builtin types or not
[20:24] <worldhlord> jimbaker, the direction is to get a released Java7 that has the instruction invokedynamic, but Java7 is still unreleased, and another feature is added to Java7, the lambda notation.
[20:25] <jimbaker> i don't believe lambda is relevant to other jvm languages, it's just something that gets compiled appropriately to jvm bytecode
[20:26] <worldhlord> the lambda notation should be added later, to Java9 or to Java10, not Java7.
[20:26] <jimbaker> but the important thing to know is that we have a working implementation of invokedynamic that's backwards compatible to java 5
[20:26] <worldhlord> damn Oracle.
[20:27] <agronholm> lambda seems like a java feature rather than a jvm feature
[20:27] <agronholm> hence not awfully relevant to jython
[20:27] <jimbaker> it doesn't inline like it will for java 7, but that's ok. as i understand it, we would get similar inlining as currently seen in jruby
[20:28] <jimbaker> you can follow progress of indy support for < java 7 at http://code.google.com/p/jvm-language-runtime/updates/list
[20:29] <jimbaker> more important for us is that we can have the same codebase, which greatly simplifies things
[20:30] <agronholm> same codebase with what?
[20:30] <worldhlord> i should have working my small projects in java, groovy and jython.
[20:32] <jimbaker> agronholm: same compiler codebase
[20:32] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Quit: leaving)
[20:32] <agronholm> with jruby?
[20:33] <worldhlord> puff, with jruby, it's too many languages.
[20:34] <jimbaker> sorry, although that would be awesome, and something we have discussed with jruby, no
[20:34] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[20:34] <jimbaker> i just mean replacing our current reflection machinery
[20:35] <worldhlord> many SEC bankers have $$$ for improving their python systems, jython are one of the candidates, xD
[20:35] <jimbaker> worldhlord: we work pretty closely with jruby, but really not with any other jvm languages
[20:35] * headius (~headius@fa66.ips.paulbunyan.net) Quit (Quit: headius)
[20:36] <worldhlord> good luck to you.
[20:36] <jimbaker> worldhlord: one possibility is support static python code analysis. google contributed code for that purpose, which is part of 2.5.2
[20:37] <jimbaker> so apparently google uses jython internally to support their python codebase
[20:37] <jimbaker> (or at least some groups are doing that)
[20:37] <worldhlord> python-based is one of the languages of google together with javascript and java.
[20:38] <jimbaker> that might be of interest to people analyzing securities that are defined in python. time will tell
[20:39] <worldhlord> but i wanna to lose to poor interoperativity with java as the bad languages cpython, unladen-swallow, etc.
[20:39] <worldhlord> /bad languages/bad implementations/
[20:41] <worldhlord> java reflection is a feature very important for maintainance.
[20:41] <jimbaker> invokedynamic is simply a way of getting better performance for what reflection can do
[20:42] <worldhlord> i use groovy/jython for scripts, java for libraries.
[20:42] <agronholm> s/mantainance/maintenance/
[20:43] <jimbaker> i would say, use java for performance critical libraries.
[20:43] <worldhlord> yes!
[20:43] <jimbaker> or if in cpython, you would use __slots__, simply write the type instead as a java class
[20:44] <jimbaker> and watch your object allocation rates improve significantly
[20:44] <worldhlord> i wanna to develop C code that is an effort higher than Java code
[20:45] <jimbaker> a goal of mine for clamp is to pull out the expose machinery so that we can minimize callpath overhead to types defined outside of jython itself
[20:45] <jimbaker> (java types that is)
[20:46] <worldhlord> for complex performant code, C exposes to risks of buggyness and leakness.
[20:48] <jimbaker> there's certainly need to use C for some performance critical code. but usually java would be the same or possibly better (because of concurrency/GC support)
[20:48] <jimbaker> the other category to use C is because there's a large body of code written in it
[20:49] <jimbaker> something we have discussed is supporting the python c extension api
[20:49] <worldhlord> kloc(C) is much higher than kloc(Java)
[20:50] <jimbaker> which in retrospect might be easier than ctypes support, which is still work that continues
[20:50] <jimbaker> for java vs C performance, i recommend this blog post by cliff click: http://www.azulsystems.com/blog/cliff-click/2009-09-06-java-vs-c-performanceagain
[20:51] <worldhlord> but java is for only remediate the slowness of python, and java gives reasonable performance for almost purposes.
[20:51] <jimbaker> absolutely agreed
[20:53] * pigletto (~quassel@dut34.neoplus.adsl.tpnet.pl) Quit (Remote host closed the connection)
[20:56] * juneau001 (~juneau@pool-72-69-76-157.chi01.dsl-w.verizon.net) has joined #jython
[20:59] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[21:15] * gberdyshev (~georgy@unaffiliated/codingmaster) has joined #jython
[21:22] * enebo (~enebo@174-30-241-66.mpls.qwest.net) Quit (Quit: enebo)
[21:22] <worldhlord> good bye to scheme, lisp, matlab, php, i will want Python-Hypertext-Pages, xD
[21:30] * enebo (~enebo@174-30-241-66.mpls.qwest.net) has joined #jython
[21:32] <Moo^_^> worldhlord: they are restructured text pages (reST)
[21:33] <Moo^_^> if you want to have pythonic syntax to write HTML pages :)
[21:35] <worldhlord> yes! thanks Moo^_^
[21:36] * enebo (~enebo@174-30-241-66.mpls.qwest.net) Quit (Quit: enebo)
[21:36] <worldhlord> i want python and groovy syntax embedded to HTML pages
[21:38] <Moo^_^> worldhlord: that's stupid idea
[21:38] <Moo^_^> worldhlord: python is not suitable for templating
[21:38] <Moo^_^> worldhlord: the world has gone beyond that like ten years ago
[21:39] <Moo^_^> worldhlord: and use now proper templating languages
[21:40] <Moo^_^> worldhlord: try here http://jinja.pocoo.org/2/documentation/templates
[21:40] * jimbaker (~jbaker@64.134.11.141) Quit (Quit: jimbaker)
[21:43] * jimbaker (~jbaker@64.134.11.141) has joined #jython
[21:48] * skay (~skay@pat1.orbitz.net) Quit (Quit: skay)
[21:53] * Phil_FL (~Phil_FL@mia-gw.peer1.net) Quit (Quit: Leaving)
[21:54] * jimbaker (~jbaker@64.134.11.141) Quit (Quit: jimbaker)
[22:14] <agronholm> Moo^_^: I tend to use blocks of Python in my mako templates occasionally
[22:16] <Moo^_^> agronholm: you should put your python code to separate view class which you refer from templates
[22:16] <Moo^_^> putting code into templates is the easiest way to get your codebase messed up
[22:16] <Moo^_^> it is something PHP people do
[22:17] <Moo^_^> don't follow their mistakes
[22:17] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[22:17] <agronholm> they are only very small blocks and totally view related
[22:20] <Moo^_^> agronholm: if you cannot use template language facilities for doing the task then 1) the template language is not good enough 2) you are doing it wrong :) but it really depends on what you are doing. If you are doing HTML output the template languages should be versatile enough to handle everything without embedded Python code. Embedded means that you lose syntax highlighting, inspection and all kind of other capabilities which are related to having an
[22:20] <Moo^_^> importable Python source code tree.
[22:21] <agronholm> templates tend to have branching, looping etc. structures anyway
[22:23] <agronholm> sometimes I could define some of the locally used functions in a python module which I'd then import to the template
[22:23] <agronholm> but since it didn't really matter either way, I decided not to create another module just for that
[22:27] * natlus (~simon@62.75.162.98) Quit (Ping timeout: 258 seconds)
[22:29] * natlus (~simon@transgaming.de) has joined #jython
[22:44] * gqlewis_ (~gqlewis@h242.94.82.166.static.ip.windstream.net) Quit (Read error: Operation timed out)
[23:49] * headius (~headius@fa66.ips.PaulBunyan.net) 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).