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

[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

[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

[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

[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

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

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

[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

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

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

[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

[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 =

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

[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

[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

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

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

[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

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

[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:

[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

[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

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

2016-07-17 Thread andrey mirtchovski
> @all, thanks for the explanation! in my view, all the "details" come from reasoning about Go through the sieve of other programming languages. nothing wrong in doing that, as long as the original intention is understood. for me, Go will always be looked through the sieve of C, in particular the

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

2016-07-17 Thread T L
@all, thanks for the explanation! Golang is a simple language full of details. On Sunday, July 17, 2016 at 4:15:12 AM UTC+8, T L wrote: > > > package main >> >> func fi(i int) {} >> func fis(is []int) {} >> >> type TI int >> type TIS []int >> >> func main() { >> var ti TI >> fi(ti) //