Hello,
i am using a lot root library with g++ compiler from many years. This is a great library.
Recently i am using emscripten that convert easily and efficiently my c++ programs in WASM (or javascript), i.e. the same c++ code, gives a program that can be run in any web browser, hence any platform. This is very good to share applications.
I would like to ask if anybody has tried to compile root library with emscripten (the emcc compiler), or at least if it would be possible to have a light root library essentially with some graphics (TCanvas etc) that could be use with the emcc compiler without change in the c++ code?
This would be very useful…
From the moment i am writing some c++ class that have the same name and members as the root class (TCanvas, TLine etc) and compile with emcc. It helps but this is tedious and i guess it is not a good choice.
We never think about usage of JSROOT with emscripten.
Our idea was to keep most of existing C++ code as is and just provide visualisation capability with JavaScript and web-based graphics. In addition to JSROOT we provide THttpServer class which enables remote access to running C++ application.