#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Yuma,AZ
    Posts
    11
    Rep Power
    0

    Python in the 4th round


    The thread on improving python got me wondering, and I wanted all of your input on it:

    How is python doing vs. other languages in terms of use?

    What this question ISN'T asking is how much easier to use/read/code/improve/fold into a paper pirate hat python is vs. other languages. But day to day do you think python is gaining more serious users vs. Java? vs. Perl? vs. VB? Will it ever repalce them as the business juggernaut? general purpose do it all? Newbie? (all respectively)

    -rag
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Python is picking up new users every day! This being said, sadly i dout its user base will ever be on the same scale as some of the languages pushed into the spot-light by companies like Sun and Microsoft desite there obvious flaws!!!

    In some respects i think the PSF need to do the same for Python...

    Mark.
    programming language development: www.netytan.com Hula

  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    netherlands
    Posts
    51
    Rep Power
    11
    Here in the netherlands we have a tournament programming for students and we got python on the cd as language we could use. Shame I was late and would have never made it in time so i didn't enter.

    On that cd it said python was the way to write C free. Also when I searched for a free language it was the first to turn up. I think it might become a lot more popular now, as if you're going to learn programming python shows up somewhere in the docs or in reviews you read (assuming you don't download the first thing you see and not look further)
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    325
    Rep Power
    12
    Yea, it doesn't have the financial backing of M$ and Sun. That's a shame because it really kicks their *** in almost every way.

    Although having said that, php has taken over the world, and whatever drove that should drive pythons publicity! But the main reasons for php's incredible rise is its ease of use for web scripting and since web scripting is becomming so popular among non-technical people, it's driven php deeply into the industry due to the sheer massive number of people using it. Python on the other hand ... well .. you need to be somewhat technical to understand classes and design systems in OO and the non-technical user often has problems with that.

    I have to say that a python search engine like at php.net would be awesome .. that's one of the best references for any language I've seen and makes php easier to use. That and the packed forums on php everywhere on the web make it easy to get help with learning it quickly and overcomming problems.

    The bottum line - python needs another angle other than being the most fun, easy, powerful language there is if its gonna make a dent in the market at a speedy rate. Without it, it'll likely get there, but much slower

    Eli

    edit: haha .. a s s is a banned word in this forum
  8. #5
  9. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    We'll we all know Python is great for search engines.. anyone whos used google should know its Python Powered!!!

    I gotta agree, a search engine for the web based docs would be sweet! Windows users now have the docs CHM format which makes them both easy to search and use so take advantage of them!

    Mark.
    programming language development: www.netytan.com Hula

  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    35
    Rep Power
    12
    In my opinion, Python is positioned well to become THE scripting language most people use, most notably surpassing Perl. It won't ever take over C or C++ because compiled code will ALWAYS have its place when speed matters. How it compares to Java is a thorny issue. I must admit, I like Java better than Python in SOME respects (not Javascript, and not Java GUIs -- just Java!). But right now, Java is a stagnant language; Python just continues to grow in features and flexibility. As for C#, it's a well-designed language, borrowing many ideas from both Java and Python, but since it has only been released recently, it lacks many amenities of most programming languages (like a bignum class -- hello, MS, what were you thinking?). In time, if MS devotes enough attention to C#, and encourages development of Mono on *nix, I could see it as a serious contender to Python. But right now, Python is a good language to use, certainly with a bright future ahead of it.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    325
    Rep Power
    12
    Perl use is HUGE ... and won't die anytime in the near future due to legacy issues.

    Python is interpreted to improve app development speed. However it more closely resembles compiled languages as far as functionality and usage goes.

    Python is actually very fast. It's written in C or C++ so if you use the inbuilt libraries your code will be quite fast. And as far as algorithms go - if they're dodgy, they're slow in any language.

    hmmm .. I should take a look at c# then =P sounds good.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    35
    Rep Power
    12
    Originally posted by lazy_yogi
    Python is actually very fast. It's written in C or C++ so if you use the inbuilt libraries your code will be quite fast. And as far as algorithms go - if they're dodgy, they're slow in any language.
    Python isn't very fast, but it's fast enough for what it has to do. Don't assume that because Python is written on top of C, it has the speed of C. It's still an interpreted language. If you go into the Lib subdirectory of your Python folder you'll find plenty of Python modules written in, well, Python. Not every module goes straight to C. Is C at the base of the Python foundation? Yes, but there are many layers of abstraction between that and the programmer.

    If you haven't seen it already, you should check out the Great Computer Language Shootout at http://www.bagley.org/~doug/shootout/index2.shtml. It's a comparison of the performance, memory usage, etc. of many many different programming languages across many many different benchmark tests. The matrix multiplication test is a good example why compiled languages matter. The execution times of the test are:

    using gcc (GNU C Compiler): 0.07 sec
    using g++ (GNU C++ Compiler): 0.10 sec
    using Python: 27.80 sec
    using PHP: 107.28 sec

    Now I didn't come here to bash Python. I love it. But I love it for its cross-platform compatibility (including sockets and threads), lightweight GUIs (you hear that Java!?), and ability to call C programs if needed (when speed matters). It's a great language, but I don't love Python for the speed of Python itself. Sorry.

    - theperfectsoup
    Last edited by theperfectsoup; December 22nd, 2003 at 11:07 PM.
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    325
    Rep Power
    12
    yea ... all valid points

    Very interesting site!
    wow ... didn't realise how insanely fast C was in comparison. I knew it was fast .. but whoa!
    And did't know c++ was that close to C.
    And surprisingly Java isn't too bad for many cases.

    Intersting site. Thx
  18. #10
  19. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    With its ability to be embedded in apps I think Python will become THE language for scripting applications. Check out
    www.eve-online.com/ or http://osafoundation.org/

    WRT to speed - if your app does heavy crunching and sorting then a compiled langauge will always win. But as most Python gurus state - write it in Python first - if you find portions of code too slow then write a lump in C(++). 9 out of 10 times the speed is fine. I have found that just re-writting code to use a more efficient algorithm can often give big speed improvements.

    And there is always NUMpy and PIL for specialist stuff.

    Perl - would anyone choose to learn it? Assembler is a model of clarity in comparison. Not the originators fault though - it's just grown that way. I agree with yogi - its code base is a problem, it should be our mission to convert any Perl app into human readable form.

IMN logo majestic logo threadwatch logo seochat tools logo