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

Implement DCE #102

Open
krzema12 opened this issue Jan 1, 2022 · 2 comments
Open

Implement DCE #102

krzema12 opened this issue Jan 1, 2022 · 2 comments
Labels
bug Something isn't working development Anything related to making development more pleasant. No real influence on the product itself. optimization This change would result in a more optimal Python; "Pythonification".

Comments

@krzema12
Copy link
Owner

krzema12 commented Jan 1, 2022

Something is already inherited from JS backend, maybe it can be reused easily.
I also hope that DCE is a solution to MemoryError in MicroPython.

@krzema12 krzema12 added bug Something isn't working optimization This change would result in a more optimal Python; "Pythonification". development Anything related to making development more pleasant. No real influence on the product itself. labels Jan 1, 2022
@krzema12 krzema12 mentioned this issue Jan 1, 2022
@krzema12
Copy link
Owner Author

krzema12 commented Jan 1, 2022

It's not trivial - enabling it with the flag produces an empty file. It needs deeper investigation.

@SerVB
Copy link
Collaborator

SerVB commented Feb 21, 2022

I remember it worked at some point (when we had out-pir dir generated, at least). Probably a revision can be found.

Also, I remember Kotlin Team suggested that we don't reuse complex and smart KJS DCE that can still contain bugs but implement our own that just removes unused declarations but not code inside bodies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working development Anything related to making development more pleasant. No real influence on the product itself. optimization This change would result in a more optimal Python; "Pythonification".
Projects
None yet
Development

No branches or pull requests

2 participants