If you pick Python, do you still get libraries written in C or Rust?
Piafraus@lemmy.world 1 year ago
Python. Not even a competition. My love of programming quadrupled the day I switched to python and it’s getting stronger and stronger. I have now 10 years of professional python experience and around the same of C++ with occasional C#. A few projects in Go and Java. They all have ups and downs, but… Not even comparable how much everything is more elegant and simple in python
CameronDev@programming.dev 1 year ago
Knusper@feddit.de 1 year ago
Yeah, C libraries can be used in basically any mature language. It’s just too useful not to have.
And Rust, since it doesn’t need a runtime, can emulate the format of C libraries.
Rust libraries can also specifically target Python via pyo3.rs, but as I understand, this just does the C library format, plus a basic Python wrapper to make it nicer to use.CameronDev@programming.dev 1 year ago
Sorry, I meant in the context of OPs question (so i guess up to them to set the rules). As in, you pick Python for the rest of your life, does that lock you out of C libraries? Its a bit of a rabbithole though, as many language runtimes would get excluded as well. There arent many languages that actually stand alone.
Knusper@feddit.de 1 year ago
Ah, right, my interpretation is that as long as you don’t need to touch the source code, you’re good.
But yeah, it’s certainly not as clear cut. My pick would actually be Rust, because you can use it for pretty much everything, including web frontends via WebAssembly.
However, in that case, you still write HTML+CSS, which technically may or may not be programming languages, and the DOM API is actually only documented in JavaScript. So, I wouldn’t need to write JS, but would still want to read it…
EatATaco@lemm.ee 1 year ago
I don’t get it. I love python for small quick projects. But anytime things get more complicated, I find myself constantly tripping over myself without the strong typing and errors letting me know I when I’ve changed a property in a class that in falling elsewhere.