Re: [go-nuts] Re: non-local return?

2019-03-09 Thread clementauger888
hi, its one way to *go*, the official one. i m happy golang, despite all, gave us tools so we can take a different path. and i want to add emphazes that i invited beginners to learn go before they import patterns from other languages. regarding the debate you open, i see no reason to re iterat

[go-nuts] Re: non-local return?

2019-03-08 Thread clementauger888
hi, i might be wrong, it looks likes to me that you want promise in go. something like this https://github.com/chebyrash/promise I personally don t like this pattern, even in javascript. but anyways, example below looks really weird to me and difficult to figure out what means to "reject but

[go-nuts] Re: bulding pipelines in golang

2019-02-14 Thread clementauger888
hi, sorry to come back so quickly, after those last updates about memory management optimizations, i want to share those latest optimizations about the cpu and some thoughts... the results are good, on this configuration, compared to the bounded.go. the solution consists of a new type of strea

[go-nuts] Re: bulding pipelines in golang

2019-02-13 Thread clementauger888
hi, in recent days i have been working on fixing some issues with above presented code (https://github.com/clementauger/st/blob/master/examples/walkfiles/main.go#L38) besides the fact the internal code uses a lot of reflection mechanisms to implement the api, putting in de facto on the wrong si

[go-nuts] panic: interface conversion: ... (types from different scopes)

2019-02-08 Thread clementauger888
Hello i was playing with the plugin mode and i met this error *panic: interface conversion: interface {} is func(string, func([]string) error) error, not func(string, func([]string) error) error (types from different scopes)* the code is a regular conversion, without test because i was not exp

Re: [go-nuts] At runtime, tell if a package path belongs to stdlib ?

2018-12-06 Thread clementauger888
thanks Ian, i had it done this way https://github.com/clementauger/stdlist/blob/master/raw.go Le lundi 26 novembre 2018 21:06:24 UTC+1, Ian Lance Taylor a écrit : > > On Mon, Nov 26, 2018 at 7:07 AM > > wrote: > > > > I m looking for a reliable way to determine if a package path string > belo

Re: [go-nuts] At runtime, tell if a package path belongs to stdlib ?

2018-11-26 Thread clementauger888
thanks! It will be useful, indeed. Le lundi 26 novembre 2018 16:15:51 UTC+1, Shulhan a écrit : > > On Mon, 26 Nov 2018 07:07:34 -0800 (PST) > clement...@gmail.com wrote: > > > HI, > > > > I m looking for a reliable way to determine if a package path string > > belongs to the stdlib or not.

Re: [go-nuts] At runtime, tell if a package path belongs to stdlib ?

2018-11-26 Thread clementauger888
Hi, I was not referring to the file system path, i m referring to the import package path. Given the string bytes, reliably tells this is a package that belongs to the stdlib of version Y. I m using the reflect.Type.PkgPath value, to be more specific. Le lundi 26 novembre 2018 16:11:40 UTC+1,

[go-nuts] At runtime, tell if a package path belongs to stdlib ?

2018-11-26 Thread clementauger888
HI, I m looking for a reliable way to determine if a package path string belongs to the stdlib or not. It happens at runtime, the program can not access its sources. I m thinking to write package that stores those information into package variables, into a map[go version][]packagesPaths. Do y

[go-nuts] bulding pipelines in golang

2018-11-11 Thread clementauger888
Hi, I recently confronted the problem of building data stream pipeline in golang to build some etl programs. I found it was not so simple to use the golang idioms. Using them i noticed i needed deep care and understanding to produce correct code. I also felt they was uselessly verbose and repet