Seven Qiniu GO language weekly "issue 2nd July"

Source: Internet
Author: User

How many Gopher are there in the world?

In last week's weekly report, we introduced the go language rankings into the top ten. So how many Gopher are there in the world?

The author lists the following calculation formulas:

Number of Gopher = number of developers worldwide * Percentage of all software using Go language

Original address:https://research.swtch.com/gophercount

What are the noteworthy changes in Go1.9?

In less than one months, the Go 1.9 version is also officially released (planned for August), the current go 1.9 is the latest version of go1.9 Beta2, the experimental environment is based on this version, estimates and final Go 1.9 version will not be too big difference. At this year's Gopherchina conference, the author mentioned: Go has evolved to 1.9, then go 1.10 or go 2? Now the answer has been announced: Go 1.10.

To get to the point, let's look at what the Go 1.9 is worth our attention to.

The original address: A few notable changes in Go 1.9

Go-Stealing algorithm Scheduler

The function of the GO Scheduler is to allocate multiple OS threads so that they can use goroutine smoothly when running on one or more processors. In the process of multi-threaded operation, work sharing and work stealing often occur simultaneously. Starting with Go 1.1, Golang core developer Dmitry Vyukov has uploaded a scheduler for go work-stealing algorithms. This paper will further explain the principle of go work-stealing algorithm scheduler, and how to implement the function of scheduler with Go language.

Original address:go& #x27; s work-stealing Scheduler

Go Advanced test Mode

The author, Mitchell Hashimoto, is one of the co-founders of Hashicorp, a data center management technology Research and Development company in the United States. He has developed a series of practical development tools such as Vagrant, Packer, TerraForm, Consul, and Vault.

Starting with Go 1.0, Mitchell began to use the Go Language program, and gradually began to become fascinated by the implementation of automation. As one of the authors of O ' Reilly, he became a core user of countless fans on GitHub. In Hashicorp's business, the Go language is ubiquitous and has become the first language in the last 5 years.

Mitchell Hashimoto explains the Go advanced test method in this article

Original address: Advanced testing in Go

Go 1.9 Sync. Map Secrets

Before Go 1.6, the built-in map type is partially goroutine secure, concurrent reads are not problematic, and concurrent writes may be problematic. Since go 1.6, the concurrent read and write map will be an error, this problem in some well-known open source libraries, so the solution before go 1.9 is to bind a lock, packaged into a new struct or use a separate lock.

This article takes you deep into sync. In the specific implementation of MAP, look at how the code becomes complex in order to add a function, as well as the author in implementing sync. Some ideas of Map.

Original address: Go 1.9 sync. Map Secrets

Recommended reading:

    • Seven Qiniu Go language weekly July issue 1th
    • "Egg" Go China (Id:golangchina) featured articles Bitcoin, Blockchain and go development
    • Want to be a technology Daniel? Welcome to add: chenzj1114 seduce Siang, pull you into group chat go

Seven Qiniu GO language weekly "issue 2nd July"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.