Coder Social home page Coder Social logo

loyso / luacsp Goto Github PK

View Code? Open in Web Editor NEW
37.0 5.0 4.0 829 KB

Communicating Sequential Processes in Lua

C++ 12.08% CSS 0.18% Lua 1.06% Makefile 0.91% C 53.47% HTML 31.78% Roff 0.51%
lua lua-bindings lua-library communicating-sequential-processes fsm programming-language coroutines fsms game-development gamedev

luacsp's Introduction

LuaCSP

Communicating Sequential Processes in Lua: an extension.

LuaCSP library is a framework that allows you to create pseudo-concurrent programming language embeddable in your application.

Read the comprehensive documentation (an article) here.

See the introductional slides here.

Why?

  • The world is parallel. Typical simulation and robotics projects deal with many entities acting and interacting concurrently.

  • Event-oriented systems (command+callback, finite state machines - FSMs) can be implemented very efficiently but the resulting model logic is quite fragmented, as the scheduling and the evaluation of conditions are scattered throughout the event routines.

  • Callbacks and FSMs are way too low-level. FSMs are non-composable.

  • Asyncronous "push" multi-threaded systems are hard to program and understand. Whould be nice to orchestrate them at a higher level in synchronous way: back to natural control flow - stack and sequence are very powerful abstractions.

We should resolve these complexity and maintainability issues.

How?

We introduce next level you model in: embeddable Lua-based programming language with concurrent control-flow semantics.

So, LuaCSP:

  • Uses the Occam programming language ideas by Tony Hoare (the author of Quicksort).
  • Follows the principle of compositionality.
  • Introduces restrictions and rules, how entities behave and interact.
  • Extends Lua in standard way, includes it as a subset.

LuaCSP can be used under GNU General Public License (GPL), version 2.

http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Please, contact Alexey Baskakov if you want to use LuaCSP under any other license.

Copyright (c) 2012-2014 Alexey Baskakov. Feel free to contact the author for additional features, consulting and support.

luacsp's People

Contributors

loyso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

luacsp's Issues

REPL

Is there a chance of a REPL version?

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.