[go-nuts] Re: wasm output and modules

2019-03-28 Thread Agniva De Sarker
> I'm using a wait on a Go chan, and using a defer to Release allocated FuncOf methods. Am I missing anything else? Are you signalling the chan to exit ? Unless that happens, those Funcs will not be released. Typically, you have an "exit" button which is hooked to an event listener that signal

[go-nuts] Decimal survey

2019-03-28 Thread Daniel Theophanes
Hello, If you represent decimals or money in Go, I'd like to hear from you: https://docs.google.com/forms/d/e/1FAIpQLScqXYCCCS4fTJXnRvB0qDWsbDXFL9tBBtwDY4y3Ym953nq5MQ/viewform I work on database/sql and a few sql drivers. I'm hoping to make working with decimals, especially when working with data

[go-nuts] [URGENT] Pass array of string between Go and C library

2019-03-28 Thread Ashutosh Baghel
Hi folks, I am new to Go-Programming and having the following requirement, I need to have Array of Strings,(for example names) at my 'Go Side' . But i would get this names from my C library API which i have included in my Go program. Note: I have liberty to modify the C library too, i could c

[go-nuts] Re: Decimal survey

2019-03-28 Thread Pat Farrell
On Thursday, March 28, 2019 at 2:41:26 PM UTC-4, Daniel Theophanes wrote: > > If you represent decimals or money in Go, I'd like to hear from you: > > https://docs.google.com/forms/d/e/1FAIpQLScqXYCCCS4fTJXnRvB0qDWsbDXFL9tBBtwDY4y3Ym953nq5MQ/viewform > > I work on database/sql and a few sql drive

Re: [go-nuts] [URGENT] Pass array of string between Go and C library

2019-03-28 Thread Ian Lance Taylor
On Thu, Mar 28, 2019 at 3:08 PM Ashutosh Baghel wrote: > > Hi folks, > > I am new to Go-Programming and having the following requirement, I need to > have Array of Strings,(for example names) at my 'Go Side' . > > But i would get this names from my C library API which i have included in my > Go

Re: [go-nuts] Re: Decimal survey

2019-03-28 Thread Marcin Romaszewicz
A huge +1 on that last comment. You never want to store currency in floating point, but rather some form of fixed point notation, like your pennies suggestion. Compounding errors on floating point representations of currency kill you. For example, $0.01 is not exactly representable as float. How m

Re: [go-nuts] Re: Decimal survey

2019-03-28 Thread Robert Engels
You can contact me, and review github.com/robaho/fixed it is more designed for performance over flexibility the decimal.Decimal being more suited for the latter. > On Mar 28, 2019, at 5:53 PM, Marcin Romaszewicz wrote: > > A huge +1 on that last comment. You never want to store currency in fl

[go-nuts] Re: Urgent Need - Interview and OFFER tomorrow!

2019-03-28 Thread Krzysztof Kowalczyk
When posting a job opportunity it's helpful to include: * at least a hint as to what the job is * at least a hint as to what the salary will be * since it's a contract, how long and what are the terms * since it's in Plano, TX, is it a remote gig or in office? I certainly wouldn't jump on an inter

[go-nuts] Disable test result caching from within Go code?

2019-03-28 Thread twpayne
I have a bunch of integration tests which depend on external services. I've added the build tag "integration" for each source file containing such tests so they are only run when I do: $ go test -tags=integration ./... Go 1.12, by default, caches the tests results, which is exactly what I don

[go-nuts] Re: [URGENT] Pass array of string between Go and C library

2019-03-28 Thread Justin Israel
On Friday, March 29, 2019 at 11:08:06 AM UTC+13, Ashutosh Baghel wrote: > > Hi folks, > > I am new to Go-Programming and having the following requirement, I need > to have Array of Strings,(for example names) at my 'Go Side' . > > But i would get this names from my C library API which i have in

[go-nuts] Vue-inspired library with Go+WebAssembly

2019-03-28 Thread Brad
Now that WebAssembly is available as an (experimental) compilation target, it raises the question of how feasible is it to make a quality UI library. Vue (my personal fav) and React, while they have their issues, do have many ideas which are good and seem like they may translate well over to We

[go-nuts] go: Passing a member function as an argument compile error

2019-03-28 Thread Greg Bostrom
I just posted this on on openstack. Maybe someone here knows the answer? https://stackoverflow.com/questions/55410250/go-passing-a-member-function-as-an-argument-compile-error I would expect this to compile after watching this talk by Rob Pike https://www.youtube.com/watch?v=HxaD_trXwRE&t=1830s

Re: [go-nuts] go: Passing a member function as an argument compile error

2019-03-28 Thread Ian Lance Taylor
On Thu, Mar 28, 2019 at 9:42 PM Greg Bostrom wrote: > > I just posted this on on openstack. > Maybe someone here knows the answer? > > https://stackoverflow.com/questions/55410250/go-passing-a-member-function-as-an-argument-compile-error > > I would expect this to compile after watching this talk

Re: [go-nuts] go: Passing a member function as an argument compile error

2019-03-28 Thread Greg Bostrom
No, I intended to call New(foo) -- 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.g

Re: [go-nuts] go: Passing a member function as an argument compile error

2019-03-28 Thread Ian Lance Taylor
On Thu, Mar 28, 2019 at 10:02 PM Greg Bostrom wrote: > > No, I intended to call New(foo) Well, in the program you showed us, foo is not defined, and that is what the compiler is telling you. It was mistaken in thinking that you meant new(M), though, since you actually want to call New. What you

Re: [go-nuts] go: Passing a member function as an argument compile error

2019-03-28 Thread Greg Bostrom
Thanks! That compiles. On Thursday, March 28, 2019 at 10:14:28 PM UTC-7, Ian Lance Taylor wrote: > > On Thu, Mar 28, 2019 at 10:02 PM Greg Bostrom > wrote: > > > > No, I intended to call New(foo) > > Well, in the program you showed us, foo is not defined, and that is > what the compiler is te

[go-nuts] Re: proposal: Go 2: add untyped() type conversion for integer constants #31076

2019-03-28 Thread Jan Mercl
The Compatibility section of the proposal says: "I think that this would break no existing code, as a user function invocation untyped(EXPR) is not at present allowed in constant specifications." It's true that user function cannot be called in a constant expression. But conversion to a user defin