[Development] [BB++] Now is 3.5x faster than Node.JS

Phil Bouchard philippeb8 at gmail.com
Fri Jul 21 06:22:36 CEST 2017


Greetings,

I am now using C++14 standards, the error reporting is all compile-time 
now and I get a test that is 3.5 faster than Node.JS! You can see it by 
yourselves here:
https://github.com/philippeb8/root_ptr/tree/bb++/bbpp2cpp

Furthermore there is no need for 'operator ->' anymore because the 
access operator is deduced at compile-time. Here is a code sample:

int main()
{
     int temporary = 1;

     auto foo = function ()
     {
         return function (int argument) { return argument; };
     };

     for (int i = 0; i < 1000000; ++ i)
         cout << foo()(temporary) << endl;
}

Note that it's also possible to dynamically allocate function pointers 
like this:

int main()
{
     int temporary = 1;

     auto foo = new function ()
     {
         return new function (int argument) { return argument; };
     };

     for (int i = 0; i < 1000000; ++ i)
         cout << foo()(temporary) << endl;
}

I will show you a clear example of cyclic references handling soon.

So I would like to know if Qt thinks what I am proposing (BB++ -> C++ -> 
WebAssembly) is a good plan.


Regards,
-Phil
http://bbplusplus.com/




More information about the Development mailing list