clojurescript-site icon indicating copy to clipboard operation
clojurescript-site copied to clipboard

Link or embedded playground/repl (i.e. Try It!)

Open ioRekz opened this issue 8 years ago • 5 comments

I think this would be nice to have a playground available from the website. This is how I first tried clojurescript few years ago and I wish new comers could do the same.

elm as an "online editor" (not sure if it's linked from the main page) http://elm-lang.org/try coffescript as a "try button" on the main page http://coffeescript.org/ TypeScript as a "playground" on the main page https://www.typescriptlang.org/play/index.html Dart as a "Dartpad" example linked on the main page https://dartpad.dartlang.org/b51ea7c04322042b582a

Different terminology but I like the playground one. They almost all have some examples/template with the Dart ones better than the others from my point of view (a websocket client for example)

I guess klipse would be nice (I'm watching the klipse ClojuTRE video) Loading example from gist looks straightforward https://github.com/viebel/klipse/blob/master/repl.md

I would be happy to propose a pull request once the ideas, terminology and examples are validated

ioRekz avatar Sep 18 '16 17:09 ioRekz

This one is great, but where to put it? http://clojurescript.io/

veggiemonk avatar Nov 20 '16 11:11 veggiemonk

As creator and former maintainer of clojurescript.io...that is not unfortunately not active anymore, but hopefully will stay up (don't have control on it anymore!). The repo could be forked and redeployed at some point, but no time at the moment: https://github.com/Lambda-X/cljs-repl-web

Klipse is actively maintained and probably better to show off :smile:

Maybe it is the right time to bootstrap an actual and official "playground"?

arichiardi avatar May 19 '17 21:05 arichiardi

Happy to see someone take this one on. I think a simple online REPL with syntax highlighting would be a good start.

swannodette avatar Jul 06 '17 13:07 swannodette

Here is what I have in mind

screen shot 2017-07-18 at 12 23 01

I took inspiration from elm examples. Maybe adding an http request using cljs-http might make sense as well.

I tried to find a smart (while short) usage of core async with throttled counter which is something I find hard to do with other libs/concept but I'm not so sure about the result

Here are the 5 examples I have so far

ioRekz avatar Jul 18 '17 10:07 ioRekz

I'm not interested in using Klipse for this sorry. We should build a simple custom thing.

swannodette avatar Jul 29 '17 15:07 swannodette