You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to see how adding more Rust would work with the existing toolchain & tools. There is no specific reason for this rewrite that can be justified other than the benefits of Rust over C++.
The code is a lot simpler and a lot readable now (as far as I can tell)
I think for the code of js2c per-se moving to rust would be a fun exercise though most of the Rust over C++ benefit doesn't really apply for something that's just a build tool (if it weren't for the slowness, we could've stayed in Python). But taking build complexity into consideration it's not very worth it IMO e.g. it's only easy when js2c has no extra dependencies, but for changes like #62146 (which makes js2c link to V8) this would add more obstacles.
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.71%. Comparing base (a9ac9b1) to head (29fad45). ⚠️ Report is 2 commits behind head on main.
but for changes like #62146 (which makes js2c link to V8) this would add more obstacles.
The type-stripping itself is in Rust though, so that could just be plugged into a Rust version of js2c fairly easily and do translation for core TS files at build time. Might actually be a good thing to have this in Rust.
but for changes like #62146 (which makes js2c link to V8) this would add more obstacles.
The type-stripping itself is in Rust though, so that could just be plugged into a Rust version of js2c fairly easily and do translation for core TS files at build time. Might actually be a good thing to have this in Rust.
not really, it's a wasm. the problem of adding rust dependencies is vendoring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib / srcIssues and PRs related to general changes in the lib or src directory.needs-ciPRs that need a full CI run.
5 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I wanted to see how adding more Rust would work with the existing toolchain & tools. There is no specific reason for this rewrite that can be justified other than the benefits of Rust over C++.
The code is a lot simpler and a lot readable now (as far as I can tell)