osx - Can fsi run with the 4.0 runtime on MAC OS and if so how do I configure it -


kinda self explanatory...

i variety of errors when try access 4.0 dlls in fsi. rather go through each one, think above question right one.

this repost more or less of question here in f# on mac osx , ubuntu error running fsi in 4.0

thanks

gary

edit trying run following in demo on macbook mono 2.8 , fsharp. (the code chosen else)

open system.numerics open system  let maxiteration = 100  let modsquared (c : complex) = c.real * c.real + c.imaginary * c.imaginary  type mandelbrotresult =      | didnotescape     | escaped of int  let mandelbrot c =     let rec mandelbrotinner z iterations =         if(modsquared z >= 4.0)              escaped iterations         elif iterations = maxiteration             didnotescape         else mandelbrotinner ((z * z) + c) (iterations + 1)     mandelbrotinner c 0  y in [-1.0..0.1..1.0]     x in [-2.0..0.05..1.0]         match mandelbrot (complex(x, y))         | didnotescape -> console.write "#"         | escaped _ -> console.write " "     console.writeline () 

i downloaded zip binaries , tried run 4.0 version on macos. initially, same error (could not locate biginteger). can fixed adding -i command line argument, got error , i'm not yet sure one:

fsmac:fsharp4 tomas$ mono fsi.exe    -i:/library/frameworks/mono.framework/versions/2.8/lib/mono/4.0/  microsoft (r) f# 2.0 interactive build 4.0.30319.1 copyright (c) microsoft corporation. rights reserved.  type #help;;  >  error fs0192: internal error: unreachable: getglobals 

edit here (unsuccessful) attempt. looks mono bug, because unsafeloadfrom method doesn't seem exist on mono (runtime 4.0). @ least, cannot see in monodevelop ide in c# projects (when change runtime 4.0)

fsmac:fsharp4 tomas$ mono --runtime=v4.0.30319 fsi.exe --noframework    -r:/library/frameworks/mono.framework/versions/2.8/lib/mono/4.0/mscorlib.dll    -r:fsharp.core.dll   microsoft (r) f# 2.0 interactive build 4.0.30319.1 copyright (c) microsoft corporation. rights reserved.  type #help;;  > missing method system.reflection.assembly::unsafeloadfrom(string) in  assembly /library/frameworks/mono.framework/versions/2.8/lib/mono/4.0/ mscorlib.dll, referenced in assembly /users/tomas/programs/fsharp4/ fsharp.compiler.dll 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -