<p>It can be the immediate or long term future. I'll start: I would love to someday see Go replace Java for android development. With the Oracle lawsuit there may be some incentive for Google to move away from Java and support Go 100% natively. It's not that crazy considering that's what Apple did with Swift. </p>
<hr/>**评论:**<br/><br/>ericanderton: <pre><p>Short Term:</p>
<ul>
<li><p>"Garbage Collection" on goroutines. Specifically, goroutines that are blocked on the only remaining reference to a given channel should be quietly destroyed since they can't possibly do anything but soak up memory. It's kind of a corner-case, but it's also a pattern that isn't guarded against in the language design. It's also insanely easy to do without realizing it. (Edit: I'm more than happy to be wrong here, but I'm pretty sure this is an issue today)</p></li>
<li><p>Semantic Version aware 'go get', with all that implies (pinning, locking, vendoring, combing git tags for versions, etc). I myself have a Package Manager implementation for Go that does this. Everyone does. I think we're up to at least a half-dozen different takes on the problem at this point. The community has functioned well as a laboratory on this one, and it's well past time to move the best features into the mothership.</p></li>
</ul>
<p>Long Term:</p>
<ul>
<li>A better story for re-tooling. A place where Go faces substantial friction for adoption is how to convince people that it's the right tool for jobs that are presently satisfied by other technologies. Also: many shops are just plain terrified of managing a polyglot. In any case, the current rhetoric doesn't always cut it. We're moving into an era where shops have <em>deep</em> investment into Python, Java, .NET, Ruby, etc... Unless you're at a startup, or your CTO is willing to take risks, it's tough to get Go on board. Being able to talk to long-term gains and benefits with solid examples will help tremendously here. Outrunning Go's identity as something "new" will be another.</li>
</ul></pre>peterbourgon: <pre><p>I like your first short-term idea. Your second idea is being addressed in Go 1.5 by first-order support for vendoring, and I guess will continue to evolve from there.</p>
<p>re: your last point, I'm hoping to push on this with <a href="http://gokit.io">http://gokit.io</a>. If you have any thoughts to contribute there, I'd love to hear them.</p></pre>ericanderton: <pre><p>As for vendoring, it's a solid first step, but it's not complete enough for my taste. That said, the proposed recursive <code>vendor/</code> directories come with some insidious corner-cases. Consider that NPM turned away from this approach for the most part in the recent V3 release. Everyone else avoids it, and not for any lack of technical prowess either. So, I'm not at all satisfied with the status quo, or the charted direction.</p>
<p>I like the idea behind gokit.io. I'll give it a look. :)</p></pre>TheMerovius: <pre><p>+1 for your Garbage collection on goroutines. I don't think it really can be added to the language as a guarantee, but it would be super-usefull. e.g. concurrent iterators are much harder to write than need be: With garbage collected goroutines you can just return a channel and spawn a goroutine to write to it. Today you need to add a bunch of boilerplate to support cancellation and get a less "neat" API.</p>
<p>-1 on the semantic versioning thing, unless you can do it lightweight (e.g. using git-tags) and have tooling to check, that you don't break anything (which is insanely hard to impossible for the general case).</p></pre>ericanderton: <pre><blockquote>
<p>unless you can do it lightweight </p>
</blockquote>
<p>I can forsee a future where the lightweight <code>go get</code> we enjoy today will continue support the majority of cases. For people like myself that want the heavyweight dependency wrangling stuff, I think <code>go vendor</code> or somesuch could be used to handle the rest if a distinct looking workflow is desired.</p>
<p>Edit: a lot of tools today use tags/branch names to handle version name/number metadata. Seems like a good approach to me.</p></pre>SupersonicSpitfire: <pre><p>Making it easy to write mobile applications that use the native widgets, that work well on both Android and iOS. Use an interface designer that has a design per platform, if need be.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传