News for hackers. Stuff that matters.
Re:Python 3.13 Gets a JIT by IshKebab on Tuesday January 09, 2024 @08:18AM (#38925823)
Two reasons:

1. Javascript is a less dynamic language than Python and numbers are all float64 which makes it a lot easier to make fast.

2. If you want to run fast code on the web you only have one option: make Javascript faster. (Ok we have WASM now but that didn't exist at the time of the Javascript Speed wars.) If you want to run fast code on your desktop you have a MUCH easier option: don't use Python.

Re:Python 3.13 Gets a JIT by soulbadguy on Tuesday January 09, 2024 @04:30PM (#38932379)
> Javascript is a less dynamic language than Python

I have seen this mentioned multiple times, someone as a good reference explaining what makes python more dynamic than JS ?

Re:Python 3.13 Gets a JIT by IshKebab on Wednesday January 10, 2024 @12:44PM (#38941082)
It just has many features that can be overridden with Python code so they can have any behaviour at runtime. For example when you access an object attribute it can literally do anything: https://docs.python.org/3/reference/datamodel.html#customizi...

You could probably optimistically optimise some code, assuming it doesn't use any of the dynamic features of Python. You're going to get crazy performance cliffs though.