Re: [go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-12 Thread Pat Farrell
On Thursday, October 12, 2017 at 8:31:52 PM UTC-4, Gerald wrote: > > The MSI is a Windows application, whereas apt-get would install the > Linux binary of go. > > WSL has you actually running Linux binaries on Windows unless you > specifically go and choose a Windows executable. > The MSI

Re: [go-nuts] Gomobile and SAF

2017-10-12 Thread Jakob Borg
On 12 Oct 2017, at 23:43, audrius.butkevic...@gmail.com wrote: > > Your example has a MainActivity.java. > As I said, this is a Go application, and as it stands it has no Java, so it > doesn't have (and doesn't intend to have) a main activity. > Also, your initialization

[go-nuts] Gomobile and SAF

2017-10-12 Thread Elias Naur
Hi, As I noted on the issue, you should avoid the reverse binding for now and use Go interfaces instead. The following change to the gomobile bind example demonstrates the technique: diff --git a/example/bind/android/app/src/main/java/org/golang/example/bind/MainActivity.java

Re: [go-nuts] [ANN] Frame - Plan9 libframe in Go

2017-10-12 Thread as
> does it cope with characters whose bounding boxes overlap I remember that being an issue with an older prototype of this library, specifically with runs of tightly grouped glyphs like `ff` and the GoRegular font. I haven't experienced any of the glitches from glyphs with overlapping

[go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-12 Thread Brian Ketelsen
WSL works perfectly well for Go development. It’s my primary dev environment Just treat it like Linux and you’ll be fine. -- 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

[go-nuts] Re: Speeding up a concurrent "simple" web server

2017-10-12 Thread Slawomir Pryczek
AB is using HTTP/1.0, so it isn't able to do keepalives and it may be the case that you're really benchmarking your TCP stack, instead of your webserver... as TCP connect is probably the bottleneck here :) Not sure how it works under the hood, but enabling tcp_reuse, and tcp_recycle might

Re: [go-nuts] Why go does't have NullInt type on database/sql?

2017-10-12 Thread Jan Mercl
On Thu, Oct 12, 2017 at 2:38 AM 高橋誠二 wrote: > There are NullInt64 and NullFloat64, but not about NullInt, NullFloat. (or NullInt32 etc...) > After scanning from rds, my team always convert them to int, but it seems so silly. That does not work accross architectures. > What

Re: [go-nuts] How to learn golang web development

2017-10-12 Thread Shawn Milochik
Start here: https://golang.org/doc/articles/wiki/ And, of course, familiarize yourself with the language here: https://tour.golang.org/welcome/1 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] Sync pool old data

2017-10-12 Thread 'Bryan Mills' via golang-nuts
On Wednesday, October 11, 2017 at 4:03:30 PM UTC-4, Ian Lance Taylor wrote: > > if the number of parallel operations does not vary > significantly, a freelist is a simpler and more effective technique. > A freelist might be simpler, but it isn't necessarily more effective. sync.Pool combines

[go-nuts] Cgo profiles and ExternalCode

2017-10-12 Thread andrey mirtchovski
Is there any way, an option or an argument, that would allow me to unwind the stack on the CGO side of a profile better? Right now I'm looking at stacks that unwind only the top function, see example. This happens on both linux and macOS. My other option is to link gperftools into the go binary,

[go-nuts] Re: Speeding up a concurrent "simple" web server

2017-10-12 Thread lee
That is good to know thanks. Just shows how different it is! On Thursday, October 12, 2017 at 1:03:37 PM UTC+1, Slawomir Pryczek wrote: > > AB is using HTTP/1.0, so it isn't able to do keepalives and it may be the > case that you're really benchmarking your TCP stack, instead of your >

Re: [go-nuts] Re: Building a neural net from scratch

2017-10-12 Thread Daniel Whitenack
Hi Alex, Thanks! Appreciate the kind words. Reach out any time if I can help with any of your use cases, answer questions, etc. Best, Daniel On Wed, Oct 11, 2017 at 10:33 PM, Alex Buchanan wrote: > I just happen to have read your "Common Go for Data Science Questions"

Re: [go-nuts] Cgo profiles and ExternalCode

2017-10-12 Thread andrey mirtchovski
Thanks, this helped and worked right off the bat. -- 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,

[go-nuts] Get method/function parameter types with reflect?

2017-10-12 Thread burpswangy
Is it possible to use the reflect package to get the parameter/function types for a specified method/function? -- 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

Re: [go-nuts] Get method/function parameter types with reflect?

2017-10-12 Thread Ian Lance Taylor
On Thu, Oct 12, 2017 at 3:03 PM, burpswangy wrote: > > Is it possible to use the reflect package to get the parameter/function > types for a specified method/function? I'm not sure precisely what you are asking, but the answer is probably yes. Start with something like

Re: [go-nuts] Get method/function parameter types with reflect?

2017-10-12 Thread Trig
Thank you! You lead me in the right direction. It was .In() and .Out() I was looking for. Appreciate it, Ian. On Thursday, October 12, 2017 at 6:12:41 PM UTC-5, Ian Lance Taylor wrote: > > On Thu, Oct 12, 2017 at 3:03 PM, burpswangy > wrote: > > > > Is it possible to

Re: [go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-12 Thread Gerald Henriksen
On Thu, 12 Oct 2017 00:03:41 -0400, you wrote: >Other than the file names, I'm not convinced that there is any actual >difference >between the go.exe you get with the MSI and the go binary that apt-get >installs There is a difference. The MSI is a Windows application, whereas apt-get would