Opera working on faster JavaScript engine

By Paul Krill, InfoWorld |  Internet, JavaScript, opera Add a new comment

Opera is working on a JavaScript engine, called Carakan, which is intended to be the fastest JavaScript engine on the planet, according to Opera.

Carakan (pronounced Tsharakan) is now 2.5 times faster than Futhark, the JavaScript engine in the Opera 10 browser. It could be even faster when ready, the company said. The company plans to release Carakan as soon as possible in an as-yet-undetermined version of the Opera browser.

[ Also read how Mozilla is working to boost JavaScript performance. ]

Futhark, according to the Opera core developers blog, was developed to minimize code footprint and memory usage rather than to achieve maximum execution speed.

"This has traditionally been a correct trade-off on many of the platforms Opera runs on. The Web is a changing environment, however, and tomorrow's advanced Web applications will require faster ECMAScript execution. So we have now taken on the challenge to once again develop the fastest ECMAScript engine on the market," the blog said.

"The name Carakan -- like the names of Opera's previous ECMAScript engines, Futhark, Linear A, and Linear B -- is the name of a writing system or ''script," the blog said.

With Carakan, Opera is focusing on improvements in three main areas:

-- Register-based bytecode, which requires fewer instructions to be executed and less copying of data.

-- Native code generation based on a static type analysis, to reduce overhead.

-- Automatic object classification, in which each object is assigned a class that collects various information about the object, such as its prototype and the order of names of some or all properties.

"So how fast is Carakan? Using a regular, cross-platform switch dispatch mechanism (without any generated native code) Carakan is currently about two and a half times faster at the SunSpider benchmark than the ECMAScript engine in Presto 2.2 (Opera 10 Alpha)," the blog said. With Opera ported to many different hardware architectures, this cross-platform improvement is on its own very important, according to the blog.

"The native code generation in Carakan is not yet ready for full-scale testing, but the few individual benchmark tests that it is already compatible with run between five and 50 times faster, so it is looking promising so far," the blog said.

Opera testers and developers have been working on Carakan for the past few months, the company said.

    Add a comment

    Post a comment using one of these accounts
    Or join now
    At least 6 characters

    Note: Comment will appear soon after you have activated your account.
    Obscene/spam comments will be removed and accounts suspended.
    The information you submit is subject to our Privacy Policy and Terms of Service.

    ITworld LIVE

    InternetWhite Papers & Webcasts

    White Paper

    Smarter Commerce is redefining value chain visibility

    Smarter Commerce is redefining the value chain in the age of the customer. It starts with putting the customer at the center of your operations - which of itself is not a new idea - however, truly operationalizing this strategy is not easy.

    White Paper

    IBM Synchronizes its Commerce 2.0 Strategy with 'Smarter Commerce' Initiative

    On March 14, IBM announced "Smarter Commerce", a strategic initiative that addresses the surging market for Commerce 2.0 solutions that take advantage of the convergence of a number of disruptive software and hardware technologies.

    See more White Papers | Webcasts

    Ask a question

    Ask a Question