Skip to content

Make bs wasm32 compatible (merge Comrade + Bestsign chgs) #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 61 commits into
base: main
Choose a base branch
from

Conversation

DougAnderson444
Copy link
Collaborator

@DougAnderson444 DougAnderson444 commented May 4, 2025

This PR adds a wasm component new text-based virtual runtime to execute Plog scripts, which can be run anywhere, including wasm32

The runtime parses the script with pest parser, then evaluates the script.

This architecture makes the execution of scripts very flexible.

Fixes #15
Related #4

@dhuseby
Copy link
Member

dhuseby commented May 5, 2025

🎸 🤟🏻

@DougAnderson444 DougAnderson444 changed the title use wasm component virtual runtime Make bs wasm32 compatible May 12, 2025
@DougAnderson444
Copy link
Collaborator Author

This is essentially ready for review.

I took the liberty to update a few adjacent modules, such as provenance-log, cli and fix the bs-trait which were missing Error as assoc type.

Have a look and let me know your thoughts!

@DougAnderson444 DougAnderson444 marked this pull request as ready for review May 12, 2025 13:39
using Return Position Impl Trait In Trait (RPITIT) syntax, which allows
for more efficient async trait implementations without requiring the
`async_trait` macro
@DougAnderson444
Copy link
Collaborator Author

Use RPITIT instead of async-trait macro

@DougAnderson444
Copy link
Collaborator Author

DougAnderson444 commented May 12, 2025

Scope creep on this PR, sorry about that, but I'm using some of these traits, and rust-analyzer won't work if the work crate doesn't compile

@DougAnderson444 DougAnderson444 changed the title Make bs wasm32 compatible Make bs wasm32 compatible (merge Comrade + Bestsign chgs) May 14, 2025
@DougAnderson444
Copy link
Collaborator Author

While I'm here, merging in the other changes I made over in Bestsign crate to here

@DougAnderson444
Copy link
Collaborator Author

You guys want to have a look at this so we can merge?

cc @dhuseby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use text-based scripts, such that any wasm runtime can be used
2 participants