How can I run the F# interactive window in x64 so I can load big data in it?
To run F# Interactive through Visual Studio, you can click the appropriate toolbar button labeled F# Interactive, or use the keys Ctrl+Alt+F. Doing this will open the interactive window, a tool window running an F# Interactive session.
Fsianycpu.exe uses “the machine architecture to determine whether to run as a 32-bit or 64-bit process” (Microsoft Docs). The original execution capability is demonstrated by Nick Tyrer in this tweet with this F# script.
To execute code interactively, simply type code in an . fsx file, select a block of code, and hit Alt + Enter . The selected code will be evaluated, and the result will show up in the FSI window. In Visual Studio, you can also select code and right-click “Execute in Interactive”, but shortcuts are way faster.
Use #help;; for help, #quit;; to quit. Save this answer.
http://msdn.microsoft.com/en-us/library/dd233175.aspx gives instructions on how to do it within Visual Studio 2012.
What this appears to do is run fsianycpu.exe from C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0 instead of fsi.exe. Running that from my powershell allows me to load my large data set.
With Visual Studio 2015 and later it is as simple as this
You can control the F# Interactive command line arguments (options) by adjusting the settings. On the Tools menu, select Options..., and then expand F# Tools. The two settings that you can change are the F# Interactive options and the 64-bit F# Interactive setting, which is relevant only if you are running F# Interactive on a 64-bit machine. This setting determines whether you want to run the dedicated 64-bit version of fsi.exe or fsianycpu.exe, which uses the machine architecture to determine whether to run as a 32-bit or 64-bit process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With