TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Go 1.7 is released

545 pointsby techietimalmost 9 years ago

19 comments

travjonesalmost 9 years ago
Great work, Go team!<p>Standout points in my opinion:<p>Overall performance improvements:<p>&gt;&gt; &quot;We observed a 5–35% speedup across our benchmarks.&quot;<p>Decreased compile times and binary size:<p>&gt;&gt; &quot;While these changes across the compiler toolchain are mostly invisible, users have observed a significant speedup in compile time and a reduction in binary size by as much as 20–30%.&quot;<p>Vendoring dependencies by default:<p>&gt;&gt; &quot;...and in Go 1.7... the &quot;vendor&quot; behavior is always enabled&quot;<p>Context package added to std lib:<p>&gt;&gt; &quot;To make use of contexts within the standard library and to encourage more extensive use, the package has been moved from the x&#x2F;net repository to the standard library as the context package.&quot;
评论 #12294818 未加载
chrisperalmost 9 years ago
I just learned Go 2 days ago and today I am already running my own web app!<p>I love Go because it is kind of like C, but better (more modern).Generally, I always program my stuff in Java, but whenever I have an idea of creating something I could only choose between: C, Java, bash. Obviously I am not going to use C and bash for most of my ideas. Thinking about solving my issues in Java is meh so often I decided it is not worth it to invest time. I feel like using Java for my ideas is like using a semi truck for roadtrips. It can be done, but it&#x27;s just not very efficient having to launch the JVM everytime I want to do something small.<p>Yes, I was open to new languages, but I did not really care about: C++, Python, Perl, Ruby and so on because I never cared about web dev. Now I was bored and finally decided to learn Go.
评论 #12295689 未加载
评论 #12294827 未加载
geodelalmost 9 years ago
Seems like a great release. Faster compilation and faster at runtime. Normally these 2 are considered opposite of each other.
评论 #12294488 未加载
评论 #12294474 未加载
cypharalmost 9 years ago
Yay, s390x support is finally in mainline! Finally we (SUSE) no longer needs to use gcc-go to build Go binaries on some platforms (we&#x27;ve had nothing but issues from gcc-go, half of the patches we apply to Docker are to make it behave when built with SLE&#x27;s gcc version).
ksecalmost 9 years ago
Ok, off topic question. Not an expert in grammar, but something about &quot;Go 1.7 is released&quot; seems wrong to me. Anyone could tell me if this is an correct usage of grammar?<p>Edit: Dont know why so many downvote, but it is a honest question.
评论 #12295581 未加载
评论 #12295072 未加载
评论 #12295001 未加载
评论 #12295406 未加载
评论 #12295043 未加载
评论 #12294990 未加载
评论 #12295036 未加载
评论 #12296055 未加载
评论 #12294913 未加载
评论 #12297568 未加载
Tehnixalmost 9 years ago
&gt;A new compiler back end, based on static single-assignment form (SSA), has been under development for the past year<p>Huh, I was under the impression that either SSA or CPS was pretty standard for any serious compiler. Does anyone know why they didn&#x27;t design it for this from the beginning? It&#x27;s like one of the earlier things you learn when making actual compilers.
评论 #12295096 未加载
评论 #12295033 未加载
评论 #12295939 未加载
blinkingledalmost 9 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;commit&#x2F;a62ae9f62fcfca02075b70e6e0aa757f4fd8f5ec" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;commit&#x2F;a62ae9f62fcfca02075b70e6...</a><p>&gt; SystemCertPool returns an error on Windows. Maybe it&#x27;s fixable later<p>This doesn&#x27;t inspire confidence in Go as a cross platform language which is at version 1.7. If this is implemented in say 1.8, am I supposed to check for Go versions in order to know if the SystemCertPool func works or not? I mean why not just release it when it works on all tier-1 supported platforms?
评论 #12297637 未加载
评论 #12296316 未加载
评论 #12295529 未加载
stock_toasteralmost 9 years ago
Be sure to check out the release notes, especially if you run FreeBSD (see known issues section).<p><a href="https:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;go1.7" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;go1.7</a>
评论 #12294682 未加载
sfrailsdevalmost 9 years ago
vendor directories are no longer optional, which is nice.<p>Go get now update submodules... I&#x27;m honestly not sure what the current hack is for package management, but I assume people are still doing wrappers around go get to pin to commits&#x2F;versions, (or else building your own repos for funsies), and I&#x27;m wondering if that breaks anything.
评论 #12294640 未加载
评论 #12294720 未加载
评论 #12295170 未加载
sdegutisalmost 9 years ago
Cool. What&#x27;s the plan for Go 8? What exciting features are up ahead?
评论 #12294514 未加载
评论 #12294645 未加载
aprdmalmost 9 years ago
I have some years of experience with python and picking up golang was extremely straightforward.<p>Sometimes it annoys me a little bit because it&#x27;s standard lib is much smaller than python&#x27;s however having it being compiled is more than worth it.<p>Thanks go team !
评论 #12295985 未加载
cypharalmost 9 years ago
The one thing that really pisses me off about the way Go handled vendoring is that they did it in a way that makes it incompatible with GOPATH. Previously in runC and Docker, we had build hacks that would symlink (or full copy) the current directory into vendor&#x2F;src&#x2F;&lt;package&gt; and then set the GOPATH to vendor&#x2F;. This was compatible with every go version. In addition, many other projects did the exact same thing.<p>But the way that vendoring works in Go 1.5 and up is that you make vendor not a valid GOPATH and you have to now either create a fake GOPATH and move your current directory into it, or you have to do some symlink stuff within vendor&#x2F; that doesn&#x27;t really work. Why was such a small cosmetic change seen as a good idea? It&#x27;s needlessly incompatible with previous ways of making vendoring work seamlessly with Go.<p>I&#x27;m hoping that the packaging discussions that are going to be happening over the next few months don&#x27;t result in a similar decision that &quot;we know best&quot;.
评论 #12305795 未加载
评论 #12295449 未加载
评论 #12295247 未加载
WhitneyLandalmost 9 years ago
Elevator description:<p><pre><code> - Open source, 6 years old, backing from Google - Nice for concurrency and service implementations - Not nice for generic types - C like, modern, minimalist, garbage collected - Becoming more popular</code></pre>
jcadamalmost 9 years ago
I wish the Clojure compiler was half as fast as Go&#x27;s :(<p>I&#x27;m not much of a fan of using Go for anything &#x27;big&#x27;, but I have taken to using it in places where I would have previously used Python (tiny&#x2F;simple services, housekeeping&#x2F;utility scripts fired by cron, etc.)<p>I&#x27;d love to use Go at work (amongst many other things), but my employer already gives me a hard time for writing small utilities in Python rather than Java (I refuse to wait for a JVM to spin up just to convert a single file from csv to xml. I simply will not do it, and apparently my employer doesn&#x27;t consider it worth firing me over).
评论 #12298980 未加载
评论 #12297223 未加载
tmalyalmost 9 years ago
Great work,<p>I am looking forward to recompiling my code to see how things are. I have had my side project running on a set of Go micro services compiled against 1.4 since last year.<p>What can we expect from Go 1.8?
评论 #12300112 未加载
maxpertalmost 9 years ago
Awesome! Time to recompile RaspChat :D
yuyuyyalmost 9 years ago
Is Go based on llvm? It doesn&#x27;t seem like it, but would be curious to know why not?<p>Isn&#x27;t this the point of llvm, to separate the &quot;language component&quot; from the &quot;cpu component&quot;?
评论 #12296609 未加载
评论 #12295882 未加载
评论 #12295570 未加载
评论 #12295584 未加载
评论 #12307899 未加载
nilsoalmost 9 years ago
Nice work
litaohackernewsalmost 9 years ago
The semantics of Go is too ugly. It has no taste.
评论 #12296677 未加载
评论 #12299596 未加载