Re: [eigen] Announcement of CG libs

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Excellent, so finally your eigen.js April's fool [1] is coming true ;)

gael

[1] http://listengine.tuxfamily.org/lists.tuxfamily.org/eigen/2011/04/msg00002.html

On Tue, Mar 19, 2013 at 5:53 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
> That's awesome, Gael.
>
> On the topic of JavaScript code (hence the Web) not being able to use Eigen,
> I would like to draw the attention of people on this list on recent
> developments around trans-compiling C/C++ code to JavaScript. This is
> somewhat of a shameless plug, as these projects are being developed by
> Mozilla engineers, but I think it's fair enough to mention that here.
>
> The project to watch is Emscripten,
>
>   https://github.com/kripken/emscripten/wiki
>
> This is a LLVM-based compiler that will take any C/C++ project (really any
> language with a LLVM front-end) and compile it to JavaScript. It works by
> representing the entire heap as a single JS Typed Array. Various usual
> libraries and frameworks are specially handled. For example, OpenGL 1.x and
> 2.x calls are converted into WebGL calls.
>
> So you can actually code in C++ with Eigen, and compile to the Web, today.
>
> For now that only gives 10%--20% of native speed, on non-vectorized code;
> certain less on vectorized code like Eigen code.
>
> But a project, asm.js, is under way to fix that:
>
>   http://asmjs.org/
>
> This is a subset of standard JavaScript, so any "asm.js"-enabled code will
> readily run in any existing browser. But this subset, contrary to general
> JS, is strongly optimizable, allowing the JS compiler to generate
> high-performance code when it sees asm.js constructs. It already gives
> 50%--70% of native speed on real code. SIMD is not handled yet, but probably
> falls into the scope of what could be solved by asm.js eventually.
>
> Anyway, you can start using C++ and Eigen and target the Web, and be
> confident that any performance issues are being worked on.
>
> Benoit
>
>
>
>
>
>
> 2013/3/19 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
>>
>> A course on Eigen will be given at CG libs [1]: Smart Libraries for
>> Computer Graphics , held in Pisa, June 3-5.
>>
>> CG Libs is a great initiative organized by the Eurographics Italian
>> chapter. Six open source libraries, including Eigen, will be deeply
>> presented. It is interesting to notice that except SpiderGL that is
>> written in javascript, all others use or have support for Eigen:
>>
>> - vcglib (http://vcg.sf.net/)
>> - Point Cloud Library (http://pointclouds.org/)
>> - ViennaCL (http://viennacl.sourceforge.net/)
>> - g2o (http://openslam.org/g2o.html)
>> - MeshLab (http://meshlab.sourceforge.net/)
>>
>> [1] http://www.cglibs.org/
>>
>> Gael.
>>
>>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/