Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are F# quotations useful for anything? [closed]

I thought that I would be able to use quotations to accomplish what I'm trying to do (create a tree of expressions which I can store in a DB and execute later on). Much to my dismay, however, I've learned that quotations are not serializable and cannot be compiled (I would like to avoid F# PowerPack because the performance is bad).

So I'm curious to know, are F# quotations useful for anything at all? Of what use is a data structure representing code if it can't be compiled back into code? What am I missing here?

Related: Another limitation of F# quotations? What are F# quotations?

like image 443
Jacobs Data Solutions Avatar asked Apr 17 '13 13:04

Jacobs Data Solutions


1 Answers

Yes they are useful for something.

Wikipedia says

F# quotations are used for various purposes including to compile F# code to JavaScript and GPU code.

I've experimented with them and created a F#-Code to ActionScript compiler.

like image 147
karsten314159 Avatar answered Sep 28 '22 02:09

karsten314159