I-NEMO wrote in Thu Dec 10, 2015 6:51 pm:I'm totally ignorant about Python, but I'm wondering if those Python scripts could be a source of info/inspiration to eventually port them in C++ ... or am I saying something silly?
imagine python like perl, php, ruby, early BASIC, DOS and winwhatever BAT files, and other similar ""languages""... they have to be interpreted before they can be operated on... mostly they're scripts... their runtime interpreter reads them, converts their mnemonics to some sort of "bytecode" and then executes that "bytecode"... other languages like C/C++, PASCAL, and ASM use a compiler to generate the "bytecode" all at once and make it machine readable and executable... no interpreter is needed or used... the main difference is in how and when the final "bytecode" is generated and how it is executed... executed directly by the machine or executed via an interpreter...
this is an extremely simple explanation... i've simplified it to hopefully help with the understanding of the difference between script code (aka python, perl, ruby, javascript) and compiled binary code... even java falls into this in some aspects because it can use what is known as a JIT compiler... JIT for "Just In Time" which means that the script is converted/compiled to "bytecode" as needed and then the "bytecode" is executed... but this conversion/compiling is needed ALL the time... not just once like with ASM, PASCAL, C/C++...
side note: when BASIC gained compilers that generated actual binary machine code, it approached the level of ASM, PASCAL, C/C++, etc...
as noted previously, this is an extremely simplified comparison... i won't be debating or arguing with others about it in this topic