Re: [go-nuts] Tail call optimization

2018-03-27 Thread Linker Lin
become +1 TCO is very important for porting other FP lang to Go. On Monday, February 14, 2011 at 4:25:24 AM UTC+8, Eoghan Sherry wrote: > > On 13 February 2011 08:51, chris dollin > wrote: > > On 13 February 2011 10:34, Erwin > > wrote: > >>> > >>> There are no such plans for gc (6g, 5g, 8g). >

Re: [go-nuts] Modifying AST and preserving comments

2018-03-27 Thread Fatih Arslan
Best way I found is to print the whole file and then substract the parts you're interested. The reason for that is that comments are two fold. Some of the comments are part of the node, some of them are part of *ast.File (also called lossy comments). If you just print the node, you'll don't get the

[go-nuts] Re: Mac OS Bluetooth Gamepad

2018-03-27 Thread Egon
Usually controllers don't speak directly to your application nor browser. Usually there is a driver that the controller has, this talks with the appropriate protocol to the device. The driver itself provides some common HID api that the OS has specified. The reading and writing the input is eff

[go-nuts] Re: Mac OS Bluetooth Gamepad

2018-03-27 Thread Egon
Ah, just noticed the Mac part... https://github.com/glfw/glfw/blob/master/src/cocoa_joystick.m Also Chromium source for the Gamepad implementation: https://cs.chromium.org/chromium/src/device/gamepad/?q=gamepad&sq=package:chromium&dr Unfortunately I didn't notice a Go gamepad implementation for

Fwd: [go-nuts] Fixing the version of protoc-gen-go

2018-03-27 Thread Stephan Renatus
Hi Amit, have you tried this? go install ./vendor/github.com/golang/protobuf/protoc-gen-go Also note that you might have to add a required statement to Gopkg.toml to avoid having the binary's code pruned, see https://github.com/golang/dep/ blob/master/docs/Gopkg.toml.md#package-graph-rules-requi

[go-nuts] Re: Mac OS Bluetooth Gamepad

2018-03-27 Thread Zellyn
Thanks for the pointers. I spent some time last night finding the gamepad code in the Chromium sources, although I haven't had a chance to really read it properly. It makes sense that you'd read against some kind of OS-specific abstraction, but I was curious what it was because I don't see any

Re: [go-nuts] Tail call optimization

2018-03-27 Thread Ian Lance Taylor
On Tue, Mar 27, 2018 at 12:05 AM, Linker Lin wrote: > become +1 > TCO is very important for porting other FP lang to Go. This is https://golang.org/issue/22624. Ian > On Monday, February 14, 2011 at 4:25:24 AM UTC+8, Eoghan Sherry wrote: >> >> On 13 February 2011 08:51, chris dollin wrote: >>

[go-nuts] Re: Mac OS Bluetooth Gamepad

2018-03-27 Thread Egon
https://developer.apple.com/library/content/documentation/ServicesDiscovery/Conceptual/GameControllerPG/Introduction/Introduction.html https://developer.apple.com/documentation/gamecontroller I have no idea why they don't include some Gamepad thing in the settings panel. On Tuesday, 27 March 20

[go-nuts] [ANN] github release notes builder, based on PR history

2018-03-27 Thread Alex Buchanan
I created a simple utility to build release notes based on github pull request history, if anyone finds it useful: https://github.com/buchanae/github-release-notes Example results: https://github.com/ohsu-comp-bio/funnel/releases/tag/0.6.0 Cheers. -- You received this message because you are

[go-nuts] Re: vertical search engine go concurrency

2018-03-27 Thread Drew Derbyshire
As Andre noted, I don't think you have provided sufficient information. I'd go further: *Stop*, Determine what you (and your developer) need to know. Decide what you want, and write a specification. If you have to ask "specification for what", make a list what you don't know. Does the speci

[go-nuts] Re: gRPC golang server and client testing

2018-03-27 Thread kun
You may want to have a look at this link: https://github.com/grpc/grpc-go/blob/master/Documentation/gomock-example.md On Saturday, April 23, 2016 at 12:31:19 PM UTC-7, Sankar wrote: > > Hi > > I have a .proto file which I ran with protoc to generate the _pb.go file. > I then wrote a server and a

[go-nuts] [JOB] Platform Engineer openings @ Lytics

2018-03-27 Thread aimeelevensconsulting
Hi all! I'm hiring a couple of Engineers to join the platform team at Lytics in downtown Portland - while the team uses Go, experience is not required in Go for the positions, just some backend experience and an interest in working in distributed systems. Best of all we're hiring at all levels,

[go-nuts] Re: vertical search engine go concurrency

2018-03-27 Thread Chris Sahm
This certainly helps me think about the problem/solution better. Thank you! On Monday, March 26, 2018 at 4:50:01 PM UTC-7, Andre Scholtz wrote: > > Hi Chris, > > I am not sure that you have provided sufficient information for a good > response. The performance of your search will depend a lot mor

[go-nuts] Re: vertical search engine go concurrency

2018-03-27 Thread Chris Sahm
I suspect I'm going to learn a lot about what not to do through this experience. Really, I just wanted to know if golang's concurrency features could be used to make search faster in this vaguely defined scenario and maybe if it makes sense to. The latter part of the question will be determined

[go-nuts] Re: Mac OS Bluetooth Gamepad

2018-03-27 Thread Fino
it's all about each OS' API; for Windows, u need to find the Win32 API which can read the hardware's data out. Go can call the API via syscall, or load the DLL in your app. BR fino -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscr