Cocoa vs. Python

whitesaint

cocoa love
Hey guys!! guess what! there is this new programming language called "python" i havn't looked into it too deeply yet, but it sounds pretty advanced, but cocoa is probably better. <br> It was developed by some computer scientist and he called it "python" because he used it off of one of Monty Python's movies. And yes, it's an object oriented programming language. Well anyways for more info on it, here ya go: http://www.python.org/doc/
 
Err, well, python's not really a 'new' programming language, I've been using it since 1999. But it is a fantastic language, I'd recommend any developer consider using it. With full, built-in OO support it makes for a great OO rapid development/prototyping language, jython (python reimplemented in java, with full access to all java classes) is an excellent way to learn the java classes (think interactive java interpreter), it's truly cross-platform, and you can pretty easily generate compiled code, so you're not necessarily limited to interpreted speed. It's also very extensible (via C) and extendable (into C). Python is GOOD.
 
droid, is it for macintosh? i doubt its for mac os x, but i wuldnt mind taking a look at what you work with when you program with Python. I'm still sticking to Cocoa, but i just wanna see what Python is all about.

-whitesaint
 
Python is an open source language like Perl. It's been around for years. I don't hack it myself (i stick to Perl), so don't know all the platforms it's been ported to. But it definitely runs on unix flavors, which means that if it has not yet been ported to MacOS X it likely will be in the near future.

See http://www.python.org/ for more info.

FelineAvenger
 
Originally posted by whitesaint
droid, is it for macintosh? i doubt its for mac os x, but i wuldnt mind taking a look at what you work with when you program with Python. I'm still sticking to Cocoa, but i just wanna see what Python is all about.

-whitesaint

python has been ported to MacOS carbon (works fine in 9.x and OS X) as MacPython:
http://www.cwi.nl/~jack/macpython.html

and has also been compiled from the unix source against the OS X bsd layer:
http://tony.lownds.com/macosx/

There is work in progress to combine the two into a single environment.

If you're looking for a more traditional mac-like environment, complete with an IDE, go for MacPython. MacPython has modules for QuickTime, QuickDraw, the Sound Manager, Internet Config, etc.

If you're looking for a more traditional unix-like environment, go for Tony's build of the unix source, or compile the unix source yourself.

I've got both (and jython) installed on my tiBook and use them every day. I also use python regularly at work, where I do unix system administration and network engineering. Python's a great language for scripting, comparable to Perl in many ways, and is also excellent for rapid development and prototyping of traditional applications.

I should also say that Python makes an excellent first language. To anyone who's interested in learning to program, pick up the 'Learning Python' book and get MacPython installed, and you'll fairly quickly get a handle on everything from basic programming topics to object-oriented programming and design.

-alex
 
Back
Top