LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-24-2010, 04:56 PM   #1
Christian271
LQ Newbie
 
Registered: May 2010
Location: Vista, CA
Distribution: Ubuntu 12.10, custom rolled distro
Posts: 19

Rep: Reputation: 0
Some questions about Python; speed, system integration


I want to start programming on linux. Looking around, it seems the preferred languages are C++ and Python. Looking at the two, Python seems the better choice, but I understand it's an interpreted lang. I have previously worked with Java, which is also an interpreted lang, but have run into some problems with it, and am wondering how Python compares.

First, of course, is the speed. I know that Java has been slow at times, sometimes too slow, how much slower/faster is Python?

Second, making the look and feel like the rest of the system. In Java this was next to impossible, how difficult is this in Python?

Lastly, accessing system models (save dialog etc.). In Java this also was next to impossible, how does Python do in this area?

One last thing. I understand that Python uses QT not GTK; if I want to create programs for the gnome desktop, is this going to be a problem?

Thanks in advance!
 
Old 05-24-2010, 05:02 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
In no particular order:

1. Python (and any other language) can use any toolkit. Some Googling should reveal what combinations have been set up. e.g.: "python gtk" forund this:
http://www.pygtk.org/

2. Speed? Try it and see---but the really fast stuff needs to be in a true compiled language (or assembler).

3. What happened to regular old C?
 
Old 05-24-2010, 05:32 PM   #3
fruttenboel
Member
 
Registered: Jul 2008
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by Christian271 View Post
I want to start programming on linux. Looking around, it seems the preferred languages are C++ and Python. Looking at the two, Python seems the better choice, but I understand it's an interpreted lang. I have previously worked with Java, which is also an interpreted lang, but have run into some problems with it, and am wondering how Python compares.

First, of course, is the speed. I know that Java has been slow at times, sometimes too slow, how much slower/faster is Python?

Second, making the look and feel like the rest of the system. In Java this was next to impossible, how difficult is this in Python?

Lastly, accessing system models (save dialog etc.). In Java this also was next to impossible, how does Python do in this area?

One last thing. I understand that Python uses QT not GTK; if I want to create programs for the gnome desktop, is this going to be a problem?

Thanks in advance!
Python is an interpreted language so it's s-l-l-o-o-w. Nothing beats a compiled lanuage.

Python is a fashionable language with a high degree of 'see how good I am'. Better learn to program in C or (still better) Modula-2. If you know Modula-2, you can always convert yourself to C and C++ again (although you will miss the clarity and structure of Modula-2 in the other languages. http://fruttenboel.verhoeven272.nl/mocka/index.html

If you insist on interpreted languages, try Tcl/Tk. It's great. And it lacks the idiosyncracy of Python. Tcl/Tk will run in all environments, even Windows.
 
  


Reply

Tags
java, python


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python, os.system() function. howto use python variables? jhwilliams Programming 5 07-28-2007 02:56 AM
tkinter integration to python 2.3.4 gaddargarson Programming 1 03-09-2005 05:58 AM
Gnome Update, Mouse Speed, Overall System Speed funaroma Linux - Newbie 2 08-04-2004 11:13 PM


All times are GMT -5. The time now is 07:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration