• Are Javascript and Python similarly slow ? (Was: Baby X is bor nagain)

    From Michael S@21:1/5 to Kaz Kylheku on Mon Jun 17 12:11:05 2024
    On Mon, 17 Jun 2024 07:30:44 -0000 (UTC)
    Kaz Kylheku <[email protected]> wrote:

    On 2024-06-17, James Kuyper <[email protected]> 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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)