Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
Programming

Project Aims For 5x Increase In Python Performance 234

cocoanaut writes "A new project launched by Google's Python engineers could make the popular programming language five times faster. The project, which is called Unladen Swallow, seeks to replace the Python interpreter's virtual machine with a new just-in-time (JIT) compilation engine that is built on LLVM. The first milestone release, which was announced at PyCon, already offers a 15-25% performance increase over the standard CPython implementation. The source code is available from the Google Code web site."

Comment Re:LLVM / clang (Score 2, Interesting) 546

clang is fairly early on, but so is PCC. PCC supports almost no GCC extensions (e.g. inline asm, attributes, etc), doesn't support C99 fully, and has many other problems. The clang parser is basically done for C and clang has support for several other source analysis tools other than "just code generation". See the slides linked of http://clang.llvm.org/ for details. I'd expect clang to be fully ready for C use in the next year.

llvm-gcc is quite mature (it has built huge amounts of code, including apps like Qt and Mozilla), supports C/C++/ObjC and bits of FORTRAN/Ada if that is your thing. Using llvm-gcc you get the advantages of the LLVM optimizer and code generator with the GCC front-end.

-Chris
Programming

GCC Compiler Finally Supplanted by PCC? 546

Sunnz writes "The leaner, lighter, faster, and most importantly, BSD Licensed, Compiler PCC has been imported into OpenBSD's CVS and NetBSD's pkgsrc. The compiler is based on the original Portable C Compiler by S. C. Johnson, written in the late 70's. Even though much of the compiler has been rewritten, some of the basics still remain. It is currently not bug-free, but it compiles on x86 platform, and work is being done on it to take on GCC's job."

GCC 4.2.1 Released 449

larry bagina writes "GCC 4.2.1 was released 4 days ago. Although this minor update would otherwise be insignificant, it will be the final GPL v2 release; all future releases will be GPL v3. Some key contributors are grumbling over this change and have privately discussed a fork to stay as GPL v2. The last time GCC forked (EGCS), the FSF conceded defeat. How will the FSF/GNU handle the GPL 3 revolt?"

Wikipedia Used To Spread Virus 116

eldavojohn writes "The German Wikipedia has recently been used to launch a virus attack. Hackers posted a link to an all alleged fix for a new version of the blaster worm. Instead, it was a link to download malicious software. They then sent e-mails advising people to update their computers and directed them to the Wikipedia article. Since Wikipedia has been gaining more trust & credibility, I can see how this would work in some cases. The page has, of course, been fixed but this is nevertheless a valuable lesson for Wikipedia users."

Comment Should be: Migrating an App the Worst Possible Way (Score 4, Insightful) 393

Migrating a Win32 app the way they suggest is going to be painful and time consuming. In addition, there are numerous things that they don't mention, like associated performance costs: is creating a thread going to be more expensive or cheaper on Linux vs. Win32? Don't look to the article for the answer. It doesn't even mention the biggest parts like the graphics/windowing library.

Secondly, it is making a wild assumption that your win32 app is written in a that is conducive to a Unix/Linux process model. Namely that you spawn processes and use environment variables as opposed to having a message loop and handlers (the way most windows apps are written).

Third, if it was so straight forward to port a Win32 app, why not just write a library that maps the windows calls onto the equivalent Linux calls instead of manually changing all your source?

Finally, why not look at a binary solution like Wine first and not touch your source at all?

This is the worst way migrate app. The source works and manually mucking with it like this is a good way to break it and introduce all sorts of bugs. Look for a binary solution like Wine. Then look to see if somebody implemented a Win32 on Linux library next to recompile (like Cygwin in reverse). Then, the last choice is to factor out your platform specific portions of your code and replace them with OS neutral calls. But beware of the performance of your app, it will probably take a hit. But, hacking apart your app like this makes me cringe.

User Journal

Journal Journal: Iraqi Elections

Today is the day of the Iraqi elections. The question still remains whether or not they have any legitimacy, Iternational election monitors are in Amman, Jordan. The U.N. washed its hands of the whole situation. The Kurds and Shi'ites seem to have no problems voting, but Sunnis in the middle part of Iraq are under a constant threat of violence, reinforced with mortar and rocket attacks along with car suicide bombings.

User Journal

Journal Journal: The Rough Road Ahead

I honestly believe that the American economy is in for some rough times. At the local level, I see a great squeezing of the middle class. We have moved away from a manufacturing economy to a service economy. The reason for this shift is to exploit cheaper labor and more lax environmental standards in developing countries. While this drives down costs for corporations, the cheaper production costs are seldom passed on to consumers.

User Journal

Journal Journal: An Ownership Society

The natural comparison of Bush's vision of a society of ownership society is to say that we are currently a nation of renters.

User Journal

Journal Journal: EA... Your Experience May Vary

I work for EA. I intern'd for Microsoft. As far as my short experience and ongoing experience at the company goes, I my experience working for EA is not as bad as some horror stories on the 'net. Although, the EA spouse thing does bring up my greatest fear about the job, that is, the job will consume my life.

Politics

Journal Journal: The Corporation, The Culture, and The Media

I was reading The Corporation: The Pathological Pursuit of Profit and Power. It is a very insightful book about the most dominant institution of my time.

Before discussing the book in particular, let's be clear on definitions. An institution is organization that compels people on what they can, can't and must do. Government is an institution. Marriage is an institution. The church is an institution. So is the corporation.

User Journal

Journal Journal: Re: The Big Badda Boom!

Well, I'll admit that I'm wrong. North Korea did not set off a nuclear explosion. They set off a huge convential explosion. Their cover story of it being for a hydro-electric dam is fishy. Experts claim that the nearby river is a poor choice for such a dam. The fact remains that it is very near a uranium enrichment facility. Who knows what they are doing.

Moderation: How I moderate

Slashdot Top Deals

Kill Ugly Processor Architectures - Karl Lehenbauer

Working...