[go-nuts] Re: Golang binary on Mac OS error “operation not permitted”

2017-12-06 Thread Silvan Jegen
On Wednesday, December 6, 2017 at 4:52:11 AM UTC+1, Srinivas Gowda wrote: > > I'm trying to ship a golang binary inside a mac app. It is ideally just a > http server with some basic functions on folders and files. > > The binary seems to work just fine when I run it from a terminal but when > I

[go-nuts] [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Christophe Meessen
Hello, I'm a computer scientist in charge of developing an image processing pipeline for telescope images. It will also have a web server and DB connection. The project is going through reviews by external experts, and the problem I'm facing is that my proposal to use Go is about to be reject

[go-nuts] [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Tamás Gulácsi
Python is terrible to maintain (lack of static typing or even compile-time argument count (!) check). Write down the interfaces between the pipeline steps and nodes, making each module replaceable. -- You received this message because you are subscribed to the Google Groups "golang-nuts" grou

Re: [go-nuts] [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread 'Axel Wagner' via golang-nuts
Not to be a buzzkill, but… Maybe not having good arguments for using Go in this case should be taken as a signal that Go isn't a good fit? As much as I think Go would be useful for scientific applications, if we want to see that happens, we should work on making Go better for them, not on making up

[go-nuts] why fmt "%#v" and "%#q" of string value have different result

2017-12-06 Thread Ally Dale
Hi, I was confused that why fmt "%#v" and "%#q" of string value have different result. fmt.Printf("%#q\n", `%#q: "c:\x\y\z"`) fmt.Printf("%#v\n", `%#v: "c:\x\y\z"`) fmt.Printf("%#q\n", "%#q cannot sharp because has [``] ") fmt.Printf("%#v\n", "%#v cannot sharp because has [``] ") // `%#q: "c

Re: [go-nuts] [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Peter Mogensen
On 2017-12-06 10:56, Christophe Meessen wrote: > The main opposing arguments are > - everybody uses python in astrophysics > - it is very easy to find someone who knows python > - risk that I, sole Go programmer, might become unavailable And those are important arguments - especially if the "eve

[go-nuts] Re: [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Volker Dobler
I know about https://go-hep.org probably Sebastien can elaborate more if and how it is used at CERN. V. On Wednesday, 6 December 2017 10:56:01 UTC+1, Christophe Meessen wrote: > > Hello, > > I'm a computer scientist in charge of developing an image processing > pipeline for telescope images. >

Re: [go-nuts] why fmt "%#v" and "%#q" of string value have different result

2017-12-06 Thread Jan Mercl
On Wed, Dec 6, 2017 at 11:36 AM Ally Dale wrote: > I was confused that why fmt "%#v" and "%#q" of string value have different result. See: https://golang.org/pkg/fmt/#hdr-Printing The default format for %v is: bool:%t int, int8 etc.: %d uint, uint8 etc.:

Re: [go-nuts] Re: [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Henrik Johansson
I have a vague memory of +Rob Pike tweeting something about astronomy or perhaps an observatory a few months ago. Perhaps there was no programming involved but if so I imagine Go is safe bet. But building pipelines using something like Pachyderm would allow for a very polyglot "use the tool that

[go-nuts] go build issue with 1.9 version

2017-12-06 Thread desaiabhijit
getting below issue while building on Mac.. please help go build myapp.go /usr/local/go/src/crypto/tls/cipher_suites.go:18:2: cannot find package "golang_org/x/crypto/chacha20poly1305" in any of: /usr/local/go/src/golang_org/x/crypto/chacha20poly1305 (from $GOROOT) /Users/xyz/go/src/golang_org/

[go-nuts] nerf

2017-12-06 Thread Ged Wed
google are replacing coreboot and crappy intel esxi and the extra Intel IME / AMD PSP SO quick boot up and full control. this is huge and its using golang ! Its called NERF https://www.coreboot.org/images/6/66/Denver_2017_coreboot_u-root.pdf - Everything described here https://www.youtube.co

[go-nuts] Re: go build issue with 1.9 version

2017-12-06 Thread desaiabhijit
I can see it's under /usr/local/go/src*/vendor/*golang_org/x/crypto/chacha20poly1305 (from $GOROOT) but how to resolve it Thanks, On Wednesday, December 6, 2017 at 4:57:21 PM UTC+4, Abhijit Desai wrote: > > getting below issue while building on Mac.. please help > > > > go build myapp.go > /

[go-nuts] Re: go build issue with 1.9 version

2017-12-06 Thread desaiabhijit
it's sorted.. freshly installed On Wednesday, December 6, 2017 at 4:57:21 PM UTC+4, Abhijit Desai wrote: > > getting below issue while building on Mac.. please help > > > > go build myapp.go > /usr/local/go/src/crypto/tls/cipher_suites.go:18:2: cannot find package > "golang_org/x/crypto/chacha20p

Re: [go-nuts] [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Sebastien Binet
Christophe, On Wed, Dec 6, 2017 at 10:56 AM, Christophe Meessen < christophe.mees...@gmail.com> wrote: > Hello, > > I'm a computer scientist in charge of developing an image processing > pipeline for telescope images. > It will also have a web server and DB connection. > > The project is going th

Re: [go-nuts] [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Sebastien Binet
On Wed, Dec 6, 2017 at 2:15 PM, Sebastien Binet wrote: > Christophe, > > On Wed, Dec 6, 2017 at 10:56 AM, Christophe Meessen < > christophe.mees...@gmail.com> wrote: > >> Hello, >> >> I'm a computer scientist in charge of developing an image processing >> pipeline for telescope images. >> It will

Re: [go-nuts] Re: [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Christophe Meessen
Thanks far all the answers. Sebastien Binet is a colleague and he is indeed brilliant. pachyderm looks powerful, but also an overkill for my need. It might scare my colleagues away. Le 06/12/2017 à 12:34, Henrik Johansson a écrit : I have a vague memory of +Rob Pike t

Re: [go-nuts] [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Robin Bartholdson
Well, the top 1 argument is that go is the language of the future ;) https://erikbern.com/2017/03/15/the-eigenvector-of-why-we-moved-from-language-x-to-language-y.html Some reason-to-believes th

[go-nuts] Is the result right or not?

2017-12-06 Thread T L
package main import "fmt" func main() { var i int var x = []int{3, 5, 7} var y = make([]int, 3) for i, y[i] = range x { fmt.Println(i, ":", y, ", y[", i, "] =", y[i]) } fmt.Println("y =", y) } // output: 0 : [3 0 0] , y[ 0 ] = 3 1 : [5 0 0] , y[ 1 ] = 0 2 : [5 7 0] , y[ 2 ] =

[go-nuts] Re: Is the result right or not?

2017-12-06 Thread T L
And this: package main import "fmt" func main() { var i int var x = []int{3, 5, 7} //var y = make([]int, 3) for i, x[i] = range x { } fmt.Println("x =", x) // x = [5 7 7] } On Wednesday, December 6, 2017 at 9:26:33 AM UTC-5, T L wrote: > > > package main > > import "fmt" > > func ma

Re: [go-nuts] Re: Is the result right or not?

2017-12-06 Thread Gianguido Sorà
What are you trying to achieve with this code? What do you want it to do? Il 06 dic 2017 15:30, "T L" ha scritto: > And this: > > package main > > import "fmt" > > func main() { > var i int > var x = []int{3, 5, 7} > //var y = make([]int, 3) > for i, x[i] = range x { > } > fmt.Printl

Re: [go-nuts] Is the result right or not?

2017-12-06 Thread Ian Davis
You can see your error if you initialise i to -1 before the loop: v[i] is evaluated before i is incremented. On Wed, 6 Dec 2017, at 02:26 PM, T L wrote: > > package main > > import "fmt" > > func main() { > var i int > var x = []int{3, 5, 7} > var y = make([]int, 3) > for i, y[i] = rang

Re: [go-nuts] Is the result right or not?

2017-12-06 Thread T L
ok, I get it. But how about this: package main import "fmt" func main() { i := 2 x := []int{3, 5, 7} for _, x[i] = range x { } fmt.Println(x) // [3 5 5] } I expect it is still [3 5 7] On Wednesday, December 6, 2017 at 9:34:38 AM UTC-5, Ian Davis wrote: > > You can see your err

Re: [go-nuts] Is the result right or not?

2017-12-06 Thread Jan Mercl
On Wed, Dec 6, 2017 at 3:41 PM T L wrote: > ok, I get it. But how about this: It would be helpful if you state where do you see the problem so others do not have to guess. Anyway, the behavior is correct. The loop equals to // initially {3, 5, 7} x[2] = x[0] // {3, 5, 3} x[2] = x[1] // {3

Re: [go-nuts] Is the result right or not?

2017-12-06 Thread Jan Mercl
On Wed, Dec 6, 2017 at 3:46 PM Jan Mercl <0xj...@gmail.com> wrote: On Wed, Dec 6, 2017 at 3:41 PM T L wrote: > It would be helpful if you state where do you see the problem so others do not have to guess. My apologies, you _have_ stated where do you see the problem. -- -j -- You received t

Re: [go-nuts] Is the result right or not?

2017-12-06 Thread T L
On Wednesday, December 6, 2017 at 9:41:01 AM UTC-5, T L wrote: > > ok, I get it. But how about this: > > package main > > import "fmt" > > func main() { > i := 2 > x := []int{3, 5, 7} > for _, x[i] = range x { > > } > fmt.Println(x) // [3 5 5] > } > > I expect it is still [3 5 7]

Re: [go-nuts] Is the result right or not?

2017-12-06 Thread T L
On Wednesday, December 6, 2017 at 9:47:55 AM UTC-5, Jan Mercl wrote: > > On Wed, Dec 6, 2017 at 3:41 PM T L > > wrote: > > > ok, I get it. But how about this: > > It would be helpful if you state where do you see the problem so others do > not have to guess. > > Anyway, the behavior is correct.

Re: [go-nuts] Re: [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Jesper Louis Andersen
The best point in time to switch languages are when one of the following things is happening: * There is a small experiment on the side of the larger system which can be handled in another language. * There is a large project which has failed internally in the business, it is severely behind and n

[go-nuts] how to do numpy.fromstring in Go ?

2017-12-06 Thread Christian LeMoussel
I have to write a Python program that uses numpy in GO. I have this Python code : prefix = "de98671db1ce0e5c9ba89ab7ccdca6c427460295b8dd3642e9b2bb961723307c57629b1ad37909a863a56965" prefix_np = np.fromstring(prefix[0:64], dtype=np.uint32, count=16) print("prefix_np: {}".format(prefix_np))

Re: [go-nuts] how to do numpy.fromstring in Go ?

2017-12-06 Thread Jonathan Yu
2017-12-06 10:38 GMT-08:00 Christian LeMoussel : > I have to write a Python program that uses numpy in GO. > I have this Python code : > prefix = "de98671db1ce0e5c9ba89ab7ccdca6c427460295b8dd3642e9b2bb961723 > 307c57629b1ad37909a863a56965" > prefix_np = np.fromstring(prefix[0:64], dtype=np.uin

Re: [go-nuts] how to do numpy.fromstring in Go ?

2017-12-06 Thread Sebastien Binet
Here is how I would do it: https://play.golang.org/p/-aSfOYst6w -s sent from my droid On Dec 6, 2017 8:03 PM, "Jonathan Yu" wrote: > > > 2017-12-06 10:38 GMT-08:00 Christian LeMoussel : > >> I have to write a Python program that uses numpy in GO. >> I have this Python code : >> prefix = "de

Re: [go-nuts] Traceroute

2017-12-06 Thread Jesper Louis Andersen
Hi! I think it would be far easier to help you if you wrote down what you tried, what happened and what you expected to happen. That way, people will be able to dig into the problem you are having more easily. In particular, what do you mean when you say it doesn't work correctly? On Mon, Dec 4

[go-nuts] Re: Calculation of the combinations between an unlimited number of slices

2017-12-06 Thread jake6502
On Monday, December 4, 2017 at 2:56:19 PM UTC-5, Fred wrote: > > it seems that making a copy of the temp var, replacing : > > temp = append(temp, c1) > > by : > > temp = append(temp, append([]int{}, c1...)) > > helps, but still unclear for me why the problem was only visible on slice > 4... > >

[go-nuts] Re: gomobile + go protobuf

2017-12-06 Thread jay . graves
The problem is that Protocol Buffers for Java uses the Getter/Setter convention and the go file already has methods that start with Get. I did a pretty hacky work around. I ran sed 's/Get/GoGet/' on the code output from the protocol buffer right before I call gomobile bind -target=android That

Re: [go-nuts] Re: [urgent] need aguments to justify use of Go for a scientific application

2017-12-06 Thread Christophe Meessen
Thank you all for your help. I assembled a sort document with the collected arguments (thanks Sebastien). It also contains short code samples. Le 06/12/2017 à 16:17, Jesper Louis Andersen a écrit : The best point in time to switch languages are when one of the following things is happening: