Repository navigation
Description
@dsyme says:
We would like to make it possible to contribute to core components that underlie the OSX and Linux experiences for F# by contributing to this repo (rather than the historical way of routing these requests into the fsharp/fsharp and fsharp/FSharp.Compiler.Service repos. We can call this "repo alignment".
Separately, people have discussed splitting this repo - putting the "Visual F# IDE Tools" (vsintegration and setup directories) in a separate repo, and perhaps putting "FSharp.Core" in a separate directory too. For now we will assume that this will be done eventually
Here's a list of things we can reasonably unify:
- Mono friendly fixes and hacks from fsharp/fsharp
- Mono friendly testing from fsharp/fsharp (or replacement)
- "make install" or equivalent from fsharp/fsharp
- local builds of nuget packages for FSharp.Core nuget (from fsharp/fsharp)
- local builds of nuget packages for FSharp.Compiler.Tools nuget (from fsharp/fsharp)
- code additions in Fsharp.Compiler.Service (notably some fixes and Exprs.fs) (from fsharp/FSharp.Compiler.Service)
- local buidls of FSharp.Compiler.Service DLL (from fsharp/FSharp.Compiler.Service)
- some extra testing (from fsharp/FSharp.Compiler.Service)
- local builds of nuget packages for FSharp.Compiler.Service
- type provider authoring SDK from type provider starter pack
- compiling FSharp.Compiler.Service as a Fable component, a highly valuable long term addition to the F# ecosystem that we don't want to bit-rot
- make sure documentation in this repo is not skewed towards Visual Studio and Windows. There should be a strong path where neither Visual Studio nor Windows are assumed or even mentioned. OSX and Linux contributors should feel "first class"
- rename this repo to "fsharp" (even if it continues to hold the
setupandvsintegrationdirectories). fsharp/fsharp could then be a mirror of this repo - Move tests\service* tests into FSharp.Compiler.Unittests.dll instead of VS-only tests since they don't need any VS bits to run
- enable running FSharp.Compiler.Unittests.dll on Mono under Jenkins
- enable running FSharp.Tests.FSharpSuite.DrivingCoreCLR on Mono under Jenkins
- make sure the documentation on this repo is appropriate for FSharp.Compiler.Service and fsc.exe contributors on Mono/Linux/macOS
- make sure the testing in this repo is appropriate for contributors on Mono/Linux/macOS
- remove or minimize the use of CMD scripting such as build.cmd
Various problem with this plan:
- This repo becomes a logjam containing everything related to both F# core engineering and the Visual F# IDE Tools.
- The Windows-specific nature ("feel") of this repo will still hang around while it continues to contain the Windows-specific Visual F# IDE Tools
- The "make install" business currently uses a bunch of makefiles, and adds things like policy files for Mono's unification of FSharp.Core. It's not at all clear we want to pollute this repo with that
- Supporting the Fable bootstrap of Fsharp.Compiler.Service adds a very new and different dimension to this repo that may blow the minds of contributors, and leave them unable to debug issues with Fable.
- Do the new binaries and packages get signed, and if so using which strong names
Aside: this does not mean that Microsoft Visual F# Tools team become publishers of any of the alternative packagings of F# - and indeed the final "tagging" and "publishing" of these components may still be done in other repos - see this description for the actual tagging and release repos, including those used by Xamarin. This is normal. But contributions would flow into this repo.
@7sharp9 writes:
As a starting point I want to help with the type provider type input testing and implementation, as well as many other features but doing so means porting code to and from FCS and also building and installing the compiler into osx/mono.
- I can now build and run from this repo with the resource issue: SqlDataConnection Suppresses SQLMetal Warnings #720 I think
- To get tooling support I will need to build visualfsharp and use it in place of FCS in ionide/xs/
- I also need to be able to install the compiler with a script, Im assuming theres one described in the readme somewhere.
So I would need two build target outputs for this repo, one for an FCS compatible build, and one for a compiler build, and a script to install into mono.
Activity
vasily-kirichenko commentedon Apr 13, 2017
I'm +1000 for this. Enabling @7sharp9 to contribute worth any effort needed to make
FSharp.LanguageService.Compilerusable from Ionide/XS (this means to make the API optionally public I guess?)cartermp commentedon Apr 13, 2017
Agreed, this is important.
7sharp9 commentedon Apr 13, 2017
At the moment Im trying to figure out how to replace the compiler installed in mono with the one just built in release, I cant see a script for that in this repo.
Merge pull request #8 from dsyme/tp1
7sharp9 commentedon Apr 14, 2017
I added some notes here on trying to get that fork running the TP sample: colinbull@c295f8a
dsyme commentedon Apr 14, 2017
@7sharp9 @vasily-kirichenko @KevinRansom @cartermp @brettfo I've added a lengthy description of all the work I know of to be done in the area of "repo unification" up above in the issue description, plus some additional comments
@KevinRansom @cartermp @brettfo You guys are the repo owners - if you don't want these things coming in to this repo, then you should say :)
KevinRansom commentedon Apr 14, 2017
We are eager for the repos to be aligned. And are willing to make the necessary changes to make that happen. So long as our product pipeline is not broken by any changes we are good.
cartermp commentedon Apr 14, 2017
Agreed with what @KevinRansom said. Let's do it.
dsyme commentedon Apr 14, 2017
@KevinRansom Thanks, that's great to know.
p.s. That said, I fear you may have a heart attack (joke!! I hope not!! :) ) when you see a PR proposing to integrate the machine-wide policy files for FSharp.Core installed as part of Mono... The Mono packagings of F# have always used those to unify FSharp.Core to the latest version - for better or worse.... And I assume there is code that depends on that. We can perhaps reassess that, but probably best not to do that as part of unification.
So I suggest we put those under an explicit
monodirectory :) And in general aim to keep each of the above items fairly separable.dsyme commentedon Apr 14, 2017
@vasily-kirichenko
Let's aim instead for building FSharp.Compiler.Service in this repo.
For now let's assume FSharp.LanguageService.Compiler remains a special version of this component used only by the Visual F# Tools. This is because historically there was huge pressure from Visual Studio engineering to make FSharp.LanguageService.Compiler smaller - trimming out unnecessary parts. This is one reason I didn't integrate Exprs.fs - which is unused by FLSC. Size minimization was to reduce overall address space usage in the 32-bit
devenv.exeVisual Studio process. It's possible this issue will come back to haunt us again one day, so for now just assume that the Visual F# Tools need their own special build of this component.smoothdeveloper commentedon Apr 14, 2017
Disclaimer: not directly related to mono support in this repository.
Can we move the current scripts under scripts/misc and plan for a comprehensive layout for future build scripts under scripts/build?
My feeling is that we should start splitting the behemoth build.cmd into smaller independant scripts, each put in scripts/build, and have the top level build.cmd handling the main parts (setting env variables for the build conditionals, calling other .cmd, and doing the main build).
This way when we start introducing FAKE script, we can focus on a smaller set of behaviour to replicate.
individual scripts I could see:
I know this will make it a bit harder (but how much harder? not so much) to deal with small changes, but I don't see how the community can put effort in a big bang PR to change the whole thing at once, that will need long lead time for you guys to review / assess, while changing each small script or the top level one, one by one is definitely doable.
dsyme commentedon Apr 14, 2017
@smoothdeveloper Let's keep this thread on topic please, about repo unification
dsyme commentedon Apr 14, 2017
@7sharp9 I've updated the issue description with a list of all the problems that will arise because of repo unification.
Specifically, if we do this unification we should go into it with our eyes open: it's important that you be aware of the inevitable problems listed above (e.g. the mess that is the Windows-specific
build.cmd, or the fact that the Visual F# IDE Tools are part of this repo with all that brings in biasing it towards Windows...) . We can fix these things, but it will require work.The point is - don't assume unification is some kind of panacea. It will bring new problems of a different kind.
38 remaining items
brettfo commentedon Feb 9, 2018
I'm currently working on converting our projects over to use the new Microsoft.NET.Sdk which means you'd be able to
dotnet build FSharp.Core.fsproj, etc., but due to a complicated mix of our projects, I'm first converting the Visual Studio specific projects in #4317. While that work doesn't directly make building with only a dotnet CLI install possible, it's a step I have to take before I can re-look at converting everything undersrc\fsharpto the new SDK project format.dsyme commentedon Feb 13, 2018
Right now .NET Framework/Mono is still required to do any major testing, tooling work etc. in this repo
BuildFromSource should work without .NET Framework/Mono. But there's no testing.
If it helps Mono has been rock solid for our purposes in this repo lately. I haven't reported a bugzilla bug in about a year I think, and the only issues we've had have been xbiuld --> msbuild (which is about convergence) And performance is good on my Mac.
cartermp commentedon Feb 18, 2018
From #3015
@dsyme suggestions renaming:
7sharp9 commentedon Aug 7, 2018
Where are we with this, are we near to killing fsharp/fsharp?
cartermp commentedon May 1, 2019
This has progressed a lot, though not precisely as the checklist implies:
Additionally:
dotnet/fsharp)I'm going to write another RFC for archiving
fsharp/fsharp, though I do see that as the last effort in this process.cartermp commentedon Aug 29, 2020
I think we can reasonably close this out. FCS is now incorporated into the root of the repo and builds as a package, with release notes and docs underway. All the mono stuff is now irrelevant since we yote mono out of this repo and are unifying on the .NET SDK. The only remaining piece is emitting Fable stuff, but frankly I think Fable has been getting along fine enough without us ruining their day. Not that there aren't issues, but we've had multiple folks contribute compiler features without ever using Windows, so I consider that a success.