[Ur] A few questions

Adam Chlipala adamc at impredicative.com
Tue Sep 15 08:59:46 EDT 2009


nitralime wrote:
> On Mon, Sep 14, 2009 at 11:26 PM, Adam Chlipala 
> <adamc at impredicative.com <mailto:adamc at impredicative.com>> wrote:
>
>         As you surely know, there are also some growing tendencies
>         towards SPI (Single Page Interface) and RIA (Rich Internet
>         Application).
>         For this sort of applications one needs a solid GUI toolkit.
>         As far as I know there are two different approches for
>         providing GUI:
>            1) using a prebuilt JavaScript GUI toolkit wrapped in some APIs
>                which in ideal case integrate seamlessly into the core
>         framework
>            2) [[a subset of the framework's core language) -->
>         JavaScript]] compiler
>                which provides the GUI toolkit
>
>         The first alternative can be "easily" realized by taking some
>         web framework and
>         a decent JavaScript GUI toolkit like TIBCO General Interface,
>         Javeline, dhtmlx,
>         Qooxdoo, (to some extent flapjax) etc. and writing some glue
>         codes!
>
>         The second approach is more fundamental. To the best of my
>         knowledge
>         HOP and Links are the only frameworks that implement it properly.
>
>
>     I've tried to design the demos and manual to make it clear that
>     both options are possible in Ur/Web.  The compiler generates
>     JavaScript for client-side code, and the FFI makes it possible to
>     wrap JavaScript libraries.
>
> Can you please give me a short example (but not a trivial one a la 
> 'alert("Hello World!")')
> for each of these two alternatives?

The latter part of the main demo is all examples of GUIs implemented in 
Ur/Web and compiled to JavaScript.  I have no examples presently of 
wrapped JavaScript GUI libraries.



More information about the Ur mailing list