473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to run SimpleHTTPServer on IronPython on Mono

I took some time to write this HOWTO:
http://sparcs.kaist.ac.kr/~tinuviel/...ono-howto.html

IronPython seems to get much less interest than it deserves. This
howto shows how to setup IronPython to use with Mono on Linux and how
to rebuild IronPython from source. It also discusses various patches
to current problems. It also shows that IronPython can run
SimpleHTTPServer today, not a trivial achievement.

Hopefully, more Pythonistas on comp.lang.python will have a look at IronPython.

Here's the excerpt from the howto:

The purpose of this document is twofold: to show how to run
SimpleHTTPServer on IronPython on Mono, and to debunk some myths like:

* IronPython doesn't run on Mono
* IronPython doesn't support Python standard library
* IronPython is a toy

Enjoy!

Seo Sanghyeon
Mar 18 '06 #1
3 2490
Sanghyeon Seo wrote:
I took some time to write this HOWTO:
http://sparcs.kaist.ac.kr/~tinuviel/...ono-howto.html
Thanks for spending the time writing this. Whilst I don't run Mono or
anything similar, new Python documentation is surely a welcome thing.
IronPython seems to get much less interest than it deserves.
[...]
The purpose of this document is twofold: to show how to run
SimpleHTTPServer on IronPython on Mono, and to debunk some myths like:

* IronPython doesn't run on Mono
But it does require recent versions, according to the document.
Requiring the latest stuff straight from the revision control
repository is always an inhibiting factor in the adoption of software.
* IronPython doesn't support Python standard library
* IronPython is a toy


I don't think people really believe either of these any more. However,
the IronPython developers haven't really done a good job at explaining
the benefits of their work, or clearing up potential misconceptions.
For example, take a look at the previously-promoted Web site:

http://www.ironpython.com

It's out-of-date and doesn't mention the current Web site, which is a
mere section of some corporate "community" site for .NET: hardly a good
way of promoting something with (potential for) a fairly decent brand
identity.

Then, consider the licensing situation: whilst IronPython appears to
have a fairly permissive licence [1], Microsoft have decided to put it
under their "shared source" umbrella [2], confusing things
substantially, since that label used to mean that you could
conditionally look at Microsoft's code but do little else with it; even
now they promote three licences, one of which being similar but not
exactly the same as the "Shared Source License for IronPython". With
various existing open source licences, particularly the Free Software
licences, you know where you stand almost straight away. Meanwhile,
confusing, marketing-directed labelling only makes people less certain
about what they're getting into and what's being hidden from them.
However, one benefit of Microsoft's desire to simplify their licensing
is that the resulting compatibility with existing licences has had some
tentative recognition [3].

Finally, there's the issue of the platform. I imagine that many people
regard the debate as being over as to whether Mono and other similar
projects independent of Microsoft are genuinely open, now that various
Free Software-oriented GNU/Linux distributions are planning to
distribute Mono, but the Mono developers don't score any publicity
points for having belittled some fairly legitimate concerns about
things like patent claims related to the various "standards" involved.
For what it's worth, nagging concerns about the Java platform's
openness (especially related to the add-on standards like J2EE) still
linger in the open source community.

One other thing, not any fault of the IronPython developers themselves:
I guess it doesn't help that the canonical implementation of Python -
CPython - keeps growing new features which have already left Jython
struggling to catch up. If IronPython users consider themselves to be
part of the wider Python community, is it a good thing that they're
reliant on Microsoft to keep that community from fragmenting?

Paul

[1] http://lists.debian.org/debian-legal.../msg00089.html
[2]
http://www.microsoft.com/resources/s...elicenses.mspx
[3] http://mail.fsfeurope.org/pipermail/...q4/000120.html

Mar 18 '06 #2
Paul Boddie wrote:
Sanghyeon Seo wrote:
The purpose of this document is twofold: to show how to run
SimpleHTTPServer on IronPython on Mono, and to debunk some myths like:

* IronPython doesn't run on Mono
But it does require recent versions, according to the document.
Requiring the latest stuff straight from the revision control
repository is always an inhibiting factor in the adoption of software.


Yes, it's unfortunate, as I wrote on the howto myself. Of course, you
can
use released version of MS.NET for easier install.

Also note that current release (1.1.13.4) of Mono runs and compiles
IronPython 1.0 Beta 1, 2, 3 just fine. Only the latest release (Beta 4)
has problems.
* IronPython doesn't support Python standard library
* IronPython is a toy


I don't think people really believe either of these any more.


Maybe *you* don't, but take a look at the following thread for example:
http://groups.google.com/group/comp....62f6dfc5f72651

Some quotes:
"It seems, that usage of IronPython is currently limited to Windows
platform"
"However, there isn't e.g. a os-module in IronPython"

Which are, false. (They were false even at the time posts were
written.)

And finally, Ian Bicking said: I think concrete instructions on exactly how to get
IronPython up and working -- for someone with no .NET experience or
familiarity with that toolset -- would be an excellent way to bring
more attention to IronPython from the existing Python community.
So that's exactly what I tried to do.
IronPython developers haven't really done a good job at explaining
the benefits of their work, or clearing up potential misconceptions.
For example, take a look at the previously-promoted Web site:

http://www.ironpython.com

It's out-of-date and doesn't mention the current Web site, which is a
mere section of some corporate "community" site for .NET: hardly a good
way of promoting something with (potential for) a fairly decent brand
identity.
I am aware of these problems and will discuss this in the mailing list
soon. At least, updating the website and having the public bug tracker
are important. (gotdotnet.com tracker isn't one IronPython team is
using.)
Then, consider the licensing situation: whilst IronPython appears to
have a fairly permissive licence [1], Microsoft have decided to put it
under their "shared source" umbrella [2], confusing things
substantially, (snip)
However, one benefit of Microsoft's desire to simplify their licensing
is that the resulting compatibility with existing licences has had some
tentative recognition [3].
[1] http://lists.debian.org/debian-legal.../msg00089.html
Do you realize *I* was the person asking for clarification of the
license
on debian-legal mailing list?
If IronPython users consider themselves to be
part of the wider Python community, is it a good thing that they're
reliant on Microsoft to keep that community from fragmenting?


I quite don't get what you are trying to say here.

Seo Sanghyeon

Mar 19 '06 #3
sa*****@gmail.com wrote:
Paul Boddie wrote:
[1] http://lists.debian.org/debian-legal.../msg00089.html


Do you realize *I* was the person asking for clarification of the license
on debian-legal mailing list?


Yes. And I thereby deduce that you also believe that having Debian
approval would mean a lot for IronPython's acceptance, since the Debian
people are regarded as being the most stringent with respect to Free
Software-compatible licensing in distributions.
If IronPython users consider themselves to be
part of the wider Python community, is it a good thing that they're
reliant on Microsoft to keep that community from fragmenting?


I quite don't get what you are trying to say here.


This was about how CPython can get away from other implementations by
adding new features. As we've seen with Jython, if there's relatively
little community interest in keeping other Python implementations
up-to-date, and if there's no sponsor with the manpower on hand to do
the work, then everyone in the CPython camp is busy using such new
features in their code, while everyone else is busy wondering if
they'll ever see such new features. Microsoft seem to be committed to
delivering IronPython, and perhaps if they lose interest the community
will step in and do the work, but in such a situation I feel that the
whole Python community (users of CPython *and* other implementations
combined) will suffer "fragmentation" as CPython speeds ahead and
IronPython lags behind just as Jython has done.

Sure, choosing Jython or IronPython is usually a trade-off between
wanting some of the nice Python libraries and wanting access
respectively to Java and CLR libraries, and perhaps many people using
these implementations don't consider themselves as part of (or primary
members of) the wider Python community; if so, it could be said that
the Python "brand" is somewhat diminished already, since people may be
willing to accept slightly more limited variants of the language, using
implementation-specific libraries where standard library facilities
exist, and generally writing an increasingly divergent dialect of the
language.

Personally, I think that having more implementations is a good thing
for the language, mostly because it leads to new and interesting
technical opportunities, but more engagement and support from the
community "standards legislators" will definitely become necessary over
time to avoid confusion about what is and is not "proper Python",
especially if more people don't arrive at Python via CPython.

Paul

Mar 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

82
by: Neuruss | last post by:
IronPython is currently at a pre-alpha stage suitable for experimentation but not for serious development work. http://www.ironpython.com
2
by: Mike Greaves | last post by:
I see from Google groups that I'm not the only one to have this problem... In Jim H.'s new IronPython 0.6: mono bin/IronPythonConsole.exe >>> class myClass: .... pass .......
27
by: James | last post by:
http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742
3
by: Carl Johan Rehn | last post by:
What is the difference between CPython, Python for .NET, and IronPython? For example, if I'm running IronPython, can I access modules such as Numeric and numarray? As I understand it,...
2
by: bearophileHUGS | last post by:
I have suggested the Shootout site to add tests for IronPython too (tests are done on Mono): http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&lang=iron People that use...
27
by: alacrite | last post by:
Anyone know if there is a book for Ironpython in the works? A good knowledge of .NET and Python is enough to get started but just poking around Ironpython homepage it seems like there are some new...
1
by: Ben | last post by:
Hi there, Perhaps someone can help me. For some reason, when my Python script runs and loads an HTML page in a new browser window at the local host (desktop), the links to my stylesheet and all...
7
by: sanxiyn | last post by:
Skip wrote: For those of us who have never used IronPython or Mono, is there a quick start document laying about somewhere? It wasn't clear to me where to even look. Okay, here we go: 1....
22
by: dmitrey | last post by:
Hi all, the url http://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? If yes, what are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.