[go-nuts] http request blocked on futex .

2017-05-11 Thread Dave Cheney
Go programs are multi threaded, you should use the -f flag with strace to watch all threads servicing goroutines. -- 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

[go-nuts] http request blocked on futex .

2017-05-11 Thread yikang zhuo
hi all, iI write a simple golang program below and build a execute file. package main import ( "fmt" "io/ioutil" "net/http" "strings" ) func main() { data := "line=ls" // resp, err := http.Post("http://127.0.0.1:3202/run;, "application/x-www-form-urlencoded", resp, err :=

[go-nuts] Re: a productive simple conf loader

2017-05-11 Thread wanghuidev
Excellent On Friday, 28 April 2017 12:15:44 UTC+8, zsou...@gmail.com wrote: > > goconf > >- Read configuration automatically based on the given struct's field >name. >- Load configuration from multiple sources >- multiple file inherit > >

Re: [go-nuts] x/term: go-keycodes

2017-05-11 Thread Nigel Tao
On Fri, May 12, 2017 at 3:11 AM, anatoly techtonik wrote: > I am new to Go and I need a cross-platform value for keyboard key codes to > make sure I can react to user key presses regardless of operating system > layer. FYI, there's already the key.Code type defined in

[go-nuts] Re: Delve v1.0.0-rc.1 release

2017-05-11 Thread Derek Parker
Hey, Currently that is on our roadmap, but we do not have anybody committed to hacking on it. Ideally, either myself of my co-maintainer will have some time to tackle that, but we absolutely encourage help from the community for such a feature. If somebody would like to help with that work,

[go-nuts] Re: Go not available after installing via MSI on windows. Paths are configured

2017-05-11 Thread wcorbett36
Mcafee is deleting go.exe immediately I have worked around it but that was the issue. On Thursday, May 11, 2017 at 2:19:02 PM UTC-4, William Corbett wrote: > > hello, > > I installed on 64 bit windows via .msi and can get go to call in my > terminal. My paths are set and returning via echo.

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread mhhcbon
One more try : ) > I think what you're saying is that it's more natural and obvious that when > you have a function that changes something it would be more obvious and > simple if it actually did modify the thing you gave it. > That the receiver always act as a ref to a value stored

[go-nuts] Re: Delve v1.0.0-rc.1 release

2017-05-11 Thread cnhx27
Hi, When can we expect the release for 32 bit system ? -- 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

[go-nuts] Go not available after installing via MSI on windows. Paths are configured

2017-05-11 Thread wcorbett36
hello, I installed on 64 bit windows via .msi and can get go to call in my terminal. My paths are set and returning via echo. Thanks for advising, C:\Users\u390982 λ echo %GOROOT% C:\Go\ C:\Users\u390982 λ echo %GOPATH% %GOPATH% C:\Users\u390982 λ echo %PATH%

[go-nuts] Java to Golang converter

2017-05-11 Thread Dimitrios Trechas
Java has vast number of libraries. Good thing is Golang is catching up with its own style. There are cases though where there is no equivalent libraries ( PDF reading / writing, TIFF reading writing, Office File formats) There were a few attempts for Java to Go conversions but not complete

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread mhhcbon
I honestly don t know. Seems my example is OK for you, i really thought it was demonstrative of some confusion, seems not. If i m correct in following your understanding and comparisons, in those two cases, x := valueType{} > x.SetName("yo!") > fmt.Println(x.Name) > > y := {} >

[go-nuts] x/term: go-keycodes

2017-05-11 Thread anatoly techtonik
I am new to Go and I need a cross-platform value for keyboard key codes to make sure I can react to user key presses regardless of operating system layer. Thanks to the feedback from other projects, namely https://github.com/eiannone/keyboard and https://github.com/depp/keycode I was able to

[go-nuts] Re: Runtime code generation?

2017-05-11 Thread David Collier-Brown
I've doen generate-and-execute in C that way, at the cost of using LD_PRELOAD and having to restart the program. Go plugins should be better, as long as you don't have to drop one. Can you supercede one? It sort of looks like you could... If so, Go could do theequivalent of unload. --dave

Re: [go-nuts] would it be good a go runtime support both GC (garbage collection) and ARC (automatic reference counting)?

2017-05-11 Thread ojucie
Maybe a 100µs GC would be fast enough for you to be at easy with your game FPS. https://groups.google.com/forum/#!searchin/golang-dev/garbage$20collector$20microseconds%7Csort:relevance/golang-dev/Ab1sFeoZg_8/_DaL0E8fAwAJ On Friday, May 5, 2017 at 12:10:01 AM UTC-3, T L wrote: > > ARC would be

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread Chris Hopkins
I think what you're saying is that it's more natural and obvious that when you have a function that changes something it would be more obvious and simple if it actually did modify the thing you gave it. Having to jump through hoops to actually make the change you asked for stick is annoying.

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread Volker Dobler
On Thursday, 11 May 2017 12:39:18 UTC+2, mhh...@gmail.com wrote: > > > I d only remark about this, > > so there are actually just two cases: Method is on pointer receiver or > not. > > From the declarer side, > there is indeed only 2 cases, > which accounts for 50% of the whole, > declaration

Re: [go-nuts] Re: adding context.Context to new code

2017-05-11 Thread mhhcbon
thanks, ..integrating Context into the runtime.. 50% runtime, 50% syntax with explicit contextualization. ..The flow of request processing in Go may include multiple goroutines and may move across channels; yes big ? mark here. might the 50% of an handy and explicit syntax help with it?

Re: [go-nuts] strings and when to use them

2017-05-11 Thread Ilya Kostarev
On Wed, 10 May 2017 10:05:56 -0700 (PDT) Zachary Kaplan wrote: > can somebody please explain to me when a function > should to return a string as opposed to, say a []byte? thanks > Just a few examples. Strings can be keys in map[string]something, []byte can't be a key due

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread mhhcbon
Hi, thanks again! I m not the one to validate a perfect answer, i can simply tell that from my go learning and understanding, i agree top notch 200% no question there on this description, which is weird in fact. I d only remark about this, > so there are actually just two cases: Method is on

Re: [go-nuts] Re: adding context.Context to new code

2017-05-11 Thread Sameer Ajmani
I think you are asking whether we considered integrating Context into the runtime, so that it does not need to be passed explicitly. Yes, we discussed this, but decided against it. The flow of request processing in Go may include multiple goroutines and may move across channels; we decided an

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread Volker Dobler
On Thursday, 11 May 2017 11:28:33 UTC+2, mhh...@gmail.com wrote: > > //defined >> var x {} // put on heap >> var x T // put on stack >> >> This is definitely a misconception: Allocation on heap vs stack is >> totaly unrelated to value methods vs pointer methods. Both examples >> might be allocated

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread mhhcbon
to be honest, i m killed because i agree 100% with that explanation. I friendly scratch my head too because i m less interested by the implementation than by the packaging you put on it, and the effects that it produces on the end user, if i can say so. In that regards the explanation you

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread Chris Hopkins
> > > > In this code, > starting at 0, > is case 1 not an aberration, > is case 3 is useless > https://play.golang.org/p/VyOfZyt7rw > > Note case 0 is expected to fail and might be detected. > >> >> As a dumb hardware engineer I too have struggled with this in the past. 2 rules I find helped: 1)

[go-nuts] Re: why received can be defined with/without pointer?

2017-05-11 Thread mhhcbon
yeah i totally admit i don t master the subject at all, and i would prefer not have to talk about heap/stack thing, by incidence what, still, bugs me is on the intersection of many topics which make it difficult to talk about. thanks again for your attempts even though i lost you and, i guess,

Re: [go-nuts] Re: [ANN] scaffolder - web application servers to order

2017-05-11 Thread Simon Ritchie
> PS: i remember you talked about it earlier, shame i missed it at that time. I've given a couple of talks that mention the scaffolder. One was recorded for posterity. It was to the Linuxing in London meetup and it was about running Go on a single board computer. I used the scaffolder as an

[go-nuts] Re: [ANN] scaffolder - web application servers to order

2017-05-11 Thread mhhcbon
It s awesome, in my opinion, this is the way i want to consume go in the future. pragmatic, correct, fast, repeatable. in additions to what go provides, fast build, cross platform, easy to package Although, my very personal opinion, lets do smaller program that combines together, in the

Re: [go-nuts] Re: adding context.Context to new code

2017-05-11 Thread mhhcbon
Thanks a lot! Might i guess and try to generalize your explanations into "we tried to write a plumber for all cases possible" Which matters a lot, in my humble opinion. At least for the various reasons you put there, simply put, because it seems not technically achievable. Still i m happy you