Posts
Showing posts from November, 2007
Hosting IronPython 1.1
- Get link
- X
- Other Apps
Ryan Dawson has a great blog entry on the hosting API for IronPython 1.1. He intends to follow it up with embedding examples for the IronPython 2 alphas as well: Hosting IronPython 1.1 UPDATE: Ryan is new member of the DLR team. He has also done a Hello World Blog Post , explaining his intention to blog more about IronPython and the DLR.
IronPython and Python Stack Frames
- Get link
- X
- Other Apps
One incompatibility between IronPython and CPython that is unlikely to go away, is that IronPython does not have Python stack frames. IronPython is implemented on the CLR , which has its own stack frames that are very different to the Python ones. This means that tricks with ' sys ._ getframe () ' and friends will never work with IronPython . JRuby , for Ruby compatibility, does use frames. Charles Nutter (one of the JRuby devs ) has been experimenting with a frameless approach that yields faster execution: Experimenting with Frameless Execution (A paragraph near the bottom of that blog entry.) Python stack frames are seen as an implementation detail, and if you want your code to run across implementations then you shouldn't interact with them directly (does PyPy use Python stack frames?). Even though it is almost always a hack, we have missed them occasionally at Resolver. The notes from Charles sheds light on the IronPython design decision.
SharpDevelop: IronPython AddIn Internals
- Get link
- X
- Other Apps
The SharpDevelop team have created an IronPython language binding for the SharpDevelop IDE. This (like the Visual Studio SDK) is an example of creating new language bindings: " This is a tutorial about how to create a language binding for SharpDevelop using the IronPython addin as an example. As well as covering how to create a language binding it will also look at how the addin used IronPython. The source code for the IronPython addin is available at the end of this tutorial. " IronPython AddIn Internals
DLR Pad - interactive programming with XAML and DLR
- Get link
- X
- Other Apps
Stefan Dobrez writes: " This post is about a tool that I have build. It is called DLR Pad. In one sentence it allows you to rapidly create simple XAML based applications and script against them with dynamic language of your choice. " The blog entry shows (another) Silverlight IDE like tool that can be used for experimenting with IronPython and XAML in Silverlight. You can also download the DLR Pad: DLR Pad - interactive programming with XAML and DLR
Mike Stall Learns Python
- Get link
- X
- Other Apps
Mike Stall has just joined the IronPython / DLR team at Microsoft. Before this he was working on the CLR debugging team (and is an expert on the subject). As he is now working on IronPython, Mike thinks it might be a good idea to learn Python. He is finding 'Learning Python, by Mark Lutz, a useful resource: Learning Python
First IronPython Book
- Get link
- X
- Other Apps
As you may know, I' writing a book on IronPython for Manning: " IronPython in Action ". The next third of the book is about to go for a review and will then be available in the early access program. It won't make it as the first IronPython book though, there is already a Japanese one. English Translation of "IronPython" Page Original Page
Boo, Java, .NET and IronPython
- Get link
- X
- Other Apps
A blogger called Tomo wondered about which .NET language to choose Boo (a mighty fine language) or IronPython. He came down in favour of Boo, and an interesting discussion ensued in the comments: Boo at Koans of Code The very next thing he tried was taking the Java class library for SWT (the user interface library) and compiled them into a .NET dll with IKVM . He then used them from Boo and IronPython, which worked! Language Frenzy This is an interesting coincidence, as a few days ago Rodrigo announced on the Boo blog about boojay - a compiler that emits Java bytecode from Boo: Introducing Boojay
NWSGI - WSGI ASP.NET HttpHandler
- Get link
- X
- Other Apps
By
hexdump42
-
Today Jeff Hardy announced on the IronPython list, the first release of NWSGI , an implementation of WSGI compliant server for IronPython 2.0. written in C# as a ASP.NET HttpHandler. Currently it runs simple WSGI applications but has problems with the larger Python web frameworks due to bugs in IronPython 2.0 and NWSGI. Hopefully as IronPython 2.0 matures and Jeff continues to work on NWSGI, the will become less of an issue. An implementation of a WSGI server for IronPython 1.0 is available with FePy
LOLCode on the DLR
- Get link
- X
- Other Apps
Martin Maly, as part of his TechEd talk on the Dynamic Language Runtime, showed an implementation of an exciting new language ( LOLCode ) that he hacked together whilst travelling. John Lam has made the source code to this available on his blog and Martin has contributed a write-up on the LOLCode site: LOLCode on the DLR (with download) My Commentary (with some build instructions) Intro to LOLCode on the DLR
Hosting IronRuby with the DLR
- Get link
- X
- Other Apps
The DLR (Dynamic Language Runtime) hosting API is still changing, in fact (according to Dino Viehland) it is now hosting API feature week . Despite this, Tomas has written a great article on the DLR hosting API and IronRuby. Much of it is applicable to IronPython of course: Hosting IronRuby with the DLR
Unicode Strings & Localization plus IronPython and the Standard Library
- Get link
- X
- Other Apps
We recently had a strange bug from a Turkish user, that uncovered an issue with Unicode strings and the Python decimal module (when used from IronPython). The easiest fix is a simple modification to 'decimal.py', and Dino (an IP developer) says that Microsoft are looking at shipping the Python standard library with IronPython to make this kind of modification easier (a big step for Microsoft): Resolver Goes Multinational, Real World Problems with Resolver, IronPython Localization Issues and an Important Announcement
IronPython 2.0a6
- Get link
- X
- Other Apps
There is a new version of IronPython 2 out, 2.0a6: Release notes of IP2a6 This version fixes several bugs and is the first under the new public license. See the release notes for full details. The release also includes a toy language implementation, ToyScript, that is an example dynamic language targetting the Dynamic Language Runtime. Martin Maly (one of the IP & DLR developers) has done a talk, at TechEd Barcelona, on the DLR that walked through part of toyscript and introduced a new DLR language - lolcode: The Dynamic Language Runtime