[go-nuts] December Blog Post Series

2016-12-02 Thread Damian Gryski
And my first post on writing assembly functions with PeachPy is up now: https://blog.gopheracademy.com/advent-2016/peachpy/ This is a quick introduction to a tool I've been using in some of my performance work recently. My favourite result so far is speeding up my HighwayHash implementation

[go-nuts] Re: Go 1.8 Beta 1 is released

2016-12-02 Thread mark
The last sentence under the Compiler Toolchain heading: > Compared to the previous release, Go 1.8 is about 15% faster . This would be a little more clear if it said something more like "Compared to the previous release,

[go-nuts] EasyProxy,make tcp proxy easy to use.

2016-12-02 Thread Xsank Mar
*EasyProxy* A simple proxy server. *Introduction* +--+ ++ | client |<+ || +--+ +>+-+<--->| server | |

Re: [go-nuts] Dynamic linking against individual golang standard libraries

2016-12-02 Thread Parker Evans
Alright, so I played around with this a bit. It would appear that I can actually get pretty far by just compiling the full standard library as shared and then compiling the individual packages one at a time in the proper order. What I am doing is captured in the program in this repository:

Re: [go-nuts] Downloading go1

2016-12-02 Thread Brad Fitzpatrick
Thanks! On Fri, Dec 2, 2016 at 4:53 PM, Will Norris wrote: > https://storage.googleapis.com/google-code-archive- > downloads/v2/code.google.com/go/go.go1.darwin-386.pkg > https://storage.googleapis.com/google-code-archive- >

Re: [go-nuts] Downloading go1

2016-12-02 Thread Will Norris
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/go/go.go1.darwin-386.pkg https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/go/go.go1.darwin-amd64.pkg

Re: [go-nuts] Downloading go1

2016-12-02 Thread Brad Fitzpatrick
I've asked for a list of our objects under that prefix. On Thu, Dec 1, 2016 at 1:56 PM, Edward Muller wrote: > For $reasons I need to download the original linux amd64 version of go1. > > Older go versions are stored under https://storage.googleapis. >

Re: [go-nuts] Is there a formal document explain the package search orders in Golang?

2016-12-02 Thread Ian Lance Taylor
On Fri, Dec 2, 2016 at 11:24 AM, gd wrote: > It looks, for the official compiler, if the main package is under GOPATH, > then the order is: > 1. the vendor folder > 2. the standard packages > 3. GOPATH folder > > If the main package is outsides of GOPATH, then the order is: >

[go-nuts] Re: database/sql and custom column types

2016-12-02 Thread scott
A quick aside regarding the code that you posted. Postgres (bizarrely, IMHO) stores longitude first, then latitude, so: return fmt.Sprintf("POINT(%v %v)", p.Lat, p.Lng) should be: return fmt.Sprintf("POINT(%v %v)", p.Lng, p.Lat) Thanks for sharing your code! On Tuesday, February 18, 2014

[go-nuts] Is there a formal document explain the package search orders in Golang?

2016-12-02 Thread gd
It looks, for the official compiler, if the main package is under GOPATH, then the order is: 1. the vendor folder 2. the standard packages 3. GOPATH folder If the main package is outsides of GOPATH, then the order is: 1. the standard packages 2. GOPATH folder the local vendor folder is totally

[go-nuts] [ANN] go-diff

2016-12-02 Thread Markus Zimmermann
Hi gophers! A while ago I took over maintainership of https://github.com/sergi/go-diff which is a package to diff, match and patch text. The original code is a port of Neil Fraser's google-diff-match-patch by Sergi Mansilla. I am almost finished with what I wanted to do when I started this,

[go-nuts] Re: go1.7.4 API check Fail

2016-12-02 Thread gocss
I applied latest updates to ubuntu 14.04 LTS but end with this error: (below) I also see https://github.com/golang/go/issues/18064 ... so I take it I can ignore TestLoadFixed Fail the thing that concerns me is that I don't see any Check API in the output from ./all.bash after running

[go-nuts] Re: Extending objects / methods

2016-12-02 Thread Slawomir Pryczek
Thanks for the post, yes basically i don't want to inherit old methods... the member approach would work for me but im thinking if that won't be slow, probably will do some tests... basically im trying to find some way of doing this without need of additional struct with just one member...

[go-nuts] go1.7.4 API check Fail

2016-12-02 Thread gocss
during ./all.bash # ../test # API check stat /csspc/etc/go/src/cmd/api/run.go: no such file or directory 2016/12/02 10:38:43 Failed: exit status 1 2016/12/02 10:38:43 FAILED root@csspc-base:/csspc/etc/go/src# is this a known issue? -- You received this message because you are

Re: [go-nuts] What about QNX golang support ?

2016-12-02 Thread Konstantin Khomoutov
On Fri, 2 Dec 2016 06:21:51 -0800 (PST) Yuriy Yarosh wrote: > So, I'm currently interested in using golang for a QNX based project, > but afaik there was no QNX port yet. > Is it even possible now ? There exists a document describing a policy of porting Go to a new

[go-nuts] Re: Extending objects / methods

2016-12-02 Thread paraiso . marc
> > The declared type does not inherit any methods > bound to the existing > type, but the method set of an > interface type or of elements of a composite type remains unchanged:

[go-nuts] Re: Run some extra setup on each test

2016-12-02 Thread paraiso . marc
You can use sub-tests https://blog.golang.org/subtests if you need to pass some data to a subtest you can use closures like func(data Data) func ( t *testing.T) { return func( t *testing.T) { print(data) } } If you need a more traditional setup/teardown fixture based test runner,

[go-nuts] Extending objects / methods

2016-12-02 Thread Slawomir Pryczek
Hi Guys, i want to make something like this type si struct { s *sync_task.Sync_task } func (this *si) Process() { ... some code here ... this.Process(); } Basically i want to extend object in another package... and this works. Now i'd just want to extend it without creating

[go-nuts] What about QNX golang support ?

2016-12-02 Thread Yuriy Yarosh
So, I'm currently interested in using golang for a QNX based project, but afaik there was no QNX port yet. Is it even possible now ? -- 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

[go-nuts] Re: GDB support for goroutines in core files

2016-12-02 Thread huangbaocheng66
Hello Aaron, have you figure it out yet? -- 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

[go-nuts] Run some extra setup on each test

2016-12-02 Thread Jérôme LAFORGE
Hello all, Do you know an elegant workaround that allows to execute extra setup on each test (kind of TestMain but for each test) ? If not, did you plan to add this kind of feature into next release of Go ? Thank in advance. BR Jérôme -- You received this message because you are subscribed to

Re: [go-nuts] Re: Inlining local functions

2016-12-02 Thread Michael Jones
go build –gcflags=-m will show you what is and is not inlined. This is not the structural answer you seek, but it is the factual result of it. From: on behalf of Date: Friday, December 2, 2016 at 2:58 AM To: golang-nuts

[go-nuts] Re: Inlining local functions

2016-12-02 Thread nsajko
On Friday, 2 December 2016 11:55:59 UTC+1, nsa...@gmail.com wrote: > > Is there a summary somewhere of the general rules determining when > do functions get inlined? > > Specifically, it should always be a good decision to inline a > function that is only called from one place in the code (that

[go-nuts] Inlining local functions

2016-12-02 Thread nsajko
Is there a summary somewhere of the general rules determining when do functions get inlined? Specifically, it should always be a good decision to inline a function that is only called from one place in the code (that is, a non-reused function). Do such (at least non-exported ones) functions get

Re: [go-nuts] Go 1.8 Beta 1 is released

2016-12-02 Thread Zlatko Čalušić
On 02.12.2016 11:09, minux wrote: On Fri, Dec 2, 2016 at 4:58 AM, Zlatko Čalušić > wrote: Hello, and thanks for another great Go release! I have just one question, and it's not specific to this beta, but all Go betas and

Re: [go-nuts] Go 1.8 Beta 1 is released

2016-12-02 Thread minux
On Fri, Dec 2, 2016 at 4:58 AM, Zlatko Čalušić wrote: > Hello, > > and thanks for another great Go release! > I have just one question, and it's not specific to this beta, but all Go > betas and rc-s. > > I compile Go from repository like this: > > cd

Re: [go-nuts] Go 1.8 Beta 1 is released

2016-12-02 Thread Zlatko Čalušić
Hello, and thanks for another great Go release! I have just one question, and it's not specific to this beta, but all Go betas and rc-s. I compile Go from repository like this: cd $HOME/src/go.googlesource.com/go git checkout -f master git clean -fdx git pull --ff-only git checkout -f

[go-nuts] go tool compile show error “main.go:3: can't find import: "fmt"”

2016-12-02 Thread jianfeng ye
my code like this: package main package main import "fmt" func f(q int) { fmt.Println(q) } func g(p int) int { var sum int for i := 0; i < p; i++ { sum = sum + i } f(sum) return sum } func main() { c := g(4) + 1 _ = c } and i use command: GOOS=linux GOARCH=amd64 go tool compile -S