Re: [go-nuts] Hashing (u)int8

2016-12-16 Thread Daniel Skinner
It's surprising but it's not. Who would have guessed 8bits would be more expensive on a 64bit platform. On Fri, Dec 16, 2016 at 11:15 PM Damian Gryski wrote: > The runtime has optimized map implementations for strings, int32 and > int64-sized thing > > There is no optimized

[go-nuts] Hashing (u)int8

2016-12-16 Thread Damian Gryski
The runtime has optimized map implementations for strings, int32 and int64-sized thing There is no optimized implementation for int8-sized things -- just use an array. Damian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] Hashing (u)int8

2016-12-16 Thread Ayan George
On 12/16/2016 07:01 PM, Ondrej wrote: > Hey, > I had int as a key in my map and later realised I only used 100 or so > values, so swapped it for a uint8, expecting a minor speed increase, but > saw a major slowdown instead. To recreate this, I tried this simple > microbenchmark and was surprised

[go-nuts] Hashing (u)int8

2016-12-16 Thread Ondrej
Hey, I had int as a key in my map and later realised I only used 100 or so values, so swapped it for a uint8, expecting a minor speed increase, but saw a major slowdown instead. To recreate this, I tried this simple microbenchmark and was surprised by the difference between (u)int8/16 and

[go-nuts] Re: Announcing Gogland – Brand New Go IDE from JetBrains

2016-12-16 Thread Peter Gloor
This sounds very promising. After I've been using Eclipse and Visual Studio for ages I feared to use any complicated IDE for Go and solely used simple editors and LiteIDE for my Go projects. The more I had to deal with web projects the more I've been missing an IDE that IDEAlly fills the gap.

[go-nuts] Re: How to report about app crash to the monitoring server?

2016-12-16 Thread Maksim Sitnikov
Thanks for mentioning panicwrap. They've added forwardable signal recently, which I certainly need to be able to exit from the app by sending TERM to the parent process. But I think there some errors in implementation. I mentioned them here

[go-nuts] Re: Upgraded to Go 1.8beta2 and now Atom go-plus isn't working

2016-12-16 Thread Damian Gryski
On Friday, December 16, 2016 at 4:36:24 PM UTC+1, kcr...@sessionm.com wrote: > > I've had some luck across golang version changes by recompiling > github.com/nsf/gocode, which I believe go-plus uses for autocompletion. > Also https://github.com/mdempsky/gocode which is a cleaned up version

Re: [go-nuts] plugins and package main

2016-12-16 Thread David Norton
Hopefully in 1.9 then. Created issue #18350 . Thanks, Ian. On Friday, December 16, 2016 at 12:07:33 PM UTC-5, Ian Lance Taylor wrote: > > On Fri, Dec 16, 2016 at 8:32 AM, David Norton > wrote: > > Any chance this could make it

Re: [go-nuts] plugins and package main

2016-12-16 Thread Ian Lance Taylor
On Fri, Dec 16, 2016 at 8:32 AM, David Norton wrote: > Any chance this could make it into 1.8? No. Sorry. Ian > On Friday, December 16, 2016 at 11:24:26 AM UTC-5, Ian Lance Taylor wrote: >> >> On Fri, Dec 16, 2016 at 8:15 AM, David Norton wrote: >> >

[go-nuts] filtering go in memory objects?

2016-12-16 Thread JM
I am now getting into data processing with go and looking for resources on filtering and querying slices and maps. For example a slice or map of data in a in memory cache that will be queried instead of hitting the db. There is a package here https://github.com/ahmetalpbalkan/go-linq but I am

Re: [go-nuts] plugins and package main

2016-12-16 Thread David Norton
Any chance this could make it into 1.8? On Friday, December 16, 2016 at 11:24:26 AM UTC-5, Ian Lance Taylor wrote: > > On Fri, Dec 16, 2016 at 8:15 AM, David Norton > wrote: > > Or, maybe tell the go tool which package to consider "main" instead of > > listing all

[go-nuts] Re: Go GC time creeping up

2016-12-16 Thread Evan Digby
Hi Dave, Just to follow up as I believe we've resolved this issue. TL;DR: Ever-growing maps with convoluted logic surrounded by locks lead to poor response times. Your response prompted us to not write off what we had assumed was an insignificant increase in heap size (~100mb over 24 hours)

Re: [go-nuts] [ANN] browse

2016-12-16 Thread 'Alan Donovan' via golang-nuts
Correction: https://github.com/golang/go/issues/18348 On 16 December 2016 at 11:29, Alan Donovan wrote: > On 16 December 2016 at 11:01, Jan Mercl <0xj...@gmail.com> wrote: > >> go/{scanner ,parser} speed is okay. >> It's problem is that

Re: [go-nuts] [ANN] browse

2016-12-16 Thread 'Alan Donovan' via golang-nuts
On 16 December 2016 at 11:01, Jan Mercl <0xj...@gmail.com> wrote: > go/{scanner ,parser} speed is okay. > It's problem is that it does not scale well in parallel execution when > there's a shared token.FileSet. > That's a good point. I measured the benefit of

Re: [go-nuts] plugins and package main

2016-12-16 Thread Ian Lance Taylor
On Fri, Dec 16, 2016 at 8:15 AM, David Norton wrote: > Or, maybe tell the go tool which package to consider "main" instead of > listing all packages. Would that work? I didn't mean to imply that it is necessary to list every package in the plugin. The plugin would contain

[go-nuts] plugins and package main

2016-12-16 Thread David Norton
We're experimenting with the new plugin package (in go 1.8 beta) in telegraf . It would be convenient if plugin code could be in any package and not required to be in "package main". Is that possible? For example, if we wanted a package to allow both the

Re: [go-nuts] [ANN] browse

2016-12-16 Thread Jan Mercl
On Fri, Dec 16, 2016 at 4:27 PM adonovan via golang-nuts < golang-nuts@googlegroups.com> wrote: > ssadump is loading, cgo-preprocessing, parsing, and type-checking the entire transitive closure of source files required by the current package, then building its SSA representation in a second pass,

[go-nuts] Native messaging host library

2016-12-16 Thread Sol
After working on a native messaging host application for chrome and Firefox, I thought some might find it useful if I extracted the messaging part into library. https://github.com/qrtz/nativemessaging Your feedback is very much welcomed -- You received this message because you are subscribed

Re: [go-nuts] What is the role of -buildid?

2016-12-16 Thread Ian Lance Taylor
On Fri, Dec 16, 2016 at 2:04 AM, wrote: > When I run go build -x, I find that this are -buildid flags in the actual > compile and link commands. What is it for? See the long comment before the function isStale in cmd/go/pkg.go. Ian -- You received this message because you

[go-nuts] Re: Upgraded to Go 1.8beta2 and now Atom go-plus isn't working

2016-12-16 Thread kcraig
I've had some luck across golang version changes by recompiling github.com/nsf/gocode, which I believe go-plus uses for autocompletion. On Friday, December 16, 2016 at 7:14:59 AM UTC-5, Diego Medina wrote: > > Hi, > > I have seen similar posts to this but I could not find any of them so >

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Francisco Souza
On Fri, Dec 16, 2016 at 7:05 AM, Seb Binet wrote: > > > On Fri, Dec 16, 2016 at 1:02 PM, Caleb Doxsey wrote: >> >> The easy solution here is gimme. >> >> >> $ eval "$(gimme 1.8beta2)" >> >> >> Downloads and installs go and sets all the environment variables

Re: [go-nuts] [ANN] browse

2016-12-16 Thread adonovan via golang-nuts
On Friday, 16 December 2016 06:22:47 UTC-5, Jan Mercl wrote: > > > but I am curious: why the need for internal/gc, "a Go compiler front > end. Work in progess" ? > > it seems to be very much alike to go/types (or, rather, a mix of > go/types and go/ast). > > For example (not completely fair

Re: [go-nuts] "plugin was built with a different version..."

2016-12-16 Thread David Crawshaw
The design doc predates the proposal repository. https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGhFDelrAP0NqSS_00RgZQ/edit On Fri, Dec 16, 2016 at 10:08 AM, David Norton wrote: > Thanks, David. Also, is there a proposal / design doc for the plugin pkg > somewhere?

Re: [go-nuts] "plugin was built with a different version..."

2016-12-16 Thread David Norton
Thanks, David. Also, is there a proposal / design doc for the plugin pkg somewhere? I didn't see one in the proposal repo. On Wednesday, December 14, 2016 at 2:15:32 PM UTC-5, David Crawshaw wrote: > > The hash is a SHA1 of the package object data, generated by the > linker, cmd/link. The hash

[go-nuts] What is the role of -buildid?

2016-12-16 Thread scauyjf
When I run go build -x, I find that this are -buildid flags in the actual compile and link commands. What is it for? -- 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

[go-nuts] Re: memclr optimazation does worse?

2016-12-16 Thread rd6137
Hi Solokov, interesting idea, but it does not seem that the cache size would be the issue at hand here — please note that slices of more than 524288 integers do not fit in my laptop cache: 1. The runtime is linear to the size of the array (no "cliff" — see attached picture) 2. The page

[go-nuts] HTTP Client based on middlewares

2016-12-16 Thread bojan . delic
Hi everybody. I would like to get some feedback on set of libraries that I wrote. Together they are pluggable, middleware-based HTTP client. Main idea is to replicate pattern from widely used for server implementation. We all know (and love) http.Handlerinterface, which is a base for bunch

[go-nuts] Upgraded to Go 1.8beta2 and now Atom go-plus isn't working

2016-12-16 Thread Diego Medina
Hi, I have seen similar posts to this but I could not find any of them so posting this. I went ahead and installed the latest beta to try it out, both my apps at work work ok with it (yeah!), but now go-plus in Atom (and the autocomplete plugin) won't autocomplete any more, it just offers

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Seb Binet
see: https://go-review.googlesource.com/c/34385/ -s On Fri, Dec 16, 2016 at 1:05 PM, Seb Binet wrote: > > > On Fri, Dec 16, 2016 at 1:02 PM, Caleb Doxsey wrote: > >> The easy solution here is gimme . >> >> >> $ eval

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Seb Binet
On Fri, Dec 16, 2016 at 1:02 PM, Caleb Doxsey wrote: > The easy solution here is gimme . > > > $ eval "$(gimme 1.8beta2)" > > > Downloads and installs go and sets all the environment variables for you. > there's also something happening

[go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Caleb Doxsey
The easy solution here is gimme . $ eval "$(gimme 1.8beta2)" Downloads and installs go and sets all the environment variables for you. On Wednesday, December 14, 2016 at 11:58:55 AM UTC-5, aind...@gmail.com wrote: > > I currently have the distribution "go

Re: [go-nuts] [ANN] browse

2016-12-16 Thread Jan Mercl
On Fri, Dec 16, 2016 at 10:38 AM Seb Binet wrote: > it looks really slick (and I like how one can quickly navigate between identifiers and go to their definition) FTR, ctrl-click and middle-click open the target in a new window, like web bowsers do. > but I am curious: why

Re: [go-nuts] Debug memory leaks in cgo calls

2016-12-16 Thread Will Newton
On Thu, Dec 15, 2016 at 12:57 AM, Pablo Rozas Larraondo wrote: > I've seen this question asked before in the mail list but with no clear > answers. I'm just asking it again in case someone has come up with a new way > of doing this: > > Does anyone know about a good

Re: [go-nuts] [ANN] browse

2016-12-16 Thread Seb Binet
On Fri, Dec 16, 2016 at 2:07 AM, Jan Mercl <0xj...@gmail.com> wrote: > https://github.com/cznic/browse > > Browse packages in the terminal. The "rough at the edges" release. > it looks really slick (and I like how one can quickly navigate between identifiers and go to their definition) but I am

[go-nuts] Re: How many bytes binary.Write write before an error?

2016-12-16 Thread Peng Wang
OK, now I actually get it. Just use a CounterWriter and return bytes num it receives. Such writer already exists in the std lib? 在 2016年12月16日星期五 UTC+8下午2:10:41,P Q写道: > > 2016년 12월 16일 금요일 오전 11시 5분 53초 UTC+9, Peng Wang 님의 말: > Actually I don't really care about that, just don't want break the