Tech Stuff
All new avatar of this site is here Just check it out guyz...!

Tech Stuff

Website of Tech Savvy
FacebookHomeFAQSearchRegisterLog inEmscripten brings C++ code to web applications Twitte10


 Emscripten brings C++ code to web applications

Go down 

Posts : 173
Reputation : 0
Join date : 2010-07-16
Age : 23
Location : Nasik

Emscripten brings C++ code to web applications Empty
PostSubject: Emscripten brings C++ code to web applications   Emscripten brings C++ code to web applications EmptyMon Aug 30, 2010 6:14 am

A project by Alon Zakai, of the Mobile Team at Mozilla, called Emscripten could ease a lot of work for those “porting” their native application to run on the web. Emscripten is an LLVM to JavaScript compiler; meaning that is can take LLVM bytecode, which can be generated from any language that can target LLVM (for example C++), and generate the corresponding JavaScript code.

This is not to be confused with Google’s NaCl (Native Client). Google’s solution allows web developers to create applications which run natively on the end-user’s computer, making such applications more powerful as they run directly on the CPU instead of being interpreted.

While NaCl runs native code itself through a plugin, Emscripten can convert code written in languages such as C++ to JavaScript. This enables it’s use in any browser or any other scripting environment supporting JavaScript, without the need of any plugins. While this increases the reach of the generated code, it also makes it much slower, about 20 times slower by the author’s own estimation. However since the compiler is in its early stages, is open source — and will hopefully attract contributors — the generated JavaScript aught to get faster with time. Additionally, browser engines will not stay stagnant, and as each browser tries to best the other, this could make a large amount of code usable.

For someone with a large volume of code in C++, such as “physics engines, game logic, etc.”, this could spell a new breath of life for that code on the web. Since JavaScript is a language that will run on any system with a browser, this can increase the reach of such code a lot.
Back to top Go down
Emscripten brings C++ code to web applications
Back to top 
Page 1 of 1
 Similar topics
» [Thùng rác] Xin code avatar hiện ngoài index
» Touchscreen testing

Permissions in this forum:You cannot reply to topics in this forum
Tech Stuff :: News :: Technology News-
Jump to: