In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Why Go language can succeed, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.
As the saying goes, history doesn't repeat itself, but it always does.
If you want to create a programming language, learn from experienced people who have a lot to recommend them. In Go Time #100, Go creators Rob Pike and Robert Griesemer discuss their experiences together.
formal language specification
Describing the origins of the project, Rob said: "After more than six months of brainstorming and thinking, the first important thing we did was spend a few weeks writing a formal language specification, which I think was a key part of the success of the project. "The specification attracted interest from other engineers, such as Ian Lance Taylor.
And one of the most important things was that Ian Taylor saw the specification and decided to write a compiler for it. He came into our office one day and said,"By the way, I built a compiler for your language. "What an amazing moment. Of course, he later became part of the team, and he still works for Go.
Killer App
Rob says that at the time it wasn't important to think about why Docker was introduced, presumably to make Go attractive to system programmers.
Yes, Docker is now our killer App because it's written in Go, it works well, and it becomes the heart of what's now called cloud computing…we used to just call it systems programming or servers. In fact, as long as there is an important technology written in Go, it proves useful. I think Go is a really good language.
Then came Kubernetes. Being able to write important software in your language is an important part of success. If a language doesn't have any application content, it doesn't matter how good it is.
It doesn't change other languages
This is a bit counterintuitive at first. For software, plasticity is generally valued and rigidity avoided. Rob explains this very well.
We do this intentionally, and with Go we promise not to change anything. This is critical to the success of language because it makes businesses believe in what we do and rely on what we don't destroy for them. I think a lot of people don't realize this principle. We didn't break people's programs, even though it was a ten-year-old project. It's incredible, but that's why we're here.
trust that your beliefs
When faced with negative feedback from the community and how the team made changes, Rob said:
Some of Go's features are critical to its success, but people don't like them, and we're blunt about that. I think the compilation error you mentioned about not using variables is one of them. This is very annoying, even if you forget to delete an unused variable, your program will have compilation errors. But for us, this is where Go shines. While it doesn't stop you from writing "bad" code, we try to tell you…this will prevent your program from being slow or your code from being difficult to maintain.
What really drives people crazy is that Go doesn't allow you to import libraries you don't use. This is critical for us because it takes a lot of time to build and process a lot of binaries, and we make sure your program has exactly the dependencies you need. But for many people, every time they edit and delete a print statement or something else, the compiler says,"You didn't use this library," which is simply annoying.
Later, Brad compiled a gofmt-based goimports to manage those compiled items for you, which basically quelled those complaints.
Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.