Re: [go-nuts] Go and GPUs

2021-06-25 Thread Michael Poole
for portability. If I were going to spend the time on this, I would probably target SPIR-V with Vulkan or OpenCL for portability rather than Nvidia's PTX or Apple's Metal. AMD, Nvidia and Google (Android) all have good support for SPIR-V through their Vulkan stacks, and there are t

Re: [go-nuts] string matching

2021-04-01 Thread Michael Poole
You were on a good start with strings.Index(). The key is to move past the pattern you searched for, assuming it was found. Something like this should work, if `bigString` is what you are searching over, and depending on whether "Core Count:" might be on the first line or not: pattern := "\n

Re: [go-nuts] [Go Spec]Confused about Assignability in Golang Specification

2020-02-23 Thread Michael Poole
On Sun, Feb 23, 2020 at 8:19 AM Jimu Yang wrote: > I am reading the doc about Assignability in Golang Specification > . It says: > > A value x is *assignable* to a variable > of type T ("x is assignable to T") > if