[go-nuts] package net/http/pprof causes memory increase

2017-01-03 Thread Dave Cheney
Can you provide a runnable sample which shows the problem? How are you determining you are leaking memory? Can you please provide a sample of your application leaking memory with GODEBUG=gctrace=1 set. Note, you need to close (or stop, I cannot remember the exact syntax) a profile to release it

[go-nuts] package net/http/pprof causes memory increase

2017-01-03 Thread Hoping White
Hi, all I’m trying to use proof package to profile memory usage problem, and I found a strange phenomenon. Every time I profile, the res memory increase about 50m, and it doesn’t decrease anymore. Could this be a bug for proof package? -- You received this message because you are subscribed t

Re: [go-nuts] Re: Basic Web Authentication Question

2017-01-03 Thread Jonathan Yu
On Tue, Jan 3, 2017, 22:02 Henry wrote: > Hi, > > Thanks for the replies. I deleted the original post because I managed to > figure out what to do. There was a bug that stumped me and I thought I was > doing things wrong. Once the bug was fixed, it works okay. The example > posted by Sebastien is

Re: [go-nuts] Trace encoding - traceEv(String/Stack) deferred output always sent at tail of trace file leaving it incomplete until stopped.

2017-01-03 Thread Tarmigan
Hi Chris, I think that the parsing of the runtime trace information like you are describing is very interesting. I have been thinking about a similar continuous tracing and automatic anomaly detection for my application, but have not yet tried to implement anything, so your experience is helpful.

[go-nuts] Re: Basic Web Authentication Question

2017-01-03 Thread Henry
Hi, Thanks for the replies. I deleted the original post because I managed to figure out what to do. There was a bug that stumped me and I thought I was doing things wrong. Once the bug was fixed, it works okay. The example posted by Sebastien is very useful. Thanks! To answer edward's questio

Re: [go-nuts] Re: ANN: rosarygen 1.0

2017-01-03 Thread Michael Jones
Fantastic! Sadly rare are examples of technologists using technology to serve people's inner desires and expressed needs. Also far too rare are opportunities to have parents comprehend and enjoy our work. You scored on both points. Bravo. On Tue, Jan 3, 2017 at 5:47 PM Rick wrote: > You are a go

[go-nuts] Makefile for golang

2017-01-03 Thread Leopold Freeman
I'm developing several related go services right now. So I wrote the Makefile to manage them. Hopefully the project is also useful for you: https://github.com/leopoldfreeman/Golang-Makefile -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To uns

[go-nuts] Re: Beego with gomobile to ios and android Library

2017-01-03 Thread Jacen Tsao
Any suggestion is appreciate, Any body can do me a favoe? 在 2017年1月2日星期一 UTC+8上午3:14:33,Jacen Tsao写道: > > Hi, >Our team have a beego project now, and we build this project into > executable for android and windows. And then we use http to communicate > with the local server ,finally using go

[go-nuts] Re: ANN: rosarygen 1.0

2017-01-03 Thread Rick
You are a good son indeed! On Tuesday, 3 January 2017 16:36:25 UTC-8, howar...@gmail.com wrote: > > This will probably have a very narrow audience (intersection of > golang-nuts readers and Catholics), but may serve as an example of > functional audio-processing in Go. > > For those unaware, in

[go-nuts] ANN: rosarygen 1.0

2017-01-03 Thread howardcshaw
This will probably have a very narrow audience (intersection of golang-nuts readers and Catholics), but may serve as an example of functional audio-processing in Go. For those unaware, in the Catholic faith, the Rosary is a collection of prayers meant to be said while meditating, often with the

Re: [go-nuts] Re: What's the best IDE for golang?

2017-01-03 Thread Daniel
Atom with go-plus works great for me, the integrated debugger works well too. 1) multi-tabs code editing with documentation - http://i.imgur.com/wbJfD2I.png 2) debugger and linter messages - http://i.imgur.com/May8Ygo.png On Thu, Jan 28, 2016 at 2:31 AM, wrote: > Atom seconded. With the Git t

Fwd: [go-nuts] Re: ANN: zebrapack serialization, like gobs version 2

2017-01-03 Thread Jason E. Aten
Hi Seb, On Tue, Jan 3, 2017 at 7:23 AM, Seb Binet wrote: > Hi Jason, > > On Sun, Jan 1, 2017 at 4:44 PM, Jason E. Aten wrote: > >> On Monday, December 26, 2016 at 4:18:45 PM UTC-5, Jason E. Aten wrote: >>> >>> Announcing: next generation serialization in Go: >>> >>> https://github.com/glycerine

[go-nuts] Re: Streaming EME mp3?

2017-01-03 Thread Zellyn
I'm not sure this is relevant to golang-nuts. This article might be a good start though. On Tuesday, January 3, 2017 at 10:27:05 AM UTC-5, Darko Luketic wrote: > > We have a site with many mp3 files. > > And every now and then someone would h

[go-nuts] Re: What's the best IDE for golang?

2017-01-03 Thread Vinay Pai
Out of curiosity, what made you abandon GoClipse? On Monday, May 11, 2015 at 11:56:29 AM UTC-4, sesteel wrote: > > On Sunday, May 10, 2015 at 1:15:27 PM UTC-6, luke wrote: >> >> What's the best IDE for golang? >> > > As one of the original creators of GoClipse (originally called Nefarious > IDE),

[go-nuts] Re: Is it safe to call WaitGroup.Add concurrently from multiple go routines?

2017-01-03 Thread Vinay Pai
It is safe to call wg.Add fron multiple goroutines. The only caveat is that wg.Wait must be synchronized with the first wg.Add (which it is in your case because you call wg.Add(1) in the same goroutine as wg.Wait()). The go source code is very readable, and easily accessible from godoc. Here's

[go-nuts] Re: Where is the right place to start golang source code reading?

2017-01-03 Thread Vinay Pai
I think the net/rpc package is pretty elegant. You can easily implement an RPC server/client with just a few lines of code and it makes good use of key Go features like interfaces, channels, reflection. On Tuesday, January 3, 2017 at 8:30:20 AM UTC-5, Toshiki Inami wrote: > > Hi there. > > I've

Re: [go-nuts] Re: How has your company adopted Go ?

2017-01-03 Thread 'Eric Johnson' via golang-nuts
> On Jan 3, 2017, at 8:47 AM, Haddock wrote: > > I large organization where Java JEE architects are around bringing Go into > the game is almost impossible. Many architects have build up their careers on > application servers and EJBs without really understanding what that big big > hammer is n

[go-nuts] Re: How has your company adopted Go ?

2017-01-03 Thread Haddock
Man, great read! Thanks for sharing. You are working in a C++ setting where things are a bit different than in the Java world as what using Go in addition to the main language is concerned. Go is more in the spirit of C or C++ than Java. But nevertheless, Go can be a complement in the Java worl

[go-nuts] Re: How to close all existing connections on http server

2017-01-03 Thread James Bardin
Up until now you had to implement that yourself. In go1.8 the http.Server will have Close and Shutdown methods: - https://tip.golang.org/pkg/net/http/#Server.Close - https://tip.golang.org/pkg/net/http/#Server.Shutdown On Tuesday, January 3, 2017 at 10:52:29 AM UTC-5, laxman.v...@gmail.com w

[go-nuts] How to close all existing connections on http server

2017-01-03 Thread laxman . vallandas
Is there any way to close all the existing connections on http server?? -- 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.

[go-nuts] Streaming EME mp3?

2017-01-03 Thread Darko Luketic
We have a site with many mp3 files. And every now and then someone would have the smart idea to download our files and put them on Youtube for monetization purposes. I'd like to stop that. I read a bit about "Encrypted Media Extensions" aka browser drm. But I'm not sure how that is done on the

[go-nuts] How to initiate http close connection from server

2017-01-03 Thread laxman . vallandas
I have a scenario where server need to close the http connection with client upon receiving an internal event(eventIsSet is false). When the eventIsSet is true, I want to reopen the connection and start listening on same port. Here is the snippet of code that I was trying server := &ht

Re: [go-nuts] Where is the right place to start golang source code reading?

2017-01-03 Thread Ian Lance Taylor
On Mon, Jan 2, 2017 at 6:13 PM, Toshiki Inami <09c0...@gmail.com> wrote: > > I've heard so many times it’s a very good practice to read some source code > written by great programmers. > I just wonder where to start this. > > Which library should I dive in first? / Are there some techniques of > st

[go-nuts] Security Evaluation of the TLS cipher suites of the Go crypto package

2017-01-03 Thread hansizimmrer
Hello Everyone! For my current work, I created a minor security classification of the TLS cipher suites provided by the go crypto package [1]: Reasons for

Re: [go-nuts] Basic Web Authentication Question

2017-01-03 Thread Seb Binet
Henry, On Tue, Jan 3, 2017 at 4:12 AM, Henry wrote: > Hi, > > I have a question regarding a form-based authentication mechanism. Given > the following situation: > > 1. User lands on the login page and attempts to sign in. > 2. The server authenticates user and sets session cookie on the http >

[go-nuts] Re: Will tons of go timer dramatically decrease performance.

2017-01-03 Thread Михаил Стойков
I have to add that I had a problem with multiple sleeps (which creates a runtime.timer struct), because of the amount of newly generated structures to be collected on the next GC. Which is why https://github.com/ironsmile/nedomi/blob/master/utils/throttle/timers.go was wrote. Before this poo

[go-nuts] Re: What's the best IDE for golang?

2017-01-03 Thread houseduesccs
I'm using Visual Studio Code, it works great and it's cross platform across Win, Linux, and Mac which I like because I'm on all three O/Ses a lot and I don't want to fight my muscle memory switching editors. If there is one thing Microsoft can do it's make IDEs. On Sunday, May 10, 2015 at 12:1

[go-nuts] Re: Basic Web Authentication Question

2017-01-03 Thread houseduesccs
Are you building a single page app or a multi-page? Off topic but related: How you are sending your username/password? Are you relying solely on TLS, or do you also encrypt or hash your passwords on the client before sending them to your server code? Sorry to hijack your thread, but I'm sure yo

[go-nuts] Where is the right place to start golang source code reading?

2017-01-03 Thread Toshiki Inami
Hi there. I've heard so many times it’s a very good practice to read some source code written by great programmers. I just wonder where to start this. Which library should I dive in first? / Are there some techniques of studying existing codebase? I'm new to golang (Past experience: C11, Objec

Re: [go-nuts] UDP Broadcast

2017-01-03 Thread john
I'm very late to respond to this but it still seems to be a very minimal discussed topic. I am trying to bind to a specific Interface (i have 4 on my server) and cannot use 0.0.0.0. But when i try to use any other form of addr such as the enclosed 192.168.1.255 (class C) it runs but i never get

Re: [go-nuts] Re: ANN: zebrapack serialization, like gobs version 2

2017-01-03 Thread Seb Binet
Hi Jason, On Sun, Jan 1, 2017 at 4:44 PM, Jason E. Aten wrote: > On Monday, December 26, 2016 at 4:18:45 PM UTC-5, Jason E. Aten wrote: >> >> Announcing: next generation serialization in Go: >> >> https://github.com/glycerine/zebrapack >> > > Update: In addition to being friendly to many languag

[go-nuts] [JOB] Intermediate/Senior Developer at OneConfig

2017-01-03 Thread Charl Matthee
Hi, OneConfig is in the process of growing our technical team and looking for some intermediate/senior Go developers in Cape Town, South Africa. *About Us* At OneConfig we simplify the complicated and expensive processes around managing, monitoring and providing insightful reporting for Junos

[go-nuts] Re: What's the best IDE for golang?

2017-01-03 Thread Rich
For me... I was a LiteIDE fan until I saw VSCode and used that until I discovered IntelliJ IDEA. For my needs IntelliJ IDEA works the best and when I am on the command line, VIM with all the go extensions. On Sunday, May 10, 2015 at 3:15:27 PM UTC-4, luke wrote: > > What's the best IDE for gol

Re: [go-nuts] Re: How to use ~/ in terminal with go program?

2017-01-03 Thread Ian Davis
On Tue, 3 Jan 2017, at 09:45 AM, Aurélien Desbrières wrote: > Yes but how my software will run the day that this library disappear > because it is not native from golang.org? Vendor the library using Go's vendoring support. Then you will always have a copy of the code you need. -- You received

Re: [go-nuts] Re: How to use ~/ in terminal with go program?

2017-01-03 Thread Aurélien Desbrières
Yes but how my software will run the day that this library disappear because it is not native from golang.org? On Tuesday, January 3, 2017 at 9:00:27 AM UTC+1, Caleb Doxsey wrote: > > What's wrong with a library? > > This particular library is used by vagrant and dozens of other software > proje

Re: [go-nuts] Re: What's the best IDE for golang?

2017-01-03 Thread Dvir Volk
VSCode's golang extension has become very very good, and along with the editor itself being excellent, it's become my go-to IDE for Go (and C and Python), instead of LiteIDE. Atom is also decent for Go, but I find Atom in general to be a bit bloated and clunky. On Tue, Jan 3, 2017 at 3:09 AM João

Re: [go-nuts] Re: How to use ~/ in terminal with go program?

2017-01-03 Thread Caleb Doxsey
What's wrong with a library? This particular library is used by vagrant and dozens of other software projects, it's cross platform and handles all the edge cases. Never relying on 3rd party libraries is a very inefficient way to write software. Seems like even just copying the code would be mor