... with Nim. 🤪
So some people chating about Python, and coming from Python to Nim, and etc.
I will show you some stuff I done with Nim, on Python, and maybe works as an example implementation for people wanting to do the same.
I wanted to speed up Python, everybody know is slow, and taking some functions that often slows down your scripts, they result on 4 ~ 20 times faster.
pip install faster_than_requests
https://github.com/juancarlospaco/faster-than-requests#faster-than-requests
pip install faster_than_csv
https://github.com/juancarlospaco/faster-than-csv#faster-than-csv
pip install faster_than_walk
https://github.com/juancarlospaco/faster-than-walk#faster-than-walk
All code is there, so feel free to check how its done if you want to do the same.
Uploaded to PyPI with the setup.py on that repo, with python setup.py sdist --formats=zip upload.
The repo also provides a Dockerfile for people wanting to try it without installing it.
Packages dont have any dependency at all, they are faster than Cython, while syntax still more readable.
The real work is done by https://github.com/yglukhov/nimpy
😸
Please keep in mind that many people only read the title and this week's topic is "are we popular now? No? why?!"
So "Python Modules & why Python is better" is a suboptimal headline. ;-)
(This forum really needs an "edit title" feature...)