Skip to content
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

[REFACTOR] Removes AoT mode #1148

Merged
merged 1 commit into from
Sep 2, 2020
Merged

[REFACTOR] Removes AoT mode #1148

merged 1 commit into from
Sep 2, 2020

Conversation

pzuraq
Copy link
Member

@pzuraq pzuraq commented Sep 1, 2020

The existing AoT mode is significantly different than the future
direction that we want to go with precompiling templates. In particular,
it relied on static analysis of programs at compile time, including
being able to resolve all components ahead of time. With the direction
we're moving with template imports, this will not be possible without a
significant investment in static build tooling, so we want to focus on a
solution that does not require this.

This PR removes the existing AoT mode and refactors everything to assume
that there is only one major mode for Glimmer apps to run in, which is
effectively "JIT" mode as it exists today. We will continue to iterate
on and improve JIT mode, until it can precompile and ship byte code
templates like AoT mode could.

The existing AoT mode is significantly different than the future
direction that we want to go with precompiling templates. In particular,
it relied on static analysis of programs at compile time, including
being able to resolve all components ahead of time. With the direction
we're moving with template imports, this will not be possible without a
significant investment in static build tooling, so we want to focus on a
solution that does not require this.

This PR removes the existing AoT mode and refactors everything to assume
that there is only one major mode for Glimmer apps to run in, which is
effectively "JIT" mode as it exists today. We will continue to iterate
on and improve JIT mode, until it can precompile and ship byte code
templates like AoT mode could.
@rwjblue rwjblue merged commit 622e35b into master Sep 2, 2020
@rwjblue rwjblue deleted the remove-aot-rebase branch September 2, 2020 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants