13 points · by edwintorok · 13y ago · 12 comments
So if the memory safety were part of the std lib heap for instance, go for it!
But if it means making one instruction (store into array) into 50 (checkthebounds, the store if safe else throw an exception) then it needs to be optional.
I guess, that adding memory safety layer may destroy that predictability. If it does, than no - it needs to be optional.
The future is now!
Go has some cool features... but I have yet to find a really compelling reason to use it over anything else. I also find it to be kinda gross looking. (But maybe I am just weird in that respect?)
"InfoQ: How does it compare with Google Go?
GH: Go's a good language. It's less complex than Rust, but also less ambitious. So you can pick your poison. Go's memory model, for example, has no concept of isolating memory between co-routines or threads, nor of controlling mutability. Everything can always race on the same global mutable heap. Similarly it has only one kind of pointer, which can always be null, and all pointers in all co-routines are subject to a single, global garbage collector. Rust statically differentiates all these cases, divides memory and pointers up into different types, which means we can control safety and performance much better, but at the cost of the programmer having to think more. Rust also provides a few extra "modern bits" that Go lacks: generic types, destructors, disjoint unions, that sort of thing. But to its credit, Go gets a lot of mileage out of the stuff it included, and I'm glad it's making headway."
>>which means we can control safety and performance much better, but at the cost of the programmer having to think more
Outside of systems software, there is no room for this. If the top 5% of programmers wrote all the software in the world Rust would be great, but that is just not the case.
I think Go could replace Java/C++ for server applications and Rust could replace C/C++ for systems applications. I think each is better suited for those domains.
>>Go has some cool features... but I have yet to find a really compelling reason to use it over anything else.
To me its all the good parts of C/Java with all the bad stuff left out + easy concurrency, uber fast compile times, duck/structural typing and a minimalistic ideal.
>>I also find it to be kinda gross looking. (But maybe I am just weird in that respect?)
I think it is the most beautiful language I have ever seen- It reminds me a really really clean clear C, only better. (But maybe I am just weird in that respect?)
On clean clear C... I can't say I've ever found C to be very beautiful. Even the really well written C :)