nor outstanding speed of execution (as programs in C++).
The only thing in which Delphi and Lazarus compilers are seriously inferior to C++ is the speed of the final code.
Test applications compiled in VC++ run up 2 times faster than the same algorithms in Delphi or Lazarus.
Я не думаю что стоит подобное писать.
Если вы сравниваете просто компиляторы, куда программист отправляет всё что захочет, не заботясь о том как оптимизирован код и просто "набросав" код как попало (что в последнее время и происходит по большей части), то тут понятно дело что победит компилятор, которому больше внимания уделяли и в который вложили больше средств и сил.
Но я бы хотел напомнить, что не компиляторы пишут код. И человек пишущий на Python, может написать более быстродействующую программу, чем другой человек пишущий подобную программу на C/C++.
Я сам лично убеждался, что многие люди не хотят заморачиваться оптимизацией, им нужен результат. И побыстрее.
Я давал задачку людям, по оптимизации кода. Ни кто не думал. Все просто скормили код компилятору и получили конечный результат, в 37 строчек кода ассемблера. Один человек который до этого писал на Pascal, оптимизировал и получил примерно то же самое количество строчек ассемблерного кода (чуть меньше).
Я показал конечный результат сделанный на Pascal, где компилятор FPC выдавал 20 строчек ассемблерного кода. При этом, если бы люди подумали, позадавали наводящие вопросы и в самом деле хотели решить подобную задачку на C/C++, то их конечный код мог получиться 16 строчек ассемблерного кода.
Не важен ЯП. Важен человек использующий этот ЯП.
------------------------------------------------------------------------------------------------------
Google translate:
I don't think it's worth writing something like that.
If you're just comparing compilers, where a programmer sends whatever he wants, not caring about how the code is optimized and just "scribbling" the code down anyhow (which is what's been happening lately for the most part), then it's clear that the compiler that was given more attention and invested more resources and effort will win.
But I'd like to remind you that compilers don't write code. And a person writing in Python can write a faster program than another person writing a similar program in C/C++.
I've personally seen that many people don't want to bother with optimization, they want results. And faster.
I gave people a task about code optimization. No one thought. Everyone just fed the code to the compiler and got the final result, 37 lines of assembler code. One person who had previously written in Pascal optimized and got about the same number of lines of assembler code (a little less).
I showed the final result made in Pascal, where the FPC compiler produced 20 lines of assembler code. At the same time, if people thought, asked leading questions and really wanted to solve a similar problem in C/C++, then their final code could have been 16 lines of assembler code.
The PL is not important. The person using this PL is important.
