logoalt Hacker News

lucianmarintoday at 9:16 AM7 repliesview on HN

A programming language similar to Python that compiles to Rust or Go will be amazing.


Replies

rubymamistoday at 9:46 AM

Mojo is a language with Pythonic syntax that compiles to fast machine code built by the creator of Swift: https://www.modular.com/open-source/mojo

show 1 reply
debo_today at 2:02 PM

Nim looks a lot like Python with a first-class type system and compiles to many different targets, including wasm and C.

Hasneptoday at 9:38 AM

Spy (https://github.com/spylang/spy) is an early version of this kind of thing. I believe it compiles to C though, kinda like Nim. Actually speaking of Nim, that's probably the most mature language in this space, although it's less pythonic than Spy

adsharmatoday at 3:54 PM

Static python as described in this skill.

https://github.com/py2many/static-python-skill

emmelaichtoday at 9:44 AM

Here you are. https://github.com/google/grumpy

Last commit was 9 years ago though, so targets Python 2.7.

show 1 reply
siwatanejotoday at 12:24 PM

F# is very similar to python because it's based on indentation instead of curly braces. And with Fable you can transpile it to Rust (or Python even): https://github.com/fable-compiler/fable

ameliustoday at 9:22 AM

What benefit would it bring? There's already https://cython.org/

show 2 replies