Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We’re talking about a immigration tool, not something used at runtime. The language such a tool is written in is completely irrelevant for using it.


not really. some aspects that make great tool

- easy distribution (like "go install")

- minimal dependencies, tests and thus stability and security (like go ecosystem)

- cross platform support

- source code proxies by Google, checksums, and prevention of attacks (thanks to security of go ecosystem)

overall, I would very much prefer some well done Go tool rather say Python, Javascript or binaries


All your requirements could equally well fulfilled by PHP:

- easy distribution (like "go install"): composer install works the same way.

- minimal dependencies, tests and thus stability and security (like go ecosystem): the packagist/PHP ecosystem is of very high quality in general, packages tend to have few dependencies, and have solid test coverage.

- cross platform support: PHP runs virtually everywhere.

- source code proxies by Google, checksums, and prevention of attacks (thanks to security of go ecosystem): Packagist might not be served directly by Google, but the entire infrastructure is built around GitHub, where published artifacts map to the source files on GitHub 1:1; so you can trust on Git refs as checksums.


You can run a Go binary without installing `Go`. Can you distribute PHP code as succinct binaries?


If you’re so inclined, you can: https://static-php.dev/

That was not what the parent post required, is also besides the point, and I wouldn’t recommend it. Go is a fine language, especially for standalone applications.

But downright dismissing PHP as obviously worse than Go doesn’t do another very fine language justice. PHP is capable of quite a lot really, is fast as heck, has an amazing ecosystem, and carries you all the way from quick prototype to stable production workload.

And yes: a tool to migrate a blog is something it effortlessly handles.


hm, right. I am not an expert in PHP (Hack from Meta does not count).

From what you explained, PHP is good choice here too then.


Right, but none of those have anything to do with Hugo being written in go.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: