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

Proposal: Add the es-optimizer as an option for ShowJS #301

Open
mikesol opened this issue Oct 4, 2022 · 1 comment
Open

Proposal: Add the es-optimizer as an option for ShowJS #301

mikesol opened this issue Oct 4, 2022 · 1 comment

Comments

@mikesol
Copy link

mikesol commented Oct 4, 2022

A lot of times I use the ShowJS tab to do a quick-and-dirty performance evaluation of PS code before I use it in a repo. These days, almost all of my repos are using the es-optimizer, so my quick-and-dirty flow no longer works. I'm wondering if it's too much trouble to wire up the backend optimizer to trypurescript as an option?

@natefaubion
Copy link
Contributor

Unfortunately this is not currently realistically possible. First, The outputs of each are incompatible. That is, backend-es necessarily does not interop with main’s data constructors. So this requires the server to maintain both outputs for library code as well as CoreFn. Second, backend-es is currently batch only. It necessarily needs to optimize the whole dependency tree as it relies on that work for its own internal analysis and book keeping. It would not be realistic to process the entire dependency tree every time you paused typing.

So I think before this can even be thought about, backend-es would need to support some sort of incremental or online mode at a minimum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants