Re: [ANN] lein-sphinx - Generate documentation from reStructuredText using Sphinx

2013-11-13 Thread Andrey Antukh
Very useful ! Thanks! 2013/11/13 Sean Johnson belu...@acm.org I'm happy to announce, just in time for all the great documentation that will be written at Clojure/conj, the initial release of the lein-sphinx plugin. https://github.com/SnootyMonkey/lein-sphinx lein-sphinx makes it easy

Re: Step by step debugging

2013-11-13 Thread Bastien
Hi Ryan, Ryan Spangler ryan.spang...@gmail.com writes: I'll have an official announcement once it is ready to be released, but until then I welcome any feedback. I don't have time to test experimental stuff right now but I'm very much looking forward to reading your announcement! Thanks to

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Leonardo Borges
Hi Ryan, Love the website and the idea. Gave it a try but it gives me this when trying to browse to the app: java.security.InvalidKeyException: Illegal key size It's coming from ring's cookie store. It seems the generated key isn't valid. I had a similar problem recently where I had to base64

Re: Regarding Clojure's license

2013-11-13 Thread Phillip Lord
I did consider the possibility that it just wasn't funny! James Reeves ja...@booleanknot.com writes: I'm afraid your jokes are a little too subtle for me, Phillip :) - James On 12 November 2013 17:01, Phillip Lord phillip.l...@newcastle.ac.ukwrote: James Reeves ja...@booleanknot.com

Re: Regarding Clojure's license

2013-11-13 Thread Marshall Bockrath-Vandegrift
phillip.l...@newcastle.ac.uk (Phillip Lord) writes: I did consider the possibility that it just wasn't funny! Oh, no – it was hilarious. :-) -Marshall -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Step by step debugging

2013-11-13 Thread Colin Fleming
Hi Marshall, Sure. Clojure implements locals clearing, which means that the compiler will set local variables to null when it knows that the value of those variables won't be used any more. This allows the garbage collector to reclaim any values that those variables were pointing to, which is

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Ryan Spangler
Hi Leonardo, It seems that on certain default java installs keys are restricted to 16 bytes: http://stackoverflow.com/questions/6900542/java-security-invalidkeyexception-illegal-key-size I just released a version that creates 16 byte keys for the cookie store. Try that! (or edit the key in

Re: Regarding Clojure's license

2013-11-13 Thread Phillip Lord
Paul L. Snyder p...@pataprogramming.com writes: On Wed, 13 Nov 2013, musicdenotat...@gmail.com wrote: spirit and purpose. It's true that authors of FOSS want to get contribution from others, but you can't force others to work for you, or to do something that would potentially benefit you.

Re: cider status

2013-11-13 Thread Phillip Lord
Norman Richards o...@nostacktrace.com writes: On Tue, Nov 12, 2013 at 10:22 AM, Phillip Lord phillip.l...@newcastle.ac.uk wrote: I have tried it a couple of times and keep reverting back to nrepl. One of the biggest issues is nrepl-ritz which depends on nrepl and not nrepl-client. So

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Leonardo Borges
Thanks for that reference. I'll give it a try. Cheers, Leonardo Borges www.leonardoborges.com On Wed, Nov 13, 2013 at 8:46 PM, Ryan Spangler ryan.spang...@gmail.com wrote: Hi Leonardo, It seems that on certain default java installs keys are restricted to 16 bytes:

Re: [ANN] Troncle: Emacs convenience functions for tracing clojure code

2013-11-13 Thread Phillip Lord
This looks fantastic; while the recent discussion on debugging was going on, it occurred to me that an instrumenting debugger, edebug style, might be a good way to go. Phil Alex Coventry coven...@gmail.com writes: Troncle https://github.com/coventry/troncle is a proof-of-concept

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread François De Serres
Beautiful. Le mercredi 13 novembre 2013 00:52:10 UTC+1, Ryan Spangler a écrit : Hello Clojure, Excited to announce today the release of Caribou! http://let-caribou.in/ We have been building web sites and web applications with it for over two years now and improving it every day.

Re: Regarding Clojure's license

2013-11-13 Thread Softaddicts
Hi, Not only your tone is inappropriate but you seem to really expect that the license scheme will change after nearly 6 years ? On what basis ? Your legal advice ? Against what we have all been experiencing in the last six years ? Please do us a favor, do some readings first before posting

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Joe Smith
Very cool, good luck to you! --- Joseph Smith j...@uwcreations.com @solussd On Nov 12, 2013, at 5:52 PM, Ryan Spangler ryan.spang...@gmail.com wrote: Hello Clojure, Excited to announce today the release of Caribou! http://let-caribou.in/ We have been building web sites and web

Re: Regarding Clojure's license

2013-11-13 Thread Paul L. Snyder
On Wed, 13 Nov 2013, Phillip Lord wrote: Paul L. Snyder p...@pataprogramming.com writes: On Wed, 13 Nov 2013, musicdenotat...@gmail.com wrote: spirit and purpose. It's true that authors of FOSS want to get contribution from others, but you can't force others to work for you, or to

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Baishampayan Ghose
This is brilliant! Many thanks Ryan. Looking forward to trying these out and contributing back. ~BG On Wed, Nov 13, 2013 at 5:22 AM, Ryan Spangler ryan.spang...@gmail.com wrote: Hello Clojure, Excited to announce today the release of Caribou! http://let-caribou.in/ We have been building web

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Brian Craft
Looks very cool. I'm happy to see that data modeling is taken seriously, which in my experience is the biggest piece lacking in other clojure web tools. The docs have a lot of layout problems with words running together, like so: data from oneenvironment. Looks like a string joining operation

A Design (Simplification) Problem

2013-11-13 Thread Oskar Kvist
Hi! I'm making an MMORPG. For those of you not into games, MMORPG is short for massively multiplayer online role-playing game. That means that hundreds of players can connect to the same server and play a role playing game simultaneously. There is of course a big game state on the server that

How to convert this simple (and inefficient) fibonacci function to # format

2013-11-13 Thread Angus
I know this fibonacci function is not optimal but I want to learn one step at a time. I want to be able to apply this approach to 4clojure which disallows a lot of things including defn. This is my implementation so far: (defn fib [x] (cond (= x 0) 0 (= x 1) 1 :else

Re: How to convert this simple (and inefficient) fibonacci function to # format

2013-11-13 Thread Ben Wolfson
#(fn fib [x] ... ) creates a zero-arity function which, when called, will return a one-arity function. Just get rid of the #. On Wed, Nov 13, 2013 at 9:41 AM, Angus anguscom...@gmail.com wrote: I know this fibonacci function is not optimal but I want to learn one step at a time. I want to be

Re: How to convert this simple (and inefficient) fibonacci function to # format

2013-11-13 Thread Jim - FooBar();
you don't need 'fn' when you're using #(...) - that is the whole point. To not have to declare a function and its args explicitly. this particular example you cannot write using #() syntax though because it is recursing at 2 points and you cannot use 'recur'. Jim wOn 13/11/13 17:41, Angus

Re: A Design (Simplification) Problem

2013-11-13 Thread James Reeves
Hi Oskar, I've recently been working on a similar problem. I've had some success with FRP (functional reactive programming), and I've written a library, Reagihttps://github.com/weavejester/reagi, to implement what is hopefully a style of FRP that remains true to Clojure's ideology. First, let's

Re: A Design (Simplification) Problem

2013-11-13 Thread Phlex
Instead of making changes to your data structure, then creating an event, you could : -create a modification command as a data structure {:type :move :character-id 12 :move-to {some coords..}} -apply it to your data structure (each and every modification to the data structure would have to be

Re: How to convert this simple (and inefficient) fibonacci function to # format

2013-11-13 Thread Angus
Ah, as in: ((fn fib [x](cond (= x 0) 0 (= x 1) 1 :else (+ (fib (- x 1)) (fib (- x 2) 8)) 21 Many thanks. On Wednesday, 13 November 2013 17:46:57 UTC, Jim foo.bar wrote: you don't need 'fn' when you're using #(...) - that is the whole point. To not have to declare a function and

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Ryan Spangler
Brian, Thanks for the heads up! I fixed some of the formatting issues I found, I'll keep a lookout for this issue (using a md-html converter which apparently requires spaces at the end of lines in lists?) And yes, data modeling is one of our main concerns. All models are also data, which

Re: A Design (Simplification) Problem

2013-11-13 Thread Cedric Greevey
One might also wish to consider a pull model, in which clients explicitly request information they need from the server. A client could ask for an object's health, given its ID; or for the current ids and positions of monsters in a particular small geographical area (which the server would look up

Re: Step by step debugging

2013-11-13 Thread Mars0i
Thanks Colin! Wow--that's extremely helpful. The concepts are very clear now, and I now understand that it's a map *compiler-options* is supposed to be set to. What I was trying before wasn't right. No matter what I do, I am not seeing an effect on the value of *compiler-options* from the

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Dmitri
I notice you're using a fairly old version of markdown-clj [markdown-clj 0.9.19] The current version is [markdown-clj 0.9.35] so that should address a lot of formatting issues. :) On Wednesday, November 13, 2013 2:09:10 PM UTC-5, Ryan Spangler wrote: Brian, Thanks for the heads up! I

Do web apps need Clojure?

2013-11-13 Thread Marcus Blankenship
Hi Folks, We’re a Python / Django shop, and some folks are getting excited about using Clojure for building web apps. Certainly there are numerous open-source options to assist us (Pedastal, Ring, Compojure, Caribou, etc), but I think it begs a larger question: as a rule, do web applications

Re: Regarding Clojure's license

2013-11-13 Thread Colin Fleming
At least one company (mine at the time) had a problem with using LGPL software because of the clause where you explicitly allow reverse engineering of your product in order to use a different version of the LGPL library. That's enough to give any corporate lawyer the screaming heebie jeebies, not

Re: Step by step debugging

2013-11-13 Thread Colin Fleming
Hi Marshall, You'll only see a difference due to locals clearing if you're stepping with a debugger and looking at locals in your local stack frame or in the frames above it. In your example, the ability to pause when an exception is thrown is a capability your debugger provides. Cursive does

Re: Do web apps need Clojure?

2013-11-13 Thread Justin Smith
Hi. I'm part of the Caribou team, which started as an in-house tool (and continues to serve that purpose). A few advantages of clojure in the webapp space, off the top of my head: Clojure provides execution efficiency that Ruby or Python cannot match. This translates to lowered hosting costs.

Re: Step by step debugging

2013-11-13 Thread Mars0i
Colin, Got it--this setting is relevant to use of a debugger. I was trying to see something from vanilla and Leiningen repls. Thank you for taking so much time to explain. (My current debugger is (print (format ...)). Have to upgrade.) -Marshall On Wednesday, November 13, 2013 5:16:27

Re: Do web apps need Clojure?

2013-11-13 Thread Marcus Blankenship
Thanks, Justin. These are great points! I especially like the simplicity of deployment. Do you folks use Heroku, AWS, or some other hosting service? On Nov 13, 2013, at 3:23 PM, Justin Smith noisesm...@gmail.com wrote: Hi. I'm part of the Caribou team, which started as an in-house tool

Re: Do web apps need Clojure?

2013-11-13 Thread Bastien
Hi Marcus, Marcus Blankenship mar...@creoagency.com writes: Thanks, Justin. These are great points! I especially like the simplicity of deployment. Do you folks use Heroku, AWS, or some other hosting service? I started with Heroku but then switched to using a VM with Immutant. Immutant is

Re: Do web apps need Clojure?

2013-11-13 Thread Justin Smith
Usually elastic beanstalk or ec2 (beanstalk is simpler and trivial to make scale, but less flexible so sometimes we need to fall back on using an ec2 instance). In either case we typically a clojure war into a tomcat container. As long as you remember to keep your permgen large enough it is

Re: Do web apps need Clojure?

2013-11-13 Thread Marcus Blankenship
Ah, thanks! I’ll check it out! On Nov 13, 2013, at 3:59 PM, Bastien bastiengue...@gmail.com wrote: Hi Marcus, Marcus Blankenship mar...@creoagency.com writes: Thanks, Justin. These are great points! I especially like the simplicity of deployment. Do you folks use Heroku, AWS, or

Re: Do web apps need Clojure?

2013-11-13 Thread James Reeves
On 13 November 2013 22:38, Marcus Blankenship mar...@creoagency.com wrote: We’re a Python / Django shop, and some folks are getting excited about using Clojure for building web apps. Certainly there are numerous open-source options to assist us (Pedastal, Ring, Compojure, Caribou, etc), but

Re: Do web apps need Clojure?

2013-11-13 Thread Marcus Blankenship
Hi James, Good points, and I figured someone would say “Well, what kind of web app are you creating?” Just like you, we’ve built a huge variety of web apps, and they each have different requirements. Some of what we have done would have benefited from it, and others probably would have been

Re: Do web apps need Clojure?

2013-11-13 Thread Marcus Blankenship
Got it, thanks! I’ve always wanted to use Beanstalk, but figured it would have some limitations… On Nov 13, 2013, at 4:00 PM, Justin Smith noisesm...@gmail.com wrote: Usually elastic beanstalk or ec2 (beanstalk is simpler and trivial to make scale, but less flexible so sometimes we need to

Re: Do web apps need Clojure?

2013-11-13 Thread Brian Craft
On Wednesday, November 13, 2013 3:23:52 PM UTC-8, Justin Smith wrote: Clojure provides execution efficiency that Ruby or Python cannot match. This translates to lowered hosting costs. It should be noted that the go-to solution for performance in python is to drop to native code for

Re: Do web apps need Clojure?

2013-11-13 Thread Brian Craft
I also work in a python/django shop, and have been experimenting with clojure for about nine months. Before yesterday I would have told you that clojure web tooling does not come remotely close to the power of django. With a large amount of effort in piecing different libraries together, you

Re: Do web apps need Clojure?

2013-11-13 Thread Adrian Mouat
On Wednesday, 13 November 2013 23:23:52 UTC, Justin Smith wrote: Hi. I'm part of the Caribou team, which started as an in-house tool (and continues to serve that purpose). A few advantages of clojure in the webapp space, off the top of my head: Another nice advantage is being able to use

Re: Want to translate the ClojureCheetSheet in Japanese.

2013-11-13 Thread 竹内景太郎
Thank you for reply. I think Yes, and let's alter-meta! Doc of the Japanese to fork the repository of Clojure for the time being. I'm sorry question is complicated. Keitaro Takeuchi 2013年11月11日月曜日 13時08分35秒 UTC+9 Andy Fingerhut: I am the current maintainer of the Clojure Cheat Sheet, and

Re: Regarding Clojure's license

2013-11-13 Thread Korny Sietsma
any sufficiently poorly worded argument is indistinguishable from trolling. Is that original? I want to quote it. A lot. - Korny On 14 Nov 2013 01:42, Paul L. Snyder p...@pataprogramming.com wrote: On Wed, 13 Nov 2013, Phillip Lord wrote: Paul L. Snyder p...@pataprogramming.com writes:

Re: Regarding Clojure's license

2013-11-13 Thread John Gabriele
On Wednesday, November 13, 2013 6:06:02 PM UTC-5, Colin Fleming wrote: I don't see why a company would have any problem at all with *using* LGPL'd software, even in a product. However, I can see the possible complaints if they wanted to *modify* it and then distribute their modified

Re: Regarding Clojure's license

2013-11-13 Thread Colin Fleming
Although it's definitely difficult to understand, it says You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications,

Re: Step by step debugging

2013-11-13 Thread Daniel
I would imagine that cinc could side-step any jvm-imposed limitations on developing a reference debugger for clojure. -- -- 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

Re: Do web apps need Clojure?

2013-11-13 Thread Marcus Blankenship
Brian, that’s really interesting. I think we’re seeing something similar, and are going to look at Pedestal and Caribou as options for a project we’re working on. Are their others we should consider? Best, Marcus On Nov 13, 2013, at 5:26 PM, Brian Craft craft.br...@gmail.com wrote: I also