What features does Pedestal have compared to other Clojure web frameworks?
Asked Answered
E

4

20

Recently Relevance announced Pedestal, a new web framework for Clojure.

How does this framework compare to other Clojure web frameworks such as Compojure, Webjure, Conjure, Moustache and so on, in terms of features, ease of application development, developer tools, etc.

See Comparison of Clojure web frameworks

Eroticism answered 20/3, 2013 at 20:8 Comment(2)
there is a nice podcast that relevance has on their website PedestalThrift
Perhaps someone could summarize it below?Eroticism
G
8

Pedestal is, as far as I know, the only framework that facilitates the use of Clojure on both the server- and client-side, the latter being possible thanks to Clojurescript.

Gershom answered 20/3, 2013 at 20:16 Comment(3)
What about Clojurescript one?Olivero
The front end libraries of Pedestal are designed by the author of ClojureScript One. So think of it as ClojureScript One 2.0 or something like that.Aureole
Pedestal is not a framework, it is a collection of libraries - see docs. enfocus and coils also assist with writing Clojure on client and server.Applicable
R
19

My take on it is Pedestal is more about separation of concerns from an architectural perspective than it is a feature set:

  • Clojure on the server and client side (via ClojureScript) allows you to put code (and thus logic) where it makes the most sense
  • http requests are decoupled from a specific thread in the server with the interceptor abstraction
  • separates application logic from rendering concerns
  • rendering control for state changes in the app via data flow

Those things are big advantages over the life cycle of an app. Having said that, it is alpha level and subject to change and the control by data flow is a bit different, so like anything new there is a learning curve.

If you check out the documentation and listen to the podcast here it will clear up a lot. Hope that helps.

Rubirubia answered 26/3, 2013 at 13:34 Comment(0)
D
14

Another thing is, Pedestal, in contrast to Ring, allows processing of one requests in more than one thread. Its Ring compatible Interceptor model allows this: http://pedestal.io/documentation/service-interceptors/

Dovecote answered 20/3, 2013 at 20:26 Comment(0)
G
8

Pedestal is, as far as I know, the only framework that facilitates the use of Clojure on both the server- and client-side, the latter being possible thanks to Clojurescript.

Gershom answered 20/3, 2013 at 20:16 Comment(3)
What about Clojurescript one?Olivero
The front end libraries of Pedestal are designed by the author of ClojureScript One. So think of it as ClojureScript One 2.0 or something like that.Aureole
Pedestal is not a framework, it is a collection of libraries - see docs. enfocus and coils also assist with writing Clojure on client and server.Applicable
S
5

As the author of Clojure on Coils I would actually say Pedestal is a safer bet right now, as Clojure on Coils main feature which is Backtracking code is not ready yet. Backtracking code means that you can click on an element on the web page and it can show you the whole call stack and code tree that built that element (right now it only shows you the code that generated the HTML and does not go deeper).

Update

The backtracking code is now implemented

Sadden answered 3/10, 2013 at 8:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.