Re: [go-nuts] [generics] type inference on an interface function param

2020-08-08 Thread dolanor
Thanks for your input. Clearly it's not the best example, but it surprised me. With your explanation, I get it. And also, reading my code again, it is confusing. I always thought that Go could benefit from generics, but clearly, I want to also avoid template meta programming, because it is clearl

[go-nuts] Re: distributed runtime

2020-08-06 Thread dolanor
I completely forgot about this thread. I wanted to thank you all for your insights. I've learned quite a few things, and can add many things to my "to dig" list! Le vendredi 3 janvier 2020 23:31:52 UTC+1, Dolanor Maergal a écrit : > > Hi all and Happy New Year, > >

[go-nuts] [generics] type inference on an interface function param

2020-08-06 Thread dolanor
Hello, having fun with generics I stumbled upon this failure: https://go2goplay.golang.org/p/Dc3tWrd6RzQ Bryan C. Mills helped me to fix it by forcing the type at the call point. (the comment in the code) Forcing a type on a var you just declared is a little bit troublesome in this case, but i

[go-nuts] [generics] Trying to make some generic handler

2020-08-06 Thread dolanor
Hi, I'm quite happy about the generics so far, but now I'm trying some ideas that I don't know if they are possible or not given the current proposal. My idea, is to create some kind of generic handler for "net/http" that could be used in a whole project. It would allow same behavior on each rou

[go-nuts] distributed runtime

2020-01-03 Thread dolanor
Hi all and Happy New Year, I was daydreaming the other day and I was wondering if it was possible to create some alternate runtime package. The point would be to have the scheduler schedule goroutine not only on different CPU, but also on different CPU on different machines. The system would be

Re: [go-nuts] [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-06-05 Thread dolanor
Him Source Hut actually requires me to create an account to read the mailing list. Hmph. Anyway, I tried to run it on android and web (don't have wayland), and they work! It's just weird to interact within a canvas on the web and not get all the niceties of the classic html controls. And on and