4 ms·
> I never understood how people consider go an alternative to python. I work in both Python and Go. I love both languages. Here are a few reasons why I chose G
by usrbinbash 4y ago
> I never understood how people consider go an alternative to python.
I work in both Python and Go. I love both languages. Here are a few reasons why I chose Go over Python for a lot of things these days:
Alot faster, self-contained executables instead of virtualenv, scales natively, no GIL, linear code in goroutines instead of asyncio.
- garyrob 4y agoI'm not associated with the nuitka folks, but I want to mention that I've successfully used it to make self-contained executables for python projects. I haven't used it for anything huge, but so far it's worked flawlessly.
- toyg 4y ago> self-contained executables This really is the only practical area where Go is superior to Python. No messing with 3rd-party libs, no compromises, no hacks... Everything else is not really critical for most people, and largely not worth losing all the nicer features of Python for; if they could just fix it once and for all in stdlib, just blessing one compilation format and making it well-supported on all the big platforms, it would be a big step forward for the ecosystem. Easier said that done, of course.
- Jcowell 4y agoAgreed. If python had a sensible self contain executable where I don’t have to fight and figure out how I’m going to share this program with it’s dependencies and imports I would use it over go in non speed needed applications.