←back to thread

196 points bovem | 1 comments | | HN request time: 0s | source
Show context
stavros ◴[] No.41146736[source]
I don't understand how it's possible that we just randomly come across a project that just casually implements a Python interpreter in Rust. Don't these things take a massive amount of effort? Wouldn't this be making waves much earlier in its development process?

I feel the same way about Ruff, for example. One day it was "black all the things" and the next it's "btw we just reimplemented the entire Python formatting/linting ecosystem in Rust, and it's 100x faster, no biggie".

What's happening? Is it just so much easier to write stuff in Rust that projects like these pop out of people's heads, fully-formed? It boggles the mind.

replies(3): >>41146763 #>>41147068 #>>41148146 #
pansa2 ◴[] No.41146763[source]
> Don't these things take a massive amount of effort?

Yes, RustPython has been in development since at least 2018.

> Wouldn't this be making waves much earlier in its development process?

It's been posted on HN several times before: https://hn.algolia.com/?q=rustpython

replies(1): >>41147208 #
stavros ◴[] No.41147208[source]
Ah ok, it's at least comforting to know that I missed it, rather than there are superhuman developers that crank these projects out in an afternoon.
replies(4): >>41147437 #>>41148352 #>>41150348 #>>41150548 #
1. willcipriano ◴[] No.41150548{3}[source]
Implementing a interpreter like that isn't as hard as you probably think as the standard library does a lot of the heavy lifting once you have the basics.

It's still a lot of work but the only need to make the "built in" parts of the language and that's a lot smaller subset.

Example of what im talking about: https://github.com/RustPython/RustPython/pull/3858