<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-3940568014938333882.post5663045085418801164..comments</id><updated>2010-02-11T01:40:16.222+01:00</updated><title type='text'>Comments on Wardrobe strength: Java integration in future Jython</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://journal.thobe.org/feeds/5663045085418801164/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default'/><link rel='alternate' type='text/html' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html'/><author><name>Tobias</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3940568014938333882.post-2413376213451793332</id><published>2010-02-11T01:40:16.222+01:00</published><updated>2010-02-11T01:40:16.222+01:00</updated><title type='text'>Decorators or not, I'd quite like to see a Java mo...</title><content type='html'>Decorators or not, I&amp;#39;d quite like to see a Java module that worked in CPython.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/2413376213451793332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/2413376213451793332'/><link rel='alternate' type='text/html' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html?showComment=1265848816222#c2413376213451793332' title=''/><author><name>Stu</name><uri>http://www.blogger.com/profile/08755227063937859112</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html' ref='tag:blogger.com,1999:blog-3940568014938333882.post-5663045085418801164' source='http://www.blogger.com/feeds/3940568014938333882/posts/default/5663045085418801164' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-3940568014938333882.post-1007165622640340500</id><published>2009-08-14T08:31:39.949+02:00</published><updated>2009-08-14T08:31:39.949+02:00</updated><title type='text'>Kay Schluehr also suggested allowing decorators on...</title><content type='html'>&lt;i&gt;Kay Schluehr also suggested allowing decorators on assignments, to be able to support annotations on fields. I don&amp;#39;t really have an opinion on this. Since I don&amp;#39;t think fields should be exported in any public API anyway it&amp;#39;s a bit useless&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The purpose of adding all the boilerplate to Python classes is to lift the Python interface to Java providing a complete description. This doesn&amp;#39;t mean that the fields have to be public. Annotating private fields is very common in Java, just look at examples using persistence annotations in JEE. Those are unrelated to DI but provide information to the ORM.&lt;br /&gt;&lt;br /&gt;About Python DSL syntax for defining Java interfaces / annotations in Python. This is useless since the most succinct way to define them is to state the interfaces directly in Java. The definitions might be inlined in Python and compiled dynamically. One doesn&amp;#39;t have to leave the script.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/1007165622640340500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/1007165622640340500'/><link rel='alternate' type='text/html' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html?showComment=1250231499949#c1007165622640340500' title=''/><author><name>kayschluehr</name><uri>http://www.blogger.com/profile/18193908805797245856</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html' ref='tag:blogger.com,1999:blog-3940568014938333882.post-5663045085418801164' source='http://www.blogger.com/feeds/3940568014938333882/posts/default/5663045085418801164' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-3940568014938333882.post-4833527114015501973</id><published>2009-08-14T08:11:02.840+02:00</published><updated>2009-08-14T08:11:02.840+02:00</updated><title type='text'>I'd personally lean towards always having the load...</title><content type='html'>&lt;i&gt;I&amp;#39;d personally lean towards always having the loader hook present and having an option which disables it.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure a zero-effort integration of Jython/IronPython code with CPython is even a realistic goal. &lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think system configuration should not be handled on module level but using a command line option instead. This would require a bit of an architectural supplement which had to be PEP-ed. I&amp;#39;d suggest writing one if the problem was really pressing. &lt;br /&gt;&lt;br /&gt;Otherwise a root package might define an &amp;quot;import java&amp;quot; statement which can be omitted for Jython which has different preferences/defaults than CPython or IronPython.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/4833527114015501973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/4833527114015501973'/><link rel='alternate' type='text/html' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html?showComment=1250230262840#c4833527114015501973' title=''/><author><name>kayschluehr</name><uri>http://www.blogger.com/profile/18193908805797245856</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html' ref='tag:blogger.com,1999:blog-3940568014938333882.post-5663045085418801164' source='http://www.blogger.com/feeds/3940568014938333882/posts/default/5663045085418801164' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-3940568014938333882.post-2839407606067414219</id><published>2009-08-14T03:05:33.859+02:00</published><updated>2009-08-14T03:05:33.859+02:00</updated><title type='text'>In IronPython "import clr" isn't actually required...</title><content type='html'>In IronPython &amp;quot;import clr&amp;quot; isn&amp;#39;t actually required for all access to .NET functionality.  You can still do &amp;quot;import System&amp;quot; or pick your .NET namespace of choice and get those namespaces w/o doing import clr.  And &amp;quot;import System&amp;quot; will actually have the same result as import clr: .NET members of shared typed (int, str, object, long, complex, etc...) will become available on the Python objects.  So before one of these imports you get an error doing object().ToString().  Afterwards it works.&lt;br /&gt;&lt;br /&gt;But we&amp;#39;ll probably need to change that as 3.x rolls on:  the importer will be written in Python and we won&amp;#39;t be able to mark the calling module when we resolve one of these imports.  And furthermore we&amp;#39;ll need to use a real import hook for resolving the .NET namespaces and types.  So we&amp;#39;ll probably end up making &amp;quot;import clr&amp;quot; work like from __future__ imports and recognize it and only it at compile time.  &lt;br /&gt;&lt;br /&gt;I&amp;#39;d personally lean towards always having the loader hook present and having an option which disables it.  The odd thing about doing it when you encounter &amp;quot;import java&amp;quot; is that it&amp;#39;ll globally alter other modules - so it seems like it may as well be a global option from the start.&lt;br /&gt;&lt;br /&gt;We&amp;#39;re added a new __clrtype__ feature in 2.6 for supporting defining .NET classes from Python.  But it&amp;#39;s just a very primitive tool requiring the user to actually create the .NET type via Python code.  We hope to plumb the Python side out later or have some ambitious user come up w/ something really cool.  After we find the right API it&amp;#39;ll probably end up like yours as a bunch of helpers in the clr module.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/2839407606067414219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/2839407606067414219'/><link rel='alternate' type='text/html' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html?showComment=1250211933859#c2839407606067414219' title=''/><author><name>Dino</name><uri>http://www.blogger.com/profile/02785497790155644340</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html' ref='tag:blogger.com,1999:blog-3940568014938333882.post-5663045085418801164' source='http://www.blogger.com/feeds/3940568014938333882/posts/default/5663045085418801164' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-3940568014938333882.post-5276164758632437042</id><published>2009-08-13T17:01:40.255+02:00</published><updated>2009-08-13T17:01:40.255+02:00</updated><title type='text'>This sounds great.. a common java api for all pyth...</title><content type='html'>This sounds great.. a common java api for all pythons would mean more eyes on the code.. the other integration ideas sound good too :)&lt;br /&gt;&lt;br /&gt;The decorators look good too (although time would tell)&lt;br /&gt;&lt;br /&gt;Also looking forward to ctypes working in jython, this is good stuff and will hopefully unlock some more libraries.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/5276164758632437042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3940568014938333882/5663045085418801164/comments/default/5276164758632437042'/><link rel='alternate' type='text/html' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html?showComment=1250175700255#c5276164758632437042' title=''/><author><name>Stu</name><uri>http://www.blogger.com/profile/08755227063937859112</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://journal.thobe.org/2009/08/java-integration-in-future-jython.html' ref='tag:blogger.com,1999:blog-3940568014938333882.post-5663045085418801164' source='http://www.blogger.com/feeds/3940568014938333882/posts/default/5663045085418801164' type='text/html'/></entry></feed>