[go-nuts] Re: Secure password hashing algorithm in go.

2019-01-06 Thread ssrs
Have you get a solution? i have the same problem too, golang is not compatible with java SecretKeyFactory 在 2015年12月2日星期三 UTC+8上午7:47:22,Jeff写道: > > I'm am looking to implement in go, the following code written in Java. > I have not been able to find any apis or modules for this. Is it > possi

Re: [go-nuts] gotcha: don't take the address of a for-range loop variable

2019-01-06 Thread Ian Lance Taylor
On Sun, Jan 6, 2019 at 10:38 PM wrote: > > https://play.golang.org/p/NnACN5fLPT3 > > I was taking the address of the for-loop variable ("&v" in the example above) > and was surprised to find that all my items pointed the same address. I > thought I had found most of the Golang gotchas by now, bu

[go-nuts] gotcha: don't take the address of a for-range loop variable

2019-01-06 Thread buchanae
https://play.golang.org/p/NnACN5fLPT3 I was taking the address of the for-loop variable ("&v" in the example above) and was surprised to find that all my items pointed the same address. I thought I had found most of the Golang gotchas by now, but this is a new one to me. -A -- You received t

Re: [go-nuts] Re: How to make the first character in a string lowercase?

2019-01-06 Thread dhananjay Verma
thank you On Tue, 30 Oct 2018 at 00:21 messju mohr wrote: > I don't know if that is "the easiest", but I would do something like this: > https://play.golang.org/p/DOhP5kc8rO4 > > On Sun, Oct 28, 2018 at 11:35:33PM -0700, dhananja...@gmail.com wrote: > >https://play.golang.org/p/vFW8NxzL_hv >

Re: [go-nuts] [Ann] create full github release from command line, not just a tag

2019-01-06 Thread Justin Israel
I've been using goreleaser so far, to publish github releases with cross-compiled assets. I am not familiar with the wireframe project though. Do they share some overlap? On Mon, Jan 7, 2019 at 5:50 PM Tong Sun wrote: > IIRC, github used to create full releases each tim

[go-nuts] [Ann] create full github release from command line, not just a tag

2019-01-06 Thread Tong Sun
IIRC, github used to create full releases each time you push a git tag, but now it only creates tags, not releases. After pushing a git tag, people need to go to GitHub UI, find created tag, press "Edit tag", change nothing and press "Publish release", then they'll get full release and event.

Re: [go-nuts] C++ 11 to Golang convertor

2019-01-06 Thread Eric S. Raymond
Jan Mercl <0xj...@gmail.com>: > I would like to learn more about that strategy, if possible. Diggingpaper by two French guys on how astoundingly perverse parsing C can get...Perry Metzger pointed me at it... Ah, here it is: A simple, possibly correct LR parser for C11 http://gallium.inria.f

Re: [go-nuts] C++ 11 to Golang convertor

2019-01-06 Thread Jan Mercl
I would like to learn more about that strategy, if possible. On Sun, Jan 6, 2019, 22:38 Eric S. Raymond wrote: > > Having studied the problem, the most serious blocker is an ambiguity > between > typedefs and variable names in some contexts. And there exists a good > strategy for resolving those

Re: [go-nuts] C++ 11 to Golang convertor

2019-01-06 Thread Eric S. Raymond
Jan Mercl <0xj...@gmail.com>: > I'm afraid that a lot, if not most of existing C code, even when simple, > clean and preprocessor-abuse-free, cannot be parsed before preprocessing. Having studied the problem, the most serious blocker is an ambiguity between typedefs and variable names in some cont

Re: [go-nuts] Re: What are the reasonable reasons to use pointers?

2019-01-06 Thread Michael Jones
My hardest-to-debug ever bug was because of this. Because FORTRAN is pass by reference, the compiler must do something special for the four in "SQRT(4.0)" -- and the PDP-10 (TOPS-10) FORTRAN compiler used a global literal table for this. I had a function that modified an argument, erroneously pass

Re: [go-nuts] C++ 11 to Golang convertor

2019-01-06 Thread Jan Mercl
On Sun, Jan 6, 2019 at 2:27 PM Eric S. Raymond wrote: > But for both of them our intended strategy is *not* to preprocess. > Instead, we're willing to accept that some abuses of the preprocessor > need to be punted to a human, but treat other uses as part of the > parse tree. I'm afraid that a l

Re: [go-nuts] Re: What are the reasonable reasons to use pointers?

2019-01-06 Thread Rob Pike
Fortran depends heavily on pointers for its semantics: It is a call by reference language. You just don't see them explicit in the language and you have no control over whether an argument will be modified by a procedure. -rob On Mon, Jan 7, 2019 at 5:13 AM Victor Giordano wrote: > i guess tha

[go-nuts] [ANN] go-resty v1.11.0 released - Simple HTTP and REST client library

2019-01-06 Thread Jeevanandam M.
Production Version : gopkg.in/resty.v1 godoc : https://godoc.org/gopkg.in/resty.v1 Changelog: Enhancements * Add Content-Type application/json-rpc into Auto Unmarshaling support #203 @jeevatkm * Add Context() method into Request and consider logging prerequesthook updates in the d

[go-nuts] Re: What are the reasonable reasons to use pointers?

2019-01-06 Thread Victor Giordano
i guess that a good question to start is there is a language that doesn't relays on pointer. Fortran as someone says below, may be a good example how things get done using values only. I programmed in COBOL in the universitiy and don't recall to use pointers. There aren't necessary at all, neve

Re: [go-nuts] C++ 11 to Golang convertor

2019-01-06 Thread Eric S. Raymond
andrey mirtchovski : > > It would sure help if Go had sum types. Has there been any discussion > > of adding these? > > one of many, but has links to others: > https://github.com/golang/go/issues/19412 Thanks. My experience report on the reposurgeon port will point at yet another use case for s

Re: [go-nuts] C++ 11 to Golang convertor

2019-01-06 Thread andrey mirtchovski
> It would sure help if Go had sum types. Has there been any discussion > of adding these? one of many, but has links to others: https://github.com/golang/go/issues/19412 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g

Re: [go-nuts] C++ 11 to Golang convertor

2019-01-06 Thread Eric S. Raymond
Andy Balholm : > A good translation from C to Go needs to look as much like the original, > un-preprocessed C source as possible. But a powerful translation tool will > probably need to preprocess, parse, and typecheck the code, while keeping > track of the source location that everything corres