by binarycrusader · 12y ago · 0 comments
If you want to create a library like OpenSSL that every consumer in every language can use, C is your only practical choice.
If today I was creating OpenSSL from scratch there are other options. If I need it NOW I could use D. If I was willing to wait a few months or contribute Go shared library support I could use Go. If I was willing to wait until Rust was mature to release and deal with its churn in development I could use Rust.
I guess I'm just suffering from sour grapes over the fact HN continues to suffer more and more of down-voting for sake of disagreement rather than for factual inaccuracy.
Go and D are also not yet available for every platform and would force a set of design constraints on consumers that would likely decrease its attractiveness as a solution.
Again, C remains the best choice given the goals I mentioned. It's also why I said OS systems programming and not just systems programming.
As for Go's large dependencies are you talking about the Go runtime as build time dependency, because Go is notable for its pronounced lack of runtime dependencies?
In any case, I think you and I both have an understanding of the issues at hand, I just think we would be willing to make different trade-offs.
The reality is that those "minor" platforms you refer to are ones where a lot of big iron and expensive systems are. While Go / LLVM will eventually be supported on them, Go is still a very large dependency, and is currently not suitable for OS systems programming.
If you did choose to write a new security library in Go, and supposing that the shared library issue was addressed, you'd still have to severely constrain the design of the library to ensure maximum interoperability.
I'm just not sure it's worth the compromise.
Rust, if it was ready, and its runtime dependencies were also better supported, would be far more appropriate than Go.
Also, while I think it will likely prove a great alternative (especially for OS level systems programming), it's clearly early days and the language is still undergoing significant churn.