Friday, 27 March 2009

Google searches for holy grail of Python performance


Google's Python engineers have launched a new project called Unladen Swallow, which aims to bring a major performance boost to the Python programming language by making runtime speed five times faster. The project is being implemented as a branch of the conventional CPython runtime and will be fully source-compatible with regular Python applications and native extensions. This will make it possible to eventually merge the improvements into Python trunk.

The goal of the Unladen Swallow project is to use LLVM, the Low Level Virtual Machine compiler infrastructure, to build a just-in-time (JIT) compilation engine that can replace Python's own specialized virtual machine. This approach offers a number of significant advantages. As the developers describe in the project plan, the project will make it possible to transition Python to a register-based virtual machine and will pave the way for future optimizations.

Adopting LLVM could also potentially open the door for more seamlessly integrating other languages with Python code, because the underlying LLVM intermediate representation is largely language-neutral.

The Unladen Swallow project also encompasses several other initiatives to improve other characteristics of the runtime and take advantage of modern hardware. Parallelization and higher utilization of multicore processors is one area where the developers are placing strong focus. They are considering the possibility of implementing a concurrent garbage collector, for example. They are very serious about fixing multithreading in Python and hope to slay the Global Interpreter Lock, a mechanism that provides thread safety but imposes limitations on the kind of scalability improvements that applications can get from concurrency.

Although the project is at a very early stage of development, an experimental prototype is already available. The source code can be downloaded from the project's version control system at the Google Code site. The current implementation is said to already provide a performance increase in some specific testing scenarios, but it's still only a flesh wound compared to the improvements that are coming.

For their second milestone, which is scheduled for the second quarter of 2009, they hope to replace the Python virtual machine with a functionally-equivalent LLVM-based implementation.

The Unladen Swallow developers hope that the project will eventually make it possible to use Python instead of C for a wider range of performance-sensitive tasks. They are building it on top of Python 2.6 (2.x is not dead yet) because it will allow many existing projects to adopt it and will also provide a clean glide path to Python 3.

Python is gaining some traction in enterprise environments and it's used extensively by Google within the company's own infrastructure and its hosted App Engine system. Google's investment in improving Python performance will make the language even more compelling for rapid web application development.

Source

Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog

Kambakht Ishq Exclusive Trailer



Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog

Kareena in Bikini in Movie Kambakht Ishq (Images)




Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog

Dhoni with Model Shaheera Khan : Big Bazaar PhotoShoot











Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog

Shilpa shetty in Sexy Saree Photoshoot (Images)






Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog

Hot Looks of Katrina Kaif in Lakme Fashion Week 2009





Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog

Deepika Padukone in Harper’s Bazaar India Pictures





For its second edition, Harper’s Bazaar India has roped in Deepika Padukone as their cover girl. The gorgeous girl talks about the whole experience, her fear of creepy crawlies and lots more. While Deepika was braving the heat in Phuket, photographer Atul Kasbekar and his assistants were pulling all strings to get the perfect light, the tone and the shot
Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog

Slumdog star Pinto is Bollywood top earner: report


Freida Pinto, the star in the Oscar-winning Slumdog Millionaire, has leaped ahead of her Indian rivals to become the highest paid actress in Bollywood, a news report said on Thursday.

Following the success of Slumdog, which took home eight Oscars and whose worldwide box office receipts so far are estimated at over USD 270 millions, the Indian model turned actress' has landed a series of lucrative roles with top directors, including Woody Allen and Julian Schnabel.

According to a report in the Daily Telegraph, she has pushed ahead of her rivals, Kareena Kapoor, Katrina Kaif and former Miss World Aishwarya Rai, to become the highest paid actress in India.

The Indian actor is in Israel to shoot for a new film that focuses on the interwoven lives of a Israeli and Palestinian women from the early years of the state through the early 1990s.

The British daily, quoting sources close to the Indian star, said her earnings have now topped 2 million pounds to overtake top Bollywood actresses. "Freida is fast reaching top status in the international arena. The actress's projects with big film-makers like Woody Allen have helped her join a league which no other Indian actress has achieved so far," said a film analyst.

"Freida can't be compared to Aishwarya, because we're not pitching her as an Indian girl in international films. Freida is a true global face," Anirban Das, CEO of her management company, was quoted as saying in the report.

Source

Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog

Salman Rushdi's Ex Wife Padmalaxmi Hottest Photo


Get all our blog postings delivered in your inbox.Type your Email address Here
For more Click Teentweensblog