←back to thread

490 points jarmitage | 3 comments | | HN request time: 0.792s | 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 #
1. jkercher ◴[] No.40686919[source]
I'm not looking for an argument, but my knee jerk reaction to seeing 4 or 5 different answers to the question of getting python to C... Why not just learn C?
replies(1): >>40686989 #
2. parentheses ◴[] No.40686989[source]
The python already exists. These efforts enable increasing performance without having to rewrite in a very different language.
replies(1): >>40687554 #
3. richrichie ◴[] No.40687554[source]
I have dabbled in Cython, C and Rust via PyO3.

C is much cleaner and portable. Easy to use in Python directly.