Wednesday, July 20, 2011

Going Against C++ And Python

With the myriad of programming languages available, many software developers have difficulty in choosing which one to use. And with the entry of Google's new Go programming language into the field, it seems that it has become even tougher. But is the Go worth all that uneasiness among programmers?

Reading all the news items that have been released about the Go recently, one can surmise that the language can be easily compared to C++ or Python. And since both of these are already established programming languages, it seems that the Go is as good as both of these. And Google claims that it is designed to combined the best  features of both.

Interestingly, Go uses the same syntax as that used by C++. Thus, those already familiar with the language will likely be easily able to adjust to Go. However, there are a few minor differences between the two. This can take quite some time getting used to but will be no problem at all.

Another thing where Google Go is supposed to be better than both language is compilation time . According to the tests that were run with the language, it compiles much faster than the two. What this translates into is much faster creation and running of the program.

However, there is a catch with the faster compile time. In order to make it easier to compile programs , the Go had to forego certain functions that are commonly found in other languages, such as exception handling and method overloading. Google contends that leaving these out will not greatly affect the language's performance. On the other hand, some programmers assert that removal of these can have a detrimental effect on the language's performance.

Google also said that the Go combines both the aspects of C++ and Python. Thus, the programmer will have the benefits of program security like those found in static languages such as C++, while being as flexible as dynamic languages, such as Python. And if this is implemented, this will give the programmer a multipurpose language that can handle a wide variety of tasks, as promised by Google.

However, the ultimate question in many programmers' mind is do they still need a new language. And many experts contend that newer versions of both C++ and Python are already offering the functions that can be found in Go, and without having to learn a new script. However, since the Go is still relatively new language (and an experimental one at that), it might still have to take time before its real benefits will show up.

No comments:

Post a Comment