Results 1 to 7 of 7

Thread: Is python really ideal for making applications?

  1. #1
    Join Date
    Mar 2007
    Beans
    125

    Is python really ideal for making applications?

    I ask this question because I've noticed one thing while using Exaile, which was written in python. It's slow as hell. Resizing the window is considerably laggy compared to other applications written in C.

    So is Python really good for applications and Exaile is just slow because of being poorly written?

    I'm asking this because I'm really interested in Python. It's such a beautiful language, but I don't want to write a program that will lag on your everyday Pentium 4 with 2 gigs of ram.

  2. #2
    Join Date
    Apr 2005
    Location
    Glasgow, Scotland
    Beans
    1,642

    Re: Is python really ideal for making applications?

    Quote Originally Posted by Exershio View Post
    So is Python really good for applications and Exaile is just slow because of being poorly written?
    I think it's a combination. Python programs will always be slower than C ones, but maybe Exaile is badly written.

    Looking at it myself, it doesn't seem to be any slower than usual, perhaps it's the complex UI that does it.
    Last edited by bruce89; July 18th, 2008 at 02:40 AM.
    A Fedora user

  3. #3
    Join Date
    Apr 2007
    Beans
    227

    Re: Is python really ideal for making applications?

    yes, Python should be slower than C/C++ programs.
    but in your case, I believe that resizing UI should not be due to the python code, resizing is typically more dependent on the undelying GTK+ unless it has a great deal of custom widgets written in python

  4. #4
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Is python really ideal for making applications?

    Quote Originally Posted by Exershio View Post
    I ask this question because I've noticed one thing while using Exaile, which was written in python. It's slow as hell. Resizing the window is considerably laggy compared to other applications written in C.
    Probably a WM or the apps fault.

    So is Python really good for applications and Exaile is just slow because of being poorly written?
    Windows is slow, does that mean C is slow (or C++)?

    I'm asking this because I'm really interested in Python. It's such a beautiful language, but I don't want to write a program that will lag on your everyday Pentium 4 with 2 gigs of ram.
    No, Python is good enough for the Ubuntu installer for Ubuntu development

  5. #5
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Is python really ideal for making applications?

    python is not ideal, nothing is ever ideal ...
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

  6. #6
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: Is python really ideal for making applications?

    Quote Originally Posted by Exershio View Post
    So is Python really good for applications and Exaile is just slow because of being poorly written?
    Most likely.

    Python is excellent choice for wide range of applications, and for couple of reasons:
    - many tasks are limited not by CPU numbercrunching power, but I/O bandwidth, database query delay, server response and such. For those tasks, Python is excellent choice (including GUI, where most time program idles, waiting for response)
    - Python design allows for developing app, then finding the bottleneck, and recoding **only that 5% of the code** as fast C library.

    Of course Python is not "silver bullet" and other languages might be better choice for different reasons, one of them might be compatibility or legacy: that's the reason why people still maintain 40 years old COBOL code.

    There are many programmer without real-life experience obsessed with raw speed of C (we call them here 'speed kiddies'). In real life, most important speed it 'speed to market' (or meet deadline to make your boss happy/match competitor's features).
    Last edited by pmasiar; July 18th, 2008 at 04:43 AM.

  7. #7
    Join Date
    Jan 2008
    Location
    Adelaide, Australia
    Beans
    Hidden!
    Distro
    Xubuntu 8.04 Hardy Heron

    Re: Is python really ideal for making applications?

    Quote Originally Posted by pmasiar View Post
    There are many programmer without real-life experience obsessed with raw speed of C (we call them here 'speed kiddies'). In real life, most important speed it 'speed to market' (or meet deadline to make your boss happy/match competitor's features).
    I couldn't agree more with you pmasair, so called 'speed-kiddies' will fuss over C's raw speed, but don't begin to consider that C may not be suitable for the project at hand, the truth is that yes, Python is a beautiful language and is viable for large programs, ever heard of a little thing called YouTube? or a small company named NASA?

    ~Kiefer
    Need to install your RT73 based wireless device? use my RT73 Driver GUI Installer!
    Linux is simple, you just have to be a genius to understand it's simplicity.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •