Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Supply JSKit runtime in SwiftPM resources#193

Merged
MaxDesiatov merged 12 commits into
mainswiftwasm/JavaScriptKit:mainfrom
maxd/runtime-resourcesswiftwasm/JavaScriptKit:maxd/runtime-resourcesCopy head branch name to clipboard
May 12, 2022
Merged

Supply JSKit runtime in SwiftPM resources#193
MaxDesiatov merged 12 commits into
mainswiftwasm/JavaScriptKit:mainfrom
maxd/runtime-resourcesswiftwasm/JavaScriptKit:maxd/runtime-resourcesCopy head branch name to clipboard

Conversation

@MaxDesiatov

@MaxDesiatov MaxDesiatov commented May 12, 2022

Copy link
Copy Markdown
Member

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

github-actions Bot commented May 12, 2022

Copy link
Copy Markdown

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%)

@kateinoigakukun kateinoigakukun left a comment

Copy link
Copy Markdown
Member

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?

Comment thread .github/workflows/test.yml
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
Comment thread .gitattributes Outdated
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.