Git Product home page Git Product logo

algo-lua's Introduction

algo-lua

Algorithms in Lua.

Notice

This package intends to demonstrate common data structures and algorithms, which is implemented in Lua. Don't use it in production environment.

Introduction

The library demonstrates common data structures and algorithms mostly in Lua. Since Lua is a slow language compared with C/C++, you should not rely on this package for critical tasks. In addition, the module is still in alpha stage; the API may change without warning.

The package is built partially as a supplement for other libraries; don't expect full implementations for all classic algorithms.

Lua community is split by two major Lua implementations, official Lua and LuaJIT. Although LuaJIT is behind official Lua in language features, the former outperforms the latter by about 10x-50x. Therefore, this library targets LuaJIT.

Install

After clone the repository, make a LuaRocks package from it.

$ git clone https://github.com/cwchentw/algo-lua.git
$ cd algo-lua
$ luarocks make algo-0.1.0-1.rockspec

Documentation

After installation, see the API documentation and their examples in the package document.

$ luarocks doc algo

Copyright

2017, Michael Chen.

License

algo-lua is free software, using MIT License.

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.