Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Programming IT Technology

Guido and Bruce Eckel Discuss Python 3000 305

Phoe6 writes "Leading author and programmer, Bruce Eckel, posted some of his concerns on Python 3000 stating that the Python community is failing to address some of the important issues with this major, backward incompatible release. Problems he mentions are concurrency support on multi-core CPUs, easy deployment support, and a standardized user interface, amongst others. He expresses his dissatisfaction at the post titled "Python 3K or Python 2.9?. Guido van Rossum addresses the concerns in a very pragmatic way with his response to Bruce Eckel and calls for more developers to contribute to Python to improve it further. Bruce Eckel concludes with his thoughts that he wants his favorite language to be better with his reply to Guido's reply."
This discussion has been archived. No new comments can be posted.

Guido and Bruce Eckel Discuss Python 3000

Comments Filter:
  • I just don't see a reason for this conflict with Guido. Just make a new language, if you want something incompatible, but don't call it Python. Call it Anaconda or something. Or even Garter. Then you can do what you want. If you think you are better than Guido, then get typing, and prove it!

    • by Aladrin ( 926209 ) on Sunday September 16, 2007 @10:46AM (#20625847)
      There's 2 sides to that, though.

      While I agree, if he wants something that's fundamentally incompatible, but wants to still call it Python, that's silly.

      On the other hand, they're saying 'We need more devs to work on Python' and pushing people away that -care- is exactly the opposite of that. If they want new devs, they'd better be resigned to the fact that the newcomers WILL have a different vision, just as this guy does. Finding code-slaves that will do everything you want exactly as it always has been is nearly impossible. You have to pay people to make them go through pain like that. (Coding in someone else's style is just as hard as painting in someone else's... Initially it's almost impossibly hard, and it gets easier with time... And there's always the alternative of working on something else without all that pain.)
      • by drgonzo59 ( 747139 ) on Sunday September 16, 2007 @11:27AM (#20626167)
        Finding code-slaves that will do everything you want exactly as it always has been is nearly impossible.

        Good point! Managing developers is hard enough in a company where the devs are paid. Managing volunteers is much, much harder. I strongly believe that half of the success of many open source projects is not the brilliant ideas or the super cool code, but the personality of the lead developer. Linus and Guido have proven to be such personalities that managed to galvanize hoards of developers around them. That is quite impressive. How many managers out there would be able retain employees without any pay?

        One distinctive feature of these open source project leaders is that they have to act like assholes sometimes. I proves that they are tough, have a vision and won't budge. At first it seems counter-intuitive that being disagreeable will accomplish more but it works because even if it pushes one developer way, it might attract others or make the ones who are left work harder. It's like a medieval army. Decimating 1% of the army is worth it because it will make the other %99 percent work harder.

      • Re: (Score:3, Insightful)

        by VGPowerlord ( 621254 )

        While I agree, if he wants something that's fundamentally incompatible, but wants to still call it Python, that's silly.

        You know, I said something similar to this about Larry Wall, Perl, and Perl 6.
    • Anaconda is already in use.

      I was thinking SAP, "Simply another Python". Oops, that is taken too.

    • by DigitalSorceress ( 156609 ) on Sunday September 16, 2007 @11:13AM (#20626069)

      Of course, since Python was named after Monty Python's Flying Circus, maybe it should be one of these:

      • Gumby
      • Nudge
      • Ni
      • Creosote
      • UnladenSwallow
      • Albatros
      • DeadParrot
      • CheeseShop
      • LiverDonor
      • CrimsonPermanentAssurance
      • AndNowForSomethingCompletelyDifferent
      • Spamalot
      • WhatsAllThisThen
      • NudgeNudge
      • Monty
      • KillerRabbit
      • Tim
      • Lumberjack
      • JudeanPeoplesFront
      • Gourd
      • Herring
      • Shrubbery
      • HungarianPhrasebook
      • Jabberwocky

      Something along those lines anyway

      • by hey! ( 33014 ) on Sunday September 16, 2007 @11:28AM (#20626173) Homepage Journal
        That's not right; you need to name the language after a comedy troupe or show. Then famous bits from that can be used to name features or releases.

        So, Bruce's Python derived language could be called SNL (Selfless Notation Language). Libraries could have names like "Bassomatic" (XML processing) or "Cowbell" (Multimedia types).
      • Surely we should first rename what we've already got to ExParrot, implying that has passed on, is no more, has ceased to be, has gone to meet its maker, etc. Then we'll be free to call its replacement whatever we like. :-)

    • Re: (Score:3, Insightful)

      by HiThere ( 15173 )
      Nah, he's already said he likes Ruby, so if Python won't go where he wants he could choose dRuby (distributed Ruby). He wants Python to do it because he's more productive in Python. That's a good reason.

      Also, his main goal, changing the language to be more productive on multi-processor systems, is an extermely valid one in a "design for the future" sense. Right now it makes marginal sense, but multi-core & multi-processor systems are becoming more common...and the predictions is the trend will not on
  • Bad link? (Score:5, Informative)

    by albalbo ( 33890 ) on Sunday September 16, 2007 @10:34AM (#20625763) Homepage
    First link should probably be to http://www.artima.com/forums/flat.jsp?forum=106&thread=214112 [artima.com] .
  • by SEWilco ( 27983 ) on Sunday September 16, 2007 @10:41AM (#20625805) Journal
    Shouldn't Python 3000 include a giant animated foot and silhouettes of the audience cracking jokes?
  • Python, meet Haskell and Erlang.
    • Re:Solved problems (Score:5, Interesting)

      by SanityInAnarchy ( 655584 ) <ninja@slaphack.com> on Sunday September 16, 2007 @12:38PM (#20626837) Journal
      It's not even an issue of better support for concurrency in the language itself.

      Personally, I like some of the ideas of Python better than Haskell and Erlang. There have been some very good ways of doing multithreading, even massive multithreading (see Stackless, some of which is now back in the main Python), and making it natural, even with an imperative style of programming. Some implementations (again, see Stackless) make threads so lightweight that you can spawn thousands without being concerned about performance, and the structures used make it natural to do that without any kind of locking issues -- sometimes, without explicit locks at all.

      The problem is not with python, the language. It's with python, the interpreter, and all the associated C modules, embedded versions, etc, not to mention Python programs that might assume the same behavior.

      Specifically, it's the Global Interpreter Lock. The GIL is the most retarded move I've ever seen in a language. Basically, Python said "We don't want to make the Python interpreter too complicated, so we're going to deliberately remove multicore support." They even support real OS threads, but only one Python instruction may be executed at a time. Which is fucking stupid.

      There are a lot of really good things in Python. I'd like to be able to write a good, modern game with Python, but if you figure it may be half as fast as C already, I'm not going to lose another 50% speed because it can't use both cores. (Yes, psyco can make it MUCH faster, close to C. But, psyco doesn't work on 64-bit, which is another kick in the balls for performance.)
      • Specifically, it's the Global Interpreter Lock. The GIL is the most retarded move I've ever seen in a language. Basically, Python said "We don't want to make the Python interpreter too complicated, so we're going to deliberately remove multicore support." They even support real OS threads, but only one Python instruction may be executed at a time. Which is fucking stupid.

        Python has multicore support; it's called "spawn a process".

        Down the road when you have, say, 200 cores, do you really want to be

      • I agree, in this day and age, not having a plug to remove the GIL is beyond stupid.

        It is worth pointing out that the situation isn't as bad as you imply as multi-core support most definitely has not been removed. Threading works great when python is I/O bound. Anytime python is outside of the interpretor handling an I/O operation, the GIL is released and allows another thread to execute. Threads which are executing inside the interpretor, continue to run regardless of the GIL's state. CPU bound tasks, o
    • Python, meet Haskell and Erlang.

      One thing I like about Python is that it's not ashamed to steal good features from other languages. Even better, it usually makes them easier to use or gives them nicer syntax. So I'm OK with this. But I feel it's necessary to point out a couple problems with your thesis here:

      Erlang is cool and all, but libraries are basically a dead end at this point. There are too many things missing that you have to go implement on your own, and if they don't catch up soon they're

  • by bcrowell ( 177657 ) on Sunday September 16, 2007 @10:48AM (#20625871) Homepage
    One thing I don't understand about Eckel's original article is that he says breaking compatibility isn't a big deal, because the programmers who don't want to use the new version will just stay with the old one. How does that work for the users? Do they (a) end up having to pick which version of the language to install on their machine, and lose the ability to run half the world's python software, (b) have to install multiple versions of python on their machine, or (c) ??? Eckel is comparing with Java, but since Java is a compiled language, it's much less of an issue; syntactical changes don't affect the end user who just wants to run the code. How would python handle this? Perl 6, for instance, will automatically detect if the code you're running is perl 5, and will run it correctly in a compatibility mode.
    • by Niten ( 201835 ) on Sunday September 16, 2007 @11:14AM (#20626075)

      You'd typically install multiple versions of python on the same machine. On Unix-like systems each Python version's executable will be named in the manner of python2.4, python2.5, and so on, with a symbolic link from /path/python to (usually) the newest version. Scripts can call for a specific version of Python by starting with a hash-bang line like #!/usr/bin/env python2.5.

      Many operating systems facilitate this scheme by offering independent packages for different versions of Python. In particular, on Debian Etch the user can choose to install any of the python2.3, python2.4, and python2.5 packages, then use update-alternatives(8) to switch the system default between the three.

      • by afd8856 ( 700296 )
        Even more, on Ubuntu (but I think also on Debian), there's the pycentral folder in /usr/share, where folders (software) can be installed that provide python packages for several python versions.
    • It'll be like the current situation with PHP. PHP4 and PHP5 been out for ages, but only recently has the death knell for PHP4 been announced. The fun comes when your development system has the latest version but your target server has the previous version. You quickly become expert in compromising hacks.
    • by goombah99 ( 560566 ) on Sunday September 16, 2007 @11:45AM (#20626339)
      As long as they are going to break things here's my wish list for python. Make it possible for a compiler to compile it. Yes I realize that's essentially impossible for a dynamic language that does not enforce types in the function prototypes.

      However, it could be done like this. First recognize that nearly all uses of python do not take any advantage of the dynamic typing, and nearly all calls to functions happen with arguments whose type is not varying. Thus why not have a mechanism, an optional one, that could hint at the expected typing for a function and its args. I realize there are ways with "decorators" to add type checking, but that's not the point. I'm talking about type hinting. The reason for this would be to allow a compiler to examine the code, read the hints, and then compile the code or translate it to C++.

      The problem with existing python accelerators is that they bend overbackwards to avoid stepping on the dynamic typing. Why not allow the user to forego that if they want to and have static typing if they want to go to the effort of indicating it.

    • According to Guido the language differences aren't going to be so huge that code can't be ported, I think he said that something like 90% is going to already run, and there will be tools to help you locate and convert the other 10%.
  • documentation (Score:2, Insightful)

    by Anonymous Coward
    If they really want to help Python, build some online documentation that doesn't suck donkey balls. Seriously, I've never had more trouble learning a language than with Python. I have to go google it, because every site is missing info, so you have to put them all together. Does anyone know of a site with ALL the info, that lists ALL the methods in ALL the classes along with what those methods are expecting? Because I sure as hell could never find anything like that. Learn from PHP guys, the reason PHP
    • by afd8856 ( 700296 )
      I used to think something along these lines as well, when I moved from php to python, long time ago. But now it's really not an issue if you download the Python CHM help file and either use its index or navigate the Library Modules section. Also, I used to like that the php help section on the site has comments with code and everything, but looking back, these just really promote stupid recipes, with stupid tricks, full of bugs and insecurities. My 2 (euro)cents.
    • Re:documentation (Score:5, Interesting)

      by Niten ( 201835 ) on Sunday September 16, 2007 @11:27AM (#20626171)

      Huh. One of the things that really attracted me to Python was the (perceived) quality of the Web documentation. The Python Tutorial [python.org] and Python Reference Manual [python.org] are very complete and provide an excellent high-level overview of the language, something which can be rather difficult to come across in, for example, the land of Perl. Granted, the Library Reference [python.org] could be stronger, but I can still usually find what I need in there; and if not, it's easy enough to invoke dir() and view the __doc__ string on any objects of interest from Python's command line.

      I guess it's just a matter of personal taste. But for what it's worth, I found it much easer to pick up Python without resorting to any third-party books or reference materials than to start fresh with either Ruby or Perl.

      • by ardor ( 673957 )
        One example says more than enough:

        http://docs.python.org/lib/module-SocketServer.html [python.org]

        I had to google a lot of missing info to be really able to use SocketServer.
      • by TheLink ( 130905 )
        I personally found the perlfaq(s) and the various other perl manpages (e.g. perlipc) a lot more useful than docs for practically any other programming language I've encountered.

        The syntax and "Computer Science/Academic style description" of a language are not usually the most difficult bits (there are some exceptions of course ;) ). It's the nitty gritty details in the perlfaqs and similar that I find more useful.

        I mean, after reading "formal/academic" docs I'd know how to do "Hello World", "fibonacci", etc
    • Re: (Score:3, Insightful)

      by psavo ( 162634 )

      i dunno, every piece of documentation is just a starting point. I only use docs.python.org to find a suitable module and then just look around it in IPython shell (import module; module. etc.).

      As for PHP.net, it's full of buggy, halfassed examples written by morons and more often push you wrong way than not.

    • Re:documentation (Score:5, Informative)

      by Waffle Iron ( 339739 ) on Sunday September 16, 2007 @11:30AM (#20626205)

      Does anyone know of a site with ALL the info, that lists ALL the methods in ALL the classes along with what those methods are expecting?
      /usr/share/doc/python/html/lib/lib.html
    • While python org has documentation, python documentation lacks three critical aspects.

      1) searching and finding only relevant results. When I don't know exactly what I'm looking for, say how to parse an input string to numerical variables, and try to search python.org I get all kinds of crap at the top of my search. Discussions, posts, Peps, and deprecated crap. There ought to be a way to search for things relevant to the current python commands.

      2) documetnation that teaches. Too often when I find the do
    • by Cheesey ( 70139 )
      That's a very unusual complaint about Python, which has great documentation. http://docs.python.org/ [python.org] has info about everything bundled with Python (this is big -- "batteries included"). You can also get help from the Python interpreter by calling the built-in help() function, which takes a module, class or method name as a parameter. help() also works for many third party Python extensions.

      I am surprised that none of your searches took you to docs.python.org. But perhaps you were using lots of third party e
    • Re: (Score:3, Insightful)

      by jadavis ( 473492 )
      If they really want to help Python, build some online documentation that [isn't bad]

      There are a few under-documented libraries that I've run into before, but largely I've been happy with the python docs.

      I could swear you were talking about Ruby, because that's exactly the way I feel about Ruby (a language I love, but the docs are disorganized, decentralized, and generally poor).

    • by rg3 ( 858575 )
      It is insulting that you say that, and you deserve being modded down. I started learning Python with the official tutorial, which is completely clear and exposes you all the language features in an afternoon. There is also a module index that contains the documentation for the different modules, exposing the objects, functions and constants from every module, as well as a list of modules. There's the library reference, that exposes all the modules (again, grouped by topic), all the built-in functions, data
  • by mathgenius ( 526070 ) <simon@arBOYSENrowtheory.com minus berry> on Sunday September 16, 2007 @11:02AM (#20625993) Homepage
    My main problem with python 3.0 is the loss of the print statement! I have pestered Guido about it (including booing his talk on python3000 at europython this year) and, he said "well i brought this up last year and nobody seemed to object" and then to me personally "well no other language has a print statement".. I think the dumb simplicity of python's print statement is one of my favourite python things. It makes the language friendly (and I am a pepper-print debugger). As Mr. Hettinger says "you can't break 'hello world!'".

    I also think, more generally, that people are in for a world of pain, converting to python 3000. There needs to be tools that are %100 reliable that can convert code from 2.6->3.0. Otherwise, there will just be too much code mass, and it will take a long long time for 3.0 to be accepted. Such a stall is bad news for an OSS project.

    Simon.
    • I'm even more perplexed why Guido is removing the "+" sign. HE says he's reserving it for an unnamed future use. In the mean time using two minus signs in a row is how all additions will be done in python 3000. I'm baffled by this.
    • by Yath ( 6378 ) on Sunday September 16, 2007 @01:45PM (#20627411) Journal

      I think the dumb simplicity of python's print statement is one of my favourite python things.


      Interesting. Where other languages have print statements that do exactly what you tell them, Python's print statement has at least two ways of adding unexpected characters. Not what I'd call "dumb simplicity".

      While most experienced programmers can predict what a print statement will output, they won't be able to do this with Python's ... unless they're experienced with Python.

      print "Hello, World!" # One extra character is added here.
      print "Hello", "world" # Two extra characters are added here.
      print "Hello", # Guess how many extra characters are added here? Hint: not zero.

      Quiz:

      * How can you use Python's print statement to print some text without a newline? No fair firing up the interpreter!
      * Name three languages whose print statement only prints characters that the programmer explicitly passes to it.

      • It maps almost perfectly onto QBASIC:
        Py: print "Hello World"
        QB: PRINT "Hello World"

        Py: print "Hello",
        QB: PRINT "Hello";

        "It's the same syntax as BASIC!" should never be a selling point of your language.
    • Re: (Score:2, Insightful)

      boo hoo

      Instead of:
      >>> print "Hello World!"

      you now have to do
      >>> print("Hello World!")

      just two extra paretheses, and no more of this >> stuff.
  • Python++? (Score:4, Funny)

    by Zackbass ( 457384 ) on Sunday September 16, 2007 @11:08AM (#20626041)
    Why not just call it Python++? Oh, that's right, Python doesn't do that.
  • by __aaclcg7560 ( 824291 ) on Sunday September 16, 2007 @11:12AM (#20626065)
    The python mathematics algorithms must have a bug if they're going from version 2.9 to version 3000.
  • by markov_chain ( 202465 ) on Sunday September 16, 2007 @11:22AM (#20626135)
    Bruce complained that Python3K is not modular enough. Guido, always the pragmatist, and having just watched Reservoir Dogs, retorted that anyone who wants a modular language should get his head examined.

    Some guy on the mailing list proposed a new and better syntax, but Guido declined to merge it; he explained that he doesn't trust the new guy as much as Bob, whose Context-Free Syntax (CFS) is going into the next development version (odd-numbered, of course).

    • by m2943 ( 1140797 ) on Sunday September 16, 2007 @11:33AM (#20626227)
      Guido, always the pragmatist, and having just watched Reservoir Dogs, retorted that anyone who wants a modular language should get his head examined.

      So why does Python scatter its standard libraries across half a dozen packages? Probably one of the biggest problems beginners have with Python is that they can never remember whether something is in os, os.path, sys, string, re, or whether it's maybe just a method on an object, or maybe it changed in some recent release. And you can't just safely import everything from those packages either.
      • If it has to do with paths, it's in os.path. If it has to do with the OS in general, it's in OS. If it has to do with strings it's in string, and with regular expressions in re. What's so hard? The only two libraries in the whole of python that one might confuse are sys and path, and besides, why would you confuse two libraries? What are the docs for?
  • BS argument (Score:5, Insightful)

    by henrypijames ( 669281 ) on Sunday September 16, 2007 @11:27AM (#20626165) Homepage
    A lot of what Eckel is saying is basically "Python should be more like other languages" - not because they're better, but because I'm more used to them. Obviously that's totally ridiculous, yet not surprising: If you look at his resume, it seems he's far more familiar with other languages than Python. I seriously doubt his credential - let alone objectiveness - to question Python's design.
  • by m2943 ( 1140797 ) on Sunday September 16, 2007 @11:30AM (#20626197)
    Guido is right that Bruce's comments are mostly not core language issues.

    But that's also the problem the Python language is fine the way it is; it doesn't need any major overhaul. Before hacking away on P3K, Guido should concentrate on getting things like the UI, the standard libraries, and package management straightened out. Community contributions won't fix those; in fact, community contributions are the source of many of the problems of Python because often, there are multiple, mutually incompatible libraries and tools trying to do the same thing and stepping on each other.

    Guido is doing what is fun (hacking the language) instead of what is needed (straightening out the libraries), and that's not the best choice for Python overall.
    • Guido is doing what is fun (hacking the language) instead of what is needed (straightening out the libraries), and that's not the best choice for Python overall.

      That says, in one line, what I wrote in a much longer post.

    • by dkf ( 304284 )

      Guido should concentrate on getting things like the UI, the standard libraries, and package management straightened out

      Commenting on these as someone who isn't a Python person at all...

      • For UI, people should be aware that Tk has just had a large injection of new widgets that support theming/styling schemes that make them look just like native widgets. (Actually, they are real native widgets on some platforms...) Now if only the python interface to Tk didn't set the TK_LIBRARY environment variable, things would work even better.
      • One man's essential standard library component is another man's useless bloat. Really. So suit yo
  • They are both wrong! (Score:2, Interesting)

    by pigiron ( 104729 )
    The right answer is here: http://newlisp.org/ [newlisp.org]
  • by Animats ( 122034 ) on Sunday September 16, 2007 @11:39AM (#20626279) Homepage

    Actually, those aren't the real problems with Python. They're not the ones that keep it from, say, replacing Perl.

    • Multicore support is a nonissue. CPython is too slow to need it. It's helpful to distinguish between the Python language, which isn't bad, and the CPython implementation, which is a slow, naive intepreter. CPython is about 60x slower than C. Compare Java, which, with modern just-in-time compilers, is about 2-3x slower than C. What's needed is a Python compiler with some smarts. There's Shed Skin, but it doesn't work yet.

      One side effect of the speed problem is a tendency to try to write C modules to do things that take significant time. Unfortunately, CPython's interface to C is terrible, bug-prone, and changes with each new release.

    • The "dynamic language" thing is overdone. CPython is a demonstration of the fact that if you make everything a dictionary, it's easy to implement a dynamic language. It's also a demonstration of "if the only tool you have is a hammer, everything looks like a nail". Too much time is wasted in Python checking to see if something changed that probably didn't change. You can add or change functions or data of a running object or a running function. From outside the object or functionor thread, even! It's cool! It's l33t! It means you can't have an optimizing compiler. (Well, maybe you could, with one that goes to immense lengths to detect when "something funny" is going on and reworks the code on the fly. Won't be easy to implement.) Those features just don't get used that much, except to patch around bugs in the buggy Python libraries. The troubles with the "global interpreter lock" stem from this problem. The "global interpreter lock" is mostly protecting all those dictionaries which define the program. After all, one thread might want to patch the code in another thread.

      Years ago, LISP hackers used to talk about how great it was that LISP programs could modify themselves while they were running. Few useful programs ever actually did so. Java has a certain amount of dynamism; you can, if you really have to, create Java code from within a program, compile it, and load it. Few programs need more dynamism than that. The Shed Skin implementation imposes some restrictions on dynamism, and they're on the right track.

    • Libraries are someone else's problem. Python is better than Perl as a language, but CPAN is better than Python's Cheese Shop. Many key modules aren't part of the main Python distribution and aren't synchronized with it. Examples are the interfaces to databases like MySQL and the interface to SSL. These lag months or years behind the base system. Modules outside the small "core" are not supported in any coherent way. Each is supported by a developer or two, working in isolation. If they lose interest, the module languishes, and nobody else can change it. This sometimes leads to multiple libraries for the same purpose, each with different bugs, and none good enough to obsolete the others.

    The overall effect is that if you try to write something complicated in Python, everything goes along just great until you hit some library bug that can't easily be fixed. Or you discover that you need racks of servers to compensate for the painfully slow implementation.

    That's why Python hasn't even replaced Perl, over fifteen years into the deployment of Python.

    • by TheLink ( 130905 )
      "Java has a certain amount of dynamism; you can, if you really have to, create Java code from within a program, compile it, and load it"

      I don't believe that's commonly done, instead many Java programs that require "dynamic" stuff reimplement Lisp in XML (with various degrees of completeness/bugginess). ;)

      AFAIK python is faster than perl. I don't know what the perl6/parrot people are doing, but I'd rather a faster perl5 first than a perl6 with lots of stuff thrown in.

      I suppose doing stuff like that is hard a
      • by atrus ( 73476 )
        Java dynamic code tends to be pretty well behaved, and is actually heavily used. For instance, EJB 3.0 makes very heavy use of the reflection API to auto generate RMI wrappers, maintain object pools, etc, with no heavy lifting from the developer.
    • by renoX ( 11677 )
      >>You can add or change functions or data of a running object or a running function. From outside the object or functionor thread, even! It's cool! It's l33t!

      Well if memory serves, researchers managed to build 'good' performance (half the C performance in some benchmarks) for Self which was quite dynamic language (a prototype based language in fact), thought I don't know if it supported threads..

    • Re: (Score:3, Interesting)

      by julesh ( 229690 )
      Actually, those aren't the real problems with Python. They're not the ones that keep it from, say, replacing Perl.

      * Multicore support is a nonissue. CPython is too slow to need it.


      Agreed, but CPython isn't the only implementation that has problems with multicore support. The psyco JIT compiler also has a global lock, and is fast enough for many compute intensive applications. But still doesn't benefit from multicores. The issue is that dictionaries and lists are expected to
    • by SanityInAnarchy ( 655584 ) <ninja@slaphack.com> on Sunday September 16, 2007 @03:46PM (#20628405) Journal

      Multicore support is a nonissue. CPython is too slow to need it.

      It is actually two issues.

      First is Psyco, and any similar efforts in the future. Psyco, aside from not supporting anything but 32-bit x86, also is limited to a single core, despite being very, very fast -- in some cases, supposedly faster than C. In any case, that is the goal.

      And if CPython is that slow, I'll take any performance boost I can get.

      Second, it means that any other implementation that doesn't have a GIL is likely going to expose obscure bugs in existing python programs. Well, not bugs, but assumptions that only one Python instruction can run at a time. Not to mention the C extensions...

      It means you can't have an optimizing compiler. (Well, maybe you could, with one that goes to immense lengths to detect when "something funny" is going on and reworks the code on the fly. Won't be easy to implement.)

      Well, first, no compiler is "easy". If it is, write me a C compiler that's half as good as gcc.

      Second, it's been done. You mention LISP:

      Years ago, LISP hackers used to talk about how great it was that LISP programs could modify themselves while they were running. Few useful programs ever actually did so.

      And yet today, there are very fast and useful LISP compilers, which do just what you said an "optimizing compiler" can't do -- they make LISP fast enough that it could probably be used as a replacement for C or Java (for most things), if it weren't for all those damned parentheses...

      Libraries are someone else's problem. Python is better than Perl as a language, but CPAN is better than Python's Cheese Shop.

      Well, CPAN is better than just about any language. Also, you were expecting to find cheese in the Cheese Shop? They're all out of that!

      In any case, CPAN doesn't seem to be much better supported -- often, yes, a developer or two, working in isolation, maybe a bit of peer review.

      Also, this is like the argument of Windows being better than Linux, due to number of apps. It's a sad reality that it limits options, but in my experience, Linux is better enough that I'd often rather do a little extra work to make Linux do what I want than buy a Windows program to do the same thing.

      I don't think Python is quite there yet, though. Notice how pretty much every one of your Python complaints holds for Perl, except CPAN. But, if Python were fast enough, and had threading that worked, I'd be using it instead of Perl, no question. (For that matter, if Perl6 ever gets released, and if Python gets ported to Parrot -- not very likely, I know, but if it happened -- CPAN would suddenly become available to Python people.)

      Or you discover that you need racks of servers to compensate for the painfully slow implementation.

      Which would be great, if it weren't for the fucking GIL. I hate that thing.

      Then again, people are willing to deploy Ruby, so at a certain point, CPU is cheaper than programmers. Although I still wish I didn't have to choose.

      That's why Python hasn't even replaced Perl, over fifteen years into the deployment of Python.

      Well, Perl hasn't replaced Java, and Java hasn't replaced C.

      Frankly, I think one of these languages needs to step up and offer something compelling -- or I need to find the one that already has, and still isn't dominating. But I've been looking for years, and still haven't found something that's as dynamic and easy as perl/python/ruby, as portable as Java (even CORA, please), and as fast as C, even though I'm convinced it's possible.

  • For python to be healthy in the future, it needs to cut out all the added syntactic sugar bloating the syntax since 2.2 and substitute it with complex XML support.

    • XML is not the answer with Python. Almost never. The only reasons I've ever found for XML are compatibility with other apps that use XML--otherwise there's generally a more elegant solution that doesn't use it.

      If you *must* use XML, ElementTree is built into Python 2.5.
  • Regarding GUI (Score:4, Interesting)

    by Brandybuck ( 704397 ) on Sunday September 16, 2007 @11:53AM (#20626409) Homepage Journal
    Regarding the GUI: don't.

    This is a language, so keep it as such. I realize it's hard to market a language without a rich set of standardized libraries, but the UI should be an exception. This is an area where the technology is slowly but constantly changing. In addition, GUIs tend to have somewhat "religious" supporters. Also, as Bruce mentioned, all of the toolkits have their advantages and disadvantages. One "disadvantage" they all share is a changing API. Nothing stays the same forever. Tying your language standard to a third party API is problematic.

    One language tried to do this (Java), but it's original GUI was universally reviled, and it's current "official" GUI (Swing) is competing with an extremely popular third party solution (SWT), and another third party solution (Jambi) is starting to gain enthusiastic users.

    So in my opinion, leave the UI unstandardized.
  • by pclminion ( 145572 ) on Sunday September 16, 2007 @11:55AM (#20626421)

    He's not that different from Linus. He does things in ways that some people seem to really dislike. When they complain, he doesn't mind. "Tough cookies." I guess when Linus does it, it's a noble independent spirit, when Guido does it he's being an asshole.

    I use Python as a test, actually. Hating the language is okay by me, we've all got tastes. Lucky for you, we don't write our code in Python so you won't suffer. But saying you hate it because of enforced whitespace? That fails your interview, right there. Ohhhh boy. You've got a problem with having to make things line up the way their supposed to? Just wait until you hit some actual PROJECT REQUIREMENTS.

  • by renoX ( 11677 ) on Sunday September 16, 2007 @11:57AM (#20626433)
    He said that 'self == whitespace indentation' whereas for me I see that as exactly the oposite:
    - using whitespace for indention remove 'visual noise' at the cost of 'language magic'
    - using self adds 'visual noise' with the (dubious IMHO) benefit of language 'simplicity'.

    IMHO removing self would be a big plus for Python, sure self makes things more explicit but if developers really wanted to use explicit language, they would stay with C instead of using Python, Ruby..
    • by Cheesey ( 70139 ) on Sunday September 16, 2007 @12:20PM (#20626655)
      You have touched on a problem with Python that has always annoyed me. It's not "self", but it is one of the reasons why "self" has to be explicitly specified.

      The problem is that Python does not distinguish between creating a variable and assigning a new value to an existing variable. This means that scoping doesn't work as well as it should. In particular, you can't do this:

      def Parent():
        v = 0
        def Child():
          v += 1
        Child()
      because Python cannot tell that the second v is the same as the first. You can access v from the Child() function, but you can't update it. There are ways around this problem, but they are ugly. That's why Python really uses self: so it knows which scope each variable belongs to. And it's a pain. There should be a way to explicitly specify the scope of variables without having to resort to ugly hacks. I am a big fan of Python, but it could be so much better...
  • by Aminion ( 896851 ) on Sunday September 16, 2007 @12:05PM (#20626513)
    The Python Software Foundation (PSF) needs to realize that there's so much more to a language than the syntax. There needs to be a major effort in making it easier to install, get started with, and deploy Python, and much more advocating and marketing needs to be done. For example, PSF should start campaigning so that web hosting providers support Python out of the box. Why do you think PHP, despite it's obvious drawbacks, is so popular? Because it's ubiquitously supported and requires nil efforts to get started!

    It's great that Python is constantly evolving into a cleaner and more competent language, but I fear that the Python 3000 efforts could result in a pyrrhic victory in the war between programming languages because it simply fails to attract enough new people. There's so much that the PSF could do, but there seems to be too much "But that's not our job!"-thinking.

    • by Aminion ( 896851 )
      "langauge"? I spell checked everything besides the subject, so obviously it got misspelled.
  • Give me multiply indexed arrays and array slicing! that would be something.
  • Yeah, well (Score:3, Informative)

    by stonecypher ( 118140 ) <stonecypher&gmail,com> on Sunday September 16, 2007 @01:00PM (#20627027) Homepage Journal
    Bruce Eckel is looking for Erlang. That's not what Python is for.
  • by SiliconEntity ( 448450 ) on Sunday September 16, 2007 @02:02PM (#20627539)
    Sounds like some tough issues. Good thing they have 993 years to get it right.
  • by pavera ( 320634 ) on Sunday September 16, 2007 @09:47PM (#20631523) Homepage Journal
    Ok,
    Python is slower than C, C++ and Java... Guess what? So are PHP, Ruby, Perl, and every other interpreted language.

    However, if it takes me 10 programmer hours to create a python program (or PHP, Ruby, Perl) program, and the program takes 10 seconds to process 50,000 records from my database while the C version of this program takes 500 programmer hours and takes 1 second to process 50,000 records.... how long does it take before the C program is faster?

    about 9.8 billion records... well, at our current rate of record growth, I'll be there in about year 2500, even assuming 50% growth/yr (completely unsustainable for any enterprise past 10 years) its still 2100 before the time saved by the program equals the time saved on programming time... Not to mention CPU time costs less than 1 cent/hr, and programmers are much more expensive.

    And for the record, we have done this. We recently re-wrote a C application in python, the original application took 5 programmers 3 years to create, we recreated it in python with 2 programmers in 6 months, it is feature complete vs the C implementation, it is slower, but not outside of what would be considered reasonable. We also haven't even tried to optimize it at all... which we could do and probably at least get 10-20% improvements in performance.

    Now, in saying this am I saying interpreted languages are the answer to every problem? No! Sometimes, you need C, sometimes there are problems that can't be solved well in any specific language. If there was a be all end all language, we'd all be using it. Python, Perl, PHP, and Ruby all have their place, in general I prefer Python because I find it much more intuitive than Perl, I find generally better programmers advertising Python jobs than advertising PHP jobs, and I just like it better than Ruby

Ocean: A body of water occupying about two-thirds of a world made for man -- who has no gills. -- Ambrose Bierce

Working...