Re:Ask HN: Why is there not a memory-safe C?
by isaachier on Thursday May 24, 2018 @07:52AM
(#17143080)
Go will never be nearly as ubiquitous as C. It's plug-ins API is terrible. Rust users definitely don't want a GC language to replace C.
[ Parent
| on HN ]
Re:Ask HN: Why is there not a memory-safe C?
by bigato on Thursday May 24, 2018 @08:10AM
(#17143167)
I didn't say it will, nor did OP say that he wanted the alternative to be as ubiquitous as C.
When you refer to Go plug-ins API, do you mean this[1]? Because I wrote a fair amount of Go and wasn't even aware of this package. And while I don't know whether it is terrible or not, I'm pretty sure this package in particular is not relevant for most Go applications. So maybe you meant something else?
I didn't say Rust users want a GC language to replace C, I don't know where this is coming from.
Re:Ask HN: Why is there not a memory-safe C?
by isaachier on Thursday May 24, 2018 @12:24PM
(#17145576)
Suggesting another language implies that language is essentially just a variant of C and can be used in any situation as C. The OP was asking why there is no (mainstream?) variant of C with built-in memory safety. Suggesting Go implies Go is a direct replacement for C in most cases, which it is not.
Regarding plugins, yes that is the package I am referring to. The idea of dynamic loading is completely ignored in the Go programming language but it is used in many, many other languages (i.e. Java, Python, Lua). Go's support for this feature is lacking and should be fixed for it to interact with other languages.