项目作者: LiXizhi

项目描述 :
NPL - Neural Parallel Language
高级语言: C++
项目地址: git://github.com/LiXizhi/NPLRuntime.git
创建时间: 2015-08-10T02:23:27Z
项目社区:https://github.com/LiXizhi/NPLRuntime

开源协议:GNU General Public License v2.0

下载


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

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

See Install Guide for details

Getting Started

Example code

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

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:

  1. npl [filename] [parameters...]

To run in server mode, use:

  1. npls [filename] [parameters...]

For example:

  1. npls hello.npl