i’m kinda a noob at programming but i was wondering if you write two of the same programs in two different compiled languages (i.e. java and c++) and run them after you compile them, does the runtime differ or is it only the compilation time that differs?
Share
The rule of thumb is interpreted (compiled on the fly) is slower than pre-compiled, compiled to virtual machine like Java is slower than architecture dependant, and procedural is faster than OO and assembler faster than procedural, (but you don’t wanna use that unless you’re programming something like a PIC microcontroller for an industrial application or you’re some kind of mixture between Neo and a programming Jedi)
Anyway, each language has some advantages and drawbacks, and also a good optimization (indentifying the bottlenecks and improving performance on those particular points) can make your program run faster than any other careless implementation no matter what language…