-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
``` |