<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: IronPython how cool it is</title>
	<atom:link href="http://lostechies.com/ryansvihla/2009/05/28/ironpython-how-cool-it-is/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/ryansvihla/2009/05/28/ironpython-how-cool-it-is/</link>
	<description>The small minded meanderings of the confused</description>
	<lastBuildDate>Mon, 15 Apr 2013 15:10:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Ryan Svihla</title>
		<link>http://lostechies.com/ryansvihla/2009/05/28/ironpython-how-cool-it-is/#comment-18</link>
		<dc:creator>Ryan Svihla</dc:creator>
		<pubDate>Mon, 08 Jun 2009 02:46:47 +0000</pubDate>
		<guid isPermaLink="false">/blogs/rssvihla/archive/2009/05/28/ironpython-how-cool-it-is.aspx#comment-18</guid>
		<description>@Doug  thanks for the snippet but the point its a bit off i think?

My post was to show a pure Python module written in CPython totally for CPython objects was usable in IronPython and could work on  C# objects, with no modifications.

Pinsor dynamically loads classes and their dependencies on the fly, calling the constructors of objects as needed. Very easy and simple to do in python and a bit of a pain in C# (.net reflection API is unfun to use). 

In summary, I can use Pythonic ways of solving problems on .Net code.</description>
		<content:encoded><![CDATA[<p>@Doug  thanks for the snippet but the point its a bit off i think?</p>
<p>My post was to show a pure Python module written in CPython totally for CPython objects was usable in IronPython and could work on  C# objects, with no modifications.</p>
<p>Pinsor dynamically loads classes and their dependencies on the fly, calling the constructors of objects as needed. Very easy and simple to do in python and a bit of a pain in C# (.net reflection API is unfun to use). </p>
<p>In summary, I can use Pythonic ways of solving problems on .Net code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://lostechies.com/ryansvihla/2009/05/28/ironpython-how-cool-it-is/#comment-17</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 08 Jun 2009 01:32:18 +0000</pubDate>
		<guid isPermaLink="false">/blogs/rssvihla/archive/2009/05/28/ironpython-how-cool-it-is.aspx#comment-17</guid>
		<description>Here in PowerShell, it compiles the C# on the fly, then runs it.

$code = @&quot;
using System;
public class Command
    {
        private readonly DoingStuff _stuff;

        public Command (DoingStuff stuff)
        {
            _stuff = stuff;
        }
        public void Execute()
        {
            Console.WriteLine(_stuff.Message);
        }
    }
    public class DoingStuff
    {
        public string Message
        {
            get { return &quot;From the Doing Stuff Class, I&#039;m doing stuff&quot;; }
        }
    }
&quot;@    

Add-Type $code

(New-Object Command( New-Object DoingStuff )).Execute()</description>
		<content:encoded><![CDATA[<p>Here in PowerShell, it compiles the C# on the fly, then runs it.</p>
<p>$code = @&#8221;<br />
using System;<br />
public class Command<br />
    {<br />
        private readonly DoingStuff _stuff;</p>
<p>        public Command (DoingStuff stuff)<br />
        {<br />
            _stuff = stuff;<br />
        }<br />
        public void Execute()<br />
        {<br />
            Console.WriteLine(_stuff.Message);<br />
        }<br />
    }<br />
    public class DoingStuff<br />
    {<br />
        public string Message<br />
        {<br />
            get { return &#8220;From the Doing Stuff Class, I&#8217;m doing stuff&#8221;; }<br />
        }<br />
    }<br />
&#8220;@    </p>
<p>Add-Type $code</p>
<p>(New-Object Command( New-Object DoingStuff )).Execute()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Svihla</title>
		<link>http://lostechies.com/ryansvihla/2009/05/28/ironpython-how-cool-it-is/#comment-16</link>
		<dc:creator>Ryan Svihla</dc:creator>
		<pubDate>Fri, 29 May 2009 15:45:44 +0000</pubDate>
		<guid isPermaLink="false">/blogs/rssvihla/archive/2009/05/28/ironpython-how-cool-it-is.aspx#comment-16</guid>
		<description>@JP that&#039;s gorgeous. I think with that sort of forwards/reverse interop we&#039;ll start seeing more components build for .Net. Something that are painful in one language will be easy in another.

Downside is if we end up with awful api&#039;s for a majority of languages (like VB.net and lambda heavy libraries).</description>
		<content:encoded><![CDATA[<p>@JP that&#8217;s gorgeous. I think with that sort of forwards/reverse interop we&#8217;ll start seeing more components build for .Net. Something that are painful in one language will be easy in another.</p>
<p>Downside is if we end up with awful api&#8217;s for a majority of languages (like VB.net and lambda heavy libraries).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J.P. Hamilton</title>
		<link>http://lostechies.com/ryansvihla/2009/05/28/ironpython-how-cool-it-is/#comment-15</link>
		<dc:creator>J.P. Hamilton</dc:creator>
		<pubDate>Fri, 29 May 2009 15:38:26 +0000</pubDate>
		<guid isPermaLink="false">/blogs/rssvihla/archive/2009/05/28/ironpython-how-cool-it-is.aspx#comment-15</guid>
		<description>You could do the reverse in about 2 lines of C# 4.0 code. That is, import pinsor.py (just assuming that is what it&#039;s called) into .NET and make calls on it. If memory serves me correctly, something like this:

ScriptRuntime py = Python.CreateRuntime();
dynamic pinsor = py.UseFile(&quot;pinsor.py&quot;);

Haven&#039;t tried it, but this seems pretty compelling.

</description>
		<content:encoded><![CDATA[<p>You could do the reverse in about 2 lines of C# 4.0 code. That is, import pinsor.py (just assuming that is what it&#8217;s called) into .NET and make calls on it. If memory serves me correctly, something like this:</p>
<p>ScriptRuntime py = Python.CreateRuntime();<br />
dynamic pinsor = py.UseFile(&#8220;pinsor.py&#8221;);</p>
<p>Haven&#8217;t tried it, but this seems pretty compelling.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
