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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

First chapter of Kernighan and Donovan's new Go book [pdf]

356 点作者 rexignis超过 9 年前

24 条评论

realrocker超过 9 年前
From the book:<p>&quot;But it has comparatively few features and is unlikely to add more. For instance, it has no implicit numeric conversions, no constructors or destructors, no operator overloading, no default parameter values, no inheritance, no generics, no exceptions, no macros, no function annotations, and no thread-local storage.&quot;
评论 #10414797 未加载
评论 #10414304 未加载
评论 #10415116 未加载
评论 #10414524 未加载
评论 #10415685 未加载
Omnipresent超过 9 年前
To those in the Go community:<p>- What is Go well suited for other than network programming? - Why might one decide to write the backend API of their web app in Go, compared to say Grails, Python etc.
评论 #10414177 未加载
评论 #10414407 未加载
评论 #10414804 未加载
评论 #10414176 未加载
评论 #10414717 未加载
评论 #10415005 未加载
评论 #10414232 未加载
评论 #10414750 未加载
评论 #10414293 未加载
评论 #10414571 未加载
评论 #10414479 未加载
评论 #10416639 未加载
评论 #10414450 未加载
评论 #10414837 未加载
nimrody超过 9 年前
&quot;Typeset by the authors in Minion Pro, Lato, and Consolas, using Go, groff, ghostscript, and a host of other open-source Unix tools. Figures were created in Google Drawings.&quot;<p>groff still going strong... although it seems like Kernighan got tired of drawing using the &#x27;pic&#x27; language...
评论 #10415782 未加载
vezzy-fnord超过 9 年前
Interesting to see that the direct lineage from Pike&#x27;s prior languages and CSP experiments is reaffirmed. I wrote about this here earlier, with some notable disagreements in response: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9711639" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9711639</a>
评论 #10414129 未加载
评论 #10414364 未加载
middleclick超过 9 年前
Question for the Go experts out there: does it make sense to buy this book to learn Go or are there better tutorials&#x2F;books?
评论 #10414323 未加载
评论 #10414187 未加载
评论 #10414136 未加载
评论 #10414228 未加载
评论 #10414190 未加载
评论 #10414569 未加载
Animats超过 9 年前
This is much better than the previous Go documentation, particularly in the concurrency area. The previous Go documentation introduced goroutines and channels, stated the mantra &quot;share by communicating, not by sharing&quot;, and then gave examples with variables shared between goroutines.<p>It now seems to be recognized that, in Go, if you want to lock shared data, use the lock primitives. Don&#x27;t try to construct locking primitives from channels; that&#x27;s error-prone and hard to read. This new manual seems to recognize this. When they want a shared counter, they use a shared counter with traditional locks.
评论 #10415276 未加载
sinatra超过 9 年前
This is a good place to ask this (because Go posts attract a lot of commenters, even those who dislike Go and like some other language):<p>Which language&#x2F;framework would you choose today for writing WebServices? Preferably with the following characteristics: static type (or at least static analysis), easy deployment (ex, generates a single binary like in Go), supports concurrency very well, is small&#x2F;simple, has good tooling and debug support, and is fun to write. Go (except for good debug support)? Elixir (dunno how good it is with deployment and debugging)?
评论 #10415418 未加载
评论 #10415246 未加载
评论 #10415267 未加载
评论 #10415518 未加载
评论 #10415257 未加载
评论 #10415736 未加载
srtjstjsj超过 9 年前
Link is to Chapter 1 with no context about whole book&#x2F;availaibility.<p>Book homepage is here: <a href="http:&#x2F;&#x2F;www.gopl.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.gopl.io&#x2F;</a><p>mods, please fix<p>Several free full Go eBooks listed at <a href="http:&#x2F;&#x2F;hackershelf.com&#x2F;topic&#x2F;golang&#x2F;" rel="nofollow">http:&#x2F;&#x2F;hackershelf.com&#x2F;topic&#x2F;golang&#x2F;</a>
Armand_Grillet超过 9 年前
I&#x27;m currently reading it as I started to program in Golang only one month ago and I&#x27;d never heard of goimports, this is a nice tool! Mixing it with GoSublime and it does a really good job <a href="http:&#x2F;&#x2F;michaelwhatcott.com&#x2F;gosublime-goimports&#x2F;" rel="nofollow">http:&#x2F;&#x2F;michaelwhatcott.com&#x2F;gosublime-goimports&#x2F;</a><p>The book is well written and it looks like it covers a lot of common topics, I think I&#x27;m gonna buy it.
jasonjei超过 9 年前
Just as K&amp;R introduced us to &quot;Hello, World,&quot; I&#x27;m amused they adapted their first program to an Unicode world: &quot;Hello, 世界.&quot; Seems like a great first chapter, covering computer graphics and web server&#x2F;byte fetching to boot.
评论 #10415839 未加载
jfb超过 9 年前
K&amp;R is a great book. Even though I have no interest in Go, I&#x27;ll read this, just to see if it&#x27;s as good.
rmcpherson超过 9 年前
I noticed that the lissajous program in 1.4, as included, generates non-random lissajous figures since the random number generator is not seeded. I couldn&#x27;t find any reference to this in the text and this could be confusing to beginning readers. Is there a recommended way to submit errata?
评论 #10415156 未加载
评论 #10415950 未加载
fsloth超过 9 年前
Would Go provide a viable alternative to C++ for numeric and computer graphics &#x27;kind of stuff&#x27;? I have no problem with C++ but the better-than-python proclamations got me intrigued.
评论 #10414471 未加载
评论 #10415018 未加载
评论 #10416283 未加载
评论 #10417434 未加载
评论 #10422400 未加载
gjvc超过 9 年前
This is going to be the standard text for the language. The quality of writing is exceptionally good. It&#x27;s high time the AW professional computing series had another hit.
Artemis2超过 9 年前
The K&amp;R for Go, sounds great!
评论 #10414319 未加载
pkrumins超过 9 年前
I just pre-ordered this book. I already have a feeling it will make into my favorite book series [1].<p>[1]: <a href="http:&#x2F;&#x2F;www.catonmat.net&#x2F;blog&#x2F;top-100-books-part-one&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.catonmat.net&#x2F;blog&#x2F;top-100-books-part-one&#x2F;</a>
tyrel超过 9 年前
One of my co-workers preordered this, I hope to skim through it if he brings it into the office.
linuxfan超过 9 年前
Can people post their opinions on static linking of go binaries? Doesn&#x27;t it result in increased size of runtime binaries when compared to those generated by C&#x2F;C++?
评论 #10417193 未加载
oconnor663超过 9 年前
&gt; ...its approach to data abstraction and object-oriented programming is unusually flexible.<p>I&#x27;m not sure I can get behind that without generics.
rendambathu超过 9 年前
Hope this book is going to be another Epic and Great reference like this gem[1]<p>[1] <a href="http:&#x2F;&#x2F;t3.gstatic.com&#x2F;images?q=tbn:ANd9GcTK3WbaQiO5mCmvRGtvcokJUyrd2wcpOj3WcgO8TQyecr3_TrmU" rel="nofollow">http:&#x2F;&#x2F;t3.gstatic.com&#x2F;images?q=tbn:ANd9GcTK3WbaQiO5mCmvRGtvc...</a>
评论 #10414865 未加载
dataminded超过 9 年前
They&#x27;ve proven that they can make a PDF. Will they sell me one?
peter303超过 9 年前
I still prefer forced data abstraction, i.e. classes as a core construct. GO does not force that. Data abstraction, when properly done maps the code more closely into the problem domain to be solved. In the long run that makes the code more maintainable and extensible.
评论 #10414648 未加载
ape4超过 9 年前
er, they left a couple things out of the family tree (page xii). Like C++, Java, C#, ...
评论 #10414290 未加载
评论 #10414494 未加载
claystu超过 9 年前
I have no idea what they will specifically say regarding calling C from Go, but the table of contents says that part is only going to be about five pages.<p>I really wish they would beef up this portion of the book.
评论 #10414340 未加载