[ClojureScript] Redirect in a SPA on the server side.

2015-09-11 Thread Hari Krishnan
Hello All, I am working on a use case as follows: The UI is with reagent, re-frame for subscription & Luminus, and for the backend, I use Compojure. I also tried with Liberator, but for simplicity, I am using only Compojure now. I also use Secretary & cljs-ajax for SPA routing and ajax. ->

Re: [ClojureScript] Use a specialized Clojure library in Clojurescript

2015-09-11 Thread Daniel Compton
Clojure 1.7 introduced Reader Conditionals which allows you to write one Clojure file (with a .cljc) extension, and use conditional expressions to let Clojure make Java calls and ClojureScript make JavaScript calls. How easy or hard it would be to convert a Clojure library to a Clojure/ClojureScrip

[ClojureScript] Re: How do you retrieve the value of an item in a listbox, in Clojurescript?

2015-09-11 Thread Dan Campbell
On Friday, September 11, 2015 at 8:58:56 AM UTC-4, Dan Campbell wrote: > Hi, > > I've been having some difficulty, locating documentation that explains how to > get a listbox item value. There are loads of examples of how to obtain or > set the value of a text area, or of a browse-style list. >

[ClojureScript] Re: "Redirect-after-post" using secretary?

2015-09-11 Thread Hari Krishnan
On Tuesday, December 2, 2014 at 3:45:52 AM UTC-8, Russell Dunphy wrote: > I'm trying to get my head around structuring my client-side routes (in a > reagent app) using secretary, and I'm struggling to work out the best way of > dealing with the "redirect-after-post" scenario where I have a form t

[ClojureScript] React-dom and Web Workers

2015-09-11 Thread Marc Fawzi
I just found out that the DOM manipulation part of React has been split off as react-dom. So in my limited understanding, it should be possible to run the diffing algorithm (any algo that can take previous and current state and spit out a DOM diff) in a web worker thread and send the diff over

Re: [ClojureScript] Issue: reify Object with vararg method

2015-09-11 Thread Yuri Govorushchenko
Thank you, David. I knew it's not supported in Clojure. However I assumed ClojureScript supports this syntax since everything works as expected if v is not used inside method body :) пятница, 11 сентября 2015 г., 19:22:10 UTC+3 пользователь David Nolen написал: > Protocol methods do not support

Re: [ClojureScript] Favorite Web Stacks and why

2015-09-11 Thread Colin Yates
https://github.com/stuartsierra/component On 11 September 2015 at 17:42, Marc Fawzi wrote: > What is Stuart's Component system? :) > > Sent from my iPhone > >> On Sep 11, 2015, at 9:40 AM, Colin Yates wrote: >> >> - sente, transmit, edn and core.async for a seamless two-way 'channel' >> between

Re: [ClojureScript] Favorite Web Stacks and why

2015-09-11 Thread Marc Fawzi
What is Stuart's Component system? :) Sent from my iPhone > On Sep 11, 2015, at 9:40 AM, Colin Yates wrote: > > - sente, transmit, edn and core.async for a seamless two-way 'channel' > between front and backend > - re-frame for subscriptions and just-enough architecture for your UI > - reagent

Re: [ClojureScript] Favorite Web Stacks and why

2015-09-11 Thread Colin Yates
- sente, transmit, edn and core.async for a seamless two-way 'channel' between front and backend - re-frame for subscriptions and just-enough architecture for your UI - reagent for a very light-touch way of describing your UI (om could also be placed here) - http-kit on the server side - prismatic

[ClojureScript] es7 vs core.async

2015-09-11 Thread Marc Fawzi
This is an extension to a reply to a Reagent user about running multiple async ops in parallel and executing some handler when all finish. I am wondering if my hunch is correct that CSP is a necessary abstract model for async processes that require complex coordination and/or communication but

Re: [ClojureScript] Issue: reify Object with vararg method

2015-09-11 Thread David Nolen
Protocol methods do not support var args. We should probably add a syntax check for this, http://dev.clojure.org/jira/browse/CLJS-1445 David On Fri, Sep 11, 2015 at 12:13 PM, Yuri Govorushchenko wrote: > Hello, > > I guess I've stumbled upon a compilation error. The repo for reproducing > is he

[ClojureScript] Issue: reify Object with vararg method

2015-09-11 Thread Yuri Govorushchenko
Hello, I guess I've stumbled upon a compilation error. The repo for reproducing is here: https://github.com/metametadata/cljs-reify-error TL;DR: (let [v 123 obj (clojure.core/reify Object (meth [this x y & z] ;; remove ampersand to make this script work

[ClojureScript] Favorite Web Stacks and why

2015-09-11 Thread Jamie Orchard-Hays
I’m curious what your favorite web stacks in Clojure and Clojurescript are these days. Client and server libs you like to use and what you like and don’t like about them. Cheers, Jamie -- Note that posts from new members are moderated - please be patient with your first post. --- You receiv

[ClojureScript] How do you retrieve the value of an item in a listbox, in Clojurescript?

2015-09-11 Thread Dan Campbell
Hi, I've been having some difficulty, locating documentation that explains how to get a listbox item value. There are loads of examples of how to obtain or set the value of a text area, or of a browse-style list. I think the problem is that, in the html, it's not actually called 'listbox', an