why python?

9

99%SugarFree

Hi,there
I've just known about Python language recently for a research project.
I'm just wondering what kind of applications out there using Python??
Where can I find more information about the philosophical, technical and
design features of Python??

For those of you who used Python, have you used Prolog or ML??What do u
think of these 3 language comparing to each other when you are coding?

Thanks for dropping by..

Nee
 
J

Josiah Carlson

99%SugarFree said:
For those of you who used Python, have you used Prolog or ML??What do u
think of these 3 language comparing to each other when you are coding?

Yes, I've used both Prolog and SML-NJ. Prolog was nifty, as was SML-NJ.
Being that they take completely different approaches in the way you
think of and implement algorithms, I am not sure they are comparable in
any useful sense of the word.

I've just known about Python language recently for a research project.
I'm just wondering what kind of applications out there using Python??

Many.
http://sourceforge.net/softwaremap/trove_list.php?form_cat=178
Is just a start.

Where can I find more information about the philosophical, technical and
design features of Python??
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
 
A

Alex Martelli

99%SugarFree said:
Hi,there
I've just known about Python language recently for a research project.
I'm just wondering what kind of applications out there using Python??

Hard to think of any kind of app where Python is NOT being used.
Googling for python success stories will show off a few notable cases
(those where developers could be troubled to write things up and their
management gave release etc etc).
Where can I find more information about the philosophical, technical and
design features of Python??

O'Reilly's "Safari" http://search.safaribooksonline.com/ offers two free
weeks -- join and read the first few chapters of "Python in a Nutshell"
and other Python books it stores, it should give an idea well within the
two free weeks.

For those of you who used Python, have you used Prolog or ML??What do u
think of these 3 language comparing to each other when you are coding?

I've played with them both but not used them in production. For Prolog,
I was part of the scientific audit team for a project at IBM Research in
the '80s -- being one of the few comfortable with Prolog without being
heart and soul into it, and also familiar with IBM 370 machine
architecture and assembly language (which said research project was
meant to deal with) made me sort of a natural candidate for that audit.

At the time I was impressed by how good prolog was when you were doing
what it was MEANT for, and how bad it suddenly became as soon as you
strayed and started piling up cuts &c to simulate imperative coding. I
decided I would never have prolog as the ONLY language for a project, to
avoid the latter half. But then, I've always liked multilanguage
approaches to large programming projects -- "one language to rule them
all" always struck me as silly, from PL/I onwards.

Functional programming is quite a different story. Though I've never
used it in anger, I _am_ quite convinced that if you can put together a
team of people with PhD in maths or CS for all the development and
maintenance you can probably get more done with it than with languages
that let you take shortcuts by modifying data. Whether S/ML, O'CAML,
Haskell, Erlang, or other languages yet, best embody that ideal, I can't
claim to know. In the real world, I believe putting and keeping
together a team of people who are math whizzes IS gonna be a problem.

Python has little to do with Prolog, and not all that much more to do
with FP languages: it took from the latter quite a few ideas and
gadgets, but merged them into its very own style. You do find yourself
making new objects (e.g. by list comprehension) rather than modidying
old ones, and generating functions on the fly (e.g. by closures), much
more often than with most imperative languages -- but modifying objects
is also quite common (more than even in multi-paradigm O'CAML), emphasis
is on iteration and against recursion (strong iteration protocol,
generators, etc, vs no tail recursion optimization, for example).

What's very surprising is that the various paradigms and ideas merge
pretty seamlessly and elegantly (much more so than in O'CAML, I think,
to give another example of a multi-paradigm language, albeit with a FP
basis at the core). Strong but highly dynamic (runtime) typing (versus
strictly compile time typing common in FP languages, excepting maybe
Erlang), strong statement/expression distinction, and the various design
philosophies illustrated in the "Zen of Python" which was already quoted
on this thread, merge quite well to yield high productivity, in Python.


Alex
 
F

francois lepoutre

Hi all,
Google itself is a python success story - for example this here:
https://adwords.google.com/support/bin/topic.py?topic=102

Sure, it looks like google.com is using some kind of
cgi process to run python code. Kind of good news
for those selling python-based stuff.

I expect google use some sort of persistency layer
(mod_python, fastcgi ...) to run their python cgi code
effectively.

Anyone knows the way their python code is delivered
at adwords ?

François
 
J

JanC

francois lepoutre schreef:
Sure, it looks like google.com is using some kind of
cgi process to run python code. Kind of good news
for those selling python-based stuff.

I expect google use some sort of persistency layer
(mod_python, fastcgi ...) to run their python cgi code
effectively.

Anyone knows the way their python code is delivered
at adwords ?

I see Python used for their knowledge base, not for adwords?

<http://gmail.google.com/support/bin/topic.py?topic=1>
<http://adwords.google.com/support/bin/topic.py?topic=1>
<http://groups.google.com/support/bin/topic.py?topic=1>

IIRC their web spiders were, and maybe still are, (partially?) written in
Python?

I'm not sure where they use Python otherwise...
 
A

Alan Gauld

Functional programming is quite a different story. Though I've never
used it in anger, I _am_ quite convinced that if you can put together a
team of people with PhD in maths or CS for all the development and
maintenance you can probably get more done with it than with languages
that let you take shortcuts by modifying data. Whether S/ML, O'CAML,
Haskell, Erlang, or other languages yet, best embody that ideal, I can't
claim to know. In the real world, I believe putting and keeping
together a team of people who are math whizzes IS gonna be a problem.

Nice post Alex, that just about sums up exactly how I feel about
FP. It looks great, it works when I can be bothered to think hard
enough, but the idea of risking it on a real world project gives
me serious pause for thought. For mathematicians it's great for
lesser mortals, hmmm.

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,948
Members
47,500
Latest member
ArianneJsb

Latest Threads

Top