News for hackers. Stuff that matters.
Re:Programming with Managed Time: Essay and Videos by taliesinb on Monday August 25, 2014 @06:33PM (#8224600)
This is really cool! My question is: how much of the managed time philosophy could be bolted on to a functional reactive programming environment like Elm?
Re:Programming with Managed Time: Essay and Videos by tree_of_item on Monday August 25, 2014 @06:45PM (#8224658)
If Elm really does get an analogue of `IO`[0], it could work just like that but with the special replay sauce described in the paper. The type could have operations that read and write from "cells" and "accumulators", and the command interpreter would replay code as usual.

Elm is already considering things like `Signal (Command a) -> Signal a` to blend imperative programming with FRP; in this case, you'd have functions like `Signal (Glitch a) -> Signal a`

[0]: https://groups.google.com/forum/#!topic/elm-discuss/ALLG6GrW...

Re:Programming with Managed Time: Essay and Videos by seanmcdirmid on Monday August 25, 2014 @07:50PM (#8224942)
I first did a system like this for a FRP-like system called SuperGlue back in 2007:

http://lambda-the-ultimate.org/node/2149

However, I was disappointed because I couldn't use signal abstractions in the implementation of this system; instead I invented something that was the beginning of the work presented here.

Once you have effects (implicit or explicit), something like Glitch will work for that system. However, it is very important to make sure effects are de-serialized syntactically (they basically need to be wrapped up in commutative monads), otherwise replay isn't well defined and you'd need to go with more of a self-adjusting computation approach that preserves partial orders.