Re:Lessons Learnt Moving a GTK Application from Go to Ada
by throwaway894345 on Friday March 11, 2022 @11:32AM
(#30642004)
On the other hand, it has had the fortunate side effect of minimizing the amount of code which depends on C, which makes building and packaging software (including cross compilation) super simple.
That said, I'd like to know more about the limitations regarding machine learning. Presumably most machine learning stuff isn't implemented in C?
Re:Lessons Learnt Moving a GTK Application from Go to Ada
by mountainriver on Saturday March 19, 2022 @03:32PM
(#30736872)
The ML limitations are that all the low level vector and acceleration libraries are written in C or C++. The GPU libraries are the real kicker, there isn't any great way around this except to trampoline over to C, that trampolining takes time which chews into your acceleration. Ironically Python is much faster than Go for ML because of this.
Interestingly, Rust originally used a similar memory model to Go, but then when they hit this problem decided to take another route.
This has the unfortunate side effect of making most machine learning also not practical in Go.