
And I think many Python users will agree that it's simply a joy to work in.
Absolutely. Python and Java are my primary languages, I use the rest only if I have to and there are some I will never use no matter what. We should also watch out for PyPy Check out Stackless Python <http://www.stackless.com/> as well, it has a very easy-to-use multi-threading model. Saidi On Sun, Jan 31, 2010 at 12:07 PM, Joseph Wayodi <jwayodi@gmail.com> wrote:
On Sat, Jan 30, 2010 at 9:34 PM, saidimu apale <saidimu@gmail.com> wrote:
Python3, which is itself quite a major rewrite, still leaves the "global interpreter lock" (GIL) problem intact (I may be wrong on this one, I'm not quite certain). Part of the problem is that it's incredibly difficult to solve, and maybe it isn't such a problem if one can work around it.
The GIL issue is that on multi-processor machines, multi-threaded Python programs cannot effectively use the other CPUs/cores because of the lock. The alternative to creating threads is then to create processes instead, but with more overhead costs. In practice, apparently this isn't much of a problem (or so I've read, I don't have first-hand experience with it).
Unless one operates at Google/Yahoo/Microsoft data-center levels, then such performance issues are probably mostly academic. Very informative to think about them nonetheless.
Saidi
It should also be noted that these performance issues aren't issues with the language itself, but with Python implementations. And I think many Python users will agree that it's simply a joy to work in.
As for the global interpreter lock (GIL), yeah, it isn't a real issue, as you can use the new "multiprocessing" module, and other workarounds, to achieve multi-core/multi-processor concurrency. And I understand Ruby (YARV) also has a GIL.
Let's wait and see the effect of the Unladen Swallow optimizations, once (hopefully) they're merged back into CPython. We should also watch out for PyPy: <http://morepypy.blogspot.com/>.
Joseph.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general