Skip to content
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

Make w4 watch less resource-hungry #690

Open
greenfork opened this issue Jan 12, 2024 · 1 comment
Open

Make w4 watch less resource-hungry #690

greenfork opened this issue Jan 12, 2024 · 1 comment

Comments

@greenfork
Copy link
Contributor

It looks like w4 watch busy-looping waiting to re-build files if they are changed. I wonder if it is possible to avoid busy-looping and what would be the thing that makes it do so. I looked at the code and don't seem to understand where it could be without further testing.

image

@Ztry8
Copy link
Contributor

Ztry8 commented Jun 19, 2024

If you use Linux, you can write a bash script like this: (example for C lang)

make
w4 run /build/cart.wasm
clear

Then use it in a terminal by watch watch build_cart.bash

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

No branches or pull requests

2 participants