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

Stdlib namespace for Core modules #7285

Merged
merged 13 commits into from
Feb 17, 2025
Merged

Stdlib namespace for Core modules #7285

merged 13 commits into from
Feb 17, 2025

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Feb 8, 2025

This is to avoid name clashes with user modules as observed in #7126 (comment).

@cknitt cknitt force-pushed the stdlib-namespace branch 3 times, most recently from af47499 to 5c0a664 Compare February 8, 2025 08:21
@cknitt cknitt force-pushed the stdlib-namespace branch 4 times, most recently from 42038a5 to 93beba5 Compare February 9, 2025 08:18
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Syntax Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.

Benchmark suite Current: 295116a Previous: 5d9c682 Ratio
Parse RedBlackTree.res - time/run 1.8592550133333332 ms 1.3523686533333334 ms 1.37
Print RedBlackTree.res - time/run 3.06102946 ms 1.98472278 ms 1.54
Print RedBlackTreeNoComments.res - time/run 2.7996436466666665 ms 1.8453905533333332 ms 1.52
Parse Napkinscript.res - time/run 61.12412062666667 ms 42.23872597333333 ms 1.45
Print Napkinscript.res - time/run 99.01746072666666 ms 60.21953604666667 ms 1.64
Parse HeroGraphic.res - time/run 7.570664999999999 ms 5.70670238 ms 1.33
Print HeroGraphic.res - time/run 12.692955446666666 ms 8.188623 ms 1.55

This comment was automatically generated by workflow using github-action-benchmark.

@cknitt cknitt force-pushed the stdlib-namespace branch 2 times, most recently from dab5123 to 8ed70db Compare February 9, 2025 09:32
@cknitt cknitt force-pushed the stdlib-namespace branch 12 times, most recently from d296a89 to b574afe Compare February 13, 2025 16:29
@zth zth force-pushed the stdlib-namespace branch from 295116a to b07e0b7 Compare February 15, 2025 17:17
@cknitt cknitt mentioned this pull request Feb 16, 2025
@cknitt cknitt force-pushed the stdlib-namespace branch 2 times, most recently from a7ac9cc to 6e401c4 Compare February 16, 2025 12:07
@cknitt cknitt changed the title WIP: Stdlib namespace for Core modules Stdlib namespace for Core modules Feb 17, 2025
@cknitt cknitt marked this pull request as ready for review February 17, 2025 08:21
@cknitt cknitt requested a review from zth February 17, 2025 08:23
{"contents": {"kind": "markdown", "value": "```rescript\n('a => 'b, List.t<'a>) => List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22List.res%22%2C34%2C0%5D)\n"}}
{"contents": {"kind": "markdown", "value": "```rescript\n('a => 'b, Stdlib.List.t<'a>) => Stdlib.List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype Stdlib.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Stdlib_List.resi%22%2C34%2C0%5D)\n"}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change is something we want to eventually figure out/deal with. But I'll make a separate issue for it, since it's not a show stopper to get this merged.

Comment on lines -117 to +119
"detail": "(array<'a>, Symbol.t) => option<'b>",
"detail": "(array<'a>, Stdlib_Symbol.t) => option<'b>",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here, will address in separate issue.

@zth zth self-requested a review February 17, 2025 09:07
@cknitt cknitt merged commit 80744a5 into master Feb 17, 2025
20 checks passed
@cknitt cknitt deleted the stdlib-namespace branch February 17, 2025 09:08
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

Successfully merging this pull request may close these issues.

2 participants