JSFoo 2013

All about being creative with JavaScript

Emscripten - C++ on the Web

Submitted by Saheb Motiani (@saheb) on Friday, 19 July 2013

videocam_off

Technical level

Intermediate

Section

Full talk

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +6

Objective

A lot of our projects are based on C/C++, but we can't show case them on the web without building/installing them. Other users can't test our project directly and see it's main features without going through the complex build process. After this session you will have a way to demonstrate your C/C++ project on the web. You will be confident enough to use Emscripten and write a small piece of binding for your project.

Description

Why do you want C++ on the Web?

Performance of C++ vs JS.

How does Emscripten come into picture after Adobe's flascc and Google's Native Client?

Backend working of Emscripten - Clang LLVM ASM.js

Cross Compiling Issues

How to use Emscripten to build our project?

Modifying of make files of our proejcts.

Ways to create the bindings and where to use which way -
1) binding_generator 2) cwrap 3) Embind - A bit of boost.python story for inspiration.

Limitations of Emscripten.

Issues I faced while binding OGDF to ogdf.js (My GSOC Project).

Demonstration of OGDF on the Web.

If time permits I will also talk about how to deal with dynamic and static libraries.

Speaker bio

Hi! I am Saheb. I love the Web and every bit of JS in it. I am currently part of GSOC2013 and am working with Emscripten this time for making Open Graph Drawing Framework (OGDF) available on the Web. I had also been part of GSOC2012 (ASCEND). Python and JS are the language I like to work on. I started to make Web Applications from 2 years back and haven't stopped since then :)

Links

Comments

Login with Twitter or Google to leave a comment