this post was submitted on 05 Jul 2024
859 points (97.9% liked)

Programmer Humor

32555 readers
514 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] nexussapphire@lemm.ee 1 points 4 months ago (1 children)

Honestly if someone irons out the edge cases, python probably could JIT compile to machine code via cython. It would take a fair bit of memory and probably a bit slow on low powered systems but it would be so much faster if cached.

[–] Zangoose@lemmy.world 1 points 4 months ago (1 children)

Technically I think python already has an intermediate step that it uses before it starts running a script that compiles it into a lower-ish language (at least the cpython interpreter does this, it probably isn't a part of the language specification though)

The actual line between JIT languages and interpreted languages is pretty thin since I think most interpreted languages do something similar to minimize the amount that needs to be done at runtime

[–] nexussapphire@lemm.ee 2 points 4 months ago* (last edited 4 months ago)

I think at this point in time it JIT compiles into byte code and cached which is more efficiently interpreted the next time that function is called.