See a brief about COMMONJS and Nodejs today ~
Objective:
I've heard of a JavaScript framework for local programming, but I think it's not struggling, and it doesn't have any practical value. But since the advent of the COMMONJS and Nodejs two projects, JavaScript has been used as a special application in the local programming language to enter the public eye. This article translates the introduction of COMMONJS home page, explains what is COMMONJS. In addition, with the popularization of parallel computing, the functional language like JavaScript, because of its inherent ease of parallel computing characteristics, will have a broader application prospects.
Body:
JavaScript is a powerful object-oriented language, and it has many fast and efficient interpreters. The official JavaScript standard defines the API for building browser-based applications. However, it is not set in a standard library for a wider range of applications.
The CommonJS API fills this gap by defining APIs that are used by many common applications, primarily non-browser applications. Its ultimate goal is to provide a library of standards like Python,ruby and Java. In this way, developers can write applications using the COMMONJS API, which can then be run in different JavaScript interpreters and different host environments. In a system compatible with COMMONJS, you can develop a practical JavaScript program:
Server-side JavaScript applications
Command-line tools
Graphical interface Applications
Hybrid applications (e.g., titanium or Adobe AIR)
The relationship between Nodejs and Commonjs
COMMONJS is a specification, NODEJS is the implementation of this specification. Commonjs is an evolving norm and the plan will include the following parts:
- Modules
- Binary Strings and Buffers
- Charset Encodings
- Binary, buffered, and textual input and output (IO) streams
- System process arguments, environment, and streams
- File System Interface
- Socket streams
- Unit test assertions, running, and reporting
- Web Server Gateway Interface, JSGI
- Local and remote packages and package management
Customized progress for each sub-specification please see the official website for instructions: http://commonjs.org/specs/
COMMONJS has many implementations, many of which are famous, such as Apache's Couchdb and node. js. But most of these projects only implement part of the COMMONJS specification. Specific project and implementation section see the official website for instructions: http://commonjs.org/impl/
Editor: Don't underestimate the development plan of webOS as a background application Javascript,palm the COMMONJS and its extended JS API, In addition, almost all platforms, including smartphone platforms and computer platforms, have started to introduce web technologies, such as Webwidget on the Webwidget,android platform in S60 Wrt,iphone, There is also Firefox directly with XML and CSS interface with JavaScript control logic, even Google's ChromeOS is directly a browser operating system. I make a technical bet: Dynamic language and static language mixed programming will be popular (for example, Android and Palmwebos simultaneously introduce two sdk,qt to Qtscript).
What is COMMONJS?