Skip to content

codepku-team/NPLRuntime

 
 

Repository files navigation

Build Status Build status Code docs Documentation Status

Welcome to the NPL Runtime!

NPL or Neural Parallel Language is an open source, high-performance, scripting language. Its syntax is 100%-compatible with lua. NPL runtime provides essential functionality for building 3D/2D/Server applications that runs on windows/linux/android/iOS.

Install Guide

git clone https://github.com/LiXizhi/NPLRuntime.git
./build_linux.sh

See Install Guide for details

Getting Started

Example code

-- this is from `helloworld.npl`
NPL.activate("(gl)helloworld.npl", {data="hello world!"})
this(msg){
   if(msg) then
      print(msg.data or "");
   end
}

Why a New Programming Language?

NPL prototype was designed in 2004, which was then called 'parallel oriented language'. NPL is initially designed to write flexible algorithms that works in a multi-threaded, and distributed environment with many computers across the network. More specifically, I want to have a language that is suitable for writing neural network algorithms, 3d simulation and visualization. Lua and C/C++ affinity was chosen from the beginning.

Usage

To run with GUI, use:

npl [filename] [parameters...]

To run in server mode, use:

npls [filename] [parameters...]

For example:

npls hello.npl

Packages

No packages published

Languages

  • C++ 49.2%
  • C 44.5%
  • Makefile 1.0%
  • Lua 0.7%
  • Objective-C 0.7%
  • CMake 0.7%
  • Other 3.2%