On 2026-10-18 12:58, The Natural Philosopher wrote:
> On 18/10/2026 11:09, Nuno Silva wrote:
>> But yeah, the distinction between "compiled" and "interpreted" doesn't
>> imply anything about performance, and it's completely possible for a
>> language implementation with some sort of compilation to perform
>> terribly (see e.g. CPython).
>
> Apocryphally Gary Kildall was called upon to fix some industrial assembler while on a vacation job.
>
> He rewrite in Fortran, It ran ten times faster.
>
> faster instructions are no substitute for shitty algorithms
>
Long ago (~1985) I rewrote a commercial antivirus (it checked boot sector and command.com, I think) in TurboPascal.
It was slower than the original, but my code did a few things more.
Then I rewrote the comparison of arrays in assembler, using basically a single instruction (compare string of up to 64 KB).
The result was 10 times faster than the original.
--
Cheers, Carlos.
ES🇪🇸, EU🇪🇺;