ITADN

Proposal: Language and Framework Agnostic

#358Opensnowyu 创建于 2023-09-05
S
snowyucommented
**Objective**: The objective of this proposal is to enable the usage of any framework and programming language within a typecell notebook. ### First a Minimal Runtime to Bootstrap Develop a minimal runtime environment that serves as a foundation for executing code in a typecell notebook. The runtime should provide the necessary infrastructure to support language and framework agnosticism: * Dynamic Compiler Library: The dynamic compiler library acts as a proxy factory for various compilers in different programming languages. Developers can register compilers for different languages and different importers within the library. The library facilitates the execution of code through `import` statements, enabling the use of specific importers. For example, developers can use statements like `import vue from ...` or `import react from ...` to ensure framework agnosticism. * iframe Sandbox: The compiled code will be executed within an iframe, providing a secure and isolated environment. ...
2 条评论