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

Supply JSKit runtime in SwiftPM resources #193

Merged
merged 12 commits into from
May 12, 2022
Merged

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented May 12, 2022

Due to the fact that swiftlang/swift-package-manager#4306 will only be available starting with Swift 5.7, we can't generate these resources with a SwiftPM plugin. I propose storing the generated code in the repository directly for now. When 5.7 is released, we can switch to a SwiftPM plugin approach.

Can be tested end-to-end with swiftwasm/carton#335.

@MaxDesiatov MaxDesiatov added the enhancement New feature or request label May 12, 2022
@MaxDesiatov MaxDesiatov requested a review from a team May 12, 2022 11:01
@github-actions
Copy link

github-actions bot commented May 12, 2022

Time Change: -311ms (1%)

Total Time: 15,647ms

View Unchanged
Test name Duration Change
Serialization/Write JavaScript number directly 342ms -3ms (0%)
Serialization/Write JavaScript string directly 362ms -11ms (2%)
Serialization/Swift Int to JavaScript 5,048ms +15ms (0%)
Serialization/Swift String to JavaScript 5,099ms -160ms (3%)
Object heap/Increment and decrement RC 4,796ms -153ms (3%)

Copy link
Member

@kateinoigakukun kateinoigakukun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add linguist-generated entry in .gitattributes to ignore the generated file from stats.
Also, could we have a script to update index.{js,mjs} in Makefile and check that they are up-to-date in CI?

Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
.gitattributes Outdated Show resolved Hide resolved
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
@MaxDesiatov MaxDesiatov merged commit e022311 into main May 12, 2022
@MaxDesiatov MaxDesiatov deleted the maxd/runtime-resources branch May 12, 2022 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants