ergo icon indicating copy to clipboard operation
ergo copied to clipboard

Refactor, simplify and clean up Engine API

Open jeromesimeon opened this issue 3 years ago • 0 comments

Several improvements to the Ergo engine API in ergo-engine would provide a more solid foundation for execution on multiple platforms (e.g., Node, WebAssembly, etc).

  • [x] Turn engine calls into asyncs again (some platforms such as AssemblyScript execution will require that)
  • [x] Replace trigger by invoke main
  • [ ] Move some support code currently in the logic manager which should really be part of the runtime, into the engine. Specifically:
    • [x] creation of the top-level invoke call to engine
    • [ ] validation against CTO
  • [ ] Remove JIT compilation calls from the engine, focusing execution on compiled code, and removing dependency from the engine to the Ergo compiler.
  • [ ] Replace logic manager by something simpler, lower-level and specific to the target execution environment + keep the model manager.

jeromesimeon avatar Aug 14 '20 14:08 jeromesimeon