-
Notifications
You must be signed in to change notification settings - Fork 272
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 std::time::Instant
optional
#577
base: master
Are you sure you want to change the base?
Conversation
I had a bit of time to try this out today. It looks like the dataflow I have got a WASM test harness working though where I can reproduce the "time not implemented on this platform" 😄, will share as soon as I get a bit more time. |
Ah, oops. I'll take a look! |
So, 100% repro. For some reason I thought |
2b8ff0d
to
b977a15
Compare
Ah yes ok the tiniest of bugs. But very, very consequential. Only claim there is no work to do if both sources of work are empty, rather than if either source of work is empty. Sorry about that. T.T |
This is the result of pasting .inspect(|x| console::log_1(&format!("timely says: {:?}", x).into())) and .. to be honest copilot wrote most of it (except I had to learn that But, it seems to run vanilla timely programs, at least! |
Ahah awesome!! Confirmed that works great for me. I also managed to test out some more comprehensive code I have running DD compiled to WASM, in the browser 😃. I set up a basic test here: master...oli-w:timely-dataflow:wasm-test (if it helps to simplify some of the boilerplate). I can make it panic with
Hmm I wonder why 🤔, this prelude lets me call #[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_namespace = console)]
fn log(s: &str);
} |
Your code may work fine! I "had" to do things only because I don't know how anything works, and copilot had me copy/paste some stuff that did not work (e.g. |
4d09bf3
to
c1e12b5
Compare
c1e12b5
to
4e20406
Compare
Ah, sort of what the title says. Many uses of
Instant
have becomeOption<Instant>
with the intent that an absent instant reflects execution in an environment without time. It a more complicated world we might swap in a generic to replaceInstant
, but threading that through everywhere seemed complicated, and making the instant optional and various behavior locked behind having aSome
instant seemed like a good first dip of toes in the water.cc: @oli-w