←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 #
fragmede ◴[] No.41148352[source]
I've had some fun converting some of my Python scripts into Rust and it's really not that difficult with the help of modern tools once you wrap your head around Rust. Python is too huge to crank out in an afternoon, for sure, but on the human level, the translation from python to something compiled is a well trod path.
replies(1): >>41148433 #
J_Shelby_J ◴[] No.41148433[source]
The one time cost of learning borrow rules and traits is steep, but the lifetime savings of cargo vs PIP probably hits break even after a few months.
replies(2): >>41148848 #>>41149602 #
1. jbernsteiniv ◴[] No.41149602[source]
Also if evolution has shown us anything we will all one day evolve into crab. Crab is the final form (Carcinisation).