[go-nuts] CfP Go Devroom FOSDEM 2018

2017-10-09 Thread Francesc Campoy Flores


Hi gophers,

The Go community has been represented at FOSDEM  every 
year since 2014, and 2018 will not be an exception!

This time the Go devroom got a full (large!) room on Saturday February 3rd 
and we are now looking for speakers. The format will be 30 minutes talk 
with some time for Q at the end.


This is a great opportunity for new speakers, and we will have people 
helping you craft your talk and slides if so you wish. So if you, or 
someone you know, are working on something cool that might be good on stage 
… submit a proposal!

Do you want to be one of them? Please submit your proposal using pentabarf 
here . The deadline for 
submission is November 30th. If you have an account from previous years you 
can reuse it. 

Do you want to help organize the devroom? We need people to help with the 
cameras, set up, and proposal review. Please send me an email to 
go-devroom-mana...@fosdem.org if you'd like to help out with this.

Any topics related to Go are welcome, with a preference for open source 
projects rather than product pitches.

The room will follow Go's Code of Conduct .

Cheers,

Francesc Campoy

-- 
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://groups.google.com/d/optout.


RE: [go-nuts] Latest Tiobe Ranking

2017-10-09 Thread John Souvestre
You could mention to your colleagues that if they scroll down on the Tiobe page 
they will find Go listed in their Hall of Fame as the "Programming Language of 
the Year" for 2009 and 2016.

I second Ian's recommendation of Redmonk and IEEE - if you must reference any 
such lists.

John

John Souvestre - New Orleans LA

-Original Message-
From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On 
Behalf Of snmed
Sent: 2017 October 09, Mon 13:14
To: golang-nuts
Subject: Re: [go-nuts] Latest Tiobe Ranking

Hi Ian

Thank you for your elaboration. I won't choose a language because of such 
index, but I'm trying to convince my colleagues of the benefits of go and 
therefore no matter how funny such indexes are, it isn't useful as well. I'm 
always looking for success stories about using go from other companies.

Cheers

-- 
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://groups.google.com/d/optout.

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] when to use Sync pool

2017-10-09 Thread Val
Good point, thank you Bryan.

Also note that assigning a func value to p.New seems standard for the use case 
"if nil, then create one" (I don't know the perf implications).

Cheers
Val

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Latest Tiobe Ranking

2017-10-09 Thread John Roth


On Monday, October 9, 2017 at 12:13:43 PM UTC-6, snmed wrote:
>
> Hi Ian
>
> Thank you for your elaboration. I won't choose a language because of such 
> index, but I'm trying to convince my colleagues of the benefits of go and 
> therefore no matter how funny such indexes are, it isn't useful as well. 
> I'm always looking for success stories about using go from other companies.
>
> Cheers
>

If you want to make this a bit more useful, analyze why the difference. As 
far as I can see, the entire change in ranking was due to: Matlab, Scratch, 
R and PL/SQL. All four of these are special purpose languages. You are 
looking for a general purpose language. Looked at this way, the ranking 
hasn't changed. 

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Latest Tiobe Ranking

2017-10-09 Thread snmed
Hi Ian

Thank you for your elaboration. I won't choose a language because of such 
index, but I'm trying to convince my colleagues of the benefits of go and 
therefore no matter how funny such indexes are, it isn't useful as well. I'm 
always looking for success stories about using go from other companies.

Cheers

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Latest Tiobe Ranking

2017-10-09 Thread Ian Lance Taylor
On Mon, Oct 9, 2017 at 10:41 AM, snmed  wrote:
>
> I've seen the latest Tiobe Index https://www.tiobe.com/tiobe-index/
> How could that happen, dropped onto the 20th rank? Has someone a better 
> source of go's adoption in the wild?

The TIOBE index is quite unreliable as it is based only on web
searches.  They also change their algorithm from time to time, meaning
that the historical results are close to meaningless.

In general you have to treat all these indexes as amusing sidelines
that mean little in reality.  You definitely shouldn't use them to
choose which programming language to use.  That said, two indexes that
are slightly more meaningful than TIOBE, in that they at least measure
something more relevant, are Redmonk
(http://redmonk.com/sogrady/2017/06/08/language-rankings-6-17/) and
IEEE Spectrum 
(https://spectrum.ieee.org/computing/software/the-2017-top-programming-languages).
But before you go off approving those I stress again that all of these
indexes are amusements at best.

Ian

-- 
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://groups.google.com/d/optout.


[go-nuts] Latest Tiobe Ranking

2017-10-09 Thread snmed
I've seen the latest Tiobe Index https://www.tiobe.com/tiobe-index/ 
How could that happen, dropped onto the 20th rank? Has someone a better source 
of go's adoption in the wild?

Cheers

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Re: important

2017-10-09 Thread Jan Mercl
On Mon, Oct 9, 2017 at 7:04 PM Francisco Dalla Rosa Soares <
dallar...@gmail.com> wrote:

> Actually I have the email here from three days ago, so it might have been
marked as spam at some inboxes

No such message in my spam folder (using inbox.google.com).

-- 

-j

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Re: important

2017-10-09 Thread Francisco Dalla Rosa Soares
Actually I have the email here from three days ago, so it might have been
marked as spam at some inboxes

2017/10/10 2:02 "Ian Lance Taylor" :

> On Mon, Oct 9, 2017 at 9:54 AM, jimmy frasche 
> wrote:
> >
> > I didn't get that email either.
> >
> > On Mon, Oct 9, 2017 at 9:51 AM, Jan Mercl <0xj...@gmail.com> wrote:
> >>
> >> On Mon, Oct 9, 2017 at 6:43 PM Ian Lance Taylor 
> wrote:
> >>
> >>> Didn't I answer this question already?
> >>
> >> Obviously you did, I can see your answer in the web interface, but if
> the OP
> >> is using only the mail for communicating with the group, as I do, I
> must say
> >> that your answer never made it to my inbox and that's probably why the
> OP is
> >> asking again.
>
> Weird.  I sent that reply via e-mail, as I always do, not using the
> web interface.  I wonder what could have caused it to appear in the
> web interface but not in e-mail?  Could the e-mail have been spam
> filtered for some reason?
>
> Ian
>
> --
> 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://groups.google.com/d/optout.
>

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Re: important

2017-10-09 Thread Ian Lance Taylor
On Mon, Oct 9, 2017 at 9:54 AM, jimmy frasche  wrote:
>
> I didn't get that email either.
>
> On Mon, Oct 9, 2017 at 9:51 AM, Jan Mercl <0xj...@gmail.com> wrote:
>>
>> On Mon, Oct 9, 2017 at 6:43 PM Ian Lance Taylor  wrote:
>>
>>> Didn't I answer this question already?
>>
>> Obviously you did, I can see your answer in the web interface, but if the OP
>> is using only the mail for communicating with the group, as I do, I must say
>> that your answer never made it to my inbox and that's probably why the OP is
>> asking again.

Weird.  I sent that reply via e-mail, as I always do, not using the
web interface.  I wonder what could have caused it to appear in the
web interface but not in e-mail?  Could the e-mail have been spam
filtered for some reason?

Ian

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Re: important

2017-10-09 Thread jimmy frasche
I didn't get that email either.

On Mon, Oct 9, 2017 at 9:51 AM, Jan Mercl <0xj...@gmail.com> wrote:
>
> On Mon, Oct 9, 2017 at 6:43 PM Ian Lance Taylor  wrote:
>
>> Didn't I answer this question already?
>
> Obviously you did, I can see your answer in the web interface, but if the OP
> is using only the mail for communicating with the group, as I do, I must say
> that your answer never made it to my inbox and that's probably why the OP is
> asking again.
>
> --
>
> -j
>
> --
> 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://groups.google.com/d/optout.

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Re: important

2017-10-09 Thread Jan Mercl
On Mon, Oct 9, 2017 at 6:43 PM Ian Lance Taylor  wrote:

> Didn't I answer this question already?

Obviously you did, I can see your answer in the web interface, but if the
OP is using only the mail for communicating with the group, as I do, I must
say that your answer never made it to my inbox and that's probably why the
OP is asking again.

-- 

-j

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] Re: important

2017-10-09 Thread Ian Lance Taylor
On Mon, Oct 9, 2017 at 9:14 AM, 王晚成  wrote:
> who can help me?

Didn't I answer this question already?

https://groups.google.com/d/msg/golang-nuts/EqgSOWSZRIo/Dm7T-OcuAgAJ

Ian



> 2017年10月8日 上午10:36,"王晚成" 写道:
>>
>> hello,
>> What is the meaning of the mstartfn field inside the M structure under
>> runtime2.go?
>>  Goroutine is eventually executed by threads, which naturally require the
>> mstartfn function  to obtain G tasks. That's correct, isn't it?
>> Thanks very much.
>
> --
> 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://groups.google.com/d/optout.

-- 
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://groups.google.com/d/optout.


Re: [go-nuts] when to use Sync pool

2017-10-09 Thread 'Bryan Mills' via golang-nuts
On Friday, October 6, 2017 at 5:32:06 PM UTC-4, Ian Lance Taylor wrote:
>
> On Fri, Oct 6, 2017 at 1:23 PM, XXX ZZZ  
> wrote: 
> > 
> > So we are making a platform where we have to use a TON of short lived 
> > structs, in order to optimize this we intend to use sync pool, however 
> on 
> > our benchmark tests I have found that it only seems to improve 
> performance 
> > when the struct is big enough, for smaller structs ie: (4-5 string 
> values) 
> > it seems to be considerably slower, yet I see many packages (such as 
> > fasthttp) using sync pool for basically everything. Is there anything I 
> am 
> > missing? Any recommendations of when to use sync pool? 
>
> Be careful in your benchmarks.  Make sure that the values are really 
> being allocated, and not simply being stored on the stack by the 
> compiler.  Check how often the GC is running; allocation that does not 
> trigger a GC is always going to be faster. 
>
> Use sync.Pool when you have code that uses an unpredictable number of 
> objects, where the allocation cost of the objects is noticeable 
> compared to the cost of the rest of the code (either because the 
> objects are large or because the rest of the code is fast), where you 
> want to scale the allocation require based on the use of the package. 
> Don't use sync.Pool if the number of objects is predictable: use a 
> free list.  Don't use it for basically everything; it won't actually 
> save you any time.  Use it for areas where the memory needs change 
> unpredictably during the course of the program.


One of the interesting things I've noticed with sync.Pool is that the cost 
of boxing an unboxing the `interface{}` argument can sometimes swamp out 
the savings from pooling the objects: the interaction with escape analysis 
is particularly subtle.

You may be tempted to type-assert the return value from `Get` immediately 
to keep the code clean, like this:

```
p, _ := pool.Get().(*someType)
if p == nil {
p = new(someType)
}
…
pool.Put(p)
```

If your benchmarks turn out anything like mine did, you'll instead want 
something like:

```
var (
p *someType
i = pool.Get()
)
if i == nil {
p = new(someType)
i = p
} else {
p = i.(*someType)
}
…
pool.Put(i)
```

-- 
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://groups.google.com/d/optout.


[go-nuts] Re: important

2017-10-09 Thread 王晚成
who can help me?

2017年10月8日 上午10:36,"王晚成" 写道:

> hello,
> What is the meaning of the mstartfn field inside the M structure under
> runtime2.go?
>  Goroutine is eventually executed by threads, which naturally require the
> mstartfn function  to obtain G tasks. That's correct, isn't it?
> Thanks very much.
>

-- 
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://groups.google.com/d/optout.


[go-nuts] Re: [ANN] roger, an app configuration library experiment

2017-10-09 Thread Ivan Fraixedes
Thanks for this library, I also found some of those missing features that 
you listed in the README.

On Monday, 9 October 2017 00:56:32 UTC+2, Alex Buchanan wrote:
>
> My weekend project for that past couple weeks has been roger: 
> https://github.com/buchanae/roger
>
> This is another take on application configuration management: flags, env 
> vars, YAML, etc.
>
> The core ideas are:
> - define config as structs
> - defaults are defined by functions which return instances of structs
> - static code analysis and generation provides some extra metadata, 
> pulling docs from code comments on struct fields
> - able to dump YAML with docs and exclude default/empty values
>
> Other than that, it's probably just a more buggy version of existing 
> libraries (such as viper) with less features. I'll probably keep chipping 
> away at it though.
>
> It also:
> - generates flags
> - loads values from environment variables
> - loads values from a YAML file
> - coerces time.Duration and github.com/alecthomas/units and others via 
> github.com/spf13/cast
>
> More in the README
>
> Thanks!
> Alex
>

-- 
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://groups.google.com/d/optout.