Re: [go-nuts] corrupt stack?

2017-12-03 Thread quanstro
a program not using unsafe cannot set a pointer to -1, even if there is a race, right? - erik On Sunday, December 3, 2017 at 10:20:44 PM UTC-8, Jan Mercl wrote: > > On Mon, Dec 4, 2017 at 7:03 AM wrote: > > > does anyone have any idea what's going on here, or some hints on

Re: [go-nuts] corrupt stack?

2017-12-03 Thread Jan Mercl
On Mon, Dec 4, 2017 at 7:03 AM wrote: > does anyone have any idea what's going on here, or some hints on debugging this? What does the race detector say? -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

Re: [go-nuts] Elphaba Chess

2017-12-03 Thread Ian Lance Taylor
I don't think that this is a productive thread. I'll just make a few points for the record. On Sun, Dec 3, 2017 at 8:07 PM, wrote: > > Did Go or Rust come first? Graydon started working on Rust first, but Go was announced publicly first. At the time that the Go

[go-nuts] corrupt stack?

2017-12-03 Thread quanstro
i'm running go 1.8.3 on linux. about 1 in ~10 billion calls (spread across many machines), i get a backtrace that looks like the following: panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x4c3406] goroutine

[go-nuts] Re: Should an empty append be an error ?

2017-12-03 Thread Dave Cheney
But why, should x = x Also be a compilation error? This sort of think is best left to linters. -- 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

Re: [go-nuts] Elphaba Chess

2017-12-03 Thread hughaguilar96
On Saturday, December 2, 2017 at 11:57:58 PM UTC-7, Ian Lance Taylor wrote: > > On Sat, Dec 2, 2017 at 11:37 AM, > wrote: > > > > Google is not going to be happy if somebody uses Go to compete against > > Google. > > I think that Go is a nice language, but it's not

Re: [go-nuts] Re: Elphaba Chess

2017-12-03 Thread hughaguilar96
On Saturday, December 2, 2017 at 9:06:54 PM UTC-7, as wrote: > > Transitive property abused for emphasis. > >> >>> On Friday, November 24, 2017 at 7:23:06 PM UTC-8, Hugh Aguilar wrote: My ultimate goal with Go is to write a program to "understand" the Ido language, at least

Re: [go-nuts] Elphaba Chess

2017-12-03 Thread hughaguilar96
On Saturday, December 2, 2017 at 12:50:11 PM UTC-7, Jan Mercl wrote: > > > On Sat, Dec 2, 2017, 20:38 wrote: > >> >> Google is not going to be happy if somebody uses Go to compete against >> Google. >> > > This is where I stopped considering any of your future posts

[go-nuts] Re: about golang escape analysis

2017-12-03 Thread 刘桂祥
very very thanks! cannot inline copyIface1: has ... args from *a[0].(string) (indirection) key escapes to heap 在 2017年12月3日星期日 UTC+8下午4:08:41,Dave Cheney写道: > > Add -gcflags=“-m -m” will tell you. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Re: Should an empty append be an error ?

2017-12-03 Thread nz
My point is that it should give an error or refuse to compile. On Sunday, 3 December 2017 15:10:42 UTC-8, Dave Cheney wrote: > > What is the error? This construct seems harmless. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Should an empty append be an error ?

2017-12-03 Thread Dave Cheney
What is the error? This construct seems harmless. -- 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,

[go-nuts] Should an empty append be an error ?

2017-12-03 Thread nz
Go catches a bunch of simple programming errors like unused variables, imports etc. Should it not catch bad appends like this ? foo := []string{} foo = append(foo) I understand the signature of the append function is ([]any, on_or_more ...) which allows the compiler to build it - but such a

Re: [go-nuts] Elphaba Chess

2017-12-03 Thread Filip Zaludek
https://chessprogramming.wikispaces.com -- 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] swagger

2017-12-03 Thread Keith Brown
I am trying to use golang and swagger but I am confused on what package I should use: There is: https://github.com/go-swagger/go-swagger or https://github.com/yvasiyarov/swagger Does anyone use Swagger with go and any tips would be much appreciated. -- You received this message because you

Re: [go-nuts] Elphaba Chess

2017-12-03 Thread Gerald Henriksen
On Sat, 2 Dec 2017 11:37:46 -0800 (PST), you wrote: >Google is not going to be happy if somebody uses Go to compete against >Google. AFAIK, most if not all of Google's money comes from selling >advertising on their >search-engine. Another view - Google search only works because people /

Re: [go-nuts] The "declared and not used" error

2017-12-03 Thread Inanc Gumus
Hey, btw, you don't need a blank-identifier there, simply type: package main func main() { println("Hello world") for range [3]int{} { println("Yay") } } On Monday, December 19, 2011 at 1:18:33 AM UTC+3, Christoffer Hallas wrote: > > I have a hard time understand people who complain about this.

[go-nuts] Re: Dangers of package renaming

2017-12-03 Thread Jonathan Hall
Thanks for the reply. Those are some good considerations. I'm not excited about retaining a "stub" package in the old location. I'd rather that just redirect, rather than creating two packages. The two-package approach may solve a short-term pain, but I fear it may increase long-term

[go-nuts] about golang escape analysis

2017-12-03 Thread Dave Cheney
Add -gcflags=“-m -m” will tell you. -- 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