Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Mark Engelberg
The template example shows a notation for doing something special on the last iteration of a loop, but it doesn't look like this syntax can handle nested loops. Is there any mechanism for nested loops? -- -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Joel Holdbrooks
This exactly the sort of project I've been hoping for to get others to take a serious look at using Clojure. While its unfortunate some developers will not look at a language until it has a comfortable entry point, it's a real barrier for adoption. Caribou looks like it has the potential to spe

Comments on first function

2013-11-17 Thread jskdlfj999
Hi everyone, I'm new to Clojure, and after a lot of reading I wrote a couple of functions. They are working and doing what they are supposed to, but I was wondering if the way I wrote the functions was optimal and if I made any conceptual errors which advanced programmers avoid. Basically: Are

Using xlisp assoc-lists in clojure

2013-11-17 Thread hpw014
Hello, As a newbie coming from a autolisp/newLISP background I have a question about using xlisp assoc-lists in clojure. I have huge databases form autolisp (from an autocad enviroment) in the form of nested assoc-lists. Can I stay with that format and read them from clojure? The first would

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread David Simmons
Ryan thanks for the great reply. I'll have to play a bit more to really get my head around this. I'd too would love to see a simple blog example not using the Admin interface to try and show how and where you'd define your models. many thanks. Dave -- -- You received this message because yo

New Functional Programming Job Opportunities

2013-11-17 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Clojure Engineers Needed! at Factual http://functionaljobs.com/jobs/8657-clojure-engineers-needed-at-factual Cheers, Sean Murphy FunctionalJobs.com -- -- You received this message because you are subscri

Re: [ANN] Yesql 0.2.1 - Clojure & SQL queries rethought.

2013-11-17 Thread Jeremy Heiler
On Mon, Nov 11, 2013 at 6:10 AM, Kris Jenkins wrote: > https://github.com/krisajenkins/yesql > > Yesql is a simple library for blending SQL & Clojure together, cleanly. > Here's how it works , > and how to use it

Re: Question on Sequences

2013-11-17 Thread Jeremy Heiler
On Sat, Nov 16, 2013 at 9:00 PM, Cedric Greevey wrote: > This efficiency is why built-in functions to map, filter, etc. vectors to > vectors aren't provided > Well, there is mapv and filterv. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Question on Sequences

2013-11-17 Thread Leif
Hi, Alexandru. If you just need more performance on vectors only, there are the core functions mapv, filterv, and subvec (O(1), which can be used to implement takev and dropv). Also, looking at the source of mapv and filterv is instructive, because they use transients internally; you might do

Re: maintainability, DSLs, declarative APIs, etc.

2013-11-17 Thread Alexey Verkhovsky
On Friday, 15 November 2013 13:12:29 UTC-7, Jay Fields wrote: > > Better to have the ability when you desire it, than not to have it - > if you're willing to put up with other people (ab)using that power at > times. > +1, with one caveat. If you have a rule of thumb like "introduce an abstrac

[Job spam] Write Clojure in your pajamas, for decent money in a pleasant company, remote pairing all the time

2013-11-17 Thread Alexey Verkhovsky
Hello, all, I'm a Clojure noob (half way through Stu Halloway's book), who's just joined this group today. Sorry about my first post being a recruitment spam. Seeing that there aren't that many yet, I hope nobody minds. For the right kind of people (talented, pragmatic and not averse to full-

Re: Friend roles stored in a database table

2013-11-17 Thread Dave Della Costa
Heh--I know exactly what you mean, had the exact same kind of experience myself many times. In any case, glad you got it working! (2013/11/18 4:42), wm.mark@gmail.com wrote: > Sometimes you can't see the wood for the trees I guess, I have it > working with this trivial change: > > (defn cred

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Rob Day
On 16/11/13 21:22, Craig wrote: Very interesting. I have a similar requirement, but not in serving web requests. I haven't looked under the covers of your module, but wonder if it could be decoupled from web/ring? Craig I've just pushed 0.2.0-SNAPSHOT to Clojars and Github. This adds overl

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Robert Day
On 17/11/13 14:24, James Reeves wrote: I've added this library to clojure-toolbox.com . I can see this library being very useful for certain systems. Thanks! I hadn't heard of the Clojure Toolbox before, but there's a lot of interesting things in there that I now

Re: How to store the results in a vector ?

2013-11-17 Thread James Reeves
Try using ??- and ??<-. These will output to a vector. (??<- [?category] ((select-fields info-tap ["?category"]) ?category)) - James On 17 November 2013 21:05, sindhu hosamane wrote: > Hello friends , > > (?<- (stdout)[?category]((select-fields info-tap ["?category"]) ?category) > ) > > Abov

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Ryan Spangler
The migrations are run one time to set up the models (or anything else), they don't represent the current state of the models. In general, we use either the Admin to edit models, in which case we export the schema as edn to migrate between different environments, or we use the built in migrati

Re: Functions using locks are slowed even when locks are never taken

2013-11-17 Thread Andy Fingerhut
I have just created a ticket linking to this discussion, with a copy of one of Michal's earlier messages in the thread as a description of what might be the problem. I would not say that this is the same as movement on this issue. Movement in the form that would lead to a change in the Clojure co

Re: Functions using locks are slowed even when locks are never taken

2013-11-17 Thread Andy Fingerhut
Sorry, I neglected to include a link to the ticket: http://dev.clojure.org/jira/browse/CLJ-1296 On Sun, Nov 17, 2013 at 2:11 PM, Andy Fingerhut wrote: > I have just created a ticket linking to this discussion, with a copy of > one of Michal's earlier messages in the thread as a description

Re: Do web apps need Clojure?

2013-11-17 Thread Marcus Blankenship
Thanks, Jerrod. Great way to frame the question! On Nov 16, 2013, at 4:34 PM, Jarrod Swart wrote: > I think the more interesting question is: do web developers need Clojure? If > performance were the sole concern then everyone would still code web apps in > C or assembler. There is great po

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Ryan Spangler
Mark, Luminus is great, it is at its heart a lein template that gathers together a number of useful Clojure web libraries and stitches them into a whole. It provides a good starting point with many options without preventing you from adapting it in any way you see fit. Caribou is more of an

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Mark Engelberg
On Sun, Nov 17, 2013 at 1:58 PM, Ryan Spangler wrote: > There are many advantages to this, including being able to generate the > admin and api automatically, (as well as letting our frontend guys add > properties they need in a model without pestering the backend guys to make > schema updates!).

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Ryan Spangler
Justin: I believe he is asking for a repo of an example Caribou site that does something useful (like a blog that posts comments or something). David: That is right, you don't have model files which describe your model. Instead, there is a Model model (with a collection of instances of a F

How to store the results in a vector ?

2013-11-17 Thread sindhu hosamane
Hello friends , (?<- (stdout)[?category]((select-fields info-tap ["?category"]) ?category)) Above is my Cascalog query which produces result like : Warning Start inhibit Stop Inhibit Warning Halt how to store the above result in a vector ? my way is (let [x (?<- (stdout)[?category]

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Mark Engelberg
I'm reading through the documentation right now. Looks interesting -- reminds me a lot of Django. Could someone give a brief compare/contrast with Luminous? -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread David Simmons
Hi Ryan Congratulations on the release of Caribou. I've got a couple of questions. 1. If I create a model via the Admin UI, am I right in thinking that this does not actually create a clj file containing the details of the model which I could edit later via a text editor? 2. Do you the concept

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Justin Smith
I don't know if this is what Ronen is asking for, but I have had requests that we serve an instance with the admin open somewhere, so people can try out the whole app without installing it and getting it running locally. On Sunday, November 17, 2013 11:49:50 AM UTC-8, Ryan Spangler wrote: > > Ro

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-17 Thread Ryan Spangler
Ronen, No sample app yet! The screencast goes through building an app from scratch, but a larger example is a great idea. We'll get something together here in the coming weeks (we have many projects using Caribou, just means pulling something abstract out of one of them). On Saturday, Nove

Re: Friend roles stored in a database table

2013-11-17 Thread wm . mark . lee
Sometimes you can't see the wood for the trees I guess, I have it working with this trivial change: (defn credential-fn [username] (update-in (read-user username) [:roles] read-string)) Still learning the basics... On Sunday, 17 November 2013 17:04:27 UTC, wm.ma...@gmail.com wrote: > > Presum

Re: Functions using locks are slowed even when locks are never taken

2013-11-17 Thread Michael Blume
Sorry to be a bother, but any movement on this? This looks like a real performance bug and I don't yet have the internals knowledge to chase it down myself. On Sun, Nov 3, 2013 at 12:10 PM, Michał Marczyk wrote: > Well, that is interesting. > > The difference between the compiled versions of > >

Re: Clojure Users Group - Denmark

2013-11-17 Thread Anders Konring Olesen
On Fri, Nov 15, 2013 at 2:28 PM, Krukow wrote: > On Thursday, November 14, 2013 11:40:08 PM UTC+1, Jacob Mortensen wrote: >> >> I do clojure+clojurescript hobby programming at home. I live in >> copenhagen. It seems there is a clojure user group here in copenhagen, but >> I havent been able to lo

Re: Friend roles stored in a database table

2013-11-17 Thread wm . mark . lee
Hello, some inline-comments... On Sunday, 17 November 2013 11:25:38 UTC, David Della Costa wrote: As far as actually storing the roles in the database, they are simply a > stringified set of namespace-qualified keywords, like so: > > #{:my-app-ns/user} > #{:my-app-ns/admin :my-app-ns/some-othe

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Bob Hutchison
Hi Rob, Nice! Thanks for releasing this. I’m not sure when I’ll use this but I can pretty much guarantee that I will give it a go sooner or later. I’ve written a few of these in the past, it’s good to see someone make a library out of it. BTW, things like AngularJS and EmberJS should/could know

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread James Reeves
On 17 November 2013 13:04, Clinton Dreisbach wrote: > People, you are not going to win a fight with a Level 65 Troll Wizard. > Back away slowly. > > Rob, this is a cool library: thanks for writing it. > Point taken. I've added this library to clojure-toolbox.com. I can see this library being ve

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Cedric Greevey
On Sun, Nov 17, 2013 at 8:22 AM, Christian Romney wrote: > Maybe you should re-read this whole thread. Clinton is just pointing out > how impolite it is, particularly as the first response to an ANN post, to > poopoo all over someone else's work, > Please provide a citation to back up your claim

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Luc Prefontaine
No, no, I can assure you, it's not an insult, you are well beyond. :))) --> toward the edge of the universe Luc P > Is that intended as some sort of an insult aimed at me? I'm just pointing > out that "the web" != "everything that might conceivably be done with the > HTTP protocol"

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Christian Romney
Maybe you should re-read this whole thread. Clinton is just pointing out how impolite it is, particularly as the first response to an ANN post, to poopoo all over someone else's work, shared freely and graciously with the rest of the community, simply because *you* can't see a use for it. Clearl

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Cedric Greevey
Is that intended as some sort of an insult aimed at me? I'm just pointing out that "the web" != "everything that might conceivably be done with the HTTP protocol". "The web" is that thing you browse with Firefox, more or less by definition (even if sometimes tools like curl and wget are used as sho

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Clinton Dreisbach
People, you are not going to win a fight with a Level 65 Troll Wizard. Back away slowly. Rob, this is a cool library: thanks for writing it. -- Clinton Dreisbach On Sun, Nov 17, 2013 at 7:53 AM, Cedric Greevey wrote: > So, when people here are talking about the web, they might not be talking

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Cedric Greevey
So, when people here are talking about the web, they might not be talking about the web. Erm, okay, I guess ... On Sun, Nov 17, 2013 at 7:11 AM, James Reeves wrote: > On 17 November 2013 05:25, Cedric Greevey wrote: > >> On Sat, Nov 16, 2013 at 9:35 PM, James Reeves wrote: >> >>> On 17 Novembe

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread James Reeves
On 17 November 2013 05:25, Cedric Greevey wrote: > On Sat, Nov 16, 2013 at 9:35 PM, James Reeves wrote: > >> On 17 November 2013 01:52, Cedric Greevey wrote: >> >>> The distribution will be narrow and peak at around 1 second, though, >>> which may not be what you want. Of course, the OP has sinc

Re: Friend roles stored in a database table

2013-11-17 Thread Dave Della Costa
Sounds like you've got some of this working smoothly already, so apologies in advance if any of this is redundant. Regarding database roles, the way I have it working in one of my simpler apps with the default interactive form workflow is to set the credential-fn in the workflow configuration to s

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Bruce Adams
Even for a web site used exclusively by people, "fail fast" when overloaded can be good. You would rather give an error (one hopes a "gee, so sorry, we having some trouble right now" page) to some users rather than be extremely slow for many users. What do I do when I get a slow web page? I hit

Re: [ANN]: clj.jdbc 0.1-beta1 - Alternative implementation of jdbc wrapper for clojure.

2013-11-17 Thread Andrey Antukh
Hi Zach! It is not based on any concrete version (is not a fork). Casually, it has similarities with java.jdbc 0.2.x because uses same name for some functions (in my opinion 0.2 version has better api than 0.3). Additionally I have copied some useful functions like parsing dbspec to URI or a map o

Friend roles stored in a database table

2013-11-17 Thread wm . mark . lee
Hello, As a long-time Java web developer, I've now been doing clojure for a few days so there's a lot I don't get yet, but I do have an end-to-end working Compojure web application with a UI, JSON web services, and working form-based authentication using Friend - originally using the in-memory