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

Rework some F# layering #17370

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

KevinRansom
Copy link
Member

@KevinRansom KevinRansom commented Jun 29, 2024

I intend to try to refactor F# core into at least two assemblies.

  1. fscorlib --- Core types supporting runtime scenarios
  2. FSharp.Core --- Types supporting runtime and compilation scenarios

The benefit of this is that we can build a platform specific fscorlib.dll and deploy it with each new runtime, so we can start to use new runtime features in our core library. I have no idea how successful this will be whilst retaining compatibility, but I really want to give it a solid try.

This PR

  • Renames the config setting compilingFSharpCore to compilingCoreLibrary

Eliminate compiler reliance on ExtraTopLevelOperators modules, because it pulls types from all over FSharp.Core

  • Add ExtraTopLevelOperators to Operators and Operators.Checked
  • Tests for added Operators and Operators.Checked
  • Hides ExtraTopLevelOperators for moved operations from intellisense
  • Move dict and set implementations to Collections namespace
  • Move Printf
  • Move DefaultAsyncBuilder
  • Move Measures
  • Ensure Compiler only uses the above from their new locations

@KevinRansom KevinRansom requested a review from a team as a code owner June 29, 2024 00:51
Copy link
Contributor

github-actions bot commented Jun 29, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/FSharp.Core docs/release-notes/.FSharp.Core/8.0.400.md
src/Compiler docs/release-notes/.FSharp.Compiler.Service/8.0.400.md

@KevinRansom KevinRansom reopened this Jun 29, 2024
@KevinRansom KevinRansom marked this pull request as draft June 29, 2024 21:03
@KevinRansom KevinRansom force-pushed the minorreworks branch 3 times, most recently from 30f3cd1 to 546f438 Compare July 1, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

1 participant