12

So I'm doing a fairly involved javascript/html client with lots of ajax calls and other involvements of callback-ism. I'm entertaining the thought of using Fay for this purpose. I'm aware of Elm. Tried it and liked the FRP elements. Now I'm looking to know if similar structure is possible in Fay.

Are there any concrete examples of FRP in Fay out there at this point?

Some relevant technologies:

One possible solution, using Bacon. With demo.

Robert Harvey
201k55 gold badges469 silver badges682 bronze badges
asked Feb 6, 2013 at 11:36

2 Answers 2

3

The ReactiveMvc example among the fay-ide examples is probably the best bet at this moment. Although I'm not sure about the completeness or how it compares to other FRP solutions.

I suspect this does not fill the qualification of Functional Reactive Programming. I may be wrong.

answered Feb 6, 2013 at 16:14
1

At OdHac a couple of people successfully ported a Haskell FRP library to Fay, but I don't think they have released it yet.

Writing an FFI library should be easier, but it depends on the library you are using. Mainly how hard it is to type it. People have experimented with Bacon.js, for instance Bacon-n-fay (This doesn't compile with the latest version of Fay but I'm guessing it would be easy to update it.)

So yes it's doable, and I hope someone will release a package for it soon.

answered May 22, 2013 at 20:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.