[go-nuts] PiHex Library generates a hexadecimal number sequence in the number Pi in the range from 0 to 10,000,000

2016-07-24 Thread Claygod
I recently took the number Pi in hexadecimal notation. However, usually the number Pi published in decimal. Good. I found a wonderful publication, David H. Bailey dedicated algorithm "BBP" and implemented this algorithm in PiHex library on Go. Now you can connect the library and get the number (

[go-nuts] go build/install generate different binaries on file vs package

2016-07-24 Thread Tamás Gulácsi
Is that protoc-gen-go contains only main.go? -- 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 htt

[go-nuts] Re: how is log.Panic useful?

2016-07-24 Thread Christoph Seufert
In startup situation when you like to grab the extra information about all the goroutines that might already have been started. Those are situations where i regularly panic, because i somethings goes wrong there i want to grab all the possible information i can. On Monday, July 25, 2016 at 2:42

[go-nuts] Re: syscall.Read() with timeout: syscall.Select() vs golang's select statement

2016-07-24 Thread Alex Bucataru
Hi Fabian, You could add a signal channel to tell your goroutine to exit. Editing your pseudo code: data := make(chan byte) done := make(chan struct{}) fd := some file descriptor go func() { buf = make([]byte, 1) for { n, err = syscall.Read(fd, buf) if err != nil {

Re: [go-nuts] how is log.Panic useful?

2016-07-24 Thread Matt Harden
I use it in main() in short scripts to handle errors when I don't expect them to ever occur. It's just a shortcut for log.Error followed by panic. Similar to log.Fatal. On Sun, Jul 24, 2016, 17:42 Anmol Sethi wrote: > I cannot seem to think of many situations where log.Panic is very useful. > Ca

[go-nuts] how is log.Panic useful?

2016-07-24 Thread Anmol Sethi
I cannot seem to think of many situations where log.Panic is very useful. Can someone provide a quick example? -- 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 go

[go-nuts] Re: ANNOUNCE: gini

2016-07-24 Thread Scott Cotton
Thanks James. For library usage, there are examples in the _test files, which will have to do for the moment. The gini command takes dimacs cnf and icnf inputs. see satcompetition.org for details. As for import path, we have chosen to use simply import "gini" or sub packages like "gini/ax"

[go-nuts] Re: ANNOUNCE: gini

2016-07-24 Thread Scott Cotton
There is a tool for solver benchmarking provided in the package. As I see you're from JKU linz, home of picosat, Here's a comparison of core cdcl gini with core cdcl picosat on 50 randomly selected problems from the 2011 sat competition, with a timeout of 1 minute per problem, benchmark suite

[go-nuts] syscall.Read() with timeout: syscall.Select() vs golang's select statement

2016-07-24 Thread fabian . staeber
Hi, I would like to call syscall.Read() with a timeout. Coming from C, my first idea was to use syscall.Select(), which should work fine. However, I came across this answer from 2014 by Ian Lance Taylor to a similar question (https://groups.google.com/d/msg/golang-nuts/al-6_QFgYaM/UkCqyCQVq_0J)

Re: [go-nuts] Multi Variable Linear Regression (with r squared and p values)

2016-07-24 Thread Brendan Tracey
You probably want to use gonum/matrix/mat64 instead of go.matrix. We don't have p-value calculation yet, but open up an issue in github.com/gonum/stat On Saturday, July 23, 2016 at 11:47:37 PM UTC-4, Michael Jones wrote: > > I stand corrected. Thanks! > > > > -- > > Michael T. Jones > > >

[go-nuts] [ANN] [HOWTO] go-github-release: release, package, deploy for windows, rpm, deb with ease!

2016-07-24 Thread mhhcbon
Hi, After some efforts and lots of reading, i finally have the cool release flow i was looking for my own usage and purpose. I sum it and share it here https://github.com/mh-cbon/go-github-release Initially i was looking for the good automated, re usable practices to release a go package, i h

[go-nuts] gomobile graphics without opengl

2016-07-24 Thread ktye78
All the examples for gomobile use opengl for graphics. Is it possible to manipulate go-images directly, like shiny can do? I'm comparing: https://github.com/golang/mobile/blob/master/example/basic/main.go https://github.com/golang/exp/blob/master/shiny/example/basic/main.go -- You received this

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

2016-07-24 Thread Johann Höchtl
Instead of thanking all reporters individually I'll do it here. I didn't expect a clear winner but some of the rationales for prefering one dependency mgmt tool over the other became more clear to me. To sum it up: I'll stick with godeps. It seems it hits somewhere the sweetspot between followi

[go-nuts] Re: ANNOUNCE: gini

2016-07-24 Thread Markus Zimmermann
I also would like to see some examples. Also, please make the whole project go-getable. Looking forward to see where this project is going, exciting! Can you link to the papers where you demonstrate that you outperform picosat and minisat? On Saturday, July 23, 2016 at 11:33:31 PM UTC+2, Scott