Interpreted vs. Compiled
Since a typical agent runs an event loop, Mog programs are designed to run inside an event loop, familiar to anyone who has written JavaScript or TypeScript. Mog’s support for this consists primarily of async/await syntax. Mog programs can define async functions, and importantly, the host can also provide async functions that the guest can call. This allows a guest program to fire off an HTTP request and a timer and do something different depending on which one finishes first – internally the compiler implements this using coroutine lowering, based on LLVM’s design for the same.
。新收录的资料是该领域的重要参考
Then test whether it works:。关于这个话题,新收录的资料提供了深入分析
人 民 网 版 权 所 有 ,未 经 书 面 授 权 禁 止 使 用