Search Discussions
-
I am a post. doc. doing research in heuristic search. So far, I used C, which was fast but required a lot of development time for each new project. So, I decided to give Go a try (before this, I ...
Meir
Apr 4, 2014 at 10:10 am
Apr 13, 2014 at 10:50 am -
Is it possible to specify more than a channel operation in a *case *of a *select*? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe ...
Massimiliano Tomassoli
Apr 26, 2014 at 10:04 am
Apr 30, 2014 at 2:29 pm -
Hi folks, I'm doing some performance measurements between Node and Go and Ruby. I explored an example of iterating 10million small hashes, during which I would perform a small operation (the ...
Ijonas Kisselbach
Apr 9, 2014 at 5:53 am
Apr 10, 2014 at 4:17 pm -
I have a situation where my golang application will receive a network message where some of the bytes in the message are 14 bit floating point values. Does anyone have any ideas on how I might go ...
Curtis Paul
Apr 25, 2014 at 8:57 pm
Apr 30, 2014 at 7:51 am -
Hi Go nuts, We have just released go1.3beta1, a beta version of Go 1.3. It is cut from the default branch at revision f8b50ad4cac4. Please help us by testing your Go programs with the new tool chain ...
Andrew Gerrand
Apr 22, 2014 at 10:35 pm
May 17, 2014 at 9:57 pm -
This is my first experience of debugging in Go. I am trying to debug this code: http://play.golang.org/p/8WxRtpWgk- (it implements, so far incorrectly, a generic puzzle solver with an application to ...
Meir
Apr 3, 2014 at 6:26 pm
Apr 7, 2014 at 7:36 am -
Hello, I am a big fan and supporter of Go and try to evangelize everywhere and anytime I can. I am using Go to write the race server side for Assetto Corsa (www.assettocorsa.net) with good results, ...
Stefano Casillo
Apr 27, 2014 at 2:54 am
Apr 27, 2014 at 1:52 pm -
https://github.com/opennota/decimal It is based on the big.Rat type. Comments are welcome. There are also other implementations, e.g. https://github.com/oguzbilgic/fpd -- You received this message ...
OpenNota
Apr 13, 2014 at 9:12 am
Apr 20, 2014 at 4:31 am -
For my first experience in Go, I have implemented a generic puzzle solver with an application to the Pancake puzzle: http://play.golang.org/p/_wDImFUDyY (1) The code is 2.5 longer than the equivalent ...
Meir
Apr 3, 2014 at 10:28 pm
Apr 8, 2014 at 1:22 pm -
The following code runs successfully with n = 100000, but not with n = 200000. Why? Out of memory? package main import ( "fmt" ) func f(left, right chan int) { left <- 1 + <-right } func main() { ...
Massimiliano Tomassoli
Apr 30, 2014 at 12:20 pm
May 2, 2014 at 2:28 pm -
Is there any particular reason why almost everywhere I see the SCM name in the code organization? - http://golang.org/doc/code.html What if the repository and SCM change? Some years ago it was CVS, ...
Satishb10
Apr 3, 2014 at 10:45 pm
Apr 5, 2014 at 3:13 pm -
I feel like this topic has to have come up several times before, but I can't find it in the archives. Is there any reason that the go tool doesn't want to find its own GOPATH by looking at its ...
Rob Napier
Apr 19, 2014 at 10:01 pm
Apr 23, 2014 at 8:06 pm -
Hey guys, I just wanted to ask if it is possible to search for a record in a csv file say through their ID field. once searched is it possible to delete that searched record through the encoding/csv ...
Michael Rivera
Apr 18, 2014 at 9:12 am
Apr 19, 2014 at 6:49 pm -
package a func aaa (){ print("a") } ------------------------------------------------------------------- import "a" package main func init(){ a.aaa= func(){ print("redefined") } } func main(){ a.aaa() ...
小菜
Apr 10, 2014 at 8:37 am
Apr 11, 2014 at 6:00 pm -
I find for-range syntax very counter intuitive and I always wondered if I'm alone and what's the possible motivation for the current syntax choice? example here: http://play.golang.org/p/TGvAUhuYmc ...
Liviu Ghiurau
Apr 28, 2014 at 8:25 pm
Apr 29, 2014 at 10:15 am -
Hello! I'm working on a golang server that will send continually data it received from a client to a web page (html5) ! I will now begin to implement the interface, but i have no idea from where i ...
Farah
Apr 16, 2014 at 3:47 pm
Apr 28, 2014 at 5:10 am -
What would be the best way to do this if I have a map of strings to array, and I want to shuffle contents one of the arrays? I could use the rand.Perm(), but then i need to reinitialize that ...
Klāvs Priedītis
Apr 8, 2014 at 7:49 am
Apr 8, 2014 at 10:30 pm -
I am very new (3 weeks?) to Go and was trying to figure out where all my memory was going. I eventually tracked a large piece of down to log.Print* calls (which I make a LOT of in this case). Here's ...
Greg Saylor
Apr 19, 2014 at 6:54 pm
Apr 20, 2014 at 5:34 am -
In java, we do things like new SimpleDateFormat("HH:mm:ss");. In php, something like date_parse_from_format("j.n.Y H:iP", $date) or just strtotime($date). In perl, we create a datetime parser with a ...
Jadekler
Apr 14, 2014 at 3:25 pm
Apr 17, 2014 at 9:44 pm -
As we know, a sync.Mutex.Unlock must be matched with a prior sync.Mutex.Lock, and an os.File.Close must be matched with a prior os.File.Open and the like. What confuses me is the different behaviors ...
Steve wang
Apr 16, 2014 at 6:56 am
Apr 17, 2014 at 10:02 am -
Hi, I see that currently go's regexp doesn't support possessive quantifiers. Is this temporary, or is this a defined feature (or misfeature)? cheers -- You received this message because you are ...
Amit Lavon
Apr 3, 2014 at 2:45 pm
Apr 5, 2014 at 4:50 pm -
Hi, I spend some evenings to this idea and would appriciate your feedback. I'm a fairly fresh gopher, so please me tell if I get something fundamentally wrong here. The Idea I really like having a ...
Konstantin Kanellopoulos
Apr 1, 2014 at 11:08 pm
Apr 3, 2014 at 7:20 pm -
As far as I can tell, the main elements of concurrency and high-level synchronization in Go are - goroutines - channels [make, <-, select, close] - defer - WaitGroup Anything else? -- You received ...
Massimiliano Tomassoli
Apr 26, 2014 at 6:10 pm
Apr 27, 2014 at 6:05 pm -
Hi folks, When I look at a lot of go code, I see the following pattern: x, err := foo() if err != nil { return err } y, err := bar(x) if err != nil { return err } z, err := baz(y) if err != nil { ...
Scpayson
Apr 17, 2014 at 1:49 am
Apr 22, 2014 at 12:38 pm -
The gocheck project has moved to GitHub, and adopted a versioned API. The API is still 100% compatible, though. What changed was: - Import path: gopkg.in/check.v1 [1] - Package name: check rather ...
Gustavo Niemeyer
Apr 1, 2014 at 4:37 am
Apr 2, 2014 at 3:08 pm -
Hi Gophers, Ever so often I use pdflatex to write something and get very annoyed while doing so. Don't get me wrong, LaTeX is a great and very powerful tool and I have used it excessively. For ...
Christoph Hack
Apr 19, 2014 at 8:41 pm
Apr 22, 2014 at 7:20 pm -
I am new to Go and am trying to understand how to properly use it for my applications, where performance is extremely important. Attached are two equivalent programs, one in Go and one in C. I want ...
Meir
Apr 9, 2014 at 4:51 pm
Apr 11, 2014 at 3:13 pm -
Hi, all In the doc of package 'atomic': To subtract a signed positive constant value c from x, do AddUint32(&x, ^uint32(c-1)). Why can do that? I found that the result of ^uint32(C-1) equals to the ...
Robert Hao
Apr 25, 2014 at 7:26 am
Apr 29, 2014 at 4:21 am -
I have to parse and process large json file 60MB plus size. What should be the fastest way to processes? In the sample I am parsing small json from memory while in actually it will be file I/O ...
Abhijit Kadam
Apr 24, 2014 at 6:52 am
Apr 28, 2014 at 3:32 pm -
Assuming that max-min can be a very large number, can anyone help me verify that the below algorithm is correct? // Sample randomly selects k integers from the range [min, max). // Given that ...
Fumin Wang
Apr 17, 2014 at 5:27 pm
Apr 19, 2014 at 11:42 am -
Hi all, I've been experimenting with godoc in order to find a good way to format the documentation comments, so that godoc's output html will be nice and clear. From Go's package documentations, I ...
Amit Lavon
Apr 1, 2014 at 12:59 pm
Apr 3, 2014 at 10:14 am -
Hi all, I have been doing some benchmarking for 2 processes communicating via a couple of os.Pipe()s on Linux/amd64 using go 1.2.1 and got some interesting results. pong.go: package main import ( ...
Dmitry Panov
Apr 29, 2014 at 12:51 pm
May 7, 2014 at 2:10 pm -
Hi, we have a handy syntax for initializing arrays with the compiler figuring out the number of elements. foo := [...]int{1, 2, 3} May we please have the same for structs? This would be really handy ...
"'Mike Bosland
Apr 28, 2014 at 10:09 am
Apr 28, 2014 at 8:50 pm -
Replying to golang-nuts, the appropriate forum for this post. How do you know the C# client library is correct? Does it say what websocket spec it implements? Have you tried connecting to your ...
Andrew Gerrand
Apr 16, 2014 at 1:40 am
Apr 23, 2014 at 5:17 pm -
io.MultiReader and io.MultiWriter take varargs, and return a struct which contains the varargs slice directly (source: http://golang.org/src/pkg/io/multi.go). This is fine if the arguments are given ...
Joshua Liebow-Feeser
Apr 17, 2014 at 3:35 pm
Apr 19, 2014 at 2:02 am -
Things like debugging information and bound checking are only needed during the development and the initial usage. However, when I run a computationally intensive experiment in the production mode, I ...
Meir
Apr 7, 2014 at 1:13 pm
Apr 7, 2014 at 6:03 pm -
Here's a package to sort slices with only a less function: http://godoc.org/github.com/bradfitz/slice slice.Sort(yourSlice, func(i, j int) bool { return yourSlice[i].name < yourSlice[j].name }) It's ...
Brad Fitzpatrick
Apr 30, 2014 at 2:56 pm
May 2, 2014 at 6:27 pm -
Hello, I just put my first Go library up on Github. https://github.com/walle/targz Just starting out with Go, and I feel that I don't really have error handling figured out. I would appreciate it a ...
Fredrik Wallgren
Apr 15, 2014 at 6:14 pm
Apr 17, 2014 at 7:51 am -
I have read the spec on the use of the keyword range: http://golang.org/ref/spec#RangeClause Using this code as a reference for my questions: func Range() { for _, value := range data { Foo(value) } ...
William Kennedy
Apr 10, 2014 at 5:59 am
Apr 13, 2014 at 5:40 pm -
I work on an appliance that includes a cross-platform Go client distributed by the appliance. I'd like to embed appliance-specific configuration into the client executable. It occurred to me that I ...
Rob Napier
Apr 27, 2014 at 6:05 pm
May 5, 2014 at 7:07 pm -
Hi Go Team, Good Morning. I stumbled upon this performance difference when i was trying to use 'go' for a simple program that i had originally written in C. It appears that 'go' in this scenario is ...
S Dhilipkumar
Apr 21, 2014 at 2:44 pm
Apr 22, 2014 at 5:57 am -
Problem: I have some lists of objects with a time period info(start time and end time) read from msexcel.There is several type of that object.Those time period will not overlap. I need three ...
Bronze man
Apr 14, 2014 at 6:35 am
Apr 16, 2014 at 5:28 am -
The source and comments speak for themselves. Basically I don't understand why my code deadlocks in this way. Can anyone explain this to me please? func main() { a := make(chan bool, 1) b := ...
MartinG
Apr 8, 2014 at 5:21 pm
Apr 10, 2014 at 2:13 pm -
This way you lock the entire map for every write operation. Good concurrent maps, like Java's ConcurrentMap, would stripe the locks, and a write would lock only a subset of the keys, reducing ...
Elazar Leibovich
Apr 6, 2014 at 8:17 am
Apr 8, 2014 at 12:58 pm -
I'm trying to build a soft real-time app in Go, but I believe the GC can cause quite a delay which is unacceptable. I'm wondering if a viable work-around would be starting separate instances of the ...
John Lee
Apr 5, 2014 at 4:02 am
Apr 7, 2014 at 6:41 pm -
What is the syntax to write "slice whose elements can be of any type"? I am trying to implement a function for reversing a slice. I tried to write this in the parameter list: slice []Interface{}, but ...
Meir
Apr 3, 2014 at 3:42 pm
Apr 3, 2014 at 6:34 pm -
Hey all, Yesterday I was writing a code where I needed to check if a value was in an array. The only way I found to do it was writing my own IsInArray function, there were no other way to do it, at ...
Jonhkr
Apr 29, 2014 at 3:02 am
Apr 30, 2014 at 1:59 am -
Hi all see http://play.golang.org/p/y7m8A8umHL BenchmarkAlloc1 100000000 17.0 ns/op BenchmarkAlloc2 50000000 32.8 ns/op until now i think using '&{}' is equal to new, but benchmark show opposite. why ...
Djadala
Apr 23, 2014 at 6:58 am
Apr 23, 2014 at 12:14 pm -
I don't know why this reverse proxy is not working. I've seen several examples and I can't find anything wrong with it. package main import ( "log" "net/url" "net/http" "net/http/httputil") func ...
Grignoli
Apr 19, 2014 at 2:21 am
Apr 19, 2014 at 7:54 am -
should be discussed before, but I didn't find~ C bitfields is very often used for hardware's register struct register { int power : 2; int mode: 4 ; int reserved: 26; }; does GO has equivalent ? ...
Fino
Apr 3, 2014 at 8:52 am
Apr 7, 2014 at 1:28 pm
Group Overview
group | golang-nuts |
categories | go |
discussions | 440 |
posts | 2,795 |
users | 567 |
website | golang.org |
567 users for April 2014
Archives
- June 2016 (815)
- May 2016 (1,277)
- April 2016 (1,340)
- March 2016 (1,589)
- February 2016 (1,499)
- January 2016 (1,419)
- December 2015 (1,217)
- November 2015 (1,490)
- October 2015 (1,768)
- September 2015 (2,186)
- August 2015 (2,240)
- July 2015 (2,221)
- June 2015 (2,056)
- May 2015 (1,508)
- April 2015 (2,023)
- March 2015 (2,186)
- February 2015 (2,032)
- January 2015 (2,219)
- December 2014 (2,612)
- November 2014 (1,886)
- October 2014 (2,115)
- September 2014 (2,267)
- August 2014 (2,172)
- July 2014 (2,509)
- June 2014 (337)
- May 2014 (1,260)
- April 2014 (2,795)
- March 2014 (2,914)
- February 2014 (2,640)
- January 2014 (2,720)
- December 2013 (2,487)
- November 2013 (2,527)
- October 2013 (2,610)
- September 2013 (3,038)
- August 2013 (3,302)
- July 2013 (2,235)
- June 2013 (2,929)
- May 2013 (3,816)
- April 2013 (3,080)
- March 2013 (2,963)
- February 2013 (3,401)
- January 2013 (3,865)
- December 2012 (2,603)
- November 2012 (2,493)
- October 2012 (3,246)
- September 2012 (3,469)
- August 2012 (62)