Re: [go-nuts] golang as ML backend v/s C++

2024-04-14 Thread Randall O'Reilly
https://github.com/go-python/gopy can manage the python bindings for you automatically. The bigger issue for ML is GPU. I wrote a gosl (Go shader language) package that converts Go to hlsl which can be compiled in vulkan for compute shaders -- works well for my needs:

Re: [go-nuts] Re: golang as ML backend v/s C++

2024-04-14 Thread envee
" - python -> c++ is one less layer of complexity to reason about than python -> c -> go " But doesn't the numpy package already use ctypes, for example ?maybe not a golang-nuts question, but I was just wondering what is it that C++ can perhaps do that Go cannot when creating bindings for Python ?

Re: [go-nuts] TestCopyNWriteTo

2024-04-14 Thread Ian Lance Taylor
On Sun, Apr 14, 2024 at 8:05 PM Stephen wrote: > > https://github.com/golang/go/blob/c0a0ba254c48fc855f9501b0bd3b78e6847ca923/src/io/io_test.go#L167 > > I was walking through this code, and it didn't seem to hit [WriteTo] >

[go-nuts] Re: golang as ML backend v/s C++

2024-04-14 Thread Matt Parker
- python -> c++ is one less layer of complexity to reason about than python -> c -> go - the go runtime is great for developer ergonomics, but is going to cost more flops than equivalent code in c++ because of features like garbage collection. additionally the concurrent features of go are

[go-nuts] TestCopyNWriteTo

2024-04-14 Thread Stephen
https://github.com/golang/go/blob/c0a0ba254c48fc855f9501b0bd3b78e6847ca923/src/io/io_test.go#L167 I was walking through this code, and it didn't seem to hit [WriteTo] (https://github.com/golang/go/blob/c0a0ba254c48fc855f9501b0bd3b78e6847ca923/src/io/io.go#L410-L412) because of LimitReader Is

Re: [go-nuts] Is json.Marshal deterministic?

2024-04-14 Thread Matt Parker
one of my favorite examples of this is google's protojson package, where the output of `json.Marshal` is [deliberately nondeterministic](https://protobuf.dev/reference/go/faq/#unstable-json) to prevent users from attempting to rely on that property On Tuesday, April 9, 2024 at 9:10:42 AM UTC-4

[go-nuts] Re: new in golang

2024-04-14 Thread Robert Solomon
I'm a hobby programming that's been using Go for a few years. I'm willing to help; others here will likely also answer questions for you On Sunday, April 14, 2024 at 1:47:32 PM UTC-4 leonardo lima peixoto wrote: > Oh nice, I'm a beginner and I want to learning golang as well. > > Em sábado, 13

[go-nuts] Re: new in golang

2024-04-14 Thread Robert Solomon
I'm not clear on what you're asking. I'm a hobby programmer, and I've been using Go for a few years for my own purposes. On Sunday, April 14, 2024 at 1:47:32 PM UTC-4 leonardo lima peixoto wrote: > Oh nice, I'm a beginner and I want to learning golang as well. > > Em sábado, 13 de abril de

[go-nuts] Re: golang as ML backend v/s C++

2024-04-14 Thread David Green
Yeah, You are right. I has experience of developing backend with Golang. But it was difficult because it has no bigcommunity. I want to make a big community of golang backend. On Sunday, April 14, 2024 at 9:15:51 PM UTC+9 envee wrote: > After reading briefly about ML and how Python is used as a

[go-nuts] Re: new in golang

2024-04-14 Thread leonardo lima peixoto
Oh nice, I'm a beginner and I want to learning golang as well. Em sábado, 13 de abril de 2024 às 21:42:39 UTC-3, mokwa moffat escreveu: > I would like to have partner for learning golang. Am a beginner thank You > -- You received this message because you are subscribed to the Google Groups

[go-nuts] golang as ML backend v/s C++

2024-04-14 Thread envee
After reading briefly about ML and how Python is used as a "veneer" for C++ code, I was wondering why Go is not used as the backend, given it's excellent concurrency support and ease of use. Basically, I was thinking if the backend is written as a shared object in Go, and then used in Python