| Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-30-2010, 10:30 AM
|
#1
|
|
LXer NewsBot
Registered: Dec 2005
Posts: 63,912
Rep:
|
LXer: Tips & Tricks on MySQL for Python
Published at LXer:
Python is a dynamic programming language, which is completely enterprise ready, owing largely to the variety of support modules that are available to extend its capabilities. In order to build productive and feature-rich Python applications, we need to use MySQL for Python, a module that provides database support to our applications. In this article, we will have a look at the tips and tricks presented thru-ought on MySQL for Python.
Read More...
|
|
|
|
12-30-2010, 10:52 AM
|
#2
|
|
Senior Member
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Rep:
|
The problem with Python is that it's interpreted, which means that there's extra CPU overhead with Python apps -- just look at Ubuntu Software Center for instance: On my Acer netbook, it takes about ~10 seconds to load, which is about the same amount of time it takes Ubuntu to boot! Most C-based programs load in less than 1 second.
The kind of language I would really feel is a good compromise between Python, Java, C#, and C is Vala, which is multi-paradigm and close to Java in syntax but compiles first to C and then to native code, no different ABI or interpretation needed.
|
|
|
|
12-30-2010, 11:00 AM
|
#3
|
|
Member
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Rep: 
|
I think the problem here is that most people care more about language ease-of-use than load/runtime speed, hence the interpreted, "dynamic" languages like Python, Perl(?), etc. win out over compiled languages. 
|
|
|
|
12-30-2010, 11:06 AM
|
#4
|
|
Senior Member
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Rep:
|
|
|
|
|
12-30-2010, 11:14 AM
|
#5
|
|
Senior Member
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 3,669
|
Kenny, one reason I wrote my MPD client in Python and not C++ was because I knew it wouldn't have made a shred of difference in terms of execution speed.
Furthermore, the article is talking about writing code to connect to a database. That means that the speed bottleneck is going to be waiting for the database, not the execution speed of the program's instructions.
Last edited by dugan; 12-30-2010 at 11:31 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:59 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|