#python on freenode is my go-to alternative if I can't find an answer on SO or if I'm more interested in a brainstorming session and can't really ask for one in SO
but then again not every problem I have involves Python, in which case I do feel I'm out of luck...
I want to switch away from Python, at least for personal projects. I want to broaden my range, experiment with weird paradigms (Raku) or get code that’s a little faster (eg Rust).
The problem is that I use Python as a “glue language” and heavily rely on excellent third party libraries. I don’t want to learn how to write a minimum spanning theorem algorithm; I’m used to have it next to several other convenient graph utilities in networkx. There’s so much stuff for Python — where else will you find something like giotto-tda?
We build our all-Python full stack dev environment (https://anvil.works) on Skulpt - but there's a lot of room in that solution space! If you haven't checked out Mozilla's Pyodide project, for example, it's truly impressive - they compiled all of CPython and popular data science libraries to wasm for a full notebook experience in your browser:
I used to write scripts in python. I switched to node. Benefits for me.
1. Python by default requires tons of globally installed libraries. Node by default all libraries are installed local the the project. Nothing to learn. It just does it. That means I don't have to worry about trashing my system and I don't have to tell users a bunch of prerequisites to get it to work.
2. Node is ~8meg and installs instantly. Python is 18-30meg and the install has a long build process IIRC
I will still sometimes reach for python. I needed to parse an 8 gig geodata XML file. The libraries I tried in node were orders of magnitude slower than python for that particular task. I did try node first though since it's where I'm at.
Yeah to be honest we don't use Python for anything other than the build system, but it is available on all our systems so it is easy to use, and I couldn't find anything better. I would have liked to be able to use Typescript, but there's no really good simple way to say "Node: compile and execute this typescript file, please don't save the output on disk anywhere, or try to read tsconfig.json or package.json or whatever".
Yeah, absolutely no reason you couldn't do this (quickly) with Node. The only reason I see to use Python over Node here is for a smaller dep tree (sane Node development still requires a lot of dependencies) and some more mature CLI libraries - lots of CLI apps are written in Python.
but then again not every problem I have involves Python, in which case I do feel I'm out of luck...
reply