DEV Community

Discussion on: I don't get the point of Golang - That's why I need help

Collapse
 
mrwormhole profile image
Talha Altınel • Edited

multi threaded server that runs requests in parallel with minimal resources without an interpreter. You can't have it on python due to GIL, you can't have it on node due to C++ single event loop

if all you do is CRUD, it doesn't matter for you but when it comes to deployment you will be dealing with process managers/spawners or web server gateway interfaces/workers to be able to glue-jail your interpreter. In some cases, you can get away with [ python main.py] or [node index.js] entrypoint docker container but it is not ideal for prod

In go/rust/zig, you just ship native binary in a scratch container and it just works because it is native static single bin kinda like C but with less cumbersome tooling

lastly, I think working without type hinting doesn't scale in team projects, it is easily the Achilles heel of duck typed languages