DEV Community

slidenerd
slidenerd

Posted on

What would it take to create a language that looks like Python but runs like Assembly?

Seriously with so many advancements, why hasn't it happened yet?

Top comments (6)

Collapse
 
rollergui profile image
Guilherme

Not sure what you mean… most languages kinda run like Assembly in the end 🤔

Collapse
 
slidenerd profile image
slidenerd

well i am talking about a language that syntactically looks like Python but has the performance of assembly language

Collapse
 
rollergui profile image
Guilherme

Assembly is what the CPU knows. For what you want to be possible, they would have to make CPUs that understand that new syntax. But that would probably make them slower, cause there would be a lot more instructions to interpret and run. Life is what it is

Thread Thread
 
jimmyrleung profile image
Jimmy Rios Leung

this

Collapse
 
giacomobrunetti profile image
GiacomoBrunetti

The closest thing is Cython, which is interpreted "ahead of time" rather than "just in time". Quite cool to be honest, and FAST.