Functional Reactive Programming in ScalaFX

410 views
Skip to first unread message

Benedict Lee

unread,
Jan 28, 2015, 3:50:48 AM1/28/15
to scalaf...@googlegroups.com
I've been reading a bit about Functional Reactive Programming (FRP), and I'm intrigued by its concepts and potential benefits (specifically with respect to code maintainability and concision), and I want to try exploring this in ScalaFX. Would I need a library (something like ReactFX, for example)? Or does ScalaFX already bake in FRP concepts and structures?

If I need a library, is there a Scala wrapper for ReactFX? Or some recommended library?

Also, some examples as to how to get started with FRP in ScalaFX would be greatly appreciated as well.

Matthew Pocock

unread,
Jan 28, 2015, 8:10:03 AM1/28/15
to scalaf...@googlegroups.com
Hi,

You may find that scala.rx does what you need.


Matthew

--
You received this message because you are subscribed to the Google Groups "ScalaFX Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dr Matthew Pocock
Turing ate my hamster LTD

Integrative Bioinformatics Group, School of Computing Science, Newcastle University

skype: matthew.pocock
tel: (0191) 2566550

Tomas Mikula

unread,
Jan 28, 2015, 10:38:28 AM1/28/15
to scalaf...@googlegroups.com
Hi Benedict,

in https://github.com/eugenkiss/7guis, Eugen Kiss implemented 7 small
programs in JavaFX, JavaFX+ReactFX, ScalaFX, ScalaFX+Scala.Rx,
ScalaFX+ReactFX (though probably not all combinations are covered for
each of the 7 examples).

He created small wrappers around both Scala.Rx and ReactFX to be used
with ScalaFX, though a full-blown Scala wrapper for ReactFX could go a
long way further, as we then concluded (for example, there are still a
lot of explicit type annotations required, which add noise to the
code).

Eugen was writing a master thesis on the topic, but I don't know if
the text is available online.

Tomas

Benedict Lee

unread,
Jan 29, 2015, 1:16:53 AM1/29/15
to scalaf...@googlegroups.com
Thanks to everyone for their suggestions, I'll go take a look at them.

Also, part of the reason I'm asking about ReactFX is because I intend to make use of UndoFX in a project I'm currently working on (which uses ScalaFX), and I was wondering how many hoops would I need to jump through to get it working nicely. Hopefully it won't be too difficult.

Thanks again.

Benedict
Reply all
Reply to author
Forward
0 new messages