Last blog entry being from "Dec 1, 2021" doesn't make it sound like there's much action.
RustPython
51–60 of 244 posts
Re: RustPython
#52Re: RustPython
#53That's cool, but now for REAL bare-metal performance someone should rewrite Python in an even lower-level language. That's right, Python written in C is gonna be hella fast! Oh, wait…
Rust compiler can sometimes make better performance optimizations because there are more guarantees that code works as it is supposed to.
You can bypass these with C of course, but you need more manual (and less secure) operations.
Re: RustPython
#54Does it allow sandboxing, or is Lua still the only good option for that? There are so many cases where you'd rather not give extension scripts unlimited access to the OS and file system, you'd think this option would be more common...
Re: RustPython
#55Note: I just realized that they mention wapm in their homepage. We phased out the WAPM CLI in favor of Wasmer (https://wasmer.io), so you can simply run in your shell:
wasmer run rustpython
Or, if you want to try it using the Wasmer JS SDK: import { Wasmer } from "@wasmer/sdk";
let rustpython = Wasmer.fromRegistry("rustpython");
let instance = await rustpython.entrypoint.run({
args: "-c \"print(1)\""
});
let output = await instance.wait();
Will send a PR soon it can be updated!Re: RustPython
#56Earlier quoted context omitted.
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 ju…
but python? it between conda, pip, pip3, virtualenv and who knows what else. its hard to make something that I knwo will just work on everything.
Re: RustPython
#57I 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.
Re: RustPython
#58Re: RustPython
#59Earlier quoted context omitted.
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.
Lua being designed specifically for embedding makes it a good choice.
I wonder, though whether we might have ended up with similar fights maintaining LuaRocks dependencies in rpm/apt ecosystem on various platforms as soon as those customizations start pulling in dependencies like XML parsers, crypto, etc.
Do you have thoughts on that? (Note, we target linux, but sell proprietary closed source binaries only, except for the customizations)
Re: RustPython
#60What would be a use case for this?