Skip to content

Commit

Permalink
chore: Fix issues with playground build.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitkulshreshtha committed Dec 20, 2024
1 parent d6bcb53 commit f4da6ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ const config = {
title: 'Docs',
items: [
{
label: 'Hydroflow',
to: '/docs/hydroflow/',
label: 'DFIR',
to: '/docs/dfir/',
},
{
label: 'Hydro',
Expand Down
12 changes: 6 additions & 6 deletions docs/src/pages/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let compile_DFIR = null;
let compile_datalog = null;

if (siteConfig.customFields.LOAD_PLAYGROUND === '1') {
compile_DFIR = playgroundJS.compile_DFIR;
compile_DFIR = playgroundJS.compile_dfir;
compile_datalog = playgroundJS.compile_datalog;

if (ExecutionEnvironment.canUseDOM) {
Expand Down Expand Up @@ -53,11 +53,11 @@ function MermaidGraph({ id, source }) {

const DFIRExamples = {
"Simplest": `\
// https://hydro.run/docs/hydroflow/quickstart/example_1_simplest
// https://hydro.run/docs/dfir/quickstart/example_1_simplest
source_iter(0..10) -> for_each(|n| println!("Hello {}", n));`,

"Simple": `\
// https://hydro.run/docs/hydroflow/quickstart/example_2_simple
// https://hydro.run/docs/dfir/quickstart/example_2_simple
source_iter(0..10)
-> map(|n| n * n)
-> filter(|n| *n > 10)
Expand Down Expand Up @@ -115,7 +115,7 @@ inbound_chan[acks] -> [1]msg_send;
inbound_chan[msgs] -> for_each(pretty_print_msg);`,

"Graph Neighbors": `\
// https://hydro.run/docs/hydroflow/quickstart/example_4_neighbors
// https://hydro.run/docs/dfir/quickstart/example_4_neighbors
// inputs: the origin vertex (vertex 0) and stream of input edges
origin = source_iter(vec![0]);
stream_of_edges = source_stream(edges_recv);
Expand All @@ -127,7 +127,7 @@ stream_of_edges -> [1]my_join;
my_join -> unique() -> for_each(|n| println!("Reached: {}", n));`,

"Graph Reachability": `\
// https://hydro.run/docs/hydroflow/quickstart/example_5_reachability
// https://hydro.run/docs/dfir/quickstart/example_5_reachability
// inputs: the origin vertex (vertex 0) and stream of input edges
origin = source_iter(vec![0]);
stream_of_edges = source_stream(edges_recv);
Expand All @@ -142,7 +142,7 @@ my_join_tee[0] -> [1]reached_vertices;
my_join_tee[1] -> unique() -> for_each(|x| println!("Reached: {}", x));`,

"Graph Un-Reachability": `\
// https://hydro.run/docs/hydroflow/quickstart/example_6_unreachability
// https://hydro.run/docs/dfir/quickstart/example_6_unreachability
origin = source_iter(vec![0]);
stream_of_edges = source_stream(pairs_recv) -> tee();
reached_vertices = union()->tee();
Expand Down
2 changes: 1 addition & 1 deletion lattices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ freely distributed with no coordination overhead. The goal of the [Hydro Project
is to allow users to write programs that automatically scale and distribute effortlessly.

For more information on the underlying mathematics of lattices and monotonicity, take a look at
[Lattice Math section of the Hydroflow Book](https://hydro.run/docs/hydroflow/lattices_crate/lattice_math)
[Lattice Math section of the Hydroflow Book](https://hydro.run/docs/dfir/lattices_crate/lattice_math)
and Section 2 of the [Hydroflow Thesis (2021)](https://hydro.run/papers/hydroflow-thesis.pdf).

Take a look at the [`lattice` rustdocs](https://hydro-project.github.io/hydroflow/doc/lattices/index.html).
Expand Down
2 changes: 1 addition & 1 deletion website_playground/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub struct HydroflowOutput {
}

#[wasm_bindgen]
pub fn compile_hydroflow(
pub fn compile_dfir(
program: String,
no_subgraphs: bool,
no_varnames: bool,
Expand Down

0 comments on commit f4da6ed

Please sign in to comment.