Fsi Session Module for PowerShell
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 144
Description
I think it would be a great idea to have a PowerShell module for running F# scripts. I was following the tutorial [Embedding F# Interactive](https://fsharp.github.io/fsharp-compiler-docs/fcs/interactive.html#Interactive-Service-Embedding-F-Interactive), and I have written a simple PowerShell module [FsiSession](https://github.com/tahir-hassan/FsiSession), which would be used as such:
```powershell
$session = New-FsiSession
Invoke-FsiSession $session -Path Sample.fsx
Invoke-FsiSession $session -Expression Sample.twenty
```
(With `Sample.fsx` containing the line `let twenty = 10 + 10`.)
`dotnet fsi` when running an `.fsx` file was taking too long each time, so I wrote this module.
I genuinely believe that having a module like this in PSGallery, officially maintained, would be a great alternative to using `dotnet fsi` raw because the startup time is too long.
Thank you for your time.
Contributor guide
Research direction
Start by reviewing the Embedding F# Interactive tutorial and the linked FsiSession module. Determine whether an officially maintained PSGallery module belongs in this repository, and define how New-FsiSession and Invoke-FsiSession should support script paths and expressions while addressing the reported startup-time problem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp, powershell
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100