On 07/10/2017 05:08 PM, Thiago Macieira wrote:
On segunda-feira, 10 de julho de 2017 11:56:07 PDT Phil Bouchard wrote:
Phil Bouchard <[email protected]> wrote:
BTW converting Javascript into C++ seems very easy to do

In fact, is it me or it would seem that:
- converting the Javascript code into C++ on-the-fly
- compiling the resulting C++ code

Would be a more efficient alternative than all these JIT tools?

No. That would require having a C++ compiler with all the dependent libraries
on every user's device.

You must run the JS as provided and interact with the plugins as they exist
today.

Indeed Javascript is not made to run heavy CPU algorithms anyways.

On the other hand, I have good news as I think I have found a way to simulate functions that return a function. I know a Javascript to C++ converter is not what we're looking for but it helps me understand these cases better.


-Phil

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to