[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Ainar Garipov
Please no. Google Groups is awful, Reddit's /r/golang is where I get most of my Go news. I don't want to sift through a forum with no voting system, and awful and slow overly-JS-ed design. On Friday, November 25, 2016 at 2:53:32 AM UTC+3, bradfitz wrote: > > In light of the CEO of Reddit admitti

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread wilk
On 25-11-2016, Linus Drumbler wrote: > --=_Part_1058_1225835188.1480057636020 > Content-Type: multipart/alternative; > boundary="=_Part_1059_1164393322.1480057636021" > > --=_Part_1059_1164393322.1480057636021 > Content-Type: text/plain; charset=UTF-8 > > Moderators of a subreddi

[go-nuts] time sub negative

2016-11-24 Thread Xu Lei
.. sTime := time.Now().Nanosecond() defer func() { eTime := time.Now().Nanosecond() debug("Success for ", qname, "for", (eTime-sTime)/100) }() .. i got negative value for (eTime - sTime) when defer function calls is there any thing

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Viktor Kojouharov
Or, you should just leave, stop saying /r/golang is an official go channel, and leave it to its fate. I see no reason to delete it whatsoever. On Friday, November 25, 2016 at 1:53:32 AM UTC+2, bradfitz wrote: > > In light of the CEO of Reddit admitting to editing user comments (see > dozen news

[go-nuts] Re: why new file modtime is smaller than current time?

2016-11-24 Thread fei . 1982
t2 - t1 is about -1ms to -6ms in my tests. my env: go1.7.3+openSUSE42.1, fs is xfs. I rotate log by comparing these two time. How can i work around it? 在 2016年11月25日星期五 UTC+8下午1:39:35,fei@gmail.com写道: > > package main > > import ( >"os" >"time" >"fmt" > ) > > > func main() { >

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Linus Drumbler
Moderators of a subreddit can choose to have "restricted submissions", so that only approved submitters can post. This will fill the purpose of disabling new content while still keeping the old content available. -- You received this message because you are subscribed to the Google Groups "gol

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Henrik Johansson
Seriously if the community is really a community then it will pop up in another form. If not then it was never really a community to begin with. I agree with Brad that this isn't something I want to condone. In fact if people stopped using services with mgmt like this more often then crap like thi

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread Christoph Berger
Deleting /r/golang means destroying a very active community. Deleting /r/golang means deleting years of helpful answers, fruitful discussions, and useful links. Deleting /r/golang means thousands of seach engine results becoming stale. Deleting /r/golang means making Go less visible to the world.

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Eric Black
Brad, Again I want to applaud the phenomenal job the moderation staff does on /r/golang. The team really makes it a useful resource. It's become a daily part of my routine as well as countless others. Seeing how this thread has blown up I would like to suggest we put this to some sort of vote if

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread brad clawsie
I am glad you are discussing this here instead of privately with the mods...which in my mind would have been as regrettable as what /u/spez did. One reason I like Reddit is that it offers an independent power structure to the cliques that can emerge through official channels. If an alternative

[go-nuts] Re: why new file modtime is smaller than current time?

2016-11-24 Thread Peter Wang
It is OS behavior. not Go the minimum resolution for timestamp was one second in ext3 filesytem On Friday, November 25, 2016 at 1:39:35 PM UTC+8, fei@gmail.com wrote: > > package main > > import ( >"os" >"time" >"fmt" > ) > > > func main() { >t1 := time.Now() >fmt.Println(t

Re: [go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread Peter Bourgon
On Fri, Nov 25, 2016 at 12:53 AM, Brad Fitzpatrick wrote: > In light of the CEO of Reddit admitting to editing user comments (see dozen > news stories today), I propose we delete the /r/golang subreddit. That would be a dramatic overreaction, and a real shame. > That is so beyond unethical and

[go-nuts] why new file modtime is smaller than current time?

2016-11-24 Thread Dave Cheney
Can you print the difference? t2.Sub(t1) -- 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] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Florian Weimer
* Dave Cheney: > On Fri, Nov 25, 2016 at 4:24 PM, Florian Weimer wrote: >> * Brad Fitzpatrick: >> >>> In light of the CEO of Reddit admitting to editing user comments (see >>> dozen news stories today), I propose we delete the /r/golang subreddit. >>> >>> That is so beyond unethical and immature,

[go-nuts] Go/Golang Deverloper Position Available

2016-11-24 Thread oliver . narramore
GO Developer position available in Bournemouth available. I am currently looking for a GO developer for a leading investment bank based in Bournemouth building a global payment processing system to underpin Apple pay, paypal and amazon.The system will process 3.7 trillion dollars worth of trans

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Jon Calhoun
A few things I think are worth considering: a. If r/golang is deleted, what is going to stop someone else from creating another go oriented subreddit? And if this happens, will people like bradfitz having less control be a good thing? Sure, a new subreddit might not grow as quickly without any

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Jared Bydeley
Or appoint new mods, keep ownership and just make sure the sidebar says "The Unofficial Go Subreddit". Deleting / locking down /r/golang is a terrible idea. Seriously disappointed in the Golang team for considering this a solution. -- You received this message because you are subscribed to the

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Victor Vrantchan
I believe you can make a community private. The /r/golang name will be preserved, but no-one can access. -- 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-

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread hector . jusforgues
So far comments on https://www.reddit.com/r/golang/comments/5eqs64/proposal_to_delete_rgolang/ are unanimously against a shutdown. -- 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,

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread n8henrie
This is my first post here. I wouldn't have known about the thread if it weren't for r/golang. I'm interested in learning more about the language, but as a very green hobbyist without much free time, much of my Go news comes from interesting tidbits that come up in gotimefm, hacker news, and mo

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Eric Black
As far as language/programming/technology subs go the golang sub is about the only one worth reading. The moderation team (I'm assuming) does a great job of curating the content there. Reddit is a pretty good place for stuff like this because it's accessible and has an easy way to consume content.

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread thegreatestdreamer
I am too using /r/golang as main source of go related news and information. However, I would gladly switch to a new resource especially considering the fact that most interesting information comes from mods. On Friday, November 25, 2016 at 12:53:32 AM UTC+1, bradfitz wrote: > > In light of the

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Seth Hoenig
> The question is what to do with /r/golang when all moderators of it want to > leave. /r/golang was founded by a non Googler, non Go team member. The subreddit was fine before you guys took over. It'll be fine if you leave. There is a pretty clear precedent set by the Go project for community

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread maxim . kupriianov
Reddit is surely a toxic community, but this subreddit in particular used to be the best way to promote my work and gain attention. Also Golang Weekly as far as I guessed uses the vote scores to easily pick the top-trended topics for their digest. I don't understand why the entire community mus

[go-nuts] why new file modtime is smaller than current time?

2016-11-24 Thread fei . 1982
package main import ( "os" "time" "fmt" ) func main() { t1 := time.Now() fmt.Println(t1) file, _ := os.Create("test.txt") stat, _ := file.Stat() t2 := stat.ModTime() fmt.Println(t2) } t2 < t1. Why? -- You received this message because you are subscribed to the Goog

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Florian Hines
On /r/fantasy and /r/books I've gotten the chance to interact with some of my favorite authors...not just on special occasions but because they're core members of the community. On /r/woodworking people were endlessly helpful when I tried to pick up woodworking as a hobby. When school starts red

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread aj . lobato
Shutting down the subreddit is an extremely petty action. I'm genuinely surprised that a representative of Google and Golang would even get involved in such a heated way, in particular since Google is going through a fairly pivotal moment in terms of company focus. I run and am currently migrat

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brad Fitzpatrick
On Thu, Nov 24, 2016 at 9:24 PM, Florian Weimer wrote: > * Brad Fitzpatrick: > > > In light of the CEO of Reddit admitting to editing user comments (see > > dozen news stories today), I propose we delete the /r/golang subreddit. > > > > That is so beyond unethical and immature, > > Was it immatur

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brad Fitzpatrick
To be clear, this is just my opinion. Nothing is happening immediately here. I want to talk with all the existing moderators first. I also want to understand whether the Go project considers /r/golang an official space. The fact that the sidebar says "If you encounter an issue, please mail cond...

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Dave Cheney
On Fri, Nov 25, 2016 at 4:24 PM, Florian Weimer wrote: > * Brad Fitzpatrick: > >> In light of the CEO of Reddit admitting to editing user comments (see >> dozen news stories today), I propose we delete the /r/golang subreddit. >> >> That is so beyond unethical and immature, > > Was it immature bec

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Florian Weimer
* Brad Fitzpatrick: > In light of the CEO of Reddit admitting to editing user comments (see > dozen news stories today), I propose we delete the /r/golang subreddit. > > That is so beyond unethical and immature, Was it immature because they didn't make any money out of it, at least not directly?

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Charles Haynes
As one of the 25,000 who is also appalled by the CEO's behavior I full support the decision of the official forum moderators to want to leave Reddit. I suggest making it private and moderated and effectively closing it. If something else springs up, all well and good. -- Charlea On Fri., 25 Nov.

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Craig Weber
Another vote for temperance. If this is really unrelated to the CEO fiasco but instead about what to do when the mods want to leave, as others have mentioned the obvious choice seems to be "find a trustworthy, interested successor". I don't see any reason to go nuclear, especially when this foru

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Nate Finch
Yes, the CEO did a really shitty thing. If we burned down the website of every company where someone in power did something shitty, we'd have no websites left. If you don't want to moderate, step down. Let the current moderators choose replacements. If you want to maintain the ability to s

Re: [go-nuts] Thinking OO virtual function in Go

2016-11-24 Thread Tong Sun
Yeah, me too, preferring the first version, which I've archived as a masterpiece at https://github.com/suntong/lang/blob/master/lang/Go/src/oo/Polymorphism-AnimalVF3.go with the following notes: The best way to implement *virtual function* so far, that satisfies the following challenges: - Consid

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Nate Finch
This would be an incredibly immature and materially harmful thing to do to the Go community. If you want to wash your hands of the group, do so, but don't burn down the house the rest of us are living in. -- You received this message because you are subscribed to the Google Groups "golang-n

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Seth Ammons
Brad, are there issues beyond the CEO of Reddit betraying trust that are driving the official mods away? -- 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-n

Re: [go-nuts] Thinking OO virtual function in Go

2016-11-24 Thread Tong Sun
Oh, I like that. This is much better than my "double-passing" version, and so far the best. Thanks a lot! On Thu, Nov 24, 2016 at 9:21 PM, xingtao zhao wrote: > Hi Tong, > > Another implementation is https://play.golang.org/p/3_PDTCcJTi. > You could merge the interface Animal and ExtraFactsor to

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Paddy Foran
> Or we find an open source Reddit clone I admit my Reddit knowledge is a bit out of date, but I thought/think Reddit IS open source? https://github.com/reddit/reddit (I'm 100% in support of not having a subreddit) -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brad Fitzpatrick
On Thu, Nov 24, 2016 at 6:57 PM, Matt Joiner wrote: > I don't believe technical forum moderators should be abusing their > position to project their ethical standpoints onto users. If users don't > like Reddit, they can just not participate. If the moderators don't like > it, step down. > The qu

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brad Fitzpatrick
On Thu, Nov 24, 2016 at 6:57 PM, Nathaniel Nutter wrote: > Are all 25,171 subscribers scum and villainy? As a someone that reads > /r/golang I've somehow managed not to come to the same conclusion. > I never said that. -- You received this message because you are subscribed to the Google Grou

[go-nuts] Extracting link to earlier panic

2016-11-24 Thread Matt Joiner
I can't see anyway to extract earlier panics per runtime's _panic.link. This makes it difficult to print stack traces in the way that the default handler does if a panic is not recovered. I want to recover a panic, print its stack trace, and all earlier panic values in the way shown here: pani

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Matt Joiner
I don't believe technical forum moderators should be abusing their position to project their ethical standpoints onto users. If users don't like Reddit, they can just not participate. If the moderators don't like it, step down. -- You received this message because you are subscribed to the Goo

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Nathaniel Nutter
Are all 25,171 subscribers scum and villainy? As a someone that reads /r/golang I've somehow managed not to come to the same conclusion. On Thursday, November 24, 2016 at 5:56:47 PM UTC-6, Brian Ketelsen wrote: > > Kill it. > It's a wretched hive of scum and villainy. The Go subreddit was the o

Re: [go-nuts] Thinking OO virtual function in Go

2016-11-24 Thread xingtao zhao
Or this implementation: https://play.golang.org/p/5GqspHDJnF But I prefer the previous version: https://play.golang.org/p/3_PDTCcJTi. On Thursday, November 24, 2016 at 6:21:24 PM UTC-8, xingtao zhao wrote: > > Hi Tong, > > Another implementation is https://play.golang.org/p/3_PDTCcJTi. > You could

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread Seth Ammons
This feels knee jerk. That subreddit is my primary source for Go community news and developments. -- 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+uns

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread Jonathan Fraser
I think one of the reasons that the editing of posts by /u/spez is considered such a betrayal is that we view these forums as owned by the contributors and the community at large. It's seen as an invasion that he has such an authority (of course he did but we like to imagine he doesn't). However

Re: [go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread James Aguilar
Another vote for temperance here. The CEO making a scumbag move that affected a tiny handful of posts seems barely related to deleting a subreddit. If some folks don't want to support Reddit, that seems reasonable. It seems less reasonable to disrupt a community without that community's consent.

Re: [go-nuts] Thinking OO virtual function in Go

2016-11-24 Thread xingtao zhao
Hi Tong, Another implementation is https://play.golang.org/p/3_PDTCcJTi. You could merge the interface Animal and ExtraFactsor together if this extra behavior is not needed. It is listed there just for demonstration. On Thursday, November 24, 2016 at 12:14:37 AM UTC-8, Nick Patavalis wrote: > >

Re: [go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread Robert Melton
I think it is worth taking a moments pause and remember that community is over 25,000+ gophers. Those are just subscribed users, excludes just people passing through or who don't formally subscribe (RSS or other means). I absolutely agree you shouldn't have to maintain something you have a moral

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread Florin Pățan
Rather than going with the nuclear option, imho, I'd be happy to continue running it if the Go team backs out of it and / ir other moderators. I'll make it clear it's unofficial and so on. Maybe we should consider upgrading golang.org to a more useful website? Includes a list of meetups, maybe

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread mdlayher
Hey all, I can certainly understand your concerns regarding reddit, but I do think that the idea of "deleting /r/golang" is a bit of a knee-jerk reaction. I can't say I am thrilled about the situation, but myself and many others have been using /r/golang as our primary Go news source for years

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread Will Jessop
Perhaps it would be fairer to ask this question in /r/golang instead? Personally I like getting my Go (and Ruby, climbing, StarCitizen, EliteDangerous, VR and robotics) news there. I'm no fan of Reddit overall, but for me, and I suspect a number of the other people who use the sub, it works wel

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brian Ketelsen
I'm happy to "donate" a subdomain of gopheracademy.com to the cause if existing sites aren't viable.  Especially with the end of year blog blitz coming, it's a very high traffic site. On 11/24/2016 8:04:20 PM, Pietro Gagliardi wrote: On Nov 24, 2016, at 7:42 PM, Brian Ketelsen mailto:bketel...@

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Pietro Gagliardi
> On Nov 24, 2016, at 7:42 PM, Brian Ketelsen wrote: > > https://golangnews.com/ > > who runs this? https://github.com/kennygrant seemingly? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving em

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brian Ketelsen
https://golangnews.com/ who runs this? On 11/24/2016 6:54:25 PM, Brad Fitzpatrick wrote: [+bketelson, dgryski] On Thu, Nov 24, 2016 at 3:53 PM, Brad Fitzpatrick mailto:bradf...@golang.org]> wrote: In light of the CEO of Reddit admitting to editing user comments (see dozen news stories today),

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread David Anderson
I believe you can mark the subreddit as private. That'll keep the name parked, but only allow access to moderator-approved users. - Dave On Thu, Nov 24, 2016 at 4:02 PM, Brad Fitzpatrick wrote: > Agreed. Maybe we can just make an auto-reject moderator bot for it, making > sure it has no content

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Dave Cheney
Delete it. On Friday, 25 November 2016 10:53:32 UTC+11, bradfitz wrote: > > In light of the CEO of Reddit admitting to editing user comments (see > dozen news stories today), I propose we delete the /r/golang subreddit. > > That is so beyond unethical and immature, I no longer want anything to do

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brad Fitzpatrick
Agreed. Maybe we can just make an auto-reject moderator bot for it, making sure it has no content. On Thu, Nov 24, 2016 at 4:01 PM, Adam Langley wrote: > (If we just delete it, that may free the name to be squatted on by others. > I've no knowledge of how Reddit works but setting a moderation

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Adam Langley
(If we just delete it, that may free the name to be squatted on by others. I've no knowledge of how Reddit works but setting a moderation bit or the like might be more effective in shutting it down.) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brian Ketelsen
Kill it. It's a wretched hive of scum and villainy.  The Go subreddit was the only thing similar to human and it is downright painful most of the time. On 11/24/2016 6:54:25 PM, Brad Fitzpatrick wrote: [+bketelson, dgryski] On Thu, Nov 24, 2016 at 3:53 PM, Brad Fitzpatrick mailto:bradf...@golan

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Brad Fitzpatrick
[+bketelson, dgryski] On Thu, Nov 24, 2016 at 3:53 PM, Brad Fitzpatrick wrote: > In light of the CEO of Reddit admitting to editing user comments (see > dozen news stories today), I propose we delete the /r/golang subreddit. > > That is so beyond unethical and immature, I no longer want anythin

[go-nuts] Deleting the /r/golang subreddit

2016-11-24 Thread Brad Fitzpatrick
In light of the CEO of Reddit admitting to editing user comments (see dozen news stories today), I propose we delete the /r/golang subreddit. That is so beyond unethical and immature, I no longer want anything to do with that site. I will be deleting my account on Reddit after backing up my conten

Re: [go-nuts] Why doens't function type support comparision but channel type does?

2016-11-24 Thread Michael Jones
This is very nice! However, am i right in understanding that the magic is in knowing the text of the program--the fact that there are untaken branches? If so, this is not simply a 'behavioral' verification...it knows about the construction of the code and not just its behavior. Maybe I was unclear.

[go-nuts] Re: goroutine scheduler is a trap?????!!!!!

2016-11-24 Thread Dave Cheney
I'm sorry you're having problems. Before we can help you need to help us by giving us details. - Which version of Go are you using? If you are using less than Go 1.7.3, please upgrade. - Have you profiled your program? This is the first step to diagnosing any performance problem, here is a pres

[go-nuts] Re: Compression and decompression of string in LZO format in golang

2016-11-24 Thread mhhcbon
Curious to know, is this aint right https://play.golang.org/p/K-xfDI03yT ? On Thursday, November 24, 2016 at 10:02:28 PM UTC+1, pls...@gmail.com wrote: > > How to compress and decompress data and not file in lzo format using > go-lzo in golang. > Are there any other packages apart from go-lzo to

Re: [go-nuts] Why doens't function type support comparision but channel type does?

2016-11-24 Thread Jesper Louis Andersen
On Thu, Nov 24, 2016 at 8:23 PM Michael Jones wrote: > > > It would be a miracle if a behavioral tester found a difference here, as > intel can attest. You can test every input or you can prove equality. > Nothing else means equal. > > > Not in a modern world. Here is an Erlang program, which do

[go-nuts] stripping null in json string

2016-11-24 Thread Seanchann Zhou
hi: have json: "test": { "test1": null, "test2": null, "test3": null, "test4": null, "proto": "dhcp", "test5": null } how to safety stripping null field from above json. thanks -- You received this message because you are subscribed to the Google

[go-nuts] goroutine scheduler is a trap?????!!!!!

2016-11-24 Thread 370265036
today i am testing my service(something like cdn).system is centos 6.5,memory=32GB,bandwidth=10Gb and 4000 live stream.one mechine is 16-core cpu and the other is 8-core cpu.the testing result makes me feel upset,16-core cpu mechine run about 1000% cpu and play is not smooth,but the 8-core cpu

[go-nuts] Compression and decompression of string in LZO format in golang

2016-11-24 Thread plsd01p
How to compress and decompress data and not file in lzo format using go-lzo in golang. Are there any other packages apart from go-lzo to compress and decompress data and not file in LZO format in golang -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Why doens't function type support comparision but channel type does?

2016-11-24 Thread Michael Jones
As you imply, the third idea in the form of “probabilistic equality” is generally unworkable. The computer risks forum is literally full of examples of failures here. A contrived example: func a(x int) (int y) {     If x != 0 {    Y = 1/x     }     return } func a(x int) (int y)

Re: [go-nuts] Why doens't function type support comparision but channel type does?

2016-11-24 Thread Jesper Louis Andersen
First idea: Two functions are the same if their pointers (or closure pointers) refer to the same value. This is usually a recipe for disaster. As many people have noted, program transformations made by the compiler can change the pointers. So the meaning of your program is suddenly dependent on the

Re: [go-nuts] Re: Why doens't function type support comparision but channel type does?

2016-11-24 Thread T L
On Thursday, November 24, 2016 at 8:16:49 AM UTC+8, Ian Lance Taylor wrote: > > On Wed, Nov 23, 2016 at 3:49 PM, roger peppe > wrote: > > Ian, what you say is true, but is also true of types and other objects > too, > > I think. I found some interesting anomalies playing around with the new

Re: [go-nuts] Re: Why doens't function type support comparision but channel type does?

2016-11-24 Thread T L
On Thursday, November 24, 2016 at 1:30:55 AM UTC+8, Axel Wagner wrote: > > On Wed, Nov 23, 2016 at 4:30 PM, T L > > wrote: > >> If two functions do completely different things, they mus be two >> different functions. >> > > No. An example has been given above, here is another one: > https://pla

Re: [go-nuts] get scancode of character

2016-11-24 Thread Konstantin Khomoutov
On Thu, 24 Nov 2016 15:33:41 +0300 Vasiliy Tolstov wrote: > I need to pass to qemu monitor key number to simulate keypress. > If i use utf8 package and decode characters (runes) from string i get > for example for char c code 99, but for qemu i need char number 46. > Does somebody already create

[go-nuts] get scancode of character

2016-11-24 Thread Vasiliy Tolstov
I need to pass to qemu monitor key number to simulate keypress. If i use utf8 package and decode characters (runes) from string i get for example for char c code 99, but for qemu i need char number 46. Does somebody already create package that get scancodes for chars (as i understand ascii codes) t

Re: [go-nuts] how to type caste empty interface into struct

2016-11-24 Thread Jan Mercl
On Thu, Nov 24, 2016 at 11:47 AM wrote: > hiii..hello...I am new to golang i want to typecaste empty interface into struct type..please help Go does not have casting. You've provided no information about what are you trying to solve (instead of what solution you are trying to get working), but m

[go-nuts] how to type caste empty interface into struct

2016-11-24 Thread stackveer
hiii..hello...I am new to golang i want to typecaste empty interface into struct type..please help -- 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+un

Re: [go-nuts] Thinking OO virtual function in Go

2016-11-24 Thread Nick Patavalis
On Thu, Nov 24, 2016 at 10:00 AM, Haddock wrote: > > This is merely resorting to a shared function. This does not really > cover overwriting in the OO sense. The article I mentioned shows how > to do this: > http://objectscape.blogspot.de/2013/09/inner-pattern-to-mimic-method.html Not really! Ton

Re: [go-nuts] Re: Thinking OO virtual function in Go

2016-11-24 Thread Nick Patavalis
Hi, On Thu, Nov 24, 2016 at 9:33 AM, Haddock wrote: > > Here is another blog that shows a way how to do this: > http://objectscape.blogspot.de/2013/09/inner-pattern-to-mimic-method.html > Clever! I would like, though, to underscore the conclusion reached by the original post author: My preli

Re: [go-nuts] Thinking OO virtual function in Go

2016-11-24 Thread Haddock
> I think I finally found the easiest way to make virtual function works, > based on Nick Patavalis code and Tahir Hashmi's idea: > > > func (a Animal) Output(s Speaker) { > // Complicated stuff that must not be re-implemented > fmt.Print("I am a ", s.IsA(), > ". My name is ", a.Name, > ", aged