Live data from Hacker News

RustPython

rustpython.github.io

31–40 of 244 posts

Re: RustPython

#31
post #4

I think it's really cool that Python has a healthy third-party interpreter community. PyPy, IronPython, Jython, and now RustPython expand Python's accessibility. It's very cool to see how many people are working on this, and I wonder what kind of problems with CPython this has exposed also.

I wonder if anyone actually uses those third-party interpreters for anything serious. I've never come across anyone that did.

Ghidra uses Jython not sure if that counts as serious.

Re: RustPython

#32
post #4

I think it's really cool that Python has a healthy third-party interpreter community. PyPy, IronPython, Jython, and now RustPython expand Python's accessibility. It's very cool to see how many people are working on this, and I wonder what kind of problems with CPython this has exposed also.

I wonder if anyone actually uses those third-party interpreters for anything serious. I've never come across anyone that did.

The infamous MMO game EVE uses Stackless Python.. and the players certainly seem to take it very seriously.

Re: RustPython

#33
post #32
post #4

Earlier quoted context omitted.

I wonder if anyone actually uses those third-party interpreters for anything serious. I've never come across anyone that did.

The infamous MMO game EVE uses Stackless Python.. and the players certainly seem to take it very seriously.

why infamous?

Re: RustPython

#34

Pretty cool, especially the potential for using python as a scripting language embedded in rust programs. That said, python makes me wince.

Working on a significant C++ code base (shipped as deb, rpm and windows binaries) and wanting to allow some means to customize busyness logic we decided to integrate Python hooks, a couple of years ago. In hindsight, I'd call that decision a mixed blessing. The code level integration (pybind11) was nice and easy, the issues came later. We found operational problems (multithreading), performance (in particular initial…

Rust bindings into the OS packages aren't nearly as common as in C++, so that could be a saving point. With MUSL builds there can easily be no shared dependencies at all, and with glibc builds it would just be glibc and a couple friends.

Re: RustPython

#35
post #8

Pretty cool, especially the potential for using python as a scripting language embedded in rust programs. That said, python makes me wince.

I was recently looking for some ways to make a rust project dynamically configurable. Yaml/toml/etc are too static or are terrible to describe logic in (yet we do it all the time for CI, infra etc, ugh). WASM would be an option, but overengineered for my case. Ruby (through Artichoke), or Python (through RustPython); but they come with the downside of introducing Ruby or Python. I haven't decided yet, but would prefe…

For JavaScript, all the underlying work used for Deno is pretty much done. I'm not sure if a more complete example.

Though Lua probably has lots of good and feature rich examples as well.

Can't speak at all to Ruby or Python integrations.

In the end, I'd suggest it depends on your audience and what existing skills or biases they're likely to bring to the table.

My one warning is that I've used software that integrated JS and it hasn't aged well. From the Adobe products with ExtendScript to other, older and incompatible JS engines before ES5 even, don't get locked into something difficult to update and keep current.

Re: RustPython

#36

Pretty cool, especially the potential for using python as a scripting language embedded in rust programs. That said, python makes me wince.

Why does it make you wince?

From a non-python dev perspective: I always struggle with dependencies and versions. I have a script in front of me that I want to run, and am often just frustratingly brute-forcing commands to make it work.

Do I:

python? python3? pip install? pip3 install? python pip install? python pip3 install? python3 pip install? python3 pip3 install?

And then everyone mentions "oh just use venv" or "conda" or docker or... It just never ends or it never clearly explains what to do. And all I want to do is run a relatively simple script. Or course I would use a docker image to run a more complex app. But it's frustratingly hard to manage for people who don't use it often.

I'm from a java/Kotlin world where things aren't perfect either. But at least dependencies are clearly defined, and the only thing you need is Gradle that updates itself through a wrapper script if needed and pulls all dependencies. And a JVM/JDK which is also configured/installed quite clearly in a specific location.

Re: RustPython

#37

Pretty cool, especially the potential for using python as a scripting language embedded in rust programs. That said, python makes me wince.

Working on a significant C++ code base (shipped as deb, rpm and windows binaries) and wanting to allow some means to customize busyness logic we decided to integrate Python hooks, a couple of years ago. In hindsight, I'd call that decision a mixed blessing. The code level integration (pybind11) was nice and easy, the issues came later. We found operational problems (multithreading), performance (in particular initial…

Curious why your team didn't opt for Lua instead? It's the more typical choice for the use case you're describing.

Re: RustPython

#38
post #29

Earlier quoted context omitted.

I've used all kinds of hand tools and cooking utensils that were terrible and made me wince or experience other discomfort as I used them

It's completely fair enough to argue that a language/tools is a bad at what it is made to do, but this needs to be pared out from tool choice . A baking spatula makes a bad cooking spatula. It's pliable and can easily scrape the curved surface of a bowl, but for flipping a fried egg it is hopeless - in a pinch it will work - but it would be nice to have something rigid. Further, describing it as making you "wince" is…

[deleted]

Re: RustPython

#39
post #33
post #32

Earlier quoted context omitted.

The infamous MMO game EVE uses Stackless Python.. and the players certainly seem to take it very seriously.

why infamous?

I think it might be in reference to the semi-frequent heists that happen, that have real monetary value behind them. EVE players seem to be a special breed. Some of the stories are pretty incredible.

- https://www.pcgamer.com/inside-the-biggest-heist-in-eve-onli...

- https://www.mmorpg.com/news/an-eve-online-player-has-pulled-...

- https://www.escapistmagazine.com/the-infamous-eve-online-ban...

Re: RustPython

#40
I'm curious how large the WASM target is.

One of the things that turned me off of C#'s Blazor WASM was the payload size. I've found some of Rust's offerings like yew and leptos more interesting.

Post reply on HN