News for hackers. Stuff that matters.
Re:Ask HN: Go programming language is over ten years old. Wh... by sevagh on Sunday October 25, 2020 @01:04PM (#24887795)
Go more than makes up for this in the deployment aspect, since deploying Python in 2020 (Python 2, Python 3, conda, pip, venv, system interpreter, poetry, etc.) is still a mess.
Re:Ask HN: Go programming language is over ten years old. Wh... by djstein on Sunday October 25, 2020 @01:26PM (#24888015)
Only a mess if you use python 2, conda, etc... What’s difficult about this?

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in...)" curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/maste... | python - brew install pyenv // update shell with pyenv pointer pyenv install 3.9.0 pyenv global 3.9.0 poetry init poetry config virtualenvs.in-project true --local poetry install

For deployment, Docker python3:alpine, install poetry, copy over pyproject.toml and install

Re:Ask HN: Go programming language is over ten years old. Wh... by jen20 on Sunday October 25, 2020 @01:45PM (#24888224)
> What’s difficult about this?

Well, for starters, that particular multi-liner:

- installs an entire package manager, which may or may not conflict with system tools or a different package manager,

- assumes pyenv will build Python against the system libraries without additional flags (it won't if you're running Big Sur, you'll need zlib from Homebrew),

- assumes you are on macOS, and does not attempt to work on Windows or Linux, or account for the idea that someone might not want to deploy a program using Docker.

Re:Ask HN: Go programming language is over ten years old. Wh... by lima on Sunday October 25, 2020 @01:57PM (#24888323)
Plus, it does so non-reproducibly and downloads random binaries from the internet.
Re:Ask HN: Go programming language is over ten years old. Wh... by lanstin on Sunday October 25, 2020 @03:06PM (#24888953)
Which makes rolling back a bad push really interesting. Give me a append only repo with my static binaries that my compute nodes deploy from. I even went to the trouble to put Python into RPMs for this.
Re:Ask HN: Go programming language is over ten years old. Wh... by Thaxll on Sunday October 25, 2020 @01:35PM (#24888132)
pip is broken in no many aspects, between pip and pip3, things installed in your home folder vs /var, "binary" entries that don't exist after installing a tool, cryptics stack traces because of missing libs / not compatible for your platform ( native build ) ect ...

Why do we need virtual env in 2020?

It's one of the worse "modern" language to build, even Java / NodeJS are better.