[erlang-questions] Elevator demo

Joe Armstrong erlang@REDACTED
Tue Jan 1 12:41:32 CET 2013

On Tue, Jan 1, 2013 at 12:39 AM, Loïc Hoguin <essen@REDACTED> wrote:

> Hello 2013,
> Just a quick link targeted mostly to people who teach Erlang or those who
> want to demonstrate its features.
> Last September Scott gave me the code he had for an old Ericsson elevator
> training application that shows an application with a bug, and an upgrade
> available to perform a release upgrade to fix the bug live. As these are
> elevators, the bug (doors opening at every floor) can be quickly seen fixed
> since the elevators will continue moving until their destination without
> the bug triggering anymore once you did the upgrade.
Cool - this would be a nice example to run in a web browser, just a bit of
websocket magic javascript and svg.

I think (incidentally) that the problem should be posed as a protocol
ie it is the students job to create a process that implements a "lift
this is sent messages like

     {floor, 5, pressed, up}
     {lift, 3, pressed, 5}

(meaning the up button was press on floor 5, the 5 button was pressed inside
lift 3)

and should respond by sending messages like



This would make a very nice teaching/learning example - ...

I shall do this if I get time.


> You can find the source here:
>   https://github.com/extend/**elevators<https://github.com/extend/elevators>
> It should work for R15. Probably does for R14 too, but I didn't test it.
> As this is an old demo it uses gs, but I will port the code to wx for R16
> once it is released if nobody did it before.
> Patches are welcome. Also if you know more about the history behind this
> application, I'm interested and will put these infos in the README file.
> --
> Loïc Hoguin
> Erlang Cowboy
> Nine Nines
> http://ninenines.eu
> ______________________________**_________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130101/10b9d276/attachment.htm>

More information about the erlang-questions mailing list