[go-nuts] Is go1.10beta1 a debug or unoptimized build? (possible regression)

2017-12-22 Thread Daniel Theophanes
The beta is a normal release, not debug or no opt. File an issue, if possible try to get a minimal repro case you can post. -- 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

[go-nuts] ANN: best in class serialization for Go, greenpack

2017-12-22 Thread Jason E. Aten
The latest release of greenpack, version 5.0.5 at https://github.com/glycerine/greenpack supports several new features. a) serialization of objects containing interfaces. As simple as having your container implement a one factory method. b) de-duplication of pointers. You can efficiently seria

Re: [go-nuts] Re: Weird behavior of a nil check after variable redeclaration

2017-12-22 Thread Vincent Rischmann
Thanks, that explains it. On Fri, Dec 22, 2017, at 6:28 PM, Volker Dobler wrote: > See https://golang.org/doc/faq#nil_error > > V. > > On Friday, 22 December 2017 17:37:40 UTC+1, Vincent Rischmann wrote:>> Hello, >> >> while refactoring some code I encountered something strange regarding >> r

[go-nuts] Re: [ANN] A Typed ORM Library

2017-12-22 Thread Eyal Posener
Hi Tamas, Thanks for the link, haven't seen that tool. Actually, as I understand, it is exactly the opposite, xo generates go code from SQL database. A comparable tool I found is https://github.com/relops/sqlc. On Friday, December 22, 2017 at 10:49:37 PM UTC+2, Tamás Gulácsi wrote: > > Have you s

[go-nuts] [ANN] A Typed ORM Library

2017-12-22 Thread Tamás Gulácsi
Have you seen knq/xo ? -- 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. For more options, visit https://groups.google.com

[go-nuts] [ANN] A Typed ORM Library

2017-12-22 Thread Eyal Posener
Hi In the last month I spent my free time on creating a typed ORM library for Go. The motivation was that the currently most popular ORM library for Go: GORM , lacks type safety, has poor performance and, to my opinion, has unclear API. Don't get me wrong, GORM is gr

Re: [go-nuts] Weird behavior of a nil check after variable redeclaration

2017-12-22 Thread Jan Mercl
Putting anything that has a type in any interface makes it non nil. (*foo)(nil) has a type. On Fri, Dec 22, 2017, 17:38 Vincent Rischmann wrote: > Hello, > > while refactoring some code I encountered something strange regarding > redeclarations. > > Here is an example: https://play.golang.org/p/

[go-nuts] Re: Weird behavior of a nil check after variable redeclaration

2017-12-22 Thread Volker Dobler
See https://golang.org/doc/faq#nil_error V. On Friday, 22 December 2017 17:37:40 UTC+1, Vincent Rischmann wrote: > > Hello, > > while refactoring some code I encountered something strange regarding > redeclarations. > > Here is an example: https://play.golang.org/p/b7Bp2w2fWwk > Somehow after re

[go-nuts] Weird behavior of a nil check after variable redeclaration

2017-12-22 Thread Vincent Rischmann
Hello, while refactoring some code I encountered something strange regarding redeclarations. Here is an example: https://play.golang.org/p/b7Bp2w2fWwk Somehow after redeclaring err when calling doIt, err is apparently not nil, yet the functions never return anything other than nil. If I use a

[go-nuts] Is go1.10beta1 a debug or unoptimized build? (possible regression)

2017-12-22 Thread Jack
Hi, I'm benchmarking my circuitbreaker implementation against others and decided to run my benchmarks against https://golang.org/dl/#unstable (using my mac). I installed it following go get golang.org/x/build/versio

Re: [go-nuts] Re: select multiple expressions per case

2017-12-22 Thread matthewjuran
David, There's a good argument for not spending time adding this to the spec and compilers: there are bigger issues for the existing language developers. Jason, I've suggested the non-receiving assignment is set to the zero value, ok only applies to the receiving assignment and can be used twi

[go-nuts] Re: golang for AI

2017-12-22 Thread Fabien
I'm working in an AI research lab and use golang a lot, so I would tend to say yes. We're working in the symbolic AI field though (ontologies, constraint solving and that stuff), not machine learning. Le vendredi 22 décembre 2017 07:33:04 UTC+1, Lee Rick a écrit : > > hi, >Artificial intelli

[go-nuts] Re: golang for AI

2017-12-22 Thread Lin Hao
In this case, I just saw one library of scientific computing: gonum . Therefore, I also put forward this suggestion here and hope to make positive progress. 在 2017年12月22日星期五 UTC+8下午2:33:04,Lee Rick写道: > > hi, >Artificial intelligence is a big trend, and i want