Google's programming language for the adventurous      

12 November 2009   |   By Anton   |   Views: 502   |   Comments 0   |   Print  
altAfter a search, a set of tools that support AJAX technology, office software and digital books, Google's group has prepared its own programming language. It reminds languages C and Pascal. It has a similar package for classes with private variables and methods, but does not allow for inheritance, and thus hierarchization types. It is widespread support for the concept of object-oriented language interfaces, so you can write polymorphic functions, such as those which are necessary for any sort of data.

Like other modern languages, and provides him collector wasteland (garbage collector). He takes over the task of sharing the exempted area of memory, as in the case of C and C + +, rests on the developer. Disposal, we have data types oz predetermined number of bytes (uint8, int32, float64, etc.) as well as familiar with the C types int, float, uint, whose size depends on the platform. It enables developers to cost-effective use of punctuation, parentheses, or type a semicolon and a sample header for loop might look like this:

  for i: = 0 and <flag.NArg (); i + +

Not fully thought-appears to be the definition of sequences: a specification language describes it because as arrays of bytes (arrays of bytes). On the other hand, given examples of Unicode characters that are larger than 1 byte. In fact, the expression s [i] always returns a single byte, and processing sequences encoded with UTF-8 is a special package.

Language him and his prototype C is still combines several aspects. First, it offered its tools, like compilers and linkers, are written in C. Second, it supports many features of its predecessor. Concurrent programming option is if the form of a sketch. But instead of the themes of language creator wants it to him based on the mechanism of the CSP (Communicating Sequential Processes).

In Google's FAQ section specifies a new language as an experiment: "We hope that users hungry adventurers try out and evaluate it, whether they like." The company reports that even the language itself does not use him for production purposes, because it is not yet sufficiently mature. Provides, however, that in future it will be possible. Moreover, at http://golang.org/ can already see from him written in the server software.

Google prepared environments for GNU / Linux and Mac OS X versions for Intel and ARM platforms (for GNU / Linux). Published at it only in source code form. After downloading the sources from the Mercurial repository to compile it, but what is required gcc parser generator bison. In the case of Mac OS X have the tools found in Apple's Xcode environment.

Tags: google
 
 (Votes #: 0)


Related News:
 
 
 
 

Add comments

Name:
E-Mail:

Code:
Include security image CAPCHA.
update code
Enter code: