[go-nuts] New ABI in 1.12 broke Go-QML

2019-02-27 Thread Ignazio Di Napoli
I was able to solve, I will comment into the issue how I did it. -- 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

[go-nuts] New ABI in 1.12 broke Go-QML

2019-02-27 Thread Ignazio Di Napoli
The new ABI broke Go-QML compilation (https://github.com/go-qml/qml/issues/190). The error is: cdata.Ref: relocation target runtime.acquirem not defined for ABI0 (but is defined for ABIInternal) cdata.Ref: relocation target runtime.releasem not defined for ABI0 (but is defined for

[go-nuts] Re: [ANN] GoGi / Gide cross-platform GUI toolkit and IDE app

2018-11-12 Thread Ignazio Di Napoli
Wow. Thank you. In the examples I could not find how to use an OpenGL "widget", but in the wiki it seems that work on 3D is on-going. So it seems I'll have to wait a little more to use it, but I'll keep an eye on it! -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Re: Generics as builtin typeclasses

2018-09-09 Thread Ignazio Di Napoli
Thank you, I see your point. This is less powerful than contracts, but Go proved me that less is more, as long as it is enough. My point is: do we really need a so powerful version of generics or maybe operators and interfaces are enough? For the many keywords added and to manage conversions,

Re: [go-nuts] Re: Generics as builtin typeclasses

2018-09-08 Thread Ignazio Di Napoli
Ps: as for point 4, we'd maybe need b and c to be integers, and also a SetIndex method. We'd also need a Key, SetKey and DeleteKey to mimic map operators. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] Re: Generics as builtin typeclasses

2018-09-08 Thread Ignazio Di Napoli
I'd really like to read a reply to Lucio's argument about operator overloading. Once we define that: 1. ab is !a.Less(b) && !a.Equals(b)); 4. a.Index(b) is the same as a[b] and a.Index2(b, c) is the same as a[b:c]; 5. maybe some more? Would we really need contracts and the added complexity in

[go-nuts] Re: Local repository for go modules

2018-08-17 Thread Ignazio Di Napoli
On Friday, August 17, 2018 at 1:04:20 AM UTC+2, thepud...@gmail.com wrote: > > I suspect the 'replace' directive I described in my earlier post in this > thread might be sufficient for what you describe, because it lets you map > from an import path like "example.com/me/foo" to something on your

[go-nuts] Re: Local repository for go modules

2018-08-16 Thread Ignazio Di Napoli
On Thursday, August 16, 2018 at 8:20:10 PM UTC+2, thepud...@gmail.com wrote: > > Could you say a few more words about your use case? > Thank you. Looking at design docs, I think Athens can do what I'm looking for, but maybe it is a little "too much", and either docs are incomplete or I'm unable

[go-nuts] Local repository for go modules

2018-08-16 Thread Ignazio Di Napoli
I'd like to experiment with modules, in a local directory. I know I can do it setting GOPROXY to a file:/// url. But what about looking for my own modules in a local folder, and the others normally (optionally through the proxy)? Is there a simple proxy I can configure in this way? Thank you.

[go-nuts] Re: All Forms of Wishful Generics

2018-02-19 Thread Ignazio Di Napoli
On Monday, February 19, 2018 at 4:04:12 PM UTC+1, Ignazio Di Napoli wrote: > > data2 := found.(float32) // THIS PANICS AT RUNTIME, data2 is int > Sorry, found is int. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

[go-nuts] Re: All Forms of Wishful Generics

2018-02-19 Thread Ignazio Di Napoli
The only time I "needed" generics was for an r-tree container I wrote. I'd been much happier if I could statically catch my errors about contained data type, instead of catching them at runtime with panics during conversion. For example: x := 0.0 y := 0.0 data := 1

[go-nuts] Re: liteide x32.1 released

2017-07-13 Thread Ignazio Di Napoli
Thank you! > > -- 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

Re: [go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Ignazio Di Napoli
Thank you! I found out: Ubuntu and MSYS2 ship two different versions that have different types in header according Go rules. That's why I cannot use the same code. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

Re: [go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Ignazio Di Napoli
When I include stdints.h, the error is: cannot use C.uint32_t(bi.Time_reference_low) (type C.uint32_t) as type C.uint in assignment on line: c.time_reference_low = C.uint32_t(bi.Time_reference_low) Even if in stdint.h there is: typedef unsigned int uint32_t; and the c is of type:

Re: [go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Ignazio Di Napoli
Thank you. Now it complains it cannot convert uint32_t to uint. It's a start. It just seems strange I can compile under Windows with MinGW 64bit and not Ubuntu 64bit. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

[go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Ignazio Di Napoli
Hello everyone, I get this error while compiling gosndfile under Ubuntu. The same code compiled fine under Windows using MSYS2. I couldn't find any information on this problem, if not checking for blank lines before <>, that obviously are not there since it works under MSYS2. I also checked

[go-nuts] Re: how to use go generate to generate generic code .

2017-03-10 Thread Ignazio Di Napoli
Wow. :) -- 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/d/optout.

Re: [go-nuts] Re: How to generate generic code with generate?

2017-01-24 Thread Ignazio Di Napoli
In my opinion the best is https://github.com/cheekybits/genny. -- 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

[go-nuts] Re: Is this a compiler bug?

2017-01-06 Thread Ignazio Di Napoli
Thank you! > > -- 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

[go-nuts] Re: Is this a compiler bug?

2017-01-06 Thread Ignazio Di Napoli
So, with Println the compiler can optimize and assign the same address to a1 and a2, and without it cannot? Why? -- 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

[go-nuts] Re: Is this a compiler bug?

2017-01-06 Thread Ignazio Di Napoli
Ok, but why does the Println changes the result? -- 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,

[go-nuts] Is this a compiler bug?

2017-01-06 Thread Ignazio Di Napoli
I'm very curious about the answer to this unanswered StackOverflow question: http://stackoverflow.com/questions/41357948/what-golang-compiler-will-do-when-fmt-println import ( "fmt") type shout interface { echo()} type a struct {} func (*a) echo () { fmt.Println("a")} type b

Re: [go-nuts] String Split Question

2016-07-07 Thread Ignazio Di Napoli
On Thursday, July 7, 2016 at 12:05:27 AM UTC+2, Justin Israel wrote: > > https://play.golang.org/p/fOFT2voh6l >> > > That's pretty sweet. > Pretty sweet indeed, but it's worth saying that if the string is [field 1][field 2][][field 4] the result is ["field 1", "field 2", "field4"], ignoring the