[go-nuts] Re: understanding memory profile

2017-12-07 Thread Sangjin Lee
It is actually with the latest (1.9.2). I'll file an issue. Thanks. On Tuesday, December 5, 2017 at 1:51:07 PM UTC-8, Dave Cheney wrote: > > Can you please check if this is happening with the current version of Go > and if so raise a bug, https://golang.org/issue/new. > > Thanks > -- You rec

[go-nuts] Go 1.10 Beta 1 is released

2017-12-07 Thread Andrew Bonventre
Hello gophers, We have just released go1.10beta1, a beta version of Go 1.10. It is cut from the master branch at the revision tagged go1.10beta1. There are no known problems or regressions. Please try running production load tests and your unit tests with the new version. Your help testing these

[go-nuts] Re: Bcrypt isn't comparing stored password hash properly

2017-12-07 Thread matthewjuran
Are you sure for rows.Next() is returning true in router.go? Usually there is a call to rows.Error() after the iteration too. Matt On Thursday, December 7, 2017 at 11:33:53 AM UTC-6, Gabriel Simmer wrote: > > So after much looking, I've concluded it's not an issue with the database > encoding.

[go-nuts] package for concurrent os.File operations

2017-12-07 Thread Vasiliy Tolstov
I have []*os.File that need to be Write/Close/Sync/Seek concurrent with proper return values (so if one Write return error i need to catch it ad return to upper layer. In case Seek i need to check that all Seeks returns equal values without errors. Ideally that []*os.File is wrapped to interface t

Re: [go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread dc0d
Thanks again Roger. I've applied those suggestions. -- 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, vi

Re: [go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread dc0d
> > > That won't work if you don't pass any flags! Indeed. The best approach is to check against default values. > > I'd suggest that only one command can be specified at any one time (all the command line apps that I know work like this). True. I'll fix that. > As far as I can see from a b

Re: [go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread roger peppe
On 7 December 2017 at 17:20, dc0d wrote: > The way it is implemented currently, it supports multiple commands. And it > can be decided by checking the flags against their default values. That won't work if you don't pass any flags! > Maybe it should return a []string. Any specific suggestions?

Re: [go-nuts] Newbie cgo question

2017-12-07 Thread Ian Lance Taylor
On Thu, Dec 7, 2017 at 4:53 AM, wrote: > > I am working on a pilot go/cgo project for a database driver. For one of my > C functions called by go, I chose a generic, unfortunate name connect(). My > program kept dumping core on Linux. I did some tracing and found out that > my function connec

[go-nuts] Re: [urgent] need aguments to justify use of Go for a scientific application

2017-12-07 Thread 'Eric Johnson' via golang-nuts
One last bit of perspective here, which may be relevant to your project? I've found that Go has the lowest cognitive load "switching" load. I have a job that mostly doesn't involve coding. When I get to code, I have a limited window in which I can jump in and make changes. Amongst the languages

[go-nuts] Re: Bcrypt isn't comparing stored password hash properly

2017-12-07 Thread Gabriel Simmer
So after much looking, I've concluded it's not an issue with the database encoding. What's odd is if I manually add the hash to the database it functions fine. On Tuesday, December 5, 2017 at 11:39:38 AM UTC-8, Gabriel Simmer wrote: > > Hey Gophers, > > I have a bit of a headscratcher for you gu

Re: [go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread dc0d
The way it is implemented currently, it supports multiple commands. And it can be decided by checking the flags against their default values. Maybe it should return a []string. Any specific suggestions? On Thursday, December 7, 2017 at 7:13:57 PM UTC+3:30, rog wrote: > > On 7 December 2017 at 09

[go-nuts] Re: [ANN] gometalinter v2.0.0 released - much faster linting

2017-12-07 Thread Pierre Durand
Thank you! :) Le mardi 5 décembre 2017 08:10:50 UTC+1, Alec Thomas a écrit : > > Hello, > > Through the efforts of many contributors, and in particular those of > Daniel Nephin, v2.0.0 has been released. You can grab it here: > > https://github.com/alecthomas/gometalinter/releases/tag/v2.0.0

[go-nuts] Newbie cgo question

2017-12-07 Thread asaaveri
All: I am working on a pilot go/cgo project for a database driver. For one of my C functions called by go, I chose a generic, unfortunate name connect(). My program kept dumping core on Linux. I did some tracing and found out that my function connect() was being called twice even though I

Re: [go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread roger peppe
On 7 December 2017 at 09:52, dc0d wrote: > Coming late, yet I've written a minimal package (which can be even just > copied and paste or bundled) that uses only the flag package itself without > adding new types, just a single function. I like the minimalism, but how are you supposed to know whic

[go-nuts] Re: Calculation of the combinations between an unlimited number of slices

2017-12-07 Thread Fred
Thanks @Jake Le jeudi 7 décembre 2017 01:01:46 UTC+1, Jake Montgomery a écrit : > > On Monday, December 4, 2017 at 2:56:19 PM UTC-5, Fred wrote: >> >> >> > Perhaps start with Go Slices: usage and internals > , for a more > complete underst

[go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread dc0d
Coming late, yet I've written a minimal package (which can be even just copied and paste or bundled) that uses only the flag package itself without adding new types, just a single function. On Wednesday, January 1, 2014 at 1:03:07 PM UTC+3:30, Archos wrote: > > A