[go-nuts] did anyone tried // template exec ?

2017-05-30 Thread mhhcbon
hi, wonder, if anyone, - tried to make an implementation of template that works in // ? - was it successful ? - useful for perf ? thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fr

[go-nuts] Re: did anyone tried // template exec ?

2017-05-30 Thread mhhcbon
obviously not, go func t.Exec... go func t.Exec... but ` {{slowcall}} {{fastcall}} {{slowcall}} {{$y := CanNot//}} ` ect On Tuesday, May 30, 2017 at 10:09:35 AM UTC+2, mhh...@gmail.com wrote: > > hi, > > wonder, if anyone, > - tried to make an implementation of template that works in // ? > - w

[go-nuts] Re: did anyone tried // template exec ?

2017-05-30 Thread Nathan Kerr
I'm not aware of any templating languages that provide concurrent or parallel constructions. If you need parallel execution of those function calls, I would run the calls as part of my Go code and then pass the results to the template. On Tuesday, May 30, 2017 at 10:44:21 AM UTC+2, mhh...@gmail

[go-nuts] Re: did anyone tried // template exec ?

2017-05-30 Thread mhhcbon
thanks for feedback. > If you need parallel execution of those function calls, I would run the calls as part of my Go code and then pass the results to the template. This is not really //. You are still waiting for the input to exist before you even start the template processing. If you put t

[go-nuts] Re: Which Go client for ElasticSearch?

2017-05-30 Thread Philip Pearl
Hi, I'm afraid I just followed the elastic search reference docs. I don't know if any tutorials Phil On Tue, 30 May 2017, 04:52 , wrote: > Hello Philip, > I searched quite a lot for any tutorials on how to write directly to the > http API but couldn't find tutorials or pointers on how to do tha

[go-nuts] Re: idea: generic methods on slices with some generic type support []string.Map(string) []string => [].Map() []

2017-05-30 Thread mhhcbon
I m just gonna add more examples as it come, from hasPrefix := func(prefix string) func(string) bool { return func(s string) bool { return strings.HasPrefix(s, prefix) } } // this is not cool if fnUtils.AllTypes().Filter(hasPrefix("post")).

Re: [go-nuts] Re: How fast can gopacket handles?

2017-05-30 Thread Chun Zhang
Thank you Rajanikanth, Kevin and Egon! I will explore the ideas you guys provided and keep you updated. Best Regards, Chun On Sunday, May 28, 2017 at 2:25:03 AM UTC-4, Egon wrote: > > > > On Saturday, 27 May 2017 14:05:11 UTC+3, Chun Zhang wrote: >> >> Thanks Kevin and Egon! >> >> With a few e

[go-nuts] Re: idea: generic methods on slices with some generic type support []string.Map(string) []string => [].Map() []

2017-05-30 Thread mhhcbon
I just realized what d be awesome is that the language does not only provide boiler plate []basicType enhanced types, but provides streamed version of them, that d be much better. when you do [15Million]string.map().filter().count(). with a naive implementation over array of those intents, you

[go-nuts] Using Context to store TraceIDs

2017-05-30 Thread William Kennedy
I read this post by Jaana https://docs.google.com/document/d/1GFHAksL5HQy1YacCFXMUdOTC4e21uoX-TbMzRXAtx_I/preview I wanted to start a conversation about the Context value bag and TraceIDs. I am concerned with the idea of using the Context to pass TraceIDs into the API of packages that don't dire

[go-nuts] Re: Using Context to store TraceIDs

2017-05-30 Thread William Kennedy
After reading this: https://cloudplatform.googleblog.com/2017/04/distributed-tracing-for-Go.html I can see how the Context is being used, through a separate API. Would it make sense to use a separate Context value for the "Trace" Context and use a separate Context value for the "Cancellation" C

[go-nuts] Which Go client for ElasticSearch?

2017-05-30 Thread DV
This might be an unpopular opinion, but you don't *need* an ES client. ES is just JSON over HTTP with a very well documented REST-ful API. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

Re: [go-nuts] Which Go client for ElasticSearch?

2017-05-30 Thread roger peppe
We rolled our own, not hiding the fact that it's just JSON over HTTP. https://godoc.org/gopkg.in/juju/charmstore.v5-unstable/elasticsearch On 30 May 2017 at 16:44, DV wrote: > This might be an unpopular opinion, but you don't *need* an ES client. ES is > just JSON over HTTP with a very well docu

[go-nuts] Re: idea: generic methods on slices with some generic type support []string.Map(string) []string => [].Map() []

2017-05-30 Thread mhhcbon
one more case where conv d be awesome, with fnUtils.InputParams() ParamSlice Where ParamSlice []struct{Name,Type string} With little help, I can do stuff like ctxFilter := astutil.FilterParamSlice.ByType(ctxCtx) fnUtils.InputParams().Filter(ctxFilter).Map(func(p astu

[go-nuts] Both "Go+ Community" and "Go on Google+" pages on blog.golang.org are old

2017-05-30 Thread leam hall
One was last updated in 2015, the other in 2013. Am I missing more than my usual clue? Leam -- 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

Re: [go-nuts] Why golang garbage-collector not implement Generational and Compact gc?

2017-05-30 Thread Jan Ziak
On Tuesday, May 16, 2017 at 4:06:25 PM UTC+2, Ian Lance Taylor wrote: > > On Tue, May 16, 2017 at 2:01 AM, > wrote: > > > > Generational and Compact gc have already been thought best practice. But > > golang doesn't adopt it. Who can tell me the reason? > > Now let's consider a generational GC

Re: [go-nuts] Why golang garbage-collector not implement Generational and Compact gc?

2017-05-30 Thread Ian Lance Taylor
On Tue, May 30, 2017 at 12:44 PM, Jan Ziak <0xe2.0x9a.0...@gmail.com> wrote: > On Tuesday, May 16, 2017 at 4:06:25 PM UTC+2, Ian Lance Taylor wrote: >> >> On Tue, May 16, 2017 at 2:01 AM, wrote: >> > >> > Generational and Compact gc have already been thought best practice. But >> > golang doesn't

[go-nuts] A spinning cube demo using Vulkan API and Go, the project status

2017-05-30 Thread Maxim Kupriianov
Hi guys, I recently finished my first complex Vulkan API example in Go: A SPINNING CUBE. https://github.com/vulkan-go/demos/tree/master/vulkancube It actually took me three attempts to do that, meanwhile I was improving the Vulkan API bindings project, you can see the project history timeline