Re:First chapter of Kernighan and Donovan's new Go book [pdf]
by fsloth on Monday October 19, 2015 @01:51PM
(#10414452)
Would Go provide a viable alternative to C++ for numeric and computer graphics 'kind of stuff'? I have no problem with C++ but the better-than-python proclamations got me intrigued.
[ Parent
| on HN ]
Re:First chapter of Kernighan and Donovan's new Go book [pdf]
by vvanders on Monday October 19, 2015 @01:54PM
(#10414471)
Given that there's a GC and from what I understand(I'm no go expert) limited ways to specify memory layout I'd say no.
Re:First chapter of Kernighan and Donovan's new Go book [pdf]
by fmstephe on Monday October 19, 2015 @05:38PM
(#10415978)
I am curious about the limitations around memory layout. Go provides a fair amount of control to the programmer. Fields appear in the order declared in a struct (although potentially padded), structs declared as values, not pointers, are located in memory with the declaring struct and we can have arrays and slices of non-pointer structs they will all be arranged contiguously in memory.
I am not a C/C++ programmer are there more powerful facilities provided in these languages?
Real question, not trying to start a flame war :)
Re:First chapter of Kernighan and Donovan's new Go book [pdf]
by FraaJad on Monday October 19, 2015 @03:20PM
(#10415018)
D is a viable alternative for C++; you still get to enjoy near native performance and cleaner FFI compared to Go, without giving up the features of a modern programming language.
Re:First chapter of Kernighan and Donovan's new Go book [pdf]
by kid0m4n on Monday October 19, 2015 @11:08PM
(#10417185)
Yes. Its always good to read the D success stories.
Re:First chapter of Kernighan and Donovan's new Go book [pdf]
by andreaferretti on Monday October 19, 2015 @06:36PM
(#10416283)
Also, Nim would be a good fit for those domains. Macros and custom operators allow one to write dsl for numeric and scientific programming, and you have complete control over memory layout. There is a gc, but you can tune it very precisely