ironpython和python-IronPython

IronPython

IronPython is an open source implementation of Python for the .NET CLR and Mono, originally created by Jim Hugunin.

You can get news and download the latest version fromt the projects website: http://ironpython.codeplex.com/

IronPython uses the Dynamic Language Runtime, a framework for writing dynamic languages for .NET which originated in IronPython 1. It also runs on Silverlight, a .NET browser plugin that runs on Windows and the Mac (and a Mono port called Moonlight runs on Linux). This means that IronPython can be used for client-side scripting in the browser.

IronPython is a Python compiler. It compiles Python code to in memory bytecode before execution (which can be saved to disk, making binary only distributions possible).

Performance is comparable to CPython - much faster for some things (where it can take advantage of the JIT compiler in the underlying platform), but slower for other things (particularly the built in container types where a lot of work has been done on optimising the CPython types).

Reasons that CPython programmers might be interested in IronPython include:Corporate credibility (introducing new technologies can be very difficult in some companies, if .NET is already established then you may need no excuse to start using IronPython)

No GlobalInterpreterLock - IronPython has no GIL and multi-threaded code can use multi core processors

The .NET framework library is very big. Particularly the user interface library Windows Forms is very good.

IronPython is easy to embed in .NET applications as a scripting language

Easier to extend than CPython (C# is memory managed and C# types can be used directly in IronPython with no wrapping)

Silverlight!

A book on IronPython for Python and .NET developers: IronPython in Action.

A useful resource for IronPython code examples, is the IronPython Cookbook.

A book that introduces core concepts of IronPython programming using a .NET–centric approach is Pro IronPython.

Mozilla announced a project to port the DLR (well, the underlying Core CLR that it uses in fact) to run on their Tamarin JIT. This means that IronPython could also run in future versions of Firefox. (See IronMonkey). Unfortunately this project has not made any progress since its announcement.

Other Python-Like Languages for .NET/Mono

Some other Python-like languages for .NET and Mono include:BooLanguage - Syntax is very similar to Python"s, yet the language is statically compiled. It implements many features that have been suggested for Python3.0. See Gotchas for Python Users for specific comparisons between boo and CPython.

Accessing .NET from CPython

Python for .NET is the reverse of IronPython, it lets you access .NET assemblies from CPython.

See also: PythonAndParrot, LoGix, IronPython IDE

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值