NekoVM | |
Logo Size: | 64px |
Logo Alt: | NekoVM logo |
Author: | Nicolas Cannasse |
Latest Release Version: | 2.3.0 |
Programming Language: | C |
Platform: | IA-32, x86-64 |
Operating System: | Windows, macOS, Linux |
License: | MIT |
NekoVM is a virtual machine developed by Nicolas Cannasse as part of research and development (R&D) efforts at two independent video game developers in Bordeaux, France: first at Motion Twin and then at Shiro Games. NekoVM's native language is the bytecode for a high-level dynamically typed programming language called Neko. This pairing allows Neko to be used directly as an embedded scripting language, or to target NekoVM by compiling another language (such as Haxe) to NekoVM bytecode.
Neko has a compiler and a virtual machine (VM) with garbage collection. The compiler converts a source .neko file into a bytecode .n file that can be executed with the VM. Since Neko is dynamically typed with no fixed classes, a developer only needs to find the proper runtime mapping (in contrast to data type mapping) so that code executes correctly. As the Neko FAQ puts it: "...it is easier to write a new or existing language on the NekoVM than it is for the CLR / JVM, since you don’t have to deal with a highlevel type system. Also, this means that languages can interoperate more easily since they only need to share the same data structures and not always the same types."[1]
Neko requires compiling before executing, like other scripting languages such as Apache Groovy. Since Neko need not be interpreted at runtime, it executes faster. The Haxe language can compile to Neko code, among other targets.
The Neko virtual machine is used to execute a Neko bytecode file, the VM also has the option to convert a bytecode file into an executable file (output changes depending on the target operating system).
Neko | |
Logo Size: | 64px |
Logo Alt: | NekoVM logo |
Paradigm: | Multi-paradigm |
Designer: | Nicolas Cannasse |
Latest Release Version: | 2.3.0 |
Typing: | Dynamic |
Programming Language: | OCaml |
Platform: | NekoVM |
Operating System: | Windows, macOS, Linux |
License: | MIT |
File Ext: | .neko .n |
File Formats: | --> |
var o = $new(null);o.msg = "hello";$objsetproto(o,proto);o.foo; // print "hello"
$objsetproto(o,null); // remove protoo.foo; // exception
Neko includes Apache server modules mod_neko for Neko language and mod_tora for hosting the NekoVM application server tora. As such, it can process user input using GET and POST requests: