Hi Steven,
The CodeDom provider for F# is probably not the best way to compile code on
the fly - it is there mainly for compatibility reasons (it is used by
various projects that generate code during compilation like
ASP.NET). It
calls the fsc.exe compiler under the cover, so the 2 second compilation is
mainly the load time of the compiler.
At the moment, F# does not have a great API for calling it interactively
(like IronPython had), but it is definitely something that the community
could do - and I'm sure this would be really appreciated by many.
The best way to approach the problem would be to use API available in
FSharp.Compiler.dll provided by the SimpleSourceCodeServices type:
https://github.com/fsharp/fsharp/blob/master/src/fsharp/vs/SimpleServices.fs
This allows you to compile code into a dynamic assembly (and then run it),
but it only
--
--
You received this message because you are subscribed to the Google Groups
"FSharp Open Source Community" group.
To post to this group, send email to
fsharp-o...@googlegroups.com
To unsubscribe from this group, send email to
fsharp-opensou...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/fsharp-opensource?hl=en