类型断言

Posted by 夏泽民

https://juejin.im/post/5eb8a2b15188256d3c52ddfc



服务网格与Serverless

Posted by 夏泽民

https://mp.weixin.qq.com/s/KNuQQkFdKsZL99ukReeLfQ



Go as a Scripting Language

Posted by 夏泽民

https://www.infoq.com/news/2020/04/go-scripting-language/ Go’s growing adoption as a programming language that can be used to create high-performance networked and concurrent systems has been fueling developer interest in its use as a scripting language. While Go is not currently ready “out of the box” to be used as a replacement for Bash or Python, this can be done with a little effort.



Digging deeper into the analysis of Go-code

Posted by 夏泽民

https://nakabonne.dev/posts/digging-deeper-into-the-analysis-of-go-code/ The analysis of source code at the syntactic level can help you with your coding in a variety of ways. For that, the text is almost always converted to AST first to make it easier to handle in most languages. As some of you may know, Go has a powerful package go/parser, with it, you can convert source code to AST relatively easily. However, I couldn’t help but be curious about how it is working, and I realized my mind could only be satisfied by getting started to read the API implementation. In this article, I will walk you through how it is converted, by reading the implementation of its API.



prohibiting comparisons

Posted by 夏泽民

https://dave.cheney.net/2020/05/09/ensmallening-go-binaries-by-prohibiting-comparisons Ensmallening Go binaries by prohibiting comparisons Conventional wisdom dictates that the larger the number of types declared in a Go program, the larger the resulting binary. Intuitively this makes sense, after all, what’s the point in defining a bunch of types if you’re not going to write code that operates on them. However, part of the job of a linker is to detect functions which are not referenced by a program–say they are part of a library of which only a subset of functionality is used–and remove them from the final output. Yet, the adage mo’ types, mo’ binary holds true for the majority of Go programs.



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required