News for hackers. Stuff that matters.
Re:Show HN: GoTorch – A Go Implementation of PyTorch by thrwwycbr on Tuesday January 16, 2024 @05:34AM (#39011718)
Have you seen the gorgonia repos?

https://github.com/gorgonia/agogo

They basically went a similar route and had to implement all kinds of data types and GPU code to be able to train their alphago model.

In go, the biggest pitfall I'd imagine is memory management because you cannot influence the GC. So I'd build up everything with as many references from the start, and integrate it with the pperf tools to be able to benchmark it

Re:Show HN: GoTorch – A Go Implementation of PyTorch by edrenova on Tuesday January 16, 2024 @03:57PM (#39019031)
I hadn't seen this before but I did come across this recently (although it seems to be an older project) -> https://github.com/wangkuiyi/gotorch

Agreed on the GC issue, going to be doing some perf testing on it and see how it performs. Expecting it won't be as fast as if it was written in C but curious to see the delta.