[go-nuts] Go: Ten years and climbing

2017-09-21 Thread John Souvestre
Nice review by Rob Pike. https://commandcenter.blogspot.com/2017/09/go-ten-years-and-climbing.html John John Souvestre - New Orleans LA -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiv

Re: [go-nuts] golang and linking

2017-09-21 Thread Ian Lance Taylor
On Thu, Sep 21, 2017 at 3:25 PM, wrote: > Hi, I have a project which requires multiple --ldflags or -ldflags. I > noticed that go build only uses the last --ldflags of the commandline. Is > there a way to pass multiple --ldflags and have them all be in effect? Use -ldflags once, but pass multipl

[go-nuts] Re: Why is Shiny's text rendering quantizes to the pixel grid?

2017-09-21 Thread Nigel Tao
On Sat, Sep 16, 2017 at 2:26 AM, David Crawshaw wrote: > On Fri, Sep 15, 2017 at 7:35 AM, Elias Naur wrote: >> Is there a fundamental reason to quantize the baseline? The >> golang.org/x/image/font package offers (fixed point) subpixel accuracy, so >> why not use it? Is there a performance advant

[go-nuts] Re: Implementing a custom TCP client

2017-09-21 Thread Slawomir Pryczek
Hi, your problem is that you need message length to be embedded somewhere, preferable at the message beginning because otherwise >1 message could be merged into single packet and you won't know where it is supposed to end. Eg. if you send small messages 100 times, more messages will be merged in

Re: [go-nuts] golang and linking

2017-09-21 Thread Steven Hartland
Does quoting the flags work? On 21/09/2017 23:25, willow.pine.2...@gmail.com wrote: Hi, I have a project which requires multiple --ldflags or -ldflags. I noticed that go build only uses the last --ldflags of the commandline. Is there a way to pass multiple --ldflags and have them all be in effe

[go-nuts] golang and linking

2017-09-21 Thread willow . pine . 2011
Hi, I have a project which requires multiple --ldflags or -ldflags. I noticed that go build only uses the last --ldflags of the commandline. Is there a way to pass multiple --ldflags and have them all be in effect? Thanks. Will -- You received this message because you are subscribed to the

Re: [go-nuts] Guidance in naming.

2017-09-21 Thread Shawn Milochik
If you're asking if it's okay to use a name coincidentally used in another package, then of course it is. There are plenty of third-party packages that are meant to replace standard library packages and which even use the same name (especially logging). The only time you'll have a problem with it

[go-nuts] Re: Intel SGX from Go anyone?

2017-09-21 Thread nikilesh . work
Hi Hein. I found the following https://github.com/rupc/go-with-intel-sgx through simple google search . Thought you might be interested. Not sure if someone is actively working on this right now. It would be a good candidate for some testing activity to make sure it works. If it does, please l

[go-nuts] Guidance in naming.

2017-09-21 Thread M2
We have the same library in multiple languages. All the other languages name a specific class/struct fooContext. In Go that data structure stores some metadata to be propagated by the "context".Context? Is it ok to name it "fooContext" in Go also to stay consistent with the other languages even

Re: [go-nuts] Go on ARM 32bit and 64bit resources and groups

2017-09-21 Thread Norbert Fuhs
I don't have a chrome book but if its already already installed you should be able to install it like with any other Linux distro: Just follow https://golang.org/doc/install Download Go 1.9 ARM: https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz Then insde the the download folder

[go-nuts] Re: After Json unmarshaling big ints become floats

2017-09-21 Thread guoyunling . andy
maybe help for . https://golang.org/pkg/encoding/json/#Decoder.UseNumber 在 2013年8月22日星期四 UTC+8下午11:54:42,Nick Savchenko写道: > > Hi! > > Please, take a look: http://play.golang.org/p/B-gZoo3cTB > > Is there a way to have big ints as ints after unmarshaling json? > > Best Regards, > Nick > > > -- Y

[go-nuts] Re: Is there a way to DeepCopy or Clone a "object"

2017-09-21 Thread halin via golang-nuts
There's a bug here, namely when you're trying to copy slices. The following assertion will fail. var slice1, slice2 []*int slice1 = make([]*int, 0) Clone(slice1, &slice2) assert.Equal(slice1, slice2) On Sunday, May 1, 2011 at 10:32:06 AM UTC-7, Zhai wrote: > > I use Gob to Clone data,it's simpl

[go-nuts] Re: glog log rotate not working correctly

2017-09-21 Thread Tad Vizbaras
There is also library called lumberjack. It integrates nicely with standard library. quote: `Lumberjack is a Go package for writing logs to rolling files.` https://github.com/natefinch/lumberjack -- You received this message because you are subscribed to the Google Groups "golang-nuts" group

[go-nuts] Re: Golang, Google App Engine, Windows 10

2017-09-21 Thread Rob Shelby
Why would I use Cygwin over Bash For Windows? On Thursday, September 21, 2017 at 8:17:04 AM UTC-4, Rich wrote: > > As a Linux guy myself... Jet Brains makes an IDE for Windows, Linux and > Mac called Gogland that I find to be a very good IDE. If forced to use > Windows, I would install Cygwin

[go-nuts] Re: Golang, Google App Engine, Windows 10

2017-09-21 Thread Rich
As a Linux guy myself... Jet Brains makes an IDE for Windows, Linux and Mac called Gogland that I find to be a very good IDE. If forced to use Windows, I would install Cygwin which will give you a Linux shell environment. As for compiling, I run a mac and build binaries for Linux / Windows a

[go-nuts] Re: Golang, Google App Engine, Windows 10

2017-09-21 Thread Rich
As a Linux guy myself... Jet Brains makes an IDE for Windows, Linux and Mac called Gogland that I find to be a very good IDE. If forced to use Windows, I would install Cygwin which will give you a Linux shell environment. As for compiling, I run a mac and build binaries for Linux / Windows a

[go-nuts] Re: Question regarding compiler internals

2017-09-21 Thread anlhord
hello i've been adding single parametric functions to go to the gccgo compiler in c++. It works on linux http://tinyurl.com/ycyr3jyw to compile programs run /home/foo/Downloads/gccgo/bin/gccgo program.go -static-libgo a.out file shoud appear to run the proram: ./a.out here are some demo progra