talk-2015-essence-and-origins-of-frp icon indicating copy to clipboard operation
talk-2015-essence-and-origins-of-frp copied to clipboard

VS type class

Open luke-clifton opened this issue 6 years ago • 3 comments

What is the VS type class constraint you mention in this talk?

integral :: VS a => Behavior a -> T -> Behavior a

luke-clifton avatar May 26 '18 04:05 luke-clifton

Suggestive of "vector space", since integral needs to scale and add. (Really, one needs some more structure to define integration.)

conal avatar May 26 '18 15:05 conal

Do you feel that the type of the elements of the vector spaces that are integrated should also be continuous and infinite, just as time is (in fact, should be the same type as time)?

If during the simulation, the time steps start to become smaller than the resolution of the type being integrated, it will stop making progress. The result suddenly changes depending on your sampling period, and worst of all, the accuracy suddenly get's worse as you increase the number of sampling points. In vector graphics, you expect it to just keep getting better as you sample more often!

luke-clifton avatar May 28 '18 01:05 luke-clifton

I don't know how integration over time can be meaningful without time deltas being the scalar field associated with the vector spaces being integrated, as I think you're saying here.

By the "time steps" for "simulation", I can't tell whether you mean animation sampling---which is irrelevant to the meaning of FRP---or something about how integration is implemented, probably involving iterative numeric approximation. People often mistakenly conflate the two.

conal avatar May 28 '18 19:05 conal