[go-nuts] Re: problems receiving data from a GPS

2016-07-17 Thread Egon
What is the difference in the data that you receive? On Monday, 18 July 2016 05:42:36 UTC+3, EdgarAlejandro Vintimilla wrote: > > now I have this, but still not the correct results > > package main > > import ( > "fmt" > "net" > "os" > //"strconv" > //"bytes" > //"io/ioutil" >

Re: [go-nuts] scheduling non determinism

2016-07-17 Thread Scott Cotton
Hi Ian, 2016-07-18 0:33 GMT+02:00 Ian Lance Taylor : > On Sun, Jul 17, 2016 at 9:25 AM, Scott Cotton wrote: > > > > I'm well aware of the benefits of non-deterministic select for many use > > cases, I don't contest that at all or the decision to have it part of > > golang. > > > > A clear and co

Re: [go-nuts] TLSUnique in tls.ConnectionState

2016-07-17 Thread Anmol Sethi
I understand now. Thank you very much. > On Jul 18, 2016, at 12:17 AM, Sam Whited wrote: > > On Sat, Jul 16, 2016 at 6:33 PM, Anmol Sethi wrote: >> I noticed the TLSUnique field of tls.ConnectionState. >> >> https://golang.org/pkg/crypto/tls/#ConnectionState >> >> I tried to read RFC 5056 and

Re: [go-nuts] TLSUnique in tls.ConnectionState

2016-07-17 Thread Sam Whited
On Sat, Jul 16, 2016 at 6:33 PM, Anmol Sethi wrote: > I noticed the TLSUnique field of tls.ConnectionState. > > https://golang.org/pkg/crypto/tls/#ConnectionState > > I tried to read RFC 5056 and 5929 but I still do not understand its purpose. > > What exactly does it accomplish? Why would we want

[go-nuts] [ANN] treqs: HTTP request tracing

2016-07-17 Thread Ben Burkert
Hi Gophers, I've put together a small package for tracing individual HTTP requests with runtime/trace. docs: https://godoc.org/github.com/benburkert/treqs repo: https://github.com/benburkert/treqs Cheers, -Ben -- You received this message because you are subscribed to the Google Groups "golan

[go-nuts] Re: Did you try 1.7RC1 ?

2016-07-17 Thread Karan Misra
I cannot wait for Go 1.7 to land in AppEngine! After AppEngine switched to 1.6 (from 1.4), the compilation speed have slowed down significantly. And this definitely reflects in our dev habits (more flipping over to HN while we wait for the recompilation to happen.) Hopefully, the 1.7 updates lan

[go-nuts] Re: TCP Server

2016-07-17 Thread EdgarAlejandro Vintimilla
yes, I have developed several things but no big ones In my work are selling this products http://www.sinocastel.com/product/ , but the admin panel to see the data of the trackers is not good so we are going to develop one. these trackers send me the data by TCP and it need a static IP, app en

[go-nuts] Re: problems receiving data from a GPS

2016-07-17 Thread EdgarAlejandro Vintimilla
now I have this, but still not the correct results package main import ( "fmt" "net" "os" //"strconv" //"bytes" //"io/ioutil" //"net/http" "reflect" //"strings" ) const ( CONN_HOST = "" CONN_PORT = "" CONN_TYPE = "tcp" ) func main() { // Listen fo

[go-nuts] Re: An efficient runtime expression evaluation

2016-07-17 Thread ondrej . kokes
Cheers, I tried replicating my endeavours (https://play.golang.org/p/Qxoo2ASac6), sorry if it's still too verbose. It's essentially rewriting the inbuilt ast.Node into a simpler nested struct and then walking it. In testing the performance, I started adding algebraic expressions, which make my

Re: [go-nuts] Re: Strange results from append

2016-07-17 Thread Dan Kortschak
On Sun, 2016-07-17 at 09:09 -0700, Evan Digby wrote: > For now the solution is to explicitly make copies, which was the desired > result in the first place. > > The code I posted earlier works as desired. You don't need to make explicit copies. If you use three index slicing, you get the behavio

Re: [go-nuts] pprof where is my time going

2016-07-17 Thread Ian Lance Taylor
On Sun, Jul 17, 2016 at 11:00 AM, ajay aggarwal wrote: > > I am trying to analyze why I am getting low throughput for my app. Below is > the 30 second CPU profile output. I would expect more time spent in net/http > serve. Not sure if runtime.mcall and runtime.schedule taking almost 1/4th of > the

Re: [go-nuts] scheduling non determinism

2016-07-17 Thread Ian Lance Taylor
On Sun, Jul 17, 2016 at 9:25 AM, Scott Cotton wrote: > > I'm well aware of the benefits of non-deterministic select for many use > cases, I don't contest that at all or the decision to have it part of > golang. > > A clear and concrete problem is the following: The sat solver competition > at sat

[go-nuts] Go Mobile Support Native Module Extension

2016-07-17 Thread hzd123
backend: golang appsdk: gomobile view:react native Go's mobile lib and react-native would both be compiled into the mobile client. The go lib makes requests to a server and is not the server. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] pprof where is my time going

2016-07-17 Thread ajay aggarwal
Hello, I am trying to analyze why I am getting low throughput for my app. Below is the 30 second CPU profile output. I would expect more time spent in net/http serve. Not sure if runtime.mcall and runtime.schedule taking almost 1/4th of the time is concerning. When I did a "web mcall" it didn't

Re: [go-nuts] scheduling non determinism

2016-07-17 Thread Jesper Louis Andersen
On Sun, Jul 17, 2016 at 6:25 PM, Scott Cotton wrote: > A clear and concrete problem is the following: The sat solver competition > at satcompetition.org requires > deterministic solvers for reproducible results. Suppose I have a > select{...} in a go program which solves sat, > and I want to en

Re: [go-nuts] scheduling non determinism

2016-07-17 Thread Scott Cotton
Hello Val, Thanks for your thoughts. Indeed, for single user goroutine, I think your list is more or less ok. I can reliably reproduce single goroutine performance results in my code and it is in line with your list. (rand.Seed is not necessary b/c there is a default seed of 1). There was a fa

[go-nuts] Re: xorm - 4.3 - panic: gob: registering duplicate names

2016-07-17 Thread DM
No. Is this something related to the below issue:- https://groups.google.com/forum/#!topic/golang-nuts/VnFs2Cv0_UY If yes how can I get around this problem in xorm? On Saturday, 16 July 2016 00:09:45 UTC+5:30, DM wrote: > > I am getting the below exception with xorm - 4.3 and golang 1.4.2. Any

Re: [go-nuts] scheduling non determinism

2016-07-17 Thread Val
Hello Scott Determinism for runtime, not just builds, looks like a nice feature to have for some problems including yours. Sadly I don't have the solution, but it would be great to make 2 lists of how to achieve deterministic/reproducible executions in go : *Sequential programs* (only 1 user gor

[go-nuts] Re: problems receiving data from a GPS

2016-07-17 Thread Egon
On Sunday, 17 July 2016 21:42:26 UTC+3, EdgarAlejandro Vintimilla wrote: > > Hi, I have a GPS that sends me data through a connection TCP > > the data it sends me are in ASCII, and I have to convert it to HEX > > for example in python I'm doing this > > BUFFER_SIZE = 1024 > conn, addr = s.

[go-nuts] problems receiving data from a GPS

2016-07-17 Thread EdgarAlejandro Vintimilla
Hi, I have a GPS that sends me data through a connection TCP the data it sends me are in ASCII, and I have to convert it to HEX for example in python I'm doing this BUFFER_SIZE = 1024 conn, addr = s.accept() data = conn.recv(BUFFER_SIZE) data.encode("hex") conn.close() p

Re: [go-nuts] How can I convert ASCII to HEX?

2016-07-17 Thread EdgarAlejandro Vintimilla
thanks On Saturday, July 16, 2016 at 2:42:23 PM UTC-5, Michael Jones wrote: > > Lots of ways... > https://play.golang.org/p/D54ZRdLX_A > > On Sat, Jul 16, 2016 at 8:14 PM, EdgarAlejandro Vintimilla < > eav...@gmail.com > wrote: > >> I want to convert ascii character to hex >> >> -- >> You receiv

[go-nuts] Re: scheduling non determinism

2016-07-17 Thread Egon
On Sunday, 17 July 2016 19:05:44 UTC+3, Scott Cotton wrote: > > Hi all, > > I'm looking for information/pointers for making the scheduling and > select {} choices determinisable for an application domain in which > non-determinism in scheduling/select causes problems. > This seems like queues ar

[go-nuts] Re: [ANN] UniDoc PDF Toolkit for golang

2016-07-17 Thread Alfred Hall
Hi Daniel and thanks for your reply. Our goal is to provide the library free of use for noncommercial and personal use. However, for any commercial use we require that the library is purchased under a commercial license, although initial testing can be done with the open source version. We believe

Re: [go-nuts] scheduling non determinism

2016-07-17 Thread Scott Cotton
Hi, I'm well aware of the benefits of non-deterministic select for many use cases, I don't contest that at all or the decision to have it part of golang. A clear and concrete problem is the following: The sat solver competition at satcompetition.org requires deterministic solvers for reproducibl

Re: [go-nuts] scheduling non determinism

2016-07-17 Thread Jesper Louis Andersen
On Sun, Jul 17, 2016 at 6:05 PM, Scott Cotton wrote: > I'm looking for information/pointers for making the scheduling and > select {} choices determinisable for an application domain in which > non-determinism in scheduling/select causes problems. > Out of curiosity, what is that domain? The re

[go-nuts] Re: Strange results from append

2016-07-17 Thread Evan Digby
Hi TL, It's identical between the two runs as best as can be with a rebuild in between two runs. The values used are the same. I'm going to dig into the assembly a bit when I get the time. For now the solution is to explicitly make copies, which was the desired result in the first place. The

[go-nuts] scheduling non determinism

2016-07-17 Thread Scott Cotton
Hi all, I'm looking for information/pointers for making the scheduling and select {} choices determinisable for an application domain in which non-determinism in scheduling/select causes problems. For my own purposes I plan to make a determinisable version of the gc toolchain where one can set a

Re: [go-nuts] Re: goimports has been updated

2016-07-17 Thread Vince Prignano
https://github.com/golang/go/issues/16402 On Saturday, July 16, 2016 at 9:51:16 PM UTC-7, bradfitz wrote: > > Please file a bug. I lose emails. > > > On Sat, Jul 16, 2016 at 1:29 PM, Vince Prignano > wrote: > >> I just noticed that import paths that start with an uppercase letter >> don't get im

Re: [go-nuts] [ANN] goimports-update-ignore makes goimports faster, maintains .goimportsignore

2016-07-17 Thread Brad Fitzpatrick
Nice! I got the honor of filing the first feature request: https://github.com/pwaller/goimports-update-ignore/issues/1 :-) On Sat, Jul 16, 2016 at 4:28 AM, Peter Waller wrote: > With , goimports now supports > a mechanism for ignoring non-go-code dir

[go-nuts] Re: TCP Server

2016-07-17 Thread Caleb Doxsey
Hi Edgar, Have you done much web development in the past? The easiest option may be google app engine. You can create a restful HTTP API pretty easily and it comes with a lot of functionality out of the box. You can find a getting-started tutorial here: https://cloud.google.com/appengine/docs/

[go-nuts] Re: How do I load a x509 certificate?

2016-07-17 Thread Darko Luketic
The signature obviously changed. I filed a bug and the resolution was that the contents had to be asn1 encoded. While Firefox and openssl displayed the correct content of this line the certificate was invalid. Idk if the bug is still hosted on google code or if the previous bugs were exported t

[go-nuts] Re: What dependency management tool do you use?

2016-07-17 Thread Mateusz Czapliński
W dniu wtorek, 12 lipca 2016 22:15:29 UTC+2 użytkownik Johann Höchtl napisał: > What do others use? > Where I work, we've evaluated what was available some year ago, but nothing fit our envisioned usecases. So we took our time, sit down and meticulously analyzed what we need, wrote design docs

Re: [go-nuts] Re: why treat int and []int differently here?

2016-07-17 Thread Dan Kortschak
Indeed. Thank you. On Sun, 2016-07-17 at 02:03 +0200, Axel Wagner wrote: > Also not true, as OP pointed out ;) A named concrete type is never > silently converted to another *named* concrete type ;) -- You received this message because you are subscribed to the Google Groups "golang-nuts" grou

[go-nuts] [ANN] Nexer 1.1.1 code name: Billy

2016-07-17 Thread Val
Hello, ok but what is Nexer? -- 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.goog