[go-nuts] [generics] combining different instances of the same generic type

2020-11-29 Thread Matt Joiner
I had a muck around with go2 generics with my toy-ish futures package https://github.com/anacrolix/futures. The go1 implementation is in master, and a working go2 implementation in the go2 branch (using channels of different types instead of the attempt that follows). The package provides one

[go-nuts] Go program generates stand-alone C code for AVX-512 neural nets

2020-11-29 Thread 37ef ced3
Generated C code can be used in Go programs via Cgo: https://NN-512.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.

Re: [go-nuts] Re: Give the zero time value a location, and it won't survive a roundtrip to JSON?

2020-11-29 Thread Michael Jones
Matt’s formatting example suggests interval arithmetic for time. That is a nice idea. On Sat, Nov 28, 2020 at 2:22 AM 'Axel Wagner' via golang-nuts < golang-nuts@googlegroups.com> wrote: > It would also be possible to implement `json.Marshaler` to use a different > time format. In particular, it

[go-nuts] Re: crypto/tls/generate_cert.go: Should it be used? And how can it be used?

2020-11-29 Thread b.ca...@pobox.com
On Sunday, 29 November 2020 at 21:09:24 UTC Jeroen N. Witmond wrote: > go run `locate generate_cert.go` --host 127.0.0.1 --rsa-bits=2048 --ca > > That will only work if there's exactly one instance of generate_cert.go on your filesystem. A better command is: go run "$(go env

[go-nuts] crypto/tls/generate_cert.go: Should it be used? And how can it be used?

2020-11-29 Thread Jeroen N. Witmond
Greetings, The documentation https://golang.org/pkg/net/http/#example_ListenAndServeTLS states (in the example's comment) "One can use generate_cert.go in crypto/tls to generate cert.pem and key.pem." In trying to find out how to do this I came across (closed)

Re: [go-nuts] Re: draft designs for file system interfaces & file embedding

2020-11-29 Thread peterGo
On Saturday, November 28, 2020 at 3:59:21 PM UTC-5 Constantine Vassilev wrote: > I generated it from the source. I that the version I need? > > go version devel +4ce0a7cea6 Sat Nov 28 18:42:44 2020 + darwin/amd64 > For the moment. The tip is constantly updated for development and bug

Re: [go-nuts] use Go in RTOS, for real-time, deterministic, (industry control) software?

2020-11-29 Thread Fino
I see, thanks! it turns out I need a modern C. TinyGo, Vlang are my list. Rust is too heavy for embedded system, and difficult for whole team to master. maybe let Vlang do the real-time threads and Go do the non real-time threads, link them together into one process/uni-kernel is good

Re: [go-nuts] use Go in RTOS, for real-time, deterministic, (industry control) software?

2020-11-29 Thread Robert Engels
You should review Java RTS for a similar design and it’s pros and cons. It is definitely doable - but you end up writing C code as Java - or in this case Go. > On Nov 29, 2020, at 1:45 AM, Fino wrote: > >  > Although Go is a GC language, > is it any chance to use Go in Preempt_RT Linux