Replies: 1 comment 1 reply
-
|
Hi @Alex6357 — this is a great use case and exactly the kind of embedding scenario we want Perry to support well. Let me give you the honest current state, and then please do file an issue for the gap — we want to close it. Q1 — static library without
Q2 — driving the event loop from the host: Yes, this is supported today. The C-callable symbols (all int js_promise_run_microtasks(void); // drains promises/timers/microtasks, returns count drained
int js_microtasks_pending(void); // 1 if queue has work, 0 otherwise
void js_gc_init(void); // call once at startup before any microtask runA typical winit loop would call One thing worth flagging early so it doesn't surprise you later: Perry owns its own tokio runtime internally, so socket-readiness on Perry-side I/O (HTTP, MySQL, etc.) won't wake your winit loop directly — completions surface on your next Summary: dylib + |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm building a native UI engine using
winitas the host and PerryTS as the AOT-compiled logic layer. Sincewinitmust control the main thread's event loop, I have two questions:mainentry?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions