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

You can tell it is written by C programmer because they think installing dependencies is hard.


C programmers don't install dependencies. That would be insane. Better to "vendor" them into the same tree as everything else and build them at the same time.


if it's not hard why do we have docker ?


Because while it's not hard, it's boring. Setting up an environment is boring and repetitive work, and Docker reduces that.


If dependency == library, it is hard in C or Python, but it isn’t in Rust or Java.

You could easily run a Rust program on bare Linux, but using Docker might simplify the version management story.

But even if you use a language with a sane dependency management story, you probably depend on PostgreSQL, and running it in Docker can be easier than installing it on the system (since distros really like to mess with the PostgreSQL configuration).


Can Rust program link with Shared C library? If yes then I would argue they have the same problem with dependency version.


Yes it can and yes indeed it's sometimes a pain in the ass.

However, some (maybe even most) C libraries' Rust bindings deal with this automatically when installed via Cargo.




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

Search: