Giter VIP home page Giter VIP logo

devoxx.be2018's Introduction

Rethinking Software Systems - a Gentle Introduction to Behavioral Programming

Code Appendix to a BP intro talk hosted by Devoxx.be 2018

Talk Video

Behavioral Programming is a programming/modeling paradigm, under which computer systems, which are often required to demonstrate complex behaviors, are composed of multiple simple threads of behavior.

Behavioral Programming was developed by David Harel, Assaf Marron, and Gera Weiss circa 2010. It is based on Scenario Based Programming, which was developed by Werner Damm, David Harel, and Rami Marelly (1999, 2001, 2003).

To use these files, you'll need Java, and the BPjs über jar available here.

To run:

java -jar BPjs-0.9.3.uber.jar {filename.js}

To verify:

java -jar BPjs-0.9.3.uber.jar --verify {filename.js}

To use several files at once, simply list them in the order you wish them evaluated. Use - to read from stdin.

What's in Here:

  • hello-world.js: The file live-coded at the talk. Contains the four b-threads required to generate a proper "Hello Devoxx World" message.
  • block-orders.js: A set of b-threads that enforce, and test the enforcement of, the requirement:

    "when we run out of a products p1 and p2, do not allow new orders until the stock is renewed"

  • limit-consumption.js: A set of b-threads that enforce, and test the enforcement of, the requirement:

    "Do not use more than $LIMIT resources at a time"

  • page-cleaner.js: A set of b-threads that enforce, and test the enforcement of, the requirement:

    "Every three pages, clean the ink jets"

The visual maze swing application can be found here.

Behavioral Programming Resources

Also, there are many academic Papers (e.g. algorithms, event selections, visualizations). Search for "Behavioral Programming", "Live Sequence Charts (LSCs)", "Scenario Based Programming", or "Scenario Tools".

devoxx.be2018's People

Contributors

michbarsinai avatar

Watchers

James Cloos avatar  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.