Re: [go-nuts] BuckHashSys growth

2016-11-29 Thread Levi Corcoran
Thanks much. Memory allocation does indeed appear 'spread out' as a result of some recursive function calls of varying depth that get called during serialization, and a variety of code paths that can trigger the serialization, at least after a quick skim through portions of very large /debug/p

Re: [go-nuts] BuckHashSys growth

2016-11-29 Thread Ian Lance Taylor
On Tue, Nov 29, 2016 at 6:57 PM, Levi Corcoran wrote: > > While investigating climbing memory usage for one of our services, I've > noticed a continual increase in the BuckHashSys metric from runtime.MemStats > ("bytes of memory in profiling bucket hash tables"), from 0 to ~2.5GB in the > span of

[go-nuts] BuckHashSys growth

2016-11-29 Thread Levi Corcoran
While investigating climbing memory usage for one of our services, I've noticed a continual increase in the BuckHashSys metric from runtime.MemStats ("bytes of memory in profiling bucket hash tables"), from 0 to ~2.5GB in the span of about 20 days, and no signs of stopping. This is an applicat

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread Mandolyte
Also https://github.com/cznic/wm... It actually implements an event driven model. There's a demo that's easy to see what it can do. -- 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,

[go-nuts] Large 2D slice performance question

2016-11-29 Thread Mandolyte
I have a fairly large 2D slice of strings, about 115M rows. These are (parent, child) pairs that, processed recursively, form a tree. I am "materializing" all possible trees as well as determining for each root node all child nodes for all levels for it. I am using the simple sort.Search() to l

Re: [go-nuts] runtime.GC - documentation

2016-11-29 Thread Rick Hudson
That is correct. On Tuesday, November 29, 2016, Josh Hoak wrote: > To clarify, the GC method has different behavior than how the background > garbage collector works. GC calls gcStart with blocking mode, whereas the > normal background garbage collector is called from proc.go >

Re: [go-nuts] runtime.GC - documentation

2016-11-29 Thread Josh Hoak
To clarify, the GC method has different behavior than how the background garbage collector works. GC calls gcStart with blocking mode, whereas the normal background garbage collector is called from proc.go and malloc.go

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread Seb Binet
FYI, you may also want to have a look at tcell: https://github.com/gdamore/tcell it was very easy to spin up a few tools with it. -s On Tue, Nov 29, 2016 at 9:42 PM, Egon wrote: > On Tuesday, 29 November 2016 20:37:55 UTC+2, bia...@gmail.com wrote: >> >> If you already knew theres an existin

Re: [go-nuts] Golang asm to real asm table/doc/tool

2016-11-29 Thread Aram Hăvărneanu
On Tue, Nov 29, 2016 at 8:59 PM, matt wrote: > Where in the source code does it map say MOVBU.P to ldrb post increment? It's complicated, there's no trivial easily-visible mapping (although for this one instruction the actual concrete mapping chosen is probably trivial), there's relatively comple

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread Egon
On Tuesday, 29 November 2016 20:37:55 UTC+2, bia...@gmail.com wrote: > > If you already knew theres an existing library, why write a new one? > It's a proof-of-concept not a library -- libraries take several magnitudes more effort. I've written, I guess 7+ different versions of UI libraries/pro

Re: [go-nuts] Golang asm to real asm table/doc/tool

2016-11-29 Thread matt
Aram, I've been using objdump as a workaround, but it's not very satisfying. Normally I have a reference (architecture manual) when programming in assembly. Where in the source code does it map say MOVBU.P to ldrb post increment? -- You received this message because you are subscribed to the Go

Re: [go-nuts] runtime.GC - documentation

2016-11-29 Thread Rick Hudson
The documentation is correct. The current runtime.GC() implementation invokes a Stop The World (STW) GC that completes before runtime.GC() returns. It is useful when doing benchmarking to avoid some of the non-determinism caused by the GC. On Tue, Nov 29, 2016 at 1:15 PM, Ian Lance Taylor wrot

Re: [go-nuts] Golang asm to real asm table/doc/tool

2016-11-29 Thread Aram Hăvărneanu
Hi Matt, There isn't any such document, but you can read the source code or use objdump. -- Aram Hăvărneanu -- 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] Golang asm to real asm table/doc/tool

2016-11-29 Thread matt
Is there a table/file/doc/tool to look up e.g. "MOVBU.P" as a real operation e.g. "ldrb (post increment)". Asked on twitter earlier, but here is probably more appropriate. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

[go-nuts] Re: Supervisor Golang app

2016-11-29 Thread Diego Medina
Hi, it isn't finding the actual binary of your go app. The binary could be in one of two places, if you run go install it goes to $GOPATH/bin which is /root/work/bin if you did go build, it is at the root of your project directory Hope that helps. On Tuesday, November 29, 2016 at 1:03:09

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread biatche
If you already knew theres an existing library, why write a new one? Self-challenge of some sort? :) It's really something though. On Wednesday, November 30, 2016 at 1:51:20 AM UTC+8, Egon wrote: > > On Tuesday, 29 November 2016 19:35:21 UTC+2, bia...@gmail.com wrote: >> >> Did you write that cod

Re: [go-nuts] runtime.GC - documentation

2016-11-29 Thread Ian Lance Taylor
[ +rlh, austin ] On Tue, Nov 29, 2016 at 7:29 AM, Carlos wrote: > Hi, > > > In https://golang.org/pkg/runtime/#GC it says: > >> It may also block the entire program. > > > Is this still correct? I understand that GC still pauses, but being under > 100us mark I wonder this affirmative still makes

Re: [go-nuts] Are Go locks/mutex not the same as ordinary locks/mutexes?

2016-11-29 Thread Ian Lance Taylor
On Tue, Nov 29, 2016 at 9:51 AM, Roger Alsing wrote: > Coming from C++/C# background where locks/mutexes are considered evil due to > blocking threads. > Due to how the Go goroutine scheduler works, are the Go counterpart of those > primitives "different"? > > Should I see the Go variants of these

[go-nuts] Processing Images with baked data

2016-11-29 Thread khalil . claybon
I know there is an image package that exist in Golang that implements encode and decode functionality, but how can I get other data from an image?. For example I am trying to get iTXt chunks from PNG images, is there any way I can do this? -- You received this message because you are subscribe

[go-nuts] Supervisor Golang app

2016-11-29 Thread gnikosn
Hi my environment variables are : GOPATH="/root/work" GOROOT="/usr/local/go" and my supervisor of my app are : [program:appname] command=/work/bin/appname autostart=true autorestart=true startretries=10 user=appname directory=/src/appname redirect_stderr=true stdout_logfile=/var/log/

[go-nuts] zb - an opinionated repo based tool for working with go

2016-11-29 Thread Joshua Rubin
Hi All, I've been working on a new tool to help with some of the challenges we've had working with repositories that contain multiple packages. It has turned into a useful tool that has replaced my use of the go command for many things. https://github.com/joshuarubin/zb *Benefits* - Faste

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread Egon
On Tuesday, 29 November 2016 19:35:21 UTC+2, bia...@gmail.com wrote: > > Did you write that code just for this thread? > Yeah, had 2hrs of fun with it :) > I really appreciate it. That gives me options. It runs and its possible > for me to setup something based on this. > > On Tuesday, Novemb

[go-nuts] Are Go locks/mutex not the same as ordinary locks/mutexes?

2016-11-29 Thread Roger Alsing
Coming from C++/C# background where locks/mutexes are considered evil due to blocking threads. Due to how the Go goroutine scheduler works, are the Go counterpart of those primitives "different"? Should I see the Go variants of these primitives more like yield points where the execution of a go

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread biatche
Did you write that code just for this thread? I really appreciate it. That gives me options. It runs and its possible for me to setup something based on this. On Tuesday, November 29, 2016 at 11:10:44 PM UTC+8, Egon wrote: > > On Tuesday, 29 November 2016 14:03:13 UTC+2, Ronny Bangsund wrote: >>

[go-nuts] Re: Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread vanmulders1992
I've changed my code to use a normal POST request not using sendgrid libraries and that worked fine. Should have tried that sooner! On Tuesday, 29 November 2016 12:08:08 UTC-5, Tamás Gulácsi wrote: > > It seems that customClient.Do needs a http.Request, not your Request > (what's that?) > > ```

[go-nuts] Re: Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread Tamás Gulácsi
It seems that customClient.Do needs a http.Request, not your Request (what's that?) ``` request, err := http.NewRequest("POST", "https://api.sendgrid/com/v3/mail/send";, strings.NewReader(` { "personalizations": [ { "to": [ {

[go-nuts] Re: POST multipart/form-data failing when boundary contains equals

2016-11-29 Thread floweredisland
I think I already found the answer here https://github.com/golang/go/issues/8532 -- 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...@googlegr

[go-nuts] runtime.GC - documentation

2016-11-29 Thread Carlos
Hi, In https://golang.org/pkg/runtime/#GC it says: It may also block the entire program. > Is this still correct? I understand that GC still pauses, but being under 100us mark I wonder this affirmative still makes sense. All in all, if it does block, it will block no longer than 100us. -

[go-nuts] Shape detection and perspective transforms

2016-11-29 Thread j . arpino
Hi All, I wonder if anyone out there can help me. I am looking to write some code that will open an image and detect a rectangle in that image. The rectangle may be a little skewed due to the camera angle/perspective so ideally a transform of the image to fix this is ideal. I found some op

[go-nuts] POST multipart/form-data failing when boundary contains equals

2016-11-29 Thread floweredisland
If I try to parse a POST body request with Content-Type header set as multipart/form-data; boundary1423874274=== with the string ===1423874274=== set as a boundary, doing a net/hhtp ParseMultipartForm or trying to parse the content-type header with a mime ParseMediaType both give the "mime

[go-nuts] How to properly load assets in Golang+Gopherjs?

2016-11-29 Thread Omar Mustardo
I've been learning how to do opengl/webgl graphics in Golang using https://github.com/goxjs/ It has conditional compilation so it can be compiled and run on either desktop as usual, or with gopherjs for web. Most recently, I've made a spinning cube demo: https://omustardo.github.io/textured-cub

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-29 Thread nwjlyons via golang-nuts
Just don't moderate it. No need to go nuclear. On Thursday, 24 November 2016 23:53:32 UTC, bradfitz wrote: > > In light of the CEO of Reddit admitting to editing user comments (see > dozen news stories today), I propose we delete the /r/golang subreddit. > > That is so beyond unethical and immatu

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread Egon
On Tuesday, 29 November 2016 14:03:13 UTC+2, Ronny Bangsund wrote: > > > > On Tuesday, November 29, 2016 at 7:11:57 AM UTC+1, bia...@gmail.com wrote: >> >> I've been wondering how I should setup input fields. should termbox >> be responsible for it? or termui as you suggested (this seems more

[go-nuts] Re: Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread vanmulders1992
I tried &request which gave me cannot use &request (type*Request) as type*http.Request in argument to customClient.Do On Monday, 28 November 2016 19:46:35 UTC-5, vanmuld...@gmail.com wrote: > > I'm running my API backend in Go on App Engine > > When a user creates an account, he gets sent an a

[go-nuts] Re: Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread Val
Hi, note that there also exist a specialized group "google-appengine-go" : https://groups.google.com/forum/#!forum/google-appengine-go Tamás' answer looks good, good luck On Tuesday, November 29, 2016 at 1:46:35 AM UTC+1, vanmuld...@gmail.com wrote: > > I'm running my API backend in Go on App En

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread Ronny Bangsund
On Tuesday, November 29, 2016 at 7:11:57 AM UTC+1, bia...@gmail.com wrote: > > I've been wondering how I should setup input fields. should termbox be > responsible for it? or termui as you suggested (this seems more for > monitoring...) or even gocui? > I've tested termui and GOCUI extens

Re: [go-nuts] Re: sharing "go runtime VM" for many go application

2016-11-29 Thread Dave Cheney
I'm was only considering the case where a plugin could access the memory of something it wasn't supposed to. On Tue, 29 Nov 2016, 20:35 Konstantin Khomoutov < flatw...@users.sourceforge.net> wrote: > On Tue, 29 Nov 2016 01:14:40 -0800 (PST) > Dave Cheney wrote: > > > > All the plugins will be s

Re: [go-nuts] Re: sharing "go runtime VM" for many go application

2016-11-29 Thread Konstantin Khomoutov
On Tue, 29 Nov 2016 01:14:40 -0800 (PST) Dave Cheney wrote: > > All the plugins will be sharing the same memory with no control > > stopping one from accessing the memory and resources of another. > > Furthermore you wont' be able to unload or reload an > > "application" (plugin). > > This may

[go-nuts] Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread Tamás Gulácsi
customClient.Do(&request) -- 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, visit https://groups.google.

[go-nuts] Re: sharing "go runtime VM" for many go application

2016-11-29 Thread Dave Cheney
> All the plugins will be sharing the same memory with no control stopping one > from accessing the memory and resources of another. Furthermore you wont' be > able to unload or reload an "application" (plugin). This may not be correct. Assuming that they plugin does not use the unsafe paxkag

[go-nuts] Re: sharing "go runtime VM" for many go application

2016-11-29 Thread Jason Stillwell
If your talking about creating a Golang Application Server, where multiple unrelated goroutines are running together, and loaded seperately as well. This is possible, I suppose, using the new v1.8 plugin architecture. You could have the managing central main goroutine load the plugins on demand,

[go-nuts] Re: sharing "go runtime VM" for many go application

2016-11-29 Thread Thaniyarasu Kannusamy
Thanks for you reply -- 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, visit https://groups.google.com/d

Re: [go-nuts] sharing "go runtime VM" for many go application

2016-11-29 Thread Konstantin Khomoutov
On Mon, 28 Nov 2016 21:45:16 -0800 (PST) Thaniyarasu Kannusamy wrote: > we all knows that sharing "Linux Kernel" is possible in container > world. i also want to know further that, > is sharing "Go Runtime VM" is possible in anyway ? > so we can able to share a common "Go Runtime VM" for many go

[go-nuts] Re: Bloom filter

2016-11-29 Thread Stanislav Paskalev
Hi xrfang, Myself and a friend recently wrote https://github.com/solarsea/quorum for a hackaton as a proof of concept whether bloom filters can be used as the basis for an anonymous voting system. The project includes a floom filter implementation (tweaked to show accumulated conflicts) and has

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-29 Thread Dan Mullineux
I completely agree with Brad on this. I also closed my account the day it happened. -- 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...@goog