TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Go 1.11 released

238 点作者 soroso超过 6 年前

10 条评论

bradfitz超过 6 年前
One of the other exciting things in this release is the almost entirely rewritten &quot;prove&quot; pass in the compiler:<p><a href="https:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;go1.11#performance-compiler" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;go1.11#performance-compiler</a><p>&gt; The compiler now performs significantly more aggressive bounds-check and branch elimination. Notably, it now recognizes transitive relations, so if i&lt;j and j&lt;len(s), it can use these facts to eliminate the bounds check for s[i]. It also understands simple arithmetic such as s[i-10] and can recognize more inductive cases in loops. Furthermore, the compiler now uses bounds information to more aggressively optimize shift operations.
评论 #17838906 未加载
bradfitz超过 6 年前
Of possible interest, I gave a talk about &quot;Go 1.11 &amp; Beyond&quot; (read: &quot;Go 2&quot;) a couple weeks ago:<p><a href="https:&#x2F;&#x2F;docs.google.com&#x2F;presentation&#x2F;d&#x2F;1EwuJhEHR5Trr2aXBPQajZ2Hcoh29tm_LQCpgfrCnuRk&#x2F;view#slide=id.g33148270ac_0_143" rel="nofollow">https:&#x2F;&#x2F;docs.google.com&#x2F;presentation&#x2F;d&#x2F;1EwuJhEHR5Trr2aXBPQaj...</a><p>(See speaker notes for more context)
评论 #17844346 未加载
dlojudice超过 6 年前
&quot;Go programs currently compile to one WebAssembly module that includes the Go runtime for goroutine scheduling, garbage collection, maps, etc. As a result, the resulting size is at minimum around 2 MB, or 500 KB compressed.&quot;<p>considering it includes the runtime, this isn&#x27;t a large file compared to images &#x2F; videos you find on the web today
评论 #17838575 未加载
评论 #17838666 未加载
评论 #17838550 未加载
评论 #17839193 未加载
评论 #17838653 未加载
评论 #17838626 未加载
评论 #17838842 未加载
gaddferreira超过 6 年前
Go does a lot of things right without having to carry legacy mistakes like other languages, it&#x27;s such a breath of fresh air in a landscape of constant change and competing implementations.<p>I&#x27;m very optimistic that the modules system is another step in the right direction, however long it took to get here. Thanks everyone working on Go.
评论 #17838782 未加载
0xmohit超过 6 年前
As listed on the blog page - <a href="https:&#x2F;&#x2F;blog.golang.org&#x2F;go1.11" rel="nofollow">https:&#x2F;&#x2F;blog.golang.org&#x2F;go1.11</a> - two exciting features are modules and WebAssembly support.<p>Information about modules can be found at:<p>- <a href="https:&#x2F;&#x2F;golang.org&#x2F;cmd&#x2F;go&#x2F;#hdr-Preliminary_module_support" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;cmd&#x2F;go&#x2F;#hdr-Preliminary_module_support</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;wiki&#x2F;Modules" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;wiki&#x2F;Modules</a><p>- <a href="https:&#x2F;&#x2F;research.swtch.com&#x2F;vgo" rel="nofollow">https:&#x2F;&#x2F;research.swtch.com&#x2F;vgo</a><p>The wiki - <a href="https:&#x2F;&#x2F;golang.org&#x2F;wiki&#x2F;WebAssembly" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;wiki&#x2F;WebAssembly</a> - provides information on how to get started with using Wasm with Go.
评论 #17839096 未加载
int_19h超过 6 年前
&gt; Go 1.11 supports the upcoming OpenBSD 6.4 release. Due to changes in the OpenBSD kernel, older versions of Go will not work on OpenBSD 6.4.<p>I wonder when Go is planning to stop using the kernel ABI on BSDs and macOS directly - in direct contradiction to stability guarantees (or lack thereof) by those platforms - and start using the appropriate APIs, such as libc. Or is it going to be stuff like this or <a href="https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;16606" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;16606</a> forever? Right now, I stay away from Go partly because of this - it feels like a bad idea to use a software stack that is guaranteed to be broken on future OS releases by design. Especially when that stack is advertised specifically for system programming...
评论 #17839802 未加载
alexandernst超过 6 年前
Finally the entire GOPATH nonsense is going away...
评论 #17838655 未加载
评论 #17838469 未加载
lsllc超过 6 年前
Congrats &amp; thanks to the Go team! I&#x27;m a big fan of Go and use it extensively.<p>Most exciting thing [which isn&#x27;t really a thing] is that they&#x27;ve reserved RISC-V GOARCH values!!!!!!!!!!!! Looking forward to RISC-V everywhere!
Sileni超过 6 年前
Modules release is definitely a &quot;we told you so&quot; moment. Depending on outside packages has always bothered me, and kept me from doing more with the language.
mathnode超过 6 年前
Release notes &gt; binaries;<p><a href="https:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;go1.11" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;go1.11</a><p>Thanks everyone at golang.
评论 #17838402 未加载