@explorable-viz/fluid v0.7.89
Fluid: Language-integrated data provenance
Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.
Installation
Software required
- git
- Node.js >=14.0.0
- yarn >= 1.22
Additionally, for Windows users only:
Building
- Clone the repository (for Windows users, do this under the Ubuntu WSL)
- Run
./script/setup/dev-setup.shfrom the top-level directory - Run
yarn build
Use
The following assumes you have already succesfully run yarn build (see above).
Running programs from the command line
Fluid examples in the dist/fluid/fluid can be evaluated from the command line as follows
(from the top-level directory):
npx fluid evaluate -f <path>Note that the path is relative and should not include the .fld extension, e.g. for the range.fld example:
% npx fluid evaluate -f example/range
((0, 0) : ((0, 1) : ((1, 0) : ((1, 1) : []))))
SuccessRunning the fluid.org website locally
yarn serve fluid-org(you may be prompted to proceed: typey).- Open a browser at the served URL (usually
127.0.0.1:8080)
Testing
Running the tests from the command line
After building, tests can be run from the command line via yarn test-all
Running tests in browser
- As per command-line tests above, but run
yarn test-browser, which opens a browser window. - To observe the status of tests, click
Debugin the browser window, and then open the JavaScript Console for your browser (e.g., via the Developer Tools).
Run Puppeteer tests for page Y of website X
Rebuild with puppeteerTests.headless set to false to run in browser. Then:
yarn bundle-website X./script/test-page.sh X X.Y
Development via VS Code
The following are some notes on developing Fluid using VS Code.
- Avoid having PureScript installed globally
- Install the PureScript IDE extension
In the PureScript IDE extension settings, select
Add Npm PathFor Windows users: - Launch VSCode through Ubuntu (WSL) terminal - Install WSL extension in VSCode
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago