Search Discussions
-
is the result of this program well-defined? http://play.golang.org/p/vz7LEIJSFR --
Roger peppe
Jan 24, 2013 at 5:28 pm
Jan 29, 2013 at 8:49 am -
Just a thought. I'm thinking that maybe [*]type instead of []type would be more intuitive as to how slices are references to arrays, having flexible length. The syntax would be an alternative, not a ...
Itmitica
Jan 7, 2013 at 7:49 pm
Jan 9, 2013 at 2:22 pm -
- "Effective Go" says "Do not communicate by sharing memory; instead, share memory by communicating." Then look at the first example: go func() { list.Sort() c <- 1 }() "list" is shared between two ...
John Nagle
Jan 18, 2013 at 6:25 pm
Jan 22, 2013 at 5:44 pm -
In slice/string manipulation, it's very common that you need to access the length of the slice/string. end is defined as this: s[:end] == s s[:end-1] = remove the last element s[end-1] = the last ...
David DENG
Jan 29, 2013 at 10:49 am
Jan 31, 2013 at 6:18 am -
Hi folks, My background is mainly in high level scripting languages like PHP, Perl, Bash, and whatnot, though I've had exposure to C, C++, and Assembly. I'm learning go because I love the way it ...
Zachary Brown
Jan 30, 2013 at 3:53 pm
Feb 6, 2013 at 8:55 pm -
I would really love if we could range over the lines of a file, something like: if f, err := os.Open("file.txt"); err == nil { for i, line := range f { fmt.Print(line) } } Should I be ashamed for ...
Rif
Jan 22, 2013 at 10:33 am
Jan 25, 2013 at 11:06 pm -
Hi, I'm doing some big sort operations to build an inverted index and am finding the generated pointer receiver code for using interfaces with sort.Sort() is itself a big performance drain. Maybe I'm ...
Donovan Hide
Jan 13, 2013 at 12:43 pm
Jan 25, 2013 at 1:06 am -
I found a bug in my code, caused by ":=", which was very hard to find. This is simplified example: http://play.golang.org/p/nxthpeYv3p In my real code Iter was a slice and Pop removes one element ...
Ziutek
Jan 21, 2013 at 12:37 pm
Jan 23, 2013 at 8:19 am -
Calling c++ library from Golang is possible using gccgo. I made it work by compiling the c++ library source code code as a *static* library and linked it with gccgo using swig as an intermediate tool ...
Constantine Vasil
Jan 28, 2013 at 11:54 pm
Jan 31, 2013 at 6:01 pm -
I would agree they have a fair point, when you are starting with the language it would be easier to learn if you did not have to keep commenting import statements out just to get code to be fully ...
Pfitzsimons
Jan 18, 2013 at 8:24 am
Feb 28, 2013 at 11:02 am -
I am using Go as a web server. Tested for a month under Windows Server 2008 Virtual Machine but it runs for a day and then stops with a message: "The specified network name is no longer available" ...
Thstart
Jan 3, 2013 at 4:19 pm
Jan 4, 2013 at 4:08 am -
I find myself needing a "compact" and "generic" package root name for application-specific packages. The objective is to keep my app code "consistent" and "portable" between "workspaces" while ...
Vincent Callanan
Jan 24, 2013 at 11:45 am
Oct 7, 2014 at 11:00 am -
An assigment statement that remove the reference in the source. For example, the operator is <=(and :<=), then the following statement: x <= y equals x, y = y, <nil where <nil is the zero value for ...
David DENG
Jan 9, 2013 at 2:42 pm
Jan 11, 2013 at 3:50 pm -
Hi everyone, first, sorry for the newbie question, but despite searching on the web I am not sure I fully understand how to best implement what we need. We basically have a close-to-realtime app (SLA ...
Jacek99
Jan 10, 2013 at 1:17 am
Jan 11, 2013 at 12:39 pm -
Is it safe to assume: - small size: <100KB - medium size: <1MB - big size: <10MB - huge size: 10MB ? Thanks, Mitică --
Itmitica
Jan 26, 2013 at 10:14 am
Jan 31, 2013 at 5:33 pm -
path/filepath has both Split and Join for paths, but lacks a JoinList counterpart for lists. This function would immediately be useful inside the dashboard builder, and for anyone manipulating PATH ...
Dave Cheney
Jan 7, 2013 at 5:31 am
Oct 14, 2013 at 12:18 pm -
I decided to implement a parallel sort in Go inspired by cilksort [http://supertech.csail.mit.edu/cilk/]. It's a parallel mergesort where not only do we sort in parallel, but the merging is done in ...
Dan Adkins
Jan 25, 2013 at 4:18 am
Jan 25, 2013 at 7:58 pm -
I've implemented GenTiradentes' TinyVM ( https://github.com/GenTiradentes/tinyvm) in pure Go, to learn about internals of VMs and see how Go could stand up to C in this case. This is an x86-inspired ...
Martin Angers
Jan 13, 2013 at 3:22 pm
Jan 19, 2013 at 1:02 am -
Some programming languages (C, C++, Python, etc...) are defined based on the "object" concept, which essentially refers to a region of memory storage. Yet, Go supports zero-size variables[1], and in ...
Rui Maciel
Jan 9, 2013 at 11:12 am
Jan 15, 2013 at 4:26 pm -
For excample in the following program: http://play.golang.org/p/9fdGTbeVdb in func foo, I'd like to call i.Func when it is not nil. I know why this failed, but how to write a correct one? Why go-lang ...
David DENG
Jan 7, 2013 at 8:04 am
Jan 8, 2013 at 3:41 am -
Dear Go community, I spent some time trying to figure out how to best package Go libraries and programs in Debian. You can read the discussion on the debian-devel mailinglist at ...
Michael Stapelberg
Jan 2, 2013 at 11:02 pm
Jan 7, 2013 at 5:38 pm -
Very slow perfomance with multiple http.Get (Windows 7). Some urls is not exists and it looks like something blocking. Please, help. package main import ( "fmt" "io/ioutil" "net/http" "runtime" ...
Htdesign
Jan 18, 2013 at 3:16 am
Jun 30, 2014 at 12:10 pm -
The Simplestatement in an if is certainly handy. But I would even more like to be able to write sthg. between the lines of if checklinks && ok, err := CheckLink(link); !ok { // handleHere } This ...
Johann Höchtl
Jan 8, 2013 at 4:33 pm
Jan 10, 2013 at 8:53 pm -
We've seen a fair amount written about concurrency in Go, but I really wanted to spend some time digging into Go's object model. This article is a result, and covers embedding, interfaces and ...
Nathan Youngman
Jan 15, 2013 at 4:36 am
Jan 17, 2013 at 6:52 pm -
Hi all, I spent some time learning Go over the holidays and for the most part I really like the language. So far I've run into a few issues, but I'll probably manage to work through them. One thing ...
Robert Tweed
Jan 11, 2013 at 4:00 am
Jan 15, 2013 at 1:44 am -
As discussed recently, Dave Cheney is preparing a CL regarding the minimum system requirement for Go. (The relevant discussion is here: https://codereview.appspot.com/7225047/) As none of the people ...
Minux
Jan 26, 2013 at 10:03 pm
Feb 7, 2013 at 7:25 am -
Hi all -- a quick visual scan of http://godashboard.appspot.com/ finds five SQLite wrapper libraries. It *appears* that https://github.com/mattn/go-sqlite3 is up-to-date; the others, not so much ...
Greg Ward
Jan 15, 2013 at 8:44 pm
Jun 28, 2013 at 6:28 am -
Here's the problem most easily explained: http://play.golang.org/p/PNbcWeTxrx I know I can just stringify the float and parse before and after the "." but... yeah wondering if there's some sort of ...
Philipp Schumann
Jan 24, 2013 at 9:13 am
Jan 25, 2013 at 7:03 pm -
Hi, I have this very simple piece of code which is similar to a hot path in our application. GOMAXPROCS is left at the default of 1. http://play.golang.org/p/mCUK_9YMbj When I tested (siege, ...
Chandra Sekar S
Jan 4, 2013 at 7:48 pm
Jan 5, 2013 at 4:32 pm -
Before implementing this I'd like to ask if people would find it useful. In some security-sensitive environments it's useful to be able to wipe memory (such as removing a key). In my situation I ...
John Graham-Cumming
Jan 18, 2013 at 10:30 am
Feb 15, 2013 at 9:25 pm -
So, I've got this struct which contains a map and which is accessed from many goroutines. It's also go a bunch of channels and a select on those channels. So, if you want something done with this ...
Pkulak
Jan 28, 2013 at 5:05 am
Feb 3, 2013 at 1:37 pm -
1) from my device I can get latitude/longitude 2) a DB table with latitude/longitude/POI I want to find the closest match of 1) with 2) in order to get POI This is basically reverse a Geocode. How is ...
Thstart
Jan 18, 2013 at 7:28 pm
Jan 21, 2013 at 6:10 pm -
I ran into some confusing behavior today when trying to add time.Time values together: time.Time{} has the year 0001, but t, := time.Parse("15:04", "15:00") has the year 0000. This is how it's ...
Decitrig
Jan 13, 2013 at 4:19 am
Jan 18, 2013 at 9:02 pm -
There appears to be no stdlib method for creating a file and returning an error if it already exists... this is a pretty common thing to do, so you don't accidentally clobber files that already ...
Nate Finch
Jan 12, 2013 at 1:34 pm
Jan 14, 2013 at 11:02 pm -
Please don't do that. With all due respect these cliched answers don't help. Someone asks a question and the first few posts are "you shouldn't do that because ...." and then all the cliched reasons ...
Don Dailey
Jan 4, 2013 at 2:40 pm
Jan 6, 2013 at 5:35 pm -
When I just want 2D tables and don't need any linear algebra, or other matrix-related stuff this http://play.golang.org/p/NLdHOyz35z allows me to use addressing like mtx[i][j] = x instead of ...
Peter A. Cejchan
Jan 29, 2013 at 8:30 am
Jan 31, 2013 at 7:59 pm -
Hello, I'm interested in learning a little about asm and the Plan9 assembler and linker. I've read the manuals, but that reasonable expect a greater level of knowledge than I have (the last time I ...
Dan Kortschak
Jan 24, 2013 at 12:07 am
Jan 24, 2013 at 8:34 pm -
Around to 2 days ago I was trying to make a character randomize. But I couldn't get char variable, so this led to an 5 hours search for something this I'm was sure it existed. 4 hours later I ...
Bardiajedi
Jan 24, 2013 at 3:54 pm
Feb 4, 2013 at 3:04 pm -
Here is a nice feature that some of you might have missed. Without having to check for nil, you can delay the creation of a map until you actually need to add your first element. Take a look at this ...
Stefan Nilsson
Jan 1, 2013 at 5:01 pm
Jan 7, 2013 at 1:06 am -
Is there an HTML5 parser for Go that works? Tried "code.google.com/p/go-html-transform/h5" The parser dereferences nil on some documents, from bogusCommentHandler. Issue filed ...
John Nagle
Jan 16, 2013 at 8:47 pm
May 1, 2013 at 6:21 pm -
Hi, With reference to the previous discussions of SSE2 vs 387 support in Go 1.1, is the intention that ARMv5 continue to be supported for the life of the Go 1.x series ? Cheers Dave --
Dave Cheney
Jan 24, 2013 at 1:47 am
Feb 9, 2013 at 1:32 am -
In discussions with a sysadmin at $WORK, he mentioned that Go's static-linking is a deal-breaker for him. His example is if a security problem with a shared library (say, openssl) is discovered, only ...
Damian Gryski
Jan 30, 2013 at 10:39 am
Jan 30, 2013 at 5:51 pm -
Hi fellow Gophers, just wanted to share how easy I got some of my image transformation code parallized with the help of Goroutines. The code is still far from optimal and it's just a fun project I ...
Niklas Schnelle
Jan 21, 2013 at 8:11 pm
Jan 25, 2013 at 4:11 am -
Compare line 6 and line 8 in this code (http://play.golang.org/p/87_nThcN-R): package main func main() { for _, x := range []struct { in, out int }{ {1, 1}, } { if x.in != x.out { // problems... } } ...
Stefan Nilsson
Jan 16, 2013 at 12:54 pm
Jan 17, 2013 at 9:42 am -
Hello. I've written an optimized version of the strings.Index function for amd64 in Assembly. Before sending it in I would like to know if an Assembly version has to be written for 386 and arm as ...
Daniel Liden
Jan 13, 2013 at 9:31 pm
Jan 15, 2013 at 3:49 pm -
Hi everyone, it's been over a year: just curious, is the inliner *still* "still primitive" or has it progressed since this thread was created? -- You received this message because you are subscribed ...
Philipp Schumann
Jan 31, 2013 at 6:00 am
Jan 29, 2014 at 7:52 pm -
Hello, Last month I gave a talk "Let's Go, or introduction into Go" at RailsClub’Ulyanovsk (other themes covered on this conference for (ex-)Rubists/Railsists: Erlang, functional programming and ...
Alexey Palazhchenko
Jan 7, 2013 at 12:13 pm
Feb 21, 2013 at 11:21 pm -
Hi, I've got this slightly painful regex: ^(:?(\\d+(-(\\d+))?))+$ which should match according to the following examples: {"", true}, {"1", true}, {"1:3", true}, {"1-2:3", true}, {"1-2:3-2", true}, ...
Donovan Hide
Jan 28, 2013 at 5:37 pm
Jan 31, 2013 at 8:19 pm -
I was wander if "A" * 5 ("AAAAA") is possible in go, any other ways to do like python's? --
Tony Shao
Jan 7, 2013 at 6:33 pm
Jan 19, 2013 at 1:09 am -
Hi, I have a trouble with this code: package main import "fmt" func print(i int, valor string) { fmt.Printf("position: %d element: %s \n", i, valor) } func main() { urls := []string{"1", "2", "3", ...
Xan
Jan 6, 2013 at 7:43 pm
Jan 9, 2013 at 6:44 pm
Group Overview
group | golang-nuts |
categories | go |
discussions | 411 |
posts | 3,865 |
users | 492 |
website | golang.org |
492 users for January 2013
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)