New Opera JavaScript engine supports native code generation

Opera Software logoOpera is developing a new JavaScript engine that will deliver a significant performance boost by generating native code. Much like similar software that is being developed by Apple, Mozilla, and Google, the new Opera engine will support the next generation of scripting-intensive web applications.

The Opera web browser could soon get a script execution performance boost from a new JavaScript engine that supports native code generation. The new engine, which is called Carakan, was unveiled through a technical overview published on the official Opera developer blog on Wednesday.

The growing relevance of script-intensive web applications has compelled browser makers to search for ways to improve the performance of their JavaScript implementations. Renewed competition in the browser space has helped to accelerate this process, as the primary contenders battle to be the fastest. Apple's immensely impressive SquirrelFish Extreme engine currently leads the pack, but Mozilla and Google are also moving forward with new high-performance JavaScript engines. These all use JIT compilation and native code generators to achieve their performance gains.

The new Carackan engine aims to deliver similar functionality and help Opera stay competitive. According to developer Jens Lindström, Opera has had a small team working on the new engine for several months. Carakan will replace Futhark, the engine that is used in the latest stable version of Opera. Futhark, which was introduced in Opera 9.5, is a lightweight, stack-based bytecode interpreter that was designed with an emphasis on low memory consumption rather than optimal execution speed. Carakan supports a new register-based virtual machine and a nascent native code generator that leverages static type analysis.

Although the native code generator isn't ready yet, the new virtual machine is already much faster than the previous one. Builds aren't available to the public yet, but Opera says that it's internal benchmarking shows that Carackan is roughly 2.5 times faster in the SunSpider benchmark. With native code generation, the performance difference will be much more significant.

"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 runs between 5 and 50 times faster, so it is looking promising so far," Lindström wrote. "On ECMAScript code that is particularly well-suited for native code conversion, our generated native code looks more or less like assembly code someone could have written by hand, trying to keep everything in registers."

The conventional x86 and 64-bit native code generator backends have already been mostly implemented, but the ARM backend is still only at a very early stage of development. ARM support could potentially enable a whole new class of JavaScript-heavy web applications to work on handsets that run Opera's mobile browser.

Opera has also released some additional technical details about Vega, a hardware-accelerated vector graphics library that is used by the browser. Vega was originally developed to facilitate the implementation of SVG support in Opera, and it has since been adapted to power the HTML5 Canvas element. Opera developer Tim Johansson says that the browser could soon use Vega for all HTML rendering. This could potentially simplify the codebase by eliminating the need for platform-specific rendering code paths. It will also simplify implementation of some advanced CSS3 features and make it possible to leverage hardware acceleration for complex drawing.

Opera's move towards high-performance JavaScript and hardware accelerated graphics is another indication of how the reinvigorated browser market is leaving even the smaller players with a stark choice: keep pace or face irrelevance. The winners are clearly users, who can use the latest and greatest on the web with the browser of their choice.

Source: ars technica

Tags: Opera

Comments
Add comment

Your name:
Sign in with:
or
Your comment:


Enter code:

E-mail (not required)
E-mail will not be disclosed to the third party


Last news

 
Galaxy Note10 really is built around a 6.7-inch display
 
You may still be able to download your content
 
Facebook, Messenger and Instagram are all going away
 
Minimize apps to a floating, always-on-top bubble
 
Japan Display has been providing LCDs for the iPhone XR, the only LCD model in Apple’s 2018 line-up
 
The 2001 operating system has reached its lowest share level
 
The entire TSMC 5nm design infrastructure is available now from TSMC
 
The smartphone uses a Snapdragon 660 processor running Android 9 Pie
The Samsung Galaxy A5 (2017) Review
The evolution of the successful smartphone, now with a waterproof body and USB Type-C
February 7, 2017 / 2
Samsung Galaxy TabPro S - a tablet with the Windows-keyboard
The first Windows-tablet with the 12-inch display Super AMOLED
June 7, 2016 /
Keyboards for iOS
Ten iOS keyboards review
July 18, 2015 /
Samsung E1200 Mobile Phone Review
A cheap phone with a good screen
March 8, 2015 / 4
Creative Sound Blaster Z sound card review
Good sound for those who are not satisfied with the onboard solution
September 25, 2014 / 2
Samsung Galaxy Gear: Smartwatch at High Price
The first smartwatch from Samsung - almost a smartphone with a small body
December 19, 2013 /
 
 

News Archive

 
 
SuMoTuWeThFrSa
     12
3456789
10111213141516
17181920212223
24252627282930




Poll

Do you use microSD card with your phone?
or leave your own version in comments (16)