Re: Pakistan Earthquake - September 25, 2013
Posted by Skywise on October 01, 2013 at 00:28:00:

Been busy myself... with Roger as well. He wants to try XB so I'm playing teacher.

The big advantage in speed with XBasic is that it compiles directly to machine code to be run directly by the CPU.

Both Perl and TB are run-time interpreted.

Even though you may compile the program to an .EXE, it only compiles to an intermediate "byte-code". When you execute the program, the run time interpreter has to interpret the byte code on the fly and translate it to machine code for the CPU. It takes time for it to do so, thus runs slower.

There are some advantages to this, but the real downside is speed, or lack thereof.

Using a sleep command may mean the program is not using any CPU, but it's also not doing anything at all. So it's not a good test of CPU hogging. Although, it's odd that TB would still use CPU cycles during such a pause. It shouldn't. Probably poorly implemented.

Brian


Follow Ups:
     ● Re: Pakistan Earthquake - September 25, 2013 - EQF  18:05:54 - 10/1/2013  (100945)  (1)
        ● Re: Pakistan Earthquake - September 25, 2013 - Roger Hunter  18:50:16 - 10/1/2013  (100946)  (0)