Skip to content

Commit

Permalink
bali: initial add
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Dec 11, 2024
1 parent ff8c168 commit 753db77
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
engine: [v8, v8_exp, jsc, jsc_exp, sm, sm_exp, chakra, hermes, kiesel, libjs, engine262, qjs, qjs_ng, xs, graaljs, rhino, boa, nova, njs, babel, swc, sucrase] # all
engine: [v8, v8_exp, jsc, jsc_exp, sm, sm_exp, chakra, hermes, kiesel, libjs, engine262, qjs, qjs_ng, xs, graaljs, rhino, boa, nova, njs, bali, babel, swc, sucrase] # all

chunk: [0, 1]
# engine: [v8, jsc, sm, chakra, hermes, kiesel, libjs, qjs, xs, graaljs] # exclude hangers/long
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Independent daily [test262](https://github.com/tc39/test262) (standard test suit
- [X] Porffor <small>[site](https://porffor.dev)</small> <small>[source](https://github.com/CanadaHonk/porffor)</small>
- [X] Nova <small>[site](https://trynova.dev)</small> <small>[source](https://github.com/trynova/nova)</small>
- [X] NJS <small>[site](https://nginx.org/en/docs/njs/)</small> <small>[source](https://github.com/nginx/njs)</small>
- [X] Bali <small>[source](https://github.com/ferus-web/bali)</small>
- Request more in GitHub issues!

### Transpilers
Expand Down
12 changes: 12 additions & 0 deletions scripts/engines/bali.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

# clone repo to get the git hash
git clone https://github.com/ferus-web/bali.git --depth 1

cd bali
git rev-parse HEAD > ../version.txt
cd ..
rm -rf bali

./scripts/install/esvu.sh bali
./scripts/test262.sh bali "${HOME}/.esvu/bin/bali" 16
7 changes: 5 additions & 2 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ <h2>daily runner of <a href="https://github.com/tc39/test262">test262</a> for <i
porffor: 'Porffor',
nova: 'Nova',
njs: 'NJS',
bali: 'Bali',
babel: 'Babel',
swc: 'SWC',
sucrase: 'Sucrase'
Expand All @@ -101,6 +102,7 @@ <h2>daily runner of <a href="https://github.com/tc39/test262">test262</a> for <i
porffor: 'New experimental AOT JS -> Wasm compiler, in JS',
nova: 'A new JS engine written in Rust exploring a data-oriented design',
njs: 'A subset of the JavaScript language to use in nginx',
bali: 'A new experimental JavaScript engine written in Nim',
babel: 'Babel 7 + core-js 3 running on Node 0.10 (ES5)',
swc: 'SWC + core-js 3 running on Node 0.10 (ES5)',
sucrase: 'Sucrase + core-js running on Node 0.10 (ES5) - for curiosity'
Expand All @@ -127,6 +129,7 @@ <h2>daily runner of <a href="https://github.com/tc39/test262">test262</a> for <i
porffor: 'Porf',
nova: 'Nova',
njs: 'NJS',
bali: 'Bali',
babel: 'Babel',
swc: 'SWC',
sucrase: 'Sucrase'
Expand All @@ -138,13 +141,13 @@ <h2>daily runner of <a href="https://github.com/tc39/test262">test262</a> for <i
sucrase: 'transformers'
};

const niceEngineOrder = [ 'v8', 'v8_exp', 'jsc', 'jsc_exp', 'sm', 'sm_exp', 'hermes', 'qjs', 'qjs_ng', 'libjs', 'chakra', 'graaljs', 'xs', 'rhino', 'boa', 'kiesel', 'porffor', 'nova', 'njs', 'engine262', 'babel', 'swc', 'sucrase' ];
const niceEngineOrder = [ 'v8', 'v8_exp', 'jsc', 'jsc_exp', 'sm', 'sm_exp', 'hermes', 'qjs', 'qjs_ng', 'libjs', 'chakra', 'graaljs', 'xs', 'rhino', 'boa', 'kiesel', 'porffor', 'nova', 'njs', 'engine262', 'bali', 'babel', 'swc', 'sucrase' ];

const thead = document.querySelector('thead');
const tbody = document.querySelector('tbody');

// Update filterOutEngines.length below when changing this list
let cwd = '', filterOutEngines = [ 'v8_exp', 'sm_exp', 'jsc_exp', 'chakra', 'xs', 'rhino', 'boa', 'qjs_ng', 'engine262', 'kiesel', 'porffor', 'nova', 'njs', 'swc', 'sucrase' ], init = false;
let cwd = '', filterOutEngines = [ 'v8_exp', 'sm_exp', 'jsc_exp', 'chakra', 'xs', 'rhino', 'boa', 'qjs_ng', 'engine262', 'kiesel', 'porffor', 'nova', 'njs', 'bali', 'swc', 'sucrase' ], init = false;
const defaultFilterLen = filterOutEngines.length;

if (location.hash) {
Expand Down

0 comments on commit 753db77

Please sign in to comment.