[Seaside] Re: [Pharo-users] Reactive Programming - anything like that in our realm?

Guillermo Polito guillermopolito at gmail.com
Sun Nov 2 22:00:37 UTC 2014


Well, a couple months ago I read this paper:

http://infoscience.epfl.ch/record/176887/files/DeprecatingObservers2012.pdf

I got inspired and Hacked up a morph that draws when you click on it, using
the following code:

Reactor loop: [ :reactor | | path |
path := PathShape vertices: { (reactor next: RMouseDown) position}.
self draw: path.
reactor loopUntil: RMouseUp with: [ | move |
move := reactor next: RMouseMove.
path addVertex: move position.
self draw: path.
].
self finishDrawing.
] on: self announcer.


p := RReactivePolygon new.
w := p openInWindow.
w extent: 400 at 400.

Of course it was just a dirty start, but if it is of use to anybody, here
is the code:

MCSmalltalkhubRepository
owner: 'Guille'
project: 'playground'
user: ''
password: ''


On Sun, Nov 2, 2014 at 12:42 AM, Skip Lentz <skip_meesie at hotmail.com> wrote:

> That sounds like a cool idea.
>
> I found this through a quick Google: http://ss3.gemstone.com/ss/FRP.html,
> but not much else..
>
> Doesn't seem to be in development anymore either.
>
> Skip
>
> ------------------------------
> From: phil at highoctane.be
> Date: Sun, 2 Nov 2014 00:22:24 +0100
> To: pharo-users at lists.pharo.org; seaside at lists.squeakfoundation.org
> Subject: [Pharo-users] Reactive Programming - anything like that in our
> realm?
>
>
> I was reading https://gist.github.com/staltz/868e7e9bc2a7b8c1f754
>
> It looks like that this is where the new apps are going.
>
> Do we have anything on that Rx front?
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20141102/988ff42b/attachment.htm


More information about the seaside mailing list