[go-nuts] Re: Is it possible to bundle LuaJIT binary together with Go executable?

2016-11-08 Thread omarshariffdontlikeit
Not sure if you are specifically tied to LuaJIT, but I do remember seeing a native Go version of Lua recently, not sure if that can help. Ah, here it is: https://github.com/Shopify/go-lua On Tuesday, November 8, 2016 at 1:38:48 AM UTC, ChrisLu wrote: > > Hi, > > I am working on a project to star

[go-nuts] Bypassing grpc errors on Travis CI

2016-11-08 Thread Nyah Check
Hi Devs, Currently working a basic micro service application. I'm using the grpc package and I'm getting this error on Travis CI : go build google.golang.org/grpc/test: no buildable Go source files in /home/ travis/gopath/src/google.golang.or

[go-nuts] How to implement 2-factor-auth with x/crypto/ssh?

2016-11-08 Thread Jianfei Wang
I'm using the `x/crypto/ssh` package to implement a custom SSH server. I need to do 2 factor authentication: publickey and keyboard-interactive. However, it seems that I cannot make `ssh.ServerConfig` require both callbacks. The SSH handshake completes when any of the callback passes. What I

Re: [go-nuts] Question on cmd/asm

2016-11-08 Thread aindurti
That fixes it, sorry for the silly question. Thank you very much. On Tuesday, November 8, 2016 at 1:03:48 AM UTC-5, Ian Lance Taylor wrote: > > On Mon, Nov 7, 2016 at 8:58 PM, > wrote: > > I've been trying out Go's assembler, but I can't seem to get the most > basic > > program to compile. Fol

[go-nuts] Re: Concurrent SQL queries with PG

2016-11-08 Thread adonovan via golang-nuts
On Monday, 7 November 2016 19:54:35 UTC-5, Mandolyte wrote: > > Thanks for the quick response. and for your book - one of the best I've > ever purchased! > Thanks! Glad it was helpful. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubs

[go-nuts] CPU Profiling on Mac OS Sierra

2016-11-08 Thread bob . ziuchkovski
Hi, I am attempting to profile a Go application but keep getting empty pprof data with go 1.7.3 on Mac Sierra (package installer version from https://golang.org/dl). The profiling output exists, but the top10 output is meaningless. Profiling the same code on ubuntu 16.04 with go 1.7.3 return

[go-nuts] Implementation status of database/sql changes

2016-11-08 Thread mattn
Hi list. I put the Google Spreadsheet that indicate implementation status of database/sql changes. * Description of the changes https://docs.google.com/document/d/1F778e7ZSNiSmbju3jsEWzShcb8lIO4kDyfKDNm4PNd8/edit# * Implementation status https://docs.google.com/spreadsheets/d/1y7AzkFNPeTBado0xJ

[go-nuts] Problem with alpha blending using image/draw

2016-11-08 Thread jordan . stinson83
Hi, I'm trying to write out a png with an alpha component as a jpeg. As I understand it, I should be able to use the draw package to do this. // src is an image.RGBA newImg := image.NewRGBA(src.Bounds()) draw.Draw(newImg, newImg.Bounds(), &image.Uniform{color.White}, image.Poin

[go-nuts] CPU Profiling on Mac OS Sierra

2016-11-08 Thread rhys . hiltner
Try specifying the path to the binary as the second to last argument (see "go tool pprof -h"). On Linux as of Go 1.7, CPU profiles include information on what executables are mapped into memory. This allows the pprof tool to locate the binary. Raw CPU profiles taken on macOS don't include this

[go-nuts] Cloudstore default bucket name - data race?

2016-11-08 Thread krolaw
Hopefully someone can explain where my understanding of dataraces is wrong. As an example, I'd like to use the appengine cloudstorage example: https://cloud.google.com/appengine/docs/go/googlecloudstorageclient/app-engine-cloud-storage-sample#specifying_the_cloud_storage_bucket When a web reques

Re: [go-nuts] Problem with alpha blending using image/draw

2016-11-08 Thread Jordan Stinson
I realize that there isn't an alpha channel. My understanding is that the image/draw package would blend the colours according to the alpha value in the image and the blending equation. This site seems to suggest that it will work. On Tue, Nov 8, 2016 at 2:37 PM, Jonathan Wills wrote: > jpeg do

[go-nuts] Re: Cloudstore default bucket name - data race?

2016-11-08 Thread Greg Jones
You're not wrong, that code isn't a safe use of a package-level variable. On Tuesday, 8 November 2016 20:16:28 UTC, krolaw wrote: > > Hopefully someone can explain where my understanding of dataraces is wrong. > > As an example, I'd like to use the appengine cloudstorage example: > > https://clo

Re: [go-nuts] Problem with alpha blending using image/draw

2016-11-08 Thread Jordan Stinson
Sorry, this site: https://www.socketloop.com/tutorials/golang-convert-png-transparent-background-image-to-jpg-or-jpeg-image On Tue, Nov 8, 2016 at 3:24 PM, Jordan Stinson wrote: > I realize that there isn't an alpha channel. My understanding is that the > image/draw package would blend the colou

[go-nuts] CPU Profiling on Mac OS Sierra

2016-11-08 Thread Dave Cheney
http://talks.godoc.org/github.com/davecheney/high-performance-go-workshop/high-performance-go-workshop.slide#36 See also think linked issue at the bottom of the slide. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

Re: [go-nuts] Problem with alpha blending using image/draw

2016-11-08 Thread Nigel Tao
On Wed, Nov 9, 2016 at 4:14 AM, wrote: > I'm trying to write out a png with an alpha component as a jpeg. As I > understand it, I should be able to use the draw package to do this. > > // src is an image.RGBA > newImg := image.NewRGBA(src.Bounds()) > > draw.Draw(newImg, newImg.Bou

Re: [go-nuts] Problem with alpha blending using image/draw

2016-11-08 Thread Jonathan Wills
jpeg does not support transparency. On Tue, Nov 8, 2016 at 12:14 PM, wrote: > Hi, > > I'm trying to write out a png with an alpha component as a jpeg. As I > understand it, I should be able to use the draw package to do this. > > // src is an image.RGBA > newImg := image.NewRGBA(

Re: [go-nuts] Re: Cloudstore default bucket name - data race?

2016-11-08 Thread Chris Broadfoot
You're right, it's racy. I'll update the sample. file.DefaultBucketName will indeed return the same result every time (unless the default bucket is updated in the App Engine admin console). On Tue, Nov 8, 2016 at 12:40 PM, Greg Jones wrote: > You're not wrong, that code isn't a safe use of a p

[go-nuts] Re: Concurrent SQL queries with PG

2016-11-08 Thread Mandolyte
One of my worst case scenarios completed in less then 21 minutes. Very encouraging!! Suppose I opened two connections each running 10 threads, would I approach 10 minutes? I'll give this a try later this week. This is pretty exciting for me since I never seen this problem solved in less than *

[go-nuts] Videos from DotGo 2016

2016-11-08 Thread Pablo Rozas Larraondo
Does anyone know when videos from the DotGo 2016 conference are going to be made available? if they are... I can only find 3 of the talks at their news site. http://www.thedotpost.com/conference/dotgo-2016 I'm looking forward to watch Robert Griesemer's talk on prototyping multidimensional slices

[go-nuts] Re: CPU Profiling on Mac OS Sierra

2016-11-08 Thread bob . ziuchkovski
That explains it. Thank you very much for the info. I've confirmed that does indeed resolve the issue. Bob -- 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 gol

[go-nuts] Re: How to implement 2-factor-auth with x/crypto/ssh?

2016-11-08 Thread Jianfei Wang
I have to modify `x/crypto/ssh` to implement the PartialSuccess support. https://gist.github.com/thinxer/637acd43480174fede118704f27530a6 The above gist comes with two implementations. One is to add a callback, another is to add a PartialSuccess error flag. The former give more control to the u

[go-nuts] Re: Is it possible to bundle LuaJIT binary together with Go executable?

2016-11-08 Thread Jianfei Wang
You can try some LuaJIT bindings in Go, like https://github.com/aarzilli/golua. This will link a static LuaJIT build with your Go program so that you do not need the external binary. However, since cgo is involved, you have dependencies on libc and all LuaJIT dependencies then. On Tuesday, Nov

[go-nuts] Persistent http TLS connections despite timeout

2016-11-08 Thread Matt Joiner
All of the following goroutines have a corresponding file descriptor open. 515 @ 0x434c9a 0x4301d7 0x42f819 0x536fe8 0x537054 0x5387a7 0x54c0e0 0x5d5ed8 0x5d6444 0x5da116 0x691720 0x4fdd57 0x4fecbb 0x4feea7 0x61701f 0x616e1f 0x68b895 0x692afa 0x696d7a 0x460f61 # 0x42f818 net.runtime_pollWait+0x58

[go-nuts] Go vs. the rest

2016-11-08 Thread DrGo
https://arxiv.org/pdf/1409.0252.pdf A nice analysis showing that Go gets the balance of performance vs robustness right. Some aspects of the analysis are naive, like measuring productivity by numbers of lines. And this is using Go 1.3!! -- You received this message because you are subscribed