Skip to content

Commit

Permalink
Merge pull request #90 from doug-martin/master
Browse files Browse the repository at this point in the history
v0.2.1
  • Loading branch information
doug-martin committed Nov 8, 2013
2 parents 00332c0 + 86eea5e commit 6625afd
Show file tree
Hide file tree
Showing 44 changed files with 10,705 additions and 422 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = function (grunt) {
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;' +
' Licensed <%= pkg.license %> */\n',
report: 'gzip'
report: 'min'
},
min: {
files: {
Expand Down
5 changes: 3 additions & 2 deletions benchmark/waltzDb/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
var data = require("./data"),
nools = require("../../index");

var flow = nools.compile(__dirname + "/waltzDb.nools");
var items = data.load(flow).waltzdb8;
var flow = nools.compile(__dirname + "/waltzDb.nools")
.conflictResolution(["salience", "factRecency", "activationRecency"]);
var items = data.load(flow).waltzdb4;
var session = flow.getSession.apply(flow, items);
session.assert(new (flow.getDefined("stage"))({value: "DUPLICATE"}));
var start = new Date();
Expand Down
5 changes: 2 additions & 3 deletions benchmark/waltzDb/waltzDb.nools
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ function getAngle(p1, p2){
return PI/2;
else if (deltaY < 0)
return -PI/2;
}
else if (deltaY == 0) {
}else if (deltaY == 0) {
if (deltaX > 0)
return 0.0;
else if (deltaX < 0)
Expand Down Expand Up @@ -721,9 +720,9 @@ rule start_visit_2_junction {
junction : Junction junction.type == '2j' && junction.visited == 'no' {basePoint : basePoint, p1 : p1, p2 : p2};
}
then {
modify(junction, function(){ this.visited = "now";});
modify(stage, function(){ this.value = 'VISITING_2J';});
console.log( "VISITING_2J" );
modify(junction, function(){ this.visited = "now";});
}
}

Expand Down
15 changes: 15 additions & 0 deletions docs/History.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,21 @@



<h1>0.2.1</h1>
<ul>
<li>Added support for js expression in the <code>from</code> node addressing issue <a href="https://github.com/C2FO/nools/issues/86">#86</a></li>
<li>Enhanced <code>JoinReferenceNode</code> performance in the default assert case where there are no <code>references</code> to left or right context.</li>
<li>Added ability to use <code>or</code> and <code>not</code> in tandem to check for the non-existence of multiple facts. <a href="https://github.com/C2FO/nools/issues/85">#85</a></li>
<li>Fixed issue with <code>from</code> node where an undefined property would be tested. <a href="https://github.com/C2FO/nools/issues/89">#89</a></li>
<li>You can now define a custom resolution strategy.</li>
<li>Compiling nools files now supports the from modifier.</li>
<li>Documentation updates<ul>
<li>Updates about from node support with js values.</li>
<li>New documentation about using <code>or</code> and <code>not</code> constratints together.</li>
<li>Updated <code>or</code> documentation to include a three constraint example.</li>
</ul>
</li>
</ul>
<h1>0.2.0 / 2013-10-14</h1>
<ul>
<li>Nools now supports true modify!!!<ul>
Expand Down
Loading

0 comments on commit 6625afd

Please sign in to comment.