I suggest you ...

Compiling quotations

I'd like to be able to compose code at run time using F# quotations, which is now possible only with F# PowerPack

73 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    AnonymousAnonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    moved  ·  Visual Studio TeamAdminVisual Studio Team (Product Team, Microsoft) responded  · 

    This feature is not scheduled for inclusion in FSharp.Core, but please see the component and nuget package http://fsprojects.github.io/FSharp.Quotations.Evaluator/. Please use and contribute to this component to improve it.

    Note that a considerable amount of non-core functionality is provided as nuget packages like this.

    If you would like to propose that this be incldued in FSharp.Core, please add an entry to http://fslang.uservoice.com.

    Thanks
    Don Syme for the Visual F# Tools team

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Phillip TrelfordPhillip Trelford commented  ·   ·  Flag as inappropriate

        In F# 3+ you can convert quotations to LINQ lambda expressions using LeafExpressionConverter.QuotationToLambdaExpression and then compile those.

      • Phillip TrelfordPhillip Trelford commented  ·   ·  Flag as inappropriate

        There are 2 other open source projects that can run F# quotations (1) Unquote (2) Foq. Although it would be nice to have this in the main distribution, perhaps it could be provided in a library and as a Nuget package.

      • EdEd commented  ·   ·  Flag as inappropriate

        Please please please! It would make F# outrageously powerful if it could JIT compile.

      Feedback and Knowledge Base