Re: What non-deprecated Clojure Web libraries to use?

2013-12-29 Thread Zeynel
I know this an old thread but here the author says that he deprecated Enclojure https://groups.google.com/d/msg/enclojure/TNngOAAoIyE/9cKOk_zEquEJ Is this still true? On Sunday, October 27, 2013 7:51:39 PM UTC-3, James Reeves wrote: Compojure isn't deprecated. What made you think it was? -

Re: What non-deprecated Clojure Web libraries to use?

2013-10-31 Thread Brian Craft
Yes, exactly. Currently, korma's data modeling occurs via macros that create data structures which aren't exactly part of the public API. So, your options are to wrap all the macros in a way that exposes the data model, or to try to interpret the data structures that it creates, without any

Re: What non-deprecated Clojure Web libraries to use?

2013-10-30 Thread Manuel Paccagnella
A probably simplistic consideration: maybe there should be a data model expressed as a data structure so that it can be leveraged by arbitrary libs. This way there would be a single representation, but no explicit dependencies between single libs. Here probably Datomic could be an example. Il

Re: What non-deprecated Clojure Web libraries to use?

2013-10-29 Thread Brian Craft
Try create-db. On Monday, October 28, 2013 1:06:49 AM UTC-7, Manuel Paccagnella wrote: Il giorno lunedì 28 ottobre 2013 04:12:50 UTC+1, Christopher Allen ha scritto: You can use Korma with Stuart Sierra's workflow just fine. Really? Nice! Last time I tried I didn’t managed to get it to

Re: What non-deprecated Clojure Web libraries to use?

2013-10-29 Thread Brian Craft
On Monday, October 28, 2013 4:51:54 PM UTC-7, Alexander Hudek wrote: It is incredibly hard to write a clean sql dsl due to differences in how various database drivers work, and also due to how complex sql itself is. It's worth noting that you can always selectively fall back to jdbc if

Re: What non-deprecated Clojure Web libraries to use?

2013-10-29 Thread Brian Craft
On Monday, October 28, 2013 4:36:56 PM UTC-7, Chris Kuttruff wrote: Separate from DSLs like Korma, etc. I have written a simple library for doing database migrations with clojure (clj-sql-up ( https://github.com/ckuttruff/clj-sql-up )). There are also other libraries still maintained

Re: What non-deprecated Clojure Web libraries to use?

2013-10-29 Thread Chris Kuttruff
Well things were kept separate intentionally. If someone wants to use Korma or some other DSL within their migrations, they can augment their migration file to use that to generate the SQL, but having the migrations set up such that instructions to jdbc are simple clojure strings is very

Re: What non-deprecated Clojure Web libraries to use?

2013-10-29 Thread Brian Craft
In general, my point is that libraries don't compose if they have incompatible or hidden representations of the data structures over which they operate, which is the default condition if no one has thought about how the libraries might be used together. A consequence of this is that a

Re: What non-deprecated Clojure Web libraries to use?

2013-10-28 Thread Manuel Paccagnella
Il giorno lunedì 28 ottobre 2013 04:12:50 UTC+1, Christopher Allen ha scritto: You can use Korma with Stuart Sierra's workflow just fine. Really? Nice! Last time I tried I didn’t managed to get it to work properly. What happens to an open connection binded to a Var (via defdb) when the ns

Re: What non-deprecated Clojure Web libraries to use?

2013-10-28 Thread Chris Kuttruff
Separate from DSLs like Korma, etc. I have written a simple library for doing database migrations with clojure (clj-sql-up ( https://github.com/ckuttruff/clj-sql-up )). There are also other libraries still maintained along these lines (drift, migratus, ragtime, etc.) Hopefully one of these

Re: What non-deprecated Clojure Web libraries to use?

2013-10-28 Thread Alexander Hudek
I've run into problems with it in a few areas: 1) Bundled connection pooling. You can disable it or change it, but it takes work. Bundling seems against the idea of keeping libraries and dependencies small and composable. 2) Default behaviour of delete can be inefficient. It returns the entire

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Andy Fingerhut
Noir is deprecated in favor of lib-noir. Where have you seen some indication that Compojure is deprecated? Andy On Sun, Oct 27, 2013 at 10:43 AM, Scott M scottmc...@gmail.com wrote: Ring seems well maintained, but Noir and Compojure are marked deprecated. Can anyone lay out a Clojure Web

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread James Reeves
Compojure isn't deprecated. What made you think it was? - James On 27 October 2013 17:43, Scott M scottmc...@gmail.com wrote: Ring seems well maintained, but Noir and Compojure are marked deprecated. Can anyone lay out a Clojure Web library stack (up to templating) that is current and

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Alexander Hudek
http://www.luminusweb.net/ gives a reasonable starting setup. The only thing I would recommend doing differently is to use clojure/java.jdbc or honeysql instead of korma for an sql dsl. On Sunday, October 27, 2013 1:43:21 PM UTC-4, Scott M wrote: Ring seems well maintained, but Noir and

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Manuel Paccagnella
Il giorno lunedì 28 ottobre 2013 00:30:06 UTC+1, Alexander Hudek ha scritto: http://www.luminusweb.net/ gives a reasonable starting setup. The only thing I would recommend doing differently is to use clojure/java.jdbc or honeysql instead of korma for an sql dsl. I agree. Korma is quite

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Sean Corfield
I'm using FW/1 (but then it's my framework, ported from CFML :) which is based on Ring and uses Enlive and Selmer for templating. It uses conventions rather than configuration (although you can specify routes if you want to override configuration). https://github.com/framework-one/fw1-clj Sean

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Christopher Allen
You can use Korma with Stuart Sierra's workflow just fine. On Sunday, October 27, 2013 5:07:02 PM UTC-7, Manuel Paccagnella wrote: Il giorno lunedì 28 ottobre 2013 00:30:06 UTC+1, Alexander Hudek ha scritto: http://www.luminusweb.net/ gives a reasonable starting setup. The only thing I

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Paul Samways
Hi Scott, I only began Clojure web development recently and decided to use Luminus [1]; it brings together a bunch of frameworks (lib-nior, ring, compojure, etc). Felt like a good starting point for me. Paul. [1] http://www.luminusweb.net/ On Mon, Oct 28, 2013 at 9:51 AM, James Reeves

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Paul Samways
Oh? What are the benefits of using those over Korma? I've been more than happy with it up to now. On Mon, Oct 28, 2013 at 10:30 AM, Alexander Hudek alexan...@hudek.orgwrote: http://www.luminusweb.net/ gives a reasonable starting setup. The only thing I would recommend doing differently is to

Re: Clojure Web Libraries

2009-11-17 Thread Stuart Sierra
On Nov 16, 8:03 pm, ngocdaothanh ngocdaoth...@gmail.com wrote: Could someone provide an example about using Clojure with Restlet? I found:http://github.com/stuartsierra/altlaw-clojure-restlet but don't understand how the code works as a web application. It doesn't. That's just a few helper

Re: Clojure Web Libraries

2009-11-16 Thread ngocdaothanh
Could someone provide an example about using Clojure with Restlet? I found: http://github.com/stuartsierra/altlaw-clojure-restlet but don't understand how the code works as a web application. Thanks. On Nov 15, 11:06 pm, Stefan Tilkov stefan.til...@innoq.com wrote: On Nov 15, 2009, at 4:58

Re: Clojure Web Libraries

2009-11-15 Thread Stefan Tilkov
On Nov 15, 2009, at 4:58 AM, ngocdaothanh wrote: Hi Stuart, Can you elaborate on Restlet? After some short investigation I think it uses annotation but Clojure does not support it, so Clojure is not Restlet-ready. Only the JSR-311 (JAX-RS) API uses annotations. Restlet has a lower-level

Re: Clojure Web Libraries

2009-11-14 Thread ngocdaothanh
Hi Stuart, Can you elaborate on Restlet? After some short investigation I think it uses annotation but Clojure does not support it, so Clojure is not Restlet-ready. Thanks On Jan 23, 1:44 am, Stuart Sierra the.stuart.sie...@gmail.com wrote: Hi Frank, I'd also recommend looking

Re: Clojure Web Libraries

2009-11-14 Thread Stuart Sierra
The latest restlet versions use annotations. I stil use 1.1, which uses ordinary classes. I'm bothered by restlet's move to annotations, but hoefully the old API is still available. sent from my phone On Nov 14, 2009 10:58 PM, ngocdaothanh ngocdaoth...@gmail.com wrote: Hi Stuart, Can you

Re: Clojure Web Libraries

2009-11-14 Thread David Brown
On Jan 21, 4:39 pm, Frank ffai...@gmail.com wrote: I am interested in trying to use Clojure to develop web-based applications.  Can someone point me to any Clojure libraries that have been written that I can use.  Thanks. I spent a couple of days this week using Compojure both in anger,

Re: Clojure Web Libraries

2009-01-22 Thread James Reeves
On Jan 21, 9:39 pm, Frank ffai...@gmail.com wrote: I am interested in trying to use Clojure to develop web-based applications.  Can someone point me to any Clojure libraries that have been written that I can use.  Thanks. There's Compojure, which looks like this: (defservlet demo-servlet

Re: Clojure Web Libraries

2009-01-22 Thread Mark McGranaghan
I'd suggest using Compojure for your first project - its fairly widely used, is easy to pick up, and has a growing set of docs. I'm not sure that Webjure is maintained anymore (i.e. no commits to its repo in a few months). Weld is still a work in progress - I'm trying to stabilize it now but it

Re: Clojure Web Libraries

2009-01-22 Thread Stuart Sierra
Hi Frank, I'd also recommend looking at Restlet http://www.restlet.org/ and the Java Servlets API. -Stuart Sierra On Jan 21, 4:39 pm, Frank ffai...@gmail.com wrote: Hi, I am interested in trying to use Clojure to develop web-based applications.  Can someone point me to any Clojure libraries

Re: Clojure Web Libraries

2009-01-22 Thread Frank
Thanks to everyone for their responses. I will be looking into all these libraries. I wanted to add two other references to this thread that I will also be researching. I found two libraries written by Christophe Grand: Ring - http://github.com/mmcgrana/ring/tree/master Enlive -

Re: Clojure Web Libraries

2009-01-22 Thread James Reeves
On Jan 22, 10:15 pm, Frank ffai...@gmail.com wrote: I found two libraries written by Christophe Grand: Only Enlive was written my Christophe; Ring was written by Mark. From what I gather Ring is an abstraction layer like Rack, and isn't designed to be used directly to build web applications.

Clojure Web Libraries

2009-01-21 Thread Frank
Hi, I am interested in trying to use Clojure to develop web-based applications. Can someone point me to any Clojure libraries that have been written that I can use. Thanks. Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Clojure Web Libraries

2009-01-21 Thread Stephen C. Gilardi
On Jan 21, 2009, at 4:39 PM, Frank wrote: I am interested in trying to use Clojure to develop web-based applications. Can someone point me to any Clojure libraries that have been written that I can use. Thanks. Compojure and webjure are two names worthy of Google searches along those