Sujet : Are Javascript and Python similarly slow ? (Was: Baby X is bor nagain)
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 17. Jun 2024, 10:11:05
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240617121105.0000236b@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Mon, 17 Jun 2024 07:30:44 -0000 (UTC)
Kaz Kylheku <
643-408-1753@kylheku.com> wrote:
On 2024-06-17, James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
The problem is that Bart's compiler is VERY unusual. It's
customized for his use, and he has lots of quirks in the way he
thinks compilers should work, which are very different from those
of most other programmers. In particular, compilation speed is very
important to him, while execution speed is almost completely
unimportant, which is pretty much the opposite of the way most
programmers prioritize those things.
Most programmers use Javascript and Python, which follow Bart's
priorities. Fast, invisible compilation to some kind of byte code
(plus possibly later JIT), slow execution time.
O.T.
My understanding is that Javascript and "default" Python are not quite
in the same boat w.r.t. speed. If we measure speed of execution of
program that does not spend 99% of the time in library functions
written in lower-level languages then Javascript would be between C
and Python, probably closer to former on logarithmic scale. At least,
for long-running computations.
That's my impression, I never did measurements.