Whether it's faster depends on the particular problem (in some cases it's faster, in some it isn't), but it's definitely not more scalable (have you heard of Google App Engine ? You don't get much more scalable than that and it's running a version of Python).
The GIL plays no role in web applications (i.e. it relates to threads *within* a process - which generally you don't do in PHP either). On Jul 10, 11:40 pm, eric cs <[email protected]> wrote: > Does anyone know why(technical reason), they say Php scale better and > it is faster. > What does it use to scale better for web apps. > > On Jul 10, 5:04 pm, mdipierro <[email protected]> wrote: > > > There is no real problem with python and multi threading (web2py > > includes a multithreaded server) except for one issue with the Glbal > > Interpreter Lock (i.e. Python multi threaded apps get slower, not > > faster the most cores you have unless you lock python on a core, for > > example by using a virtual machine). This is not a practical concern > > with typical web hosting service where you get assigned one VM. It is > > still faster than rails as long as I can tell. > > > The issues you raise are relavent for high performance computing not > > for web development. > > > web2py runs with Jython out of the box and it does not have the GIL > > problem but Jython is very slow. Perhaps things will change in the > > future. I know Jruby is faster than CRuby. > > > Massimo > > > On Jul 10, 3:54 pm, eric cs <[email protected]> wrote: > > > > Guys I am not expert just thinking about the Twiiter/Rails problem and > > > Scala solution and I was wondering that with Python. > > > I heard the best option to use Web2py is 2.5 and this version doesn't > > > support same features that take care "kind of" the Multithreaded and > > > Multicore problems on Python 2.6 and 3.0. > > > One of the solutions is parallel program which can run on multiple > > > cores in Python, does Django does has a better approach to that, > > > because several apps? > > > What about those approaches, can someone explain them better,newbie > > > way: > > > > 1-Write a multithreaded program using the threading module and run it > > > in the IronPython or Jython runtime. > > > 2-Use the processing module, (now included in Python 2.6), to run your > > > code in multiple processes at once. > > > 3-Use the subprocess module to run multiple python interpreters and > > > communicate between them. > > > 4-Use Twisted and Ampoule. This has the advantage of not just running > > > your code across different processes, but (if you don't share access > > > to things like files) potentially across different computers as well. > > > > I was wondering how are the options to take care of those problems > > > what are the future? > > > Looks like Python has way better options that Ruby for now. > > > > Thanks.- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

