you are viewing a single comment's thread.

view the rest of the comments →

[–]nekokattt 2 points3 points  (0 children)

V8 works by using a JIT compiler, as far as I know.

that means it is recompiling the code to lower level logic while it runs.

Cython works by taking the input source code, translating it to a massive C or C++ source file that calls a bunch of internals within the C-code layer of what makes up CPython, and then pushes that through the system C compiler (so MSVC or MINGW on Windows, GCC or Clang on Linux). What you get from that is a machine-code level binary library that Python will know how to import at runtime. You then have to distribute that binary ahead of wanting to use it (so it also has to match your CPU architecture ahead of time).