[go-nuts] Re: iconvg: a compact, binary format for simple vector graphics

2016-10-24 Thread Daniel Theophanes
My understanding is that the original rust font render code could replace something like FreeType. Do you envision using iconvg and vector as a replacement for the go freetype package, where font glyphs would be loaded in as iconvg byte streams in a cache and then simply read from there in the

[go-nuts] Profiling live webserver application

2016-10-24 Thread 569234
Hey there, I have a Go webapp that serves a complicated website, including a search engine, recommendation engine, all kinds of caches for TB of content, etc. The app is using too much memory and the CPU increases recently. I'd like to profile both memory and CPU, live, so I can figure out what

Re: [go-nuts] allow &int{3}, &bool{true} etc

2016-10-24 Thread Henrik Johansson
I agree with Nate. The consistency in typing is a very compelling argument. On Mon, Oct 24, 2016, 22:14 Nate Finch wrote: > Because it's consistent with how you get a pointer for other types... if > I'm used to using &T{x} for structs, maps, and slices, then it's perfectly > natural to try that

[go-nuts] Re: [ANN] gohls, a downloader for HTTP Live Streaming (HLS) streams

2016-10-24 Thread mdasifvampkakkarot
sir can i download it for 32 bit windows On Friday, 7 March 2014 00:41:51 UTC+5:30, white...@gmail.com wrote: > > I'd like to announce the release of gohls, a small tool I wrote in Golang > to perform the task of capturing/downloading video streams in HTTP Live > Streaming format. It uses grafov

Re: [go-nuts] mgo , slice , reset var, need help understanding why this works

2016-10-24 Thread Diego Medina
Thanks. after reading your reply I was able to reduce the example to just a few lines, the key was to know that maps in Go are pointers, like slices are pointers too. https://play.golang.org/p/-x1R2P5IrF package main import ( "fmt" ) func main() { var docs []interface{} doc1 := map[string]in

Re: [go-nuts] How to build golang from source on osx sierra?

2016-10-24 Thread Ian Lance Taylor
On Mon, Oct 24, 2016 at 8:24 PM, Hoping White wrote: > Hi, all > > I have trouble on osx sierra with build golang. >As always, I do the following > git checkout go1.7.3 > cd src && ./all.bash > Instead of usual success, I get "fatal error: MSpanList_Insert” > > I have google this p

[go-nuts] How to build golang from source on osx sierra?

2016-10-24 Thread Hoping White
Hi, all I have trouble on osx sierra with build golang. As always, I do the following git checkout go1.7.3 cd src && ./all.bash Instead of usual success, I get "fatal error: MSpanList_Insert” I have google this problem, but suggests are rebuild go1.4.3 and bootstrap go1.7.3 But

[go-nuts] Is testing.M safe to run multiple times?

2016-10-24 Thread Carl Mastrangelo
Is it safe to call (*testing.M).Run() multiple times within a single TestMain ? Whether the answer is yes or no, would it be possible to update the docs to make this clear? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from t

Re: [go-nuts] mgo , slice , reset var, need help understanding why this works

2016-10-24 Thread Dan Kortschak
I would guess this is because when iter.Next is given a nil bson.M is needs to make a new value to fill (which from your output is a map). When it is handed a bson.M that already has a map in it, it can use that. Remember that bson.M is just interface{} and maps are pointer- like. On Mon, 2016-10-

[go-nuts] Re: `go tool vet -v` throwing errors for no apparent reason

2016-10-24 Thread info
https://github.com/golang/go/issues/17571 -- 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 https:

Re: [go-nuts] allow &int{3}, &bool{true} etc

2016-10-24 Thread Nate Finch
Because it's consistent with how you get a pointer for other types... if I'm used to using &T{x} for structs, maps, and slices, then it's perfectly natural to try that with builtins and arrays. If someone says "oh, sorry, for ints you have to use ref(5)" then I'm going to get annoyed at an inc

Re: [go-nuts] allow &int{3}, &bool{true} etc

2016-10-24 Thread roger peppe
How would new syntax be better than a built-in function with exactly the semantics you are after and shorter to type to boot? On 23 Oct 2016 01:50, "Nate Finch" wrote: > I'd much rather have syntax that just works rather than another built-in > function. > > On Sat, Oct 22, 2016, 6:17 PM roger p

[go-nuts] mgo , slice , reset var, need help understanding why this works

2016-10-24 Thread Diego Medina
Hi (sorry for the cryptic subject, I'm just not sure what to even call this): I think this is not strictly a mgo question, I have this simplified function that gets documents from a mongo instance using Iter(), I then loop through the results, append them to a slice []interface{} but the resu

Re: [go-nuts] golang and java, a view

2016-10-24 Thread Daniel Theophanes
Oracle and ms SQL server support multiple active row sets (MARS). I've also used a table buffer in Go and C#. You can buffer results today in go On Mon, Oct 24, 2016, 10:24 Pietro Gagliardi wrote: > > On Oct 24, 2016, at 12:24 PM, Daniel Theophanes > wrote: > > Go1.8 will support multiple resul

Re: [go-nuts] golang and java, a view

2016-10-24 Thread Pietro Gagliardi
> On Oct 24, 2016, at 12:24 PM, Daniel Theophanes wrote: > > Go1.8 will support multiple result sets if the driver support it. I believe they meant being able to have multiple result sets usable at a time, which implies ditching the stream-based model for the more widely adopted "slurp it all

Re: [go-nuts] golang and java, a view

2016-10-24 Thread Konstantin Khomoutov
On Mon, 24 Oct 2016 09:24:26 -0700 (PDT) Daniel Theophanes wrote: > Go1.8 will support multiple result sets if the driver support it. > > There are people who would like to get a decimal package, there is a > proposal, but there is a lack of time on that. I'm successfully using in production.

[go-nuts] golang and java, a view

2016-10-24 Thread Daniel Theophanes
Go1.8 will support multiple result sets if the driver support it. There are people who would like to get a decimal package, there is a proposal, but there is a lack of time on that. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscrib

Re: [go-nuts] Re: Golang should have a center packages index hosting like npm, rust crates

2016-10-24 Thread 'Axel Wagner' via golang-nuts
On Mon, Oct 24, 2016 at 5:46 PM, Nate Finch wrote: > Godoc.org is pretty good for searching for packages to use. It's not > perfect, of course... it won't find things that it hasn't been told about, > but that's on the project author to worry about. > Notably, this is no different from a centra

[go-nuts] Re: Why does a "concurrent" Go GC phase appear to be stop-the-world?

2016-10-24 Thread rhys . hiltner
Yes, this sounds like https://golang.org/issue/16528. During the concurrent mark phase (the "27 [ms]" of "0.008+27+0.072 ms clock"), both your code and the garbage collector are running. The program is allowed to use four OS threads ("4 P"), which might be executing your code in your goroutines,

[go-nuts] Re: Golang should have a center packages index hosting like npm, rust crates

2016-10-24 Thread Nate Finch
I, for one, really like that there's no central repository for go packages. I don't like the idea of a central authority telling me how and what I'm allowed to publish. I like that there's no one between a package I authored and a project using it except git clone (and, evidently, some DNS ca

[go-nuts] Re: Add sql.NullTime type

2016-10-24 Thread mbohuslavek
I think there's a reason sql.NullTime is not in the std library. But I'm not sure what the reason actually is. Can someone explain to me, please? Many thanks, Michal Dne sobota 22. října 2016 18:35:15 UTC+1 Dima Kurguzov napsal(a): > > sql package supports most language primitives (bool, int64,

Re: [go-nuts] Getting count of tests executed

2016-10-24 Thread Rob Pike
It prints FAIL or PASS for each test, so the simplest way might be to grep -c the output. I suspect that's not the answer you're looking for, however. The testing library in the core packages does not provide this information directly. -je m'appelle rob On Sun, Oct 23, 2016 at 1:23 AM, Dave Hein

Re: [go-nuts] iconvg: a compact, binary format for simple vector graphics

2016-10-24 Thread Pietro Gagliardi
I wonder if there's a way to simulate elliptical gradients with only circular gradients and affine transformations, so package ui can also render these files directly using the system native vector graphics APIs. Does this also require the cairo/Quartz feature of having a circular gradient have

[go-nuts] golang and java, a view

2016-10-24 Thread zelda . azusa . so
it would be nice if the following 2 features may be seen in future version of golang... (1) an official package of BigDecimal handling; and (2) a little better handling of database handling in sql package... i am not sure if it handles other types of database engine in the same way - we use pos

[go-nuts] Getting count of tests executed

2016-10-24 Thread Dave Hein
In the output of 'go test' I would like to see a summary containing the count of the number of unit tests executed, the number passed and the number failed. (Why? For reporting produced by automated build system.) Is there any way to get that information? Is there an alternative testing package

Re: [go-nuts] Re: A simple question - Can C++ and goLang coexist in the same ecosystem?

2016-10-24 Thread Carlos Ferreira
> > For a large system where you simply can't spend all time tuning an inner > loop to oblivion, this may end up with the Go program being faster than the > C++ program. Building C++ programs depends a lot on how the program is structured and how complex it is. I usually run a batch of tests for

Re: [go-nuts] Re: A simple question - Can C++ and goLang coexist in the same ecosystem?

2016-10-24 Thread Jesper Louis Andersen
On Mon, Oct 24, 2016 at 11:51 AM Haddock wrote: > Just to be precise: Go has currently performance near Java, see > http://benchmarksgame.alioth.debian.org/u64q/go.html Nevertheless, that > is still 3x-15x faster than Python ;-), see > http://benchmarksgame.alioth.debian.org/u64q/python.html > >

Re: [go-nuts] A simple question - Can C++ and goLang coexist in the same ecosystem?

2016-10-24 Thread Jesper Louis Andersen
On Mon, Oct 24, 2016 at 2:51 AM Carlos Ferreira wrote: > > Using binds is a more efficient and direct approach. Also, why calling an > external command when you can just load a shared library? It never made any > sense to me... > One argument for calling externally is that it provides OS isolati

Re: [go-nuts] Re: There has no Mutex.Trylock() implemention or similar method ?

2016-10-24 Thread adonovan via golang-nuts
On Sunday, 23 October 2016 16:17:29 UTC-4, John Souvestre wrote: > > Take a look at https://github.com/LK4D4/trylock/blob/master/trylock.go . > > > > I believe that it is easier and performs better. > Yes, this looks like a sound solution if you don't need the re-entrant behavior. -- You rece

Re: [go-nuts] Re: A simple question - Can C++ and goLang coexist in the same ecosystem?

2016-10-24 Thread Carlos Ferreira
@Kiki > > Love python. You don't write an external module every single time do you? > :) Only when I need raw performance or I need to do something very specific, like fast packet manipulation at Layer 2. Writing Python Modules isn't hard and most of the times I just copy-past from previous imple

[go-nuts] Go won at ISUCON6!

2016-10-24 Thread mattn
Hi, Gophers. Few days ago, A famous contest was held in Japan. It's ISUCON6. http://isucon.net/archives/48465737.html (japanese) ISUCON is a contest that the participant compete with benchmark speed of their customized application while limited times. They can choose the implementation of base

[go-nuts] Re: A simple question - Can C++ and goLang coexist in the same ecosystem?

2016-10-24 Thread Haddock
Am Sonntag, 23. Oktober 2016 07:36:50 UTC+2 schrieb Carlos Ferreira: > > C++ is evolving. C++14 is out and used in production. C++17 is almost > ready. > > But because it seems that goLang is quite efficient (near C performance), > I'm just wondering... > > Just to be precise: Go has currentl

Re: [go-nuts] A simple question - Can C++ and goLang coexist in the same ecosystem?

2016-10-24 Thread Seb Binet
On Mon, Oct 24, 2016 at 2:50 AM, Carlos Ferreira wrote: > It's improper because it is not the correct way of doing things. Calling > external commands usually require calling the terminal and all of the > overhead that it requires. > Using binds is a more efficient and direct approach. Also, why