Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Announcements

Submission + - LLVM/Clang 2.7 released!

l_i_g_h_s_p_e_e_d writes: The LLVM Compiler Infrastructure version 2.7
was just released.
It includes a new open source BSD licensed C/C++ compiler, clang. Previously clang was only able to compile C code:
"This includes significantly better generated code, improvements to debug
information generation and a broad number of new features in the
core infrastructure. One exciting feature is that Clang is now able to
bootstrap itself, a major milestone in any compiler's development and
particularly notable considering the complexity of implementing C++!"

LLVM also has a new official blog

LLVM has several subprojects that work with this new release:
Clang (a C/C++/ObjC/ObjC++ compiler)
Clang Static Analyzer
VMKit (JVM and CLI Virtual Machine)
Compiler-rt runtime library
Dragonegg (a gcc-4.5 plugin that uses LLVM as a backend)
http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html">Machine Code Toolkit

And there are several other OSS projects using it:
Pure (an algebraic/functional programming language based on term rewriting)
Roadsend PHP (an open source implementation of the PHP programming language that uses LLVM for its optimizer, JIT and static compiler)
Unladen Swallow (a branch of Python that uses LLVM's optimizers and JIT compiler). http:///
TCE (a toolset for designing application-specific processors).
SAFECode (a memory safe C compiler built using LLVM).
Icedtea/Shark (OpenJDK build that uses an LLVM based JIT compiler)
LLVM-Lua (uses LLVM to add JIT and static compiling support to the Lua VM).
MacRuby
GHC (an open source Haskell compiler)
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."
Programming

Submission + - Kaleidoscope: Implementing a Language with LLVM (llvm.org)

sabre writes: "The LLVM Compiler System is being used for all sorts of interesting things these days. It basically provides an extremely modular and easy to use set of open source (BSD-licensed) compiler libraries that can be used to build various applications from. Despite this, many people don't really understand it, and are scared away by the breadth of the project or by compilers in general.

The Kaleidoscope tutorial starts out from scratch and slowly builds up a simple language to show how LLVM can help out with this. We end up with a JIT compiler for a fairly interesting little language with less than 700 lines of code. Of course, this is just the tip of the iceberg, once you start with LLVM, there are all sorts of things you can do."

Slashdot Top Deals

Real Programmers don't eat quiche. They eat Twinkies and Szechwan food.

Working...