Skip to content

javascriptDev/node.native

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node.native

node.native is a C++11 (aka C++0x) port for node.js.

Please note that node.native project is under heavy development: currently experimental.

Sample code

Simple echo server:

#include "native.h"
using namespace native;

int main(int argc, char** argv) {
    return run([=]() {
        net::createServer([](net::Server* server){
            server->on<ev::connection>([](net::Socket* socket){
                socket->pipe(socket, {});
            });
            server->on<ev::error>([=](Exception e){
                server->close();
            });
            server->listen(1337, "127.0.0.1");
        });
    });
}

Getting started

To compile native.a and sample apps:

make

I tested the code on Ubuntu 11.10 and GCC 4.6.1.

Other Resources

You can also access this page via http://www.nodenative.com.

About

C++11 port for the Node: native performance and modern simplicity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.6%
  • Python 2.7%
  • Makefile 2.3%
  • C 0.4%