←back to thread

490 points jarmitage | 1 comments | | HN request time: 0.202s | source
Show context
raytopia ◴[] No.40681705[source]
I love how many python to native/gpu code projects there are now. It's nice to see a lot of competition in the space. An alternative to this one could be Taichi Lang [0] it can use your gpu through Vulkan so you don't have to own Nvidia hardware. Numba [1] is another alternative that's very popular. I'm still waiting on a Python project that compiles to pure C (unlike Cython [2] which is hard to port) so you can write homebrew games or other embedded applications.

[0] https://www.taichi-lang.org/

[1] http://numba.pydata.org/

[2] https://cython.readthedocs.io/en/stable/

replies(8): >>40681794 #>>40681883 #>>40681919 #>>40682488 #>>40684037 #>>40685851 #>>40686919 #>>40693004 #
pjmlp ◴[] No.40684037[source]
I would rather that Python catches up with Common Lisp tooling in JIT/AOT in the box, instead of compilation via C.
replies(3): >>40684186 #>>40684624 #>>40686404 #
heavyset_go ◴[] No.40684186[source]
I'd kill for AOT compiled Python. 3.13 ships with a basic JIT compiler.
replies(2): >>40684366 #>>40687278 #
LoganDark ◴[] No.40687278[source]
mypyc can compile a strictly-typed subset of Python AOT to native code, and as a bonus it can still interop with native Python libraries whose code wasn't compiled. It's slightly difficult to set up but I've used it in the past and it is a decent speedup. (plus mypy's strict type checking is sooo good)
replies(1): >>40688209 #
zelphirkalt ◴[] No.40688209[source]
Why is it named after a type checking library?
replies(2): >>40689158 #>>40693907 #
1. LoganDark ◴[] No.40689158[source]
Because it uses that library for type checking?