On the client-side framework front, I found some of the lightweight, post
React / post Angular frameworks were easy enough to get going with Urlang,
hence definitely worth a look for RacketScript.

I played mainly with Ractive; vue.js is similar. There are others. The main
seeking point for me was that these frameworks are much quicker and easier
to learn than React and Angular.

Interestingly, the creator of Ractive, Rich Harris, has a new
"framework-less framework" out, sveltejs, which incorporates a compilation
phase to minimise payload.

Dan

On 23 Jan 2017 04:48, "Vishesh Yadav" <vishes...@gmail.com> wrote:

Hi Stephen,


- is there a JavaScript MVC framework that is suitable to use with
> racketscript? (should I be using react or angular ?)
>

I can not speak for Angular, but I think React should be suitable. You'll
have to use ES5 API instead of classes and JSX, and therefore may want to
build a small layer in between for things to look nicer.


- can I use Racketscrips with racket web applications stuff for the
> backend or am I compiling racketscript to nodejs to run on the server?
>

RacketScript provides a small FFI to interact with JS stuff. You can use
some NodeJS library, to write server-side code. Our Playground[1] client
and server is built entirely using RacketScript.

I would also like to add that RacketScript is not entirely Racket. Our aim
is to preserve Racket semantics as much as possible, but drop expensive
features. Specifically, RacketScript does not implement proper tail calls
(we try to convert self-tail calls to loops) and continuations. Among other
things, we use JS numbers, do not support submodules and make fewer runtime
checks.

Note that RacketScript is  not ready for production use, and is constantly
changing. Therefore, we do not recommend it for anything big and serious at
the moment. Despite that, we encourage developers to try RacketScript and
share their experiences with us.

--Vishesh

[1] https://github.com/vishesh/racketscript-playground


> Thanks again
> On Sun, 22 Jan 2017 at 14:11, Jens Axel Søgaard <jensa...@soegaard.net
> <mailto:jensa...@soegaard.net>> wrote:
>
>     Hi Stephen,
>
>     If you want to write real Racket on the client side, your best bet
>     is to use racketscript.
>
>          https://github.com/vishesh/racketscript
>
>     Try it out here:
>
>          http://rapture.twistedplane.com:8080/
>
>     Note that tail recursion is not supported.
>
>     Urlang as-is will allow you to write JavaScript using S-expression
>     syntax and
>     also allow you to write macros using the standard Racket tools such as
>     syntax-parse.
>
>     An example: http://soegaard.github.io/urlang/space-invaders.html
>
>     The plan is to use Urlang as backed for a Racket to JavaScript
> compiler,
>     but that project [*] is not ready for use yet (I plan to hack on
>     this during the
>     summer vacation).
>
>     [*]
>     https://github.com/soegaard/urlang/blob/master/compiler-rjs/
> compiler.rkt
>
>
>     Whalesong implements full Racket with tco and correct error reporting.
>     The Whalesong compiler only runs on old versions of Racket and Danny
>     stopped worked on it years ago.
>
>     /Jens Axel
>
>
>
>     2017-01-22 14:13 GMT+01:00 Stephen De Gabrielle
>     <spdegabrie...@gmail.com <mailto:spdegabrie...@gmail.com>>:
>
>
>         Hi,
>
>         What are my options for doing client side web applications in
>         Racket ?
>
>         I've been getting my head around server side - I can auth a user
>         and set a cookie - but I'm not sure what my options for client
>         side web apps:
>
>         - Should I be using Whalesong and/or Urlang?
>         - Is there a right/wrong [WhaleSong | Urlang | JavaScript]
>         framework?
>         - Can I write both the front and back end in Racket?
>         - Is WeScheme a Racket web app?
>
>         I'm not sure where to start - the last time I did any
>         significant JavaScript it was writing a pong game using the
>         adobe svg plugin!
>
>         Any feedback/advice appreciated,
>
>         Kind regards,
>
>         Stephen
>
>         --
>         Kind regards,
>         Stephen
>         --
>         Bigger than Scheme, cooler than Clojure & more fun than CL.(n=1)
>         --
>
>         --
>         You received this message because you are subscribed to the
>         Google Groups "Racket Users" group.
>         To unsubscribe from this group and stop receiving emails from
>         it, send an email to racket-users+unsubscr...@googlegroups.com
>         <mailto:racket-users+unsubscr...@googlegroups.com>.
>
>         For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>     --
>     --
>     Jens Axel Søgaard
>
> --
> Kind regards,
> Stephen
> --
> Bigger than Scheme, cooler than Clojure & more fun than CL.(n=1)
> --
>
> --
> You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users+unsubscr...@googlegroups.com
> <mailto:racket-users+unsubscr...@googlegroups.com>.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Vishesh


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

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

Reply via email to