Skip to content

Conversation

@MaxDesiatov
Copy link
Contributor

The package is now augmented with new example code and split into three packages: Guest, ServerHost, and WATExample.

@MaxDesiatov MaxDesiatov added the enhancement New feature or request label Oct 7, 2024
@MaxDesiatov MaxDesiatov requested a review from bnbarham October 7, 2024 12:43
@MaxDesiatov MaxDesiatov changed the title Update the package to demonstrate WAT parsing and server-side plugins Add examples demonstrating WAT parsing and server-side plugins Oct 7, 2024
@MaxDesiatov MaxDesiatov changed the title Add examples demonstrating WAT parsing and server-side plugins Add example code for WAT parsing and server-side plugins Oct 7, 2024
Comment on lines +17 to +25
bin_path=$(swift build --triple wasm32-unknown-none-wasm -c release --show-bin-path)

swift build --triple wasm32-unknown-none-wasm -c release --product Plotter

for n in Bass HiHat Kick Mix; do
swift build --triple wasm32-unknown-none-wasm -c release --product $n

cp "${bin_path}/${n}.wasm" ~/Desktop
done
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bin_path=$(swift build --triple wasm32-unknown-none-wasm -c release --show-bin-path)
swift build --triple wasm32-unknown-none-wasm -c release --product Plotter
for n in Bass HiHat Kick Mix; do
swift build --triple wasm32-unknown-none-wasm -c release --product $n
cp "${bin_path}/${n}.wasm" ~/Desktop
done
pkg_path="$(cd "$(dirname $0)" && pwd)"
bin_path=$(swift build --package-path $pkg_path --triple wasm32-unknown-none-wasm -c release --show-bin-path)
swift build --package-path $pkg_path --triple wasm32-unknown-none-wasm -c release --product Plotter
for n in Bass HiHat Kick Mix; do
swift build --package-path $pkg_path --triple wasm32-unknown-none-wasm -c release --product $n
cp "${bin_path}/${n}.wasm" "$pkg_path/../ServerHost/Public/$n.wasm"
done
@MaxDesiatov MaxDesiatov force-pushed the maxd/server-demo branch 6 times, most recently from 64ec951 to 8fc2a11 Compare October 7, 2024 17:56

Plotter<HTMLCanvas>(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented in a separate dynamically-linked Plotter Wasm module.

@MaxDesiatov MaxDesiatov merged commit dc0d7ec into main Oct 8, 2024
@MaxDesiatov MaxDesiatov deleted the maxd/server-demo branch October 8, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

3 participants