Re: [go-nuts] Re: Shiny

2016-08-17 Thread Nigel Tao
On Wed, Aug 17, 2016 at 2:56 AM, wrote: > It is also slightly unclear what version of the language it is built for. I > think they have been advancing with Go, and have not made efforts towards > backwards compatibility, and I had to make several hand-edits after > updating, to get it to compile

Re: [go-nuts] Shiny

2016-08-17 Thread Nigel Tao
On Wed, Aug 17, 2016 at 11:11 PM, Seb Binet wrote: > that said, I think it is quite clear that shiny is not yet ready for prime > time, for all the use cases of a complete GUI toolkit. > I hope it will come to that, but it isn't the case yet. Yes, it's not yet ready for prime time. We're working

[go-nuts] cmd/go: make c/objective-c in cgo support golang package better.

2016-08-17 Thread bronze man
I think golang package is a great stuff for encapsulation.It may be better if I can use that in cgo. * c/objective-c function can include any .h file in the GOPATH with "the full path way" like golang import. * c/objective-c function can call other c/objective-c function in another golang packag

[go-nuts] Re: SSA back-translation / destruction

2016-08-17 Thread Elliott Stoneham
> > > In order to generate assembly code I need to remove the Phi functions > and rename the registers accordingly. The register field in SSA is not > exported and can be accessed read-only by Name(). This makes SSA > back-translation cumbersome. > My experience in TARDISgo was that Name() wa

Re: [go-nuts] Proposal: radix sort in /x/exp

2016-08-17 Thread Nigel Tao
On Tue, Aug 16, 2016 at 1:05 PM, Randall Farmer wrote: > I think, in general, a great thing about Go is most stdlib packages scale > well--net/http's still a good pick when you get real traffic, say. Adding > stdlib sorts that are faster for large collections seems in that spirit. > They'd be no m

Re: [go-nuts] Go 1.7 is released

2016-08-17 Thread Dan Kortschak
"Trust, but verify"? No, that's been used and it didn't turn out so well. On Wed, 2016-08-17 at 08:10 +, Michael Banzon wrote: > "No test, no trust"? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop r

[go-nuts] Re: TLS handshake through net.Pipe()

2016-08-17 Thread Madhusudan C.S
Hi Aliaksandr, Thank you very much for these insights. This helped me understand what's going on. Also, thanks for the pointers to possible workarounds! On Wednesday, August 17, 2016 at 10:14:40 AM UTC-7, Aliaksandr Valialkin wrote: > > Hi, Madhu, > > Writes to net.Pipe connections are synchro

[go-nuts] Getting error when running go install with go-1.7

2016-08-17 Thread bothra90
Exact command: go install -ldflags -linkmode=internal -r "/sysroot/lib" -I "/sysroot/lib/ld-linux-x86-64.so.2" -X 'foo' ts/... *Error: symbol go.dwarf.info.indexFor listed multiple times* Help appreciated. Thanks! -Abhay -- You received this message because you are subscribed to the Google

[go-nuts] Re: crypto/x509 doesn't recognzie legacy certificate signature algorithm

2016-08-17 Thread agl via golang-nuts
On Tuesday, August 9, 2016 at 6:19:09 PM UTC-7, carl...@gmail.com wrote: > > I am trying to write a Go client to connect to an HTTPS server. I am > having trouble with the certificates provided from this server, with an > error "x509: cannot verify signature: algorithm unimplemented". I think >

[go-nuts] [ANN] sortGen: go generate-or to simplify sorting of slices

2016-08-17 Thread Paul Jolly
I've pulled together a very simple go generate-or that makes sorting arbitrary slices easier via order functions, removing the need to implement sort.Interface etc. go get -u github.com/myitcv/sorter/cmd/sortGen Simply define an order function on the slice type of interest: func orderByName(p

[go-nuts] Re: TLS handshake through net.Pipe()

2016-08-17 Thread Aliaksandr Valialkin
Hi, Madhu, Writes to net.Pipe connections are synchronous - i.e. call to Write returns only after the corresponding call to Read on the other end of pipe is made. TLS implementation in Go may deadlock on net.Pipe connection, since both server and client may call Write on both ends of pipe while

[go-nuts] Re: Complete SSL certificate workflow

2016-08-17 Thread Mi-e Foame
Sorry, I should have mentioned that the primary goal here is to generate certificates for the specific purpose of client authentication. On Wednesday, August 17, 2016 at 10:01:01 AM UTC-6, Josh V wrote: > > Hi all, > > I'm trying to come up with an example of how to create SSL certificates > and

[go-nuts] Complete SSL certificate workflow

2016-08-17 Thread Josh V
Hi all, I'm trying to come up with an example of how to create SSL certificates and keys from start to finish (including CertificateRequests) all using Go. I'll go ahead and get the obligatory "I'm pretty new to SSL" disclaimer out of the way... I've played with https://golang.org/src/crypto/t

[go-nuts] SSA back-translation / destruction

2016-08-17 Thread HWJ
TL;DR: what's the best way to do SSA back-translation when using x/tools/go/ssa? I'm thinking about a Go compiler which accepts a subset of Go and emits assembly for a microcontroller. Instead of going all the way from lexing, parsing etc. I'd like to use x/tools/go/ssa. In order to generate ass

[go-nuts] TLS handshake through net.Pipe()

2016-08-17 Thread Madhusudan C.S
I am writing some test code where I am creating `tls.Server()` and `tls.Client()` using the `Conn` pair returned by `net.Pipe()`. I have a few positive tests (where the Handshakes are expected to succeed) and a few negative tests (where the Handshakes are expected to fail). Each test sets up a `tls

[go-nuts] Design web marketplace with go

2016-08-17 Thread gdennis91 via golang-nuts
Hi, i want to create a web marketplace with google go and AngularJS on the client side. Therefore we are using AppEngine and BigTable. After learning the go basics in a couple of tutorials, i couldnt really find any resources about how to design web applications the right way in go. I saw that

[go-nuts] time.Sleep, syscall.GetCurrentProcess block indefinitely

2016-08-17 Thread JunLe Meng
sorry my English is not good I wrote a program there is a strange fault, the whole process stuck. The first fault code: for { log.Debug ( "log1") // Call a dll // Some operations log.Debug ( "sleep") time.Sleep (10 * time.Second) } The final output of the console is "sleep"

[go-nuts] Re: Differences in archive/zip between 1.6.3 / 1.7

2016-08-17 Thread Radek Simko
I saw that change when reading the Changelog and I thought it doesn't affect me, as ZIP format doesn't necessarily involve compression: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT > 4.1.3 Data compression MAY be used to reduce the size of files > placed into a ZIP file, but is

[go-nuts] Re: How to wait for http.ListenAndServeTLS()

2016-08-17 Thread dup2snow
wrap listener and hack it, It maybe can work 在 2016年8月16日星期二 UTC+8上午8:33:54,xtalk1写道: > > If possible, I would like to write a Go program that does the following: > > 1. Calls http.ListenAndServe() or http.ListenAndServeTLS() (in its own > goroutine, of course) > > 2. Waits until http.ListenAndSe

[go-nuts] tbsp - Spoon-feed your table-based tests!

2016-08-17 Thread Sam Boyer
OK, so this is kind of a lark, but to celebrate the new subtesting system in Go 1.7, I fired out a quick lib for executing table-based tests https://github.com/sdboyer/tbsp. The implementation is pretty trivial, so I hardly expec

Re: [go-nuts] Shiny

2016-08-17 Thread Joe Blue
Thanks I am using polymer and bootstrap and electron too. But I hate it, and so why I turned to flutter. I might check out your code. I think the basic MDL web GUI stuff could easily be make to work with shiny, if we don't want any glowing animation stuff, etc. Just like how MDL is is nice simple

Re: [go-nuts] Shiny

2016-08-17 Thread Seb Binet
On Wed, Aug 17, 2016 at 2:38 PM, Joe Blue wrote: > Thanks. I looked there before. > > It's a shame that only the shiny author is the only one on this from > Google to improve it. > > There are bits and pieces es floating around and even a roadmap in github > to build material design widgets. > >

[go-nuts] Differences in archive/zip between 1.6.3 / 1.7

2016-08-17 Thread James Bardin
Hi Radek, There were a lot of performance improvements in the compress/flate package. https://tip.golang.org/doc/go1.7#minor_library_changes -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving email

Re: [go-nuts] Biometric login (webauthn) in Go, need help in verifying signature

2016-08-17 Thread John Kemp
I’d say that you should look at the code in: > On Aug 13, 2016, at 3:51 PM, ayngl...@gmail.com wrote: > > rsa.VerifyPKCS1v15 (which is publicly available: https://go.googlesource.com/go/+/master/src/crypto/rsa/pkcs1v15.go) And see if it matches what your JS crypto.subtle.verify does… I do kno

[go-nuts] Differences in archive/zip between 1.6.3 / 1.7

2016-08-17 Thread radek . simko
Hi, I read through the 1.7 changelog but didn't spot any change that would explain this behaviour. Basically given a specific slice of bytes archived via "archive/zip" + written to a file produces different file when doing so w/ Go 1.6.3 and 1.7.0. See full repro case: https://gist.github.com/

Re: [go-nuts] Shiny

2016-08-17 Thread Joe Blue
Thanks. I looked there before. It's a shame that only the shiny author is the only one on this from Google to improve it. There are bits and pieces es floating around and even a roadmap in github to build material design widgets. Dart / flutter / mojo is getting much more resources, with vanadiu

[go-nuts] Re: Trivial file server responds with "Moved Permanently"?

2016-08-17 Thread Val
It is now "documented behavior" (issue is closed), there are 2 mentions of this special case here https://golang.org/pkg/net/http/#FileServer and here https://golang.org/pkg/net/http/#ServeFile On Wednesday, August 17, 2016 at 8:44:36 AM UTC+2, Howard Guo wrote: > > It is a known issue, file se

[go-nuts] Re: [ANN] Golang Bindings for Vulkan API with demos

2016-08-17 Thread Mirolim Mirzakhmedov
This is nice, thanks for sharing! On Wednesday, August 17, 2016 at 3:51:37 AM UTC+5, Maxim Kupriianov wrote: > > Hi everyone! > > I'd start from a little story. On 3rd March a Reddit user itsmontoya, a > friend of mine, besides an ex-coworker, challenged me to do Go bindings for > the Vulkan API

Re: [go-nuts] Go 1.7 is released

2016-08-17 Thread Michael Banzon
"No test, no trust"? On Wed, Aug 17, 2016 at 1:17 AM Brad Fitzpatrick wrote: > We a phrase as catchy as "Pics or it didn't happen" for this. "Test or > it's not trustworthy"? Needs work. > > > On Tue, Aug 16, 2016 at 2:16 PM, Dave Cheney wrote: > >> Until it's part of the ./all.bash test suite,