Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Fsi.exe in 64 Bits?

Tags:

f#

How can I run the F# interactive window in x64 so I can load big data in it?

like image 862
jlezard Avatar asked Nov 26 '10 10:11

jlezard


People also ask

How to run f# Interactive?

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.

What is Fsianycpu?

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.

How do I run a script in FSX?

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.

How do I exit FSI?

Use #help;; for help, #quit;; to quit. Save this answer.


2 Answers

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.

like image 160
Lamarth Avatar answered Oct 03 '22 01:10

Lamarth


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.

like image 29
Lanayx Avatar answered Oct 02 '22 23:10

Lanayx