Re: [go-nuts] Generics are overrated.

2017-07-28 Thread Henry
Generics is a non essential feature in that you can live without it. However, it is not without merits. Generics is a bridge to higher level expressions. If Go wants to add "modern" features in the future, it will stumble upon the need for generics in one way or another. While simple, code dup

[go-nuts] gopherjs files, writing, loading

2017-07-28 Thread forum
Since javascript in a browser is a local jail of sorts, what is the best way to save local files, write to them, load them? What even happens if you use go input/output and write to a file? I see that there are localStorage api bindings for gopherjs, so that project must have figured a way to s

[go-nuts] Re: 10x latency spikes during GC alloc assist phase

2017-07-28 Thread dkisman
Thanks a ton! We (at Laserlike) gave this a try and it basically cured our problem in one fell swoop. The GC cycles now take longer to run, especially under load, but memory growth isn't too bad. I know that Go's philosophy is not to add knobs to the GC, but there really needs to be a way to t

Re: [go-nuts] go get and protos (protoc; grpc)

2017-07-28 Thread Henrik Johansson
The consensus seems to be to generate and checking artefacts such as this. It does help with reproducibility and doesn't force the enduser to install all kinds of possibly weird tools. fre 28 juli 2017 kl 20:46 skrev 'Laurent Demailly' via golang-nuts < golang-nuts@googlegroups.com>: > This might

[go-nuts] gomobile example for audio?

2017-07-28 Thread Everton Marques
I could not find the example for golang.org/x/mobile/exp/audio/al. Is it currently functional? Any pointers? Everton -- 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] go get and protos (protoc; grpc)

2017-07-28 Thread 'Laurent Demailly' via golang-nuts
This might be a FAQ or just my newcomer to go lack of knowledge, please kindly point me in the direction if this is the case: Is there any way today or work in the future to make "go get" work with projects that have .proto files, without checking in the .pb.go generated file ? (ie have "go get

[go-nuts] Introduction to Gonum: Numerical libraries for Go

2017-07-28 Thread DrGo
Very nice, thanks -- 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 https://groups.google.com/d/o

[go-nuts] Worker pool library.

2017-07-28 Thread Bruno Albuquerque
I wrote something up for a personal project and I thought this might be useful to some of you: https://github.com/brunoga/workerpool This tries to simplify executing the same task of a set of items in parallel. It does all the expected stuff from this kind of library and also accepts a context wh

Re: [go-nuts] In memory compilation and execution of Go code

2017-07-28 Thread Cristian Adamo
OK, but what about to use the compiler and tune it to take a string instead of a file or something like that? Or compile a function in runtime? I look into https://github.com/cosmos72/gomacro and https://github.com/go-interpreter/ssainterp but seems to use reflection to create a class and are

Re: [go-nuts] Generics are overrated.

2017-07-28 Thread stuart
The build time issue is an artifact of C++ and templates. When generics were introduced to C# 2.0, they did do not negatively affect build times. On Friday, July 28, 2017 at 6:41:56 AM UTC-7, Robert Melton wrote: > > My primary concern about generics is they may significantly hurt build > times,

[go-nuts] Benchmarking and perfomance testing on udp servers

2017-07-28 Thread Fernando Alava Zambrano
Hi there, i'm a newbie Go developer right now i working on implemente a UDP server that receive packages from AVL devices. I need to test my server please any recommendations how to do it, internet has a lot information only about http

[go-nuts] Re: gopacket, libpcap timestamp precison

2017-07-28 Thread Chun Zhang
Thanks for your reply! But I was trying to measure the time difference between the SYN and SYN-ACK. Even though it may not be exactly accurate but getting packets out-of-order makes the whole idea moot. On Friday, July 28, 2017 at 2:26:28 AM UTC-4, feilengcui008 wrote: > > Not sure whether und

Re: [go-nuts] Generics are overrated.

2017-07-28 Thread Robert Melton
My primary concern about generics is they may significantly hurt build times, which coming from C++ I am rather sensitive about. Beyond that I am worried that they might end up NOT being an improvement over all the tools that have already popped up to handle this problem. There are a lot of wa

[go-nuts] Introduction to Gonum: Numerical libraries for Go

2017-07-28 Thread Brendan Tracey
Hi all, here are the slides for a talk I gave at the GopherCon community day. It provides a fast introduction to Gonum and our libraries, and provides some code examples. http://talks.godoc.org/github.com/gonum/talks/2017/gonumtour.slide#1 -- You received this message because you are subscribe

Re: [go-nuts] Generics are overrated.

2017-07-28 Thread Shawn Milochik
I programmed in about a dozen different languages before Go. None of them had generics. I use Go, love it, and never noticed anything missing when I write everything from command-line tools to complex servers. I've always been puzzled when people represented the lack of generics to be a flaw in Go,

[go-nuts] Re: Using nested vendor directories in go 1.7

2017-07-28 Thread marc . magnin
Hi, I'm getting the same error. Have you found any solution for this? Many thanks On Thursday, January 12, 2017 at 12:48:29 PM UTC+1, DM wrote: > > Just to check I also tried with go1.8rc1 build and modified my Makefile > like below:- > > .PHONY: deploy > > LOGLEVEL ?= 2 > GOFLAGS ?= $(GOFLAGS:

[go-nuts] Generics are overrated.

2017-07-28 Thread dogan . kurt
*Everything in this thread is my personal opinions, they are not necessarily the truth.* My main language was C for a decade. I also liked Python. When i started learning Go, it almost felt like i knew the language in another life. Everything was so obvious. CSP model of concurrency was new to

[go-nuts] pointer lifetime management ?

2017-07-28 Thread mhhcbon
Hi, in this silly code, with a very naive main, which i think is a small representation of some situations we might face irl on larger code base. https://play.golang.org/p/qv5ymHDzr2 Lets say the story of this code is, at first we needed to store values, then we discovered an allocation issue,

[go-nuts] Re: no.something seem like impossible,but it happens!!!!【 string 】causes the crash !!!!!!!!!!!!!!

2017-07-28 Thread 370265036
ok,i will try,thanks. 在 2017年7月27日星期四 UTC+8下午8:33:24,JuciÊ Andrade写道: > > 3702, I think you need to learn some fundamental concepts to better > understand the problem at hand. > > > Processors have more than one core. That means we have several threads > running simultaneously. To let more than