Git Product home page Git Product logo

neptune-lang's Introduction

Neptune Lang

Neptune is a dynamically typed scripting language

Documentation crates.io Book

Goals

  1. Embeddability: It can be embedded in any rust application. Synchronous or asynchronous rust functions can be used by a neptune script.
  2. Performance: It performs better than most interpreted(JITless) scripting languages. See Benchmarks for a comparison with lua, luajit, nodejs and ruby.
  3. Security: It is impossible to do any kind of undefined behaviour(including integer overflow)
  4. Concurrency
    • It is trivial to write asynchronous code
    • An error in a task does not always terminate the whole application and can be handled gracefully.
    • There are no function colors.
  5. Small implementation

Features

  • Iterators
  • String Interpolation
  • Modules
  • Optional semicolons
  • UTF-8 strings
  • and much more...

Getting Started

The CLI be installed by the command given below. You must have the rust compiler and a C++ compiler. The C++ compiler can be set using the CXX environment variable. Clang is recommended for best performance.

cargo install neptune-cli

At the moment the CLI has a few basic functions and a REPL. The REPL supports multiline entries and the following shortcuts.

Command Description
Ctrl-L Clear the screen
Ctrl-C Interrupt/Cancel editing
Ctrl-D Quit REPL
Up arrow Previous history entry
Down arrow Next history entry

To embed it in rust you can use the library from crates.io.

Todo

  • CLI - Standard library, external modules
  • Preemptiveness?
  • Buffer type

neptune-lang's People

Contributors

srikanth-m-02 avatar srinivasa314 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.