Skip to content

Commit

Permalink
bump versions, change import
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdeliso committed Dec 8, 2024
1 parent 82b1780 commit c9f8bf1
Show file tree
Hide file tree
Showing 5 changed files with 1,111 additions and 1,141 deletions.
Binary file modified .nvmrc
Binary file not shown.
3 changes: 1 addition & 2 deletions lib/evaluator/skiEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export interface SKIResult<E> {
expr: E;
}

// eslint-disable-next-line no-unused-vars
type ExtractStep<E> = (expr: E) => E | false;

const stepMany = (expr: SKIExpression): SKIExpression => {
Expand Down Expand Up @@ -139,7 +138,7 @@ function extractStep(
}
}

// eslint-disable-next-line no-unused-vars

type SKIStep<E> = (input: E) => SKIResult<E>;

/*
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,26 @@
"homepage": "https://github.com/maxdeliso/typed-ski",
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^8.56.0",
"@eslint/js": "^9.16.0",
"@stylistic/eslint-plugin": "^2.3.0",
"@stylistic/eslint-plugin-ts": "^2.3.0",
"@types/chai": "^4.3.16",
"@types/chai": "^5.0.1",
"@types/eslint__js": "^8.42.3",
"@types/jest": "^29.5.11",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.0",
"@types/node": "^22.10.1",
"@types/random-seed": "^0.3.5",
"@types/terminal-kit": "^2.5.6",
"chai": "^5.1.1",
"eslint": "^8.56.0",
"chai": "^5.1.2",
"eslint": "^9.16.0",
"jest": "^29.7.0",
"mocha": "^10.5.1",
"mocha": "^11.0.1",
"tsx": "^4.16.2",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.0"
"typescript-eslint": "^8.17.0"
},
"dependencies": {
"random-seed": "^0.3.0",
"terminal-kit": "^3.0.1"
}
}
}
6 changes: 4 additions & 2 deletions test/performance.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { compute } from '../lib/ski/expression.ts';

import { hrtime } from 'process';

import { Readable } from 'stream';
import { create } from 'random-seed';

import randomSeed from 'random-seed';

describe('evaluator performance', () => {
const S = 64; // symbol count in each randomly generated expression
const N = 256; // the total number of reductions to complete

it('is estimated by measuring the rate of reductions', () => {
const seed = hrtime.bigint.toString();
const rs = create(seed);
const rs = randomSeed.create(seed);
const start = hrtime.bigint();
const testOutput = new Readable();
let generations = 1; // generate upon unaltered evaluation
Expand Down
Loading

0 comments on commit c9f8bf1

Please sign in to comment.