Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
esfoden authored Oct 1, 2019
1 parent 798e15c commit 99bdd40
Showing 1 changed file with 55 additions and 2 deletions.
57 changes: 55 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,55 @@
# LogicEngine
A Logic Simulator
# Welcome to LogicEngine

LogicEngine is a fast and efficient Logic Simulator.

## Implementations

LogicEngine has been implemented in Perl, Python and Javascript.

## Runs anywhere

For the browser it optionally supports ATM modules or alternatively creates a global variable called "LogicEngine". Note that the simulator itself runs in a web worker and does not impact responsiveness.

### ATM module

```HTML

<script>
var pub,sub;
requirejs(["LogicEngine"], function(engine){
pub = engine.publish;
sub = engine.subscribe;
sub( "ready",function() {
pub({ topic : "check" });
});
});
</script>
```

### Non modular

```HTML

<script src="./LogicEngine.js">
//creates LogicEngine global variable
<script?
var pub = LogicEngine.publish,
sub = LogicEngine.subscribe;
sub( "ready",function() {
pub({ topic : "check" });
});
});
</script>
```
### node.js
In addition node.js is supported. Here the simulator runs in a child process and does not block the event loop. It brings well behaved number crunching to node.js
```JavaScript
var engine = require('./LogicEngine');
var subscribe = engine.subscribe,
publish = engine.publish;
```

0 comments on commit 99bdd40

Please sign in to comment.