Thanks Colin -- that does look very cool, and I think I will indeed find it very useful if this limitation is overcome: "Requiring custom clojure[script] libraries in a klipse snippet is not yet available."
If I understand correctly, this means that you can't yet use it to provide interactions that rely on your own functions having been defined. That's the same issue as https://github.com/Lambda-X/re-console had or maybe still has (the `init-demo` branch aims to fix this, although that hasn't yet worked for me). But if that is overcome then this is exciting, and the instructions look straightforward enough for us non-web-programmers to follow pretty easily. -Lee On Saturday, June 11, 2016 at 11:28:23 PM UTC-4, Colin Fleming wrote: > > Hi Lee, > > Here's another recent interesting post: > http://blog.klipse.tech/clojure/2016/06/07/klipse-plugin-tuto.html. This > looks like it might be very useful for you. > > Cheers, > Colin > > On 12 June 2016 at 11:03, 'Lee' via Clojure <clo...@googlegroups.com > <javascript:>> wrote: > >> >> Just an update on this and thanks: >> >> Several people provided helpful pointers, leading me on interesting paths >> and teaching me about cool things like hoplon. >> >> The thing that most easily and fully solved my problem was: >> https://github.com/fasiha/re-simple-term. Ahmed Fasih (fasiha) was super >> helpful and produced a really clean and simple way to put a function call >> on a web page, for people who are not web/javascript programmers and just >> want to put a Clojurescript function on a web page. I recommend it! >> >> If you look at the thing that I made with it, you will immediately >> confirm that I'm not a web designer :-), and you will probably also be >> pretty baffled by the content unless you are a mathematician (and maybe >> even then, because the paper it's based on is still in press): >> http://hampshire.edu/lspector/dda (and let me know if you want a >> pre-print of the paper). >> >> But it does exactly what I need, and fasiha's project let me put this >> online without knowing stuff that I haven't had time to learn. >> >> FYI the other approach that currently seems most promising to me, for >> related projects, is to put up a REPL using >> https://github.com/Lambda-X/re-console/tree/init-demo. Thanks to Andrea >> Richiardi and Tomek on this. I haven't yet got it fully working, but when I >> do I think it will be useful in my world of >> programmers-but-not-web-programmers, for putting online things ranging from >> text adventure games to genetic programming systems. >> >> -Lee >> >> >> On Saturday, March 26, 2016 at 11:06:50 AM UTC-4, Lee wrote: >>> >>> Hi all, >>> >>> I have a pure Clojure program and I would like to make it run in the >>> browser on client machines. It has no dependencies other than Clojure, it >>> does no Java interop, and it has no GUI. There's no database, no user >>> interaction (except for starting the program), and no networking. It just >>> computes something and prints text (which goes to the REPL in the Clojure >>> version). From what I've read, it should run exactly the same in >>> Clojurescript with no changes. >>> >>> For the sake of argument -- and this isn't very far from the truth -- >>> let's say that I have absolutely no web programming experience, and that I >>> don't know how to run Clojurescript at all (although I've been using >>> Clojure for many years). I can produce basic HTML files and I can put files >>> on a server in a public directory with a known URL, but that's it in terms >>> of web "programming." And let's suppose that I know absolutely nothing >>> about Javascript. >>> >>> Can anybody tell me or point me to a resource that will tell me how to >>> get my Clojure program running as a Clojurescript program in a web page? >>> Ideally, I would like to do this without learning a lot about Javascript or >>> web programming. I just want this existing, pure Clojure program to run in >>> a client's browser, running a computation and providing text output. >>> >>> Searching for "minimal clojurescript" turns up things much less minimal, >>> assuming that I know more about Javascript and/or web programming, and/or >>> that I want something more sophisticated than I've outlined here. >>> >>> If I can get this working then I will eventually want something >>> *slightly* more complex in terms of user interaction: a text field on the >>> page into which the user can type, and from which my program can read. But >>> aside from this, and I guess a "Start" button, I need no GUI. >>> >>> I would appreciate any pointers that anyone can provide! >>> >>> Thanks, >>> >>> -Lee >>> >>> >>> >>> >>> >>> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@googlegroups.com >> <javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.