Re: [go-nuts] Go/Python interop

2023-11-22 Thread Eli Bendersky
On Wed, Nov 22, 2023 at 11:31 AM Sebastien Binet 
wrote:

> Hi there,
>
> In this week "compiler minutes" [1], one can read:
>
> """
> - Go on future platforms (RAM efficiency. NUMA?)
> - (maybe) Go-Python interop for AI-powered applications
> - [David]: is it a good idea to use cgo for Go-Python interop?
> - [Michael]: no. better with pipe or RPC
> """
>
> Would it be possible to have a bit more informations ?
> What kind of interop is it ? Exchanging binary data ? On disk ?
> Establishing a protobuf-based-like standard ?
> Something else ?
>

All of it, maybe :-)
We're just exploring the issue, throwing ideas around. There are many
potential options, each with its own tradeoffs in terms of performance vs.
effort.

Eli




>
>
> Cheers,
> -s
>
> [1] https://github.com/golang/go/issues/43930#issuecomment-1821586955
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/f685b40c-00d1-4065-b423-ba945bebda88%40cern.ch
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAF-Rda_qr%2BoqSP61uHTZ9GmO9tFvxiogGni_uq1ar%3D%2BRaKqn5A%40mail.gmail.com.


Re: [go-nuts] a simple linux audio player pkg?

2023-11-22 Thread Raffaele Sena
I have used github.com/jfreymuth/oggvorbis to read the ogg file (and
convert to PCM) and github.com/ebitengine/oto/v3 to play the PCM.
I don't know of a full ogg player in Go


On Wed, Nov 22, 2023 at 2:02 PM 'Mark' via golang-nuts <
golang-nuts@googlegroups.com> wrote:

> Is there a simple vorbis/oga audio player package for Go that works on
> Linux.
> The only API I need is something like this:
>
> player.SetFilename(string) error // string is say tune.ogg; stops playing
> previous if any
> player.Play(float32) error // plays current filename from given second
> e.g. 0.0 for the beginning
> player.Pause() (float32, error) // pauses current playing and returns
> position
> player.Resume() error // resumes playing
> player.Secs() float32 // returns current position
>
> The ones I've seen on awsome go either don't seem to play ogg format or
> are far more sophisticated than I need.
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/a38e3a9b-a357-4c85-aa4d-a7a4322ec216n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CANKfucYOa0VRf%3DqX1-wvggqLxRGTvN2k40yhAHsAHTFx668bxQ%40mail.gmail.com.


[go-nuts] a simple linux audio player pkg?

2023-11-22 Thread 'Mark' via golang-nuts
Is there a simple vorbis/oga audio player package for Go that works on 
Linux.
The only API I need is something like this:

player.SetFilename(string) error // string is say tune.ogg; stops playing 
previous if any
player.Play(float32) error // plays current filename from given second e.g. 
0.0 for the beginning
player.Pause() (float32, error) // pauses current playing and returns 
position
player.Resume() error // resumes playing
player.Secs() float32 // returns current position

The ones I've seen on awsome go either don't seem to play ogg format or are 
far more sophisticated than I need.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a38e3a9b-a357-4c85-aa4d-a7a4322ec216n%40googlegroups.com.


Re: [go-nuts] Re: Mongo Go Models (mgm) module and order by

2023-11-22 Thread Tong Sun
Well, actually, it is at https://github.com/Kamva/mgm/issues/90, and
my previous question (#89) was asked 3 weeks ago, but nobody has
answered it yet.

This mlist is my last resort, if nobody here can answer the question,
then basically nowhere else I can find the answer. It's not the end of
the world however, as I can go back to the Mongodb Go driver directly,
although it'll be imperfect.

On Wed, Nov 22, 2023 at 12:45 PM 'Brian Candler' via golang-nuts
 wrote:
>
> https://github.com/Kamva/mgm/discussions perhaps?  (Open, but nothing posted 
> since June 2022).
>
> On Wednesday, 22 November 2023 at 17:02:35 UTC Tong Sun wrote:
>>
>> Any Mongo Go Models (mgm) user here?
>> https://github.com/Kamva/mgm
>>
>> Looks like that mgm can do aggregation but not "order by".
>> Is that so?
>>
>> Can anyone do order by with mgm please?
>>
>> PS.
>>
>> Support requests are supposed to be post to mongo-go-models Google Group, 
>> however, that seems to be gone and searching Mongo Go Models (mgm) in Google 
>> Group landed me here into this mlist instead.
>>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "golang-nuts" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/golang-nuts/PznHZtNrB6Q/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/e309dafc-6971-4651-a6d1-5f9483bdc747n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAMmz1Oc37PT5OU%2Bt6szSzxtXoOMYdaL7csc6dbwo7dAJcbMJJQ%40mail.gmail.com.


[go-nuts] Go/Python interop

2023-11-22 Thread Sebastien Binet
Hi there,

In this week "compiler minutes" [1], one can read:

"""
- Go on future platforms (RAM efficiency. NUMA?)
- (maybe) Go-Python interop for AI-powered applications
- [David]: is it a good idea to use cgo for Go-Python interop?
- [Michael]: no. better with pipe or RPC
"""

Would it be possible to have a bit more informations ?
What kind of interop is it ? Exchanging binary data ? On disk ? Establishing a 
protobuf-based-like standard ?
Something else ?

Cheers,
-s

[1] https://github.com/golang/go/issues/43930#issuecomment-1821586955

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f685b40c-00d1-4065-b423-ba945bebda88%40cern.ch.


[go-nuts] Re: Mongo Go Models (mgm) module and order by

2023-11-22 Thread 'Brian Candler' via golang-nuts
https://github.com/Kamva/mgm/discussions perhaps?  (Open, but nothing 
posted since June 2022).

On Wednesday, 22 November 2023 at 17:02:35 UTC Tong Sun wrote:

> Any Mongo Go Models (mgm) user here?
> https://github.com/Kamva/mgm
>
> Looks like that mgm can do aggregation but not "order by".
> Is that so? 
>
> Can anyone do order by with mgm please?
>
> PS. 
>
> Support requests are supposed to be post to mongo-go-models Google Group 
> , however, that 
> seems to be gone and searching Mongo Go Models (mgm) in Google Group landed 
> me here into this mlist instead. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e309dafc-6971-4651-a6d1-5f9483bdc747n%40googlegroups.com.


[go-nuts] Mongo Go Models (mgm) module and order by

2023-11-22 Thread Tong Sun
Any Mongo Go Models (mgm) user here?
https://github.com/Kamva/mgm

Looks like that mgm can do aggregation but not "order by".
Is that so? 

Can anyone do order by with mgm please?

PS. 

Support requests are supposed to be post to mongo-go-models Google Group 
, however, that 
seems to be gone and searching Mongo Go Models (mgm) in Google Group landed 
me here into this mlist instead. 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9c6faf3a-7504-4eb3-9f91-4e03aa0281ban%40googlegroups.com.