Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is another way to speed up python:

Write code in python and transpile to another language (could be rust) and then import it back into python

https://github.com/adsharma/py2many/tree/main/tests/expected

Figuring out a mapping between a subset of a compiled language and a subset of statically typed python should be possible.

The hard part is mapping standard library. I suspect something like nim might have an advantage there.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: