News for hackers. Stuff that matters.
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.
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
Re:First chapter of Kernighan and Donovan's new Go book [pdf] by e12e on Tuesday October 20, 2015 @12:27AM (#10417434)
I would guess Julia (or D) today, perhaps Rust in the not so distant future. I'm not sure if Go will ever be a good fit if you need really high and/or deterministic performance?
Re:First chapter of Kernighan and Donovan's new Go book [pdf] by Nrpf on Tuesday October 20, 2015 @06:51PM (#10422400)
Stick to python- Numba is a python compiler that compiles numerical code to Cuda and LLVM that is faster than Julia (single threaded and multi threaded).