Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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?

This question was migrated from SO due to not adhering to its intended format. Since it got some upvotes there I thought I could move it. I wont be doing FRP with my current code for now but I'm interested for future reference.

Some relevant technologies:

One possible solution, using Bacon. With demo.

share|improve this question
add comment

2 Answers

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.