Re: Can we please deprecate the :use directive ?

2013-08-04 Thread Anthony Grimes
I can't think of a single good reason to not deprecate :use. :require can do everything :use could do now. This isn't about whether or not (:use ..) without :only is bad. I'd go as far as to say that outside of test files (and sometimes not even those) and repl sessions, :use without :only is

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread Anthony Grimes
Keep in mind that you should almost never do this. It's much better to require :as or explicitly refer which things you want from each namespace. When you do :refer :all, you pollute your namespace with tons of vars and when you use them, nobody has any clue where they're coming from so they

Re: Is there an approved way for testing if something is a zipper?

2013-06-11 Thread Anthony Grimes
I wrote a function for this in laser. https://github.com/Raynes/laser/blob/e351444a09e5c81b900767e955edf62558c33fd6/src/me/raynes/laser/zip.clj#L38 (defn zipper? Checks to see if the object has zip/make-node metadata on it (confirming it to be a zipper. [obj] (contains? (meta obj)

[ANN] least, a last.fm client

2013-04-18 Thread Anthony Grimes
https://github.com/Raynes/least I wrote this a little while ago. My intentions are to make use of it in lazybot for some last.fm integration. Haven't actually done that yet (tomorrow is another wonderful day) so it hasn't seen real world use. If you find any boogs, shoot me an issue on Github.

Re: [ANN] Schejulure 0.1.3

2013-04-15 Thread Anthony Grimes
You had me at the changelog entry regarding Sundays. I was actually tasked with writing pretty much this at work last Friday. My thanks for doing my work for me. Unfortunately I don't think you will be paid for your troubles. On Monday, April 15, 2013 6:02:02 AM UTC-7, Adam Clements wrote: I

Re: doing a Google search from Clojure?

2013-03-22 Thread Anthony Grimes
clojure-http-client is more or less unmaintained. https://github.com/dakrone/clj-http is the canonical http client these days. Lazybot has a plugin for doing this with the google ajax api, if that's helpful. No API key needed.

Re: proper way to override clojure.core functions without getting warning/error

2013-02-14 Thread Anthony Grimes
The problem is that your first namespace defines 'sorted?' and your second namespace just uses the namespace, thus overriding 'sorted?'. You have two options here. Your biggest project is that you're using ':use'. Use ':require' instead. Something like `(:require

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Anthony Grimes
On Sunday, January 20, 2013 9:16:35 AM UTC-6, Fogus wrote: I'll just add a few points: Pull requests are not likely to happen. It's not worth fighting over. However, I think that is a weak excuse for not contributing. If you want to contribute a complex bug fix, then the patch process

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Anthony Grimes
On Sunday, January 20, 2013 10:22:04 AM UTC-6, Fogus wrote: Please don't ask people to not rehash this discussion. Don't tell them that it is a 'weak reason' for not contributing and 'not worth fighting over'. Well, that's only my opinion. I happen to think it's not worth fighting

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Anthony Grimes
On Sunday, January 20, 2013 11:33:56 AM UTC-6, Fogus wrote: To make matters worse, Clojure/core consistently avoids discussing these issues in public I would guess because their position hasn't changed since the last time. This is only speculation. A page like what Anthony

Re: if-let/when-let

2013-01-04 Thread Anthony Grimes
On Friday, January 4, 2013 1:35:45 PM UTC-6, puzzler wrote: On Fri, Jan 4, 2013 at 9:02 AM, Edward Tsech edt...@gmail.comjavascript: wrote: Thanks Dave! Seems like different people expect slightly different behavior. Are we reading the same thread? When I looked at it, it seemed that

Re: [ANN] tools.namespace 0.2.2 and Flow 0.1.0

2012-12-18 Thread Anthony Grimes
http://dev.clojure.org/jira/browse/TNS-1 is the reason why I did bultitude. It was an important bug that was never addressed, and probably still hasn't been addressed. Other people have also added relatively complex classpath features to it as well, and since it isn't a contrib project you can

Re: [ANN] tools.namespace 0.2.2 and Flow 0.1.0

2012-12-18 Thread Anthony Grimes
Actually, scratch that first one. Looks like Stuart did finally apply the patch. Other reasons for bultitude's existence still apply. On Tuesday, December 18, 2012 6:06:40 AM UTC-6, Anthony Grimes wrote: http://dev.clojure.org/jira/browse/TNS-1 is the reason why I did bultitude

Moving away from Noir

2012-12-13 Thread Anthony Grimes
Just posting this here to make sure as many people as possible have seen it. http://blog.raynes.me/blog/2012/12/13/moving-away-from-noir/ Associated HN thread for you masochists: http://news.ycombinator.com/item?id=4918720 -- You received this message because you are subscribed to the Google

Re: [ANN] sublime-lispindent, clojure indenting for sublime text 2

2012-12-07 Thread Anthony Grimes
I opened a report on ST2's userecho a long time ago about the terrible indentation. If you'd like to see if fixed in Sublime Text 2 itself, please upvote: http://sublimetext.userecho.com/topic/98139-clojure-auto-indentation-is-almost-never-correct/ On Monday, November 12, 2012 10:25:38 AM

Re: [ANN] sublime-lispindent, clojure indenting for sublime text 2

2012-11-24 Thread Anthony Grimes
I just took a shot at it. I put it in Pristine Packages as described, but it disappears when I restart ST2 and try to use it. Also, will this work with the built in 'reindent' command? If not, will it work with vintage mode (you can reindent blocks with =ab from Vim)? I really wish the Clojure

Re: what is the simplest user auth system possible?

2012-10-26 Thread Anthony Grimes
Another +1 for Persona. I'm the author of Refheap which uses Persona, and I chose it specifically because of how easy it was to implement and use. On Friday, October 26, 2012 3:26:16 PM UTC-5, Pierre R wrote: +1 for Persona. Please give your user a chance to break the cycle of password

Re: [ANN] nrepl.el 0.1.5 released

2012-10-22 Thread Anthony Grimes
All hail the king of kings! On Monday, October 22, 2012 10:31:16 AM UTC-5, Tim King wrote: I am pleased to announce the release of nrepl.el v0.1.5, an Emacs client for nREPL. nrepl.el v0.1.5 is now available on Marmalade. Preview versions of the next release are available on Melpa. See

Help fund my trip to the conj

2012-10-15 Thread Anthony Grimes
It's that time again, folks. Some poor sucker is asking for help to get to this wonderful conference in its third year. Turns out, I found out a few days ago that Carin Meier was unable to go and wanted to donate her ticket to me! Unfortunately, I had no intentions of making it this year and

Re: ANN subpar (paredit for codemirror)

2012-10-12 Thread Anthony Grimes
Awesome! I've been waiting for this. I'd love to see it added to refheap, https://github.com/Raynes/refheap. It'd be the only paredit-enabled pastebin on the market. On Friday, October 12, 2012 3:21:51 PM UTC-5, Andrew wrote: A ParEdit approximation for use in CodeMirror.

Re: Clojure web framework

2012-09-29 Thread Anthony Grimes
Open source projects aren't the result of one person's activity. Other people are welcome to contribute. Noir isn't dead or anything, it's just slow at the moment. Furthermore, yes, the website is outdated. I do not have access to the website in order to update it, and there hasn't been a

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Anthony Grimes
If it hasn't been updated at this point, I think it is safe to say it isn't being maintained. I'd go with Compojure. It is pretty minimal too. If you really, really want moustache, it might not be hard to fork and update the deps. On Friday, September 7, 2012 12:51:37 AM UTC-5, Murtaza Husain

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Anthony Grimes
This isn't actually a good thing: http://nelsonmorris.net/2012/07/31/do-not-use-version-ranges-in-project-clj.html FWIW, even if it didn't use version ranges, the version of Clojure and other dependencies that you use would take precedence over the ones it specifies. On Friday, September 7,

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Anthony Grimes
Clojurepy is nice and all, but with a slow startup time, I really don't have a use for it. Coming from Clojure, I found clojurepy more complicated than Clojure itself. Probably due to lack of documentation. What bothered me the most is that it seems like they've changed things making it

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-15 Thread Anthony Grimes
You don't have to post your whole application, but you really, really need to give us a small example that causes your problem. We can't work with I did x with y and it doesn't work.. Try to water down an isolated piece of code that we can run that causes your issue. On Wednesday, July 11,

Re: [ANN] Yet another {{mustache}} for Clojure

2012-07-11 Thread Anthony Grimes
Stencil is spec compliant (the tests actually run against the spec) while this implementation is not. A major goal behind stencil is to be totally spec compliant and as fast as possible. However, implementing the slow parts of the spec is important too. On Wednesday, July 11, 2012 6:28:23 PM

[ANN] lib-noir 0.1.1

2012-06-24 Thread Anthony Grimes
Chris Granger and I decided that a lot of the stuff in Noir is also useful outside of Noir, so I took a bunch of Noir's middleware and such and split it out into a new library called lib-noir. You can find it here: https://github.com/noir-clojure/lib-noir It has Noir's stateful session/flash

Re: [ANN] Exploding Fish: A URI Library for Clojure

2012-05-12 Thread Anthony Grimes
Aha! Thanks for explaining this here as well as in detail on IRC and working through it with me. It does indeed make sense. Furthermore, we've already had this discussion on IRC, but at least one person thought that my suggestions above were me being a jerk. Just wanted to publicly state here

Re: [ANN] Exploding Fish: A URI Library for Clojure

2012-05-11 Thread Anthony Grimes
Hey there! I was taking a look at the libraries implementation and have a few suggestions/questions. Most importantly, what is going on here: https://github.com/wtetzner/exploding-fish/blob/master/src/org/bovinegenius/exploding_fish/query_string.clj It looks like you have written a little

Re: Congomongo or monger ???

2012-04-05 Thread Anthony Grimes
Either one of them is perfectly acceptable. They are both supported libraries. On Wednesday, April 4, 2012 12:51:07 PM UTC-5, Simone Mosciatti wrote: I don't like try to compare two different work, but when two programs have the same task, i never know... What would you suggest, congomongo

Re: 4Clojure exersice question

2012-01-13 Thread Anthony Grimes
Clojail errs on the side of safety and not on the side of Oh, well maybe he wasn't trying to break the sandbox. Let's allow it anyway.. Treating macros as opaque is just another hole in what is already difficult sandboxing. Macros are not even remotely close to functions. They *create* code.

Re: 4Clojure exersice question

2012-01-13 Thread Anthony Grimes
I responded to this earlier, but I accidentally hit the 'reply to author' button instead of 'reply to post', and thus it went directly to Cedric rather than to the group. I'll respond here and quote the previous emails: On Fri, Jan 13, 2012 at 8:57 PM, Anthony Grimes disciplera...@gmail.com

Re: core.logic, leiningen, clj-stacktrace: someone eats my backtraces

2012-01-06 Thread Anthony Grimes
The last stacktrace that occurred in a REPL is bound to *e. Try (.printStackTrace *e). That should work in the REPL. Might not in SLIME. -- 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

ANN: fs (Filesystem Utilities) 1.0.0 Released

2011-12-11 Thread Anthony Grimes
fs is a file system utilities library for Clojure. This library was originally created by Miki Tebeka and resided at https://bitbucket.org/tebeka/fs. Unfortunately, Miki recently found himself having less time for Clojure and wasn't able to fix bugs and add new features in a timely manner.

ANN: Tentacles 0.1.0: A Github v3 API library for Clojure

2011-11-30 Thread Anthony Grimes
I just released v0.1.0 of my new Github API library, tentacles. Tentacles is the successor of my old v2 API library, clj-github. I went ahead and rewrote the whole thing because clj-github was a bit of a mess and the v3 API is different enough from the v2 API to warrant a new library. Also,

ANN: Clojail 0.5.0

2011-11-08 Thread Anthony Grimes
In anticipation of the Conj and my talk about sandboxing + clojail there, I've just cut a new major release of the library. Here are some of the changes: - Code has been cleaned up significantly. - Old broken attempts at supporting both blacklisting and whitelisting are gone, and

Re: An open call to the community: Let's prepare for 1.3

2011-09-11 Thread Anthony Grimes
Cake's global project allows for dev deps to be set for all projects, so this applies to cake as well. -- 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 from new members are

Re: Bizarre ClojureScript issue

2011-07-28 Thread Anthony Grimes
Absolutely. -- 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 from new members are moderated - please be patient with your first post. To unsubscribe from this group, send

Re: ClojureScript mailing list?

2011-07-28 Thread Anthony Grimes
Going to have to dec. A lot of ClojureScript questions in the future (after there are less bugs and everything is more stable) will probably be answerable by plain ol' Clojure programmers, since most of them will likely be normal Clojure problems unrelated to JavaScript. I think it should stay

Re: Problem with ClojureScript and Node.js

2011-07-28 Thread Anthony Grimes
I'm all of a sudden getting this exact same error on OS X 10.6.8. And I do mean all of a sudden. I actually updated to this version of OS X last night and today it isn't working. Is this happening to any OS X users on an older Snow Leopard? This is the only thing that has changed in my setup,

Re: Problem with ClojureScript and Node.js

2011-07-28 Thread Anthony Grimes
Actually, it seems to be caused by this commit: https://github.com/clojure/clojurescript/commit/954e8529b1ec814f40af77d6035f90e93a9126ea If I checkout before that, everything is peachy. I guess I'll submit a bug report. -- You received this message because you are subscribed to the Google

Re: clojure.contrib.command-line

2011-07-28 Thread Anthony Grimes
command-line is deprecated in favor of tools.cli now. http://github.com/clojure/tools.cli -- 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 from new members are moderated -

Re: Problem with ClojureScript and Node.js

2011-07-28 Thread Anthony Grimes
, July 28, 2011 6:40:39 PM UTC-5, Rich Hickey wrote: Could you please use quoting in your messages? Otherwise they have no context. Thanks, Rich On Jul 28, 2011, at 7:10 PM, Anthony Grimes wrote: Actually, it seems to be caused by this commit: https://github.com/clojure/clojurescript

Bizarre ClojureScript issue

2011-07-27 Thread Anthony Grimes
Sorry for the terrible subject line. I couldn't think of an easy way to describe the problem in a single line. (def net (node/require net)) (defn portal [port host] (.createConnection net port host)) (defn -main [ args] ; Note that only one of these -main functions is in the file at any

Re: Bizarre ClojureScript issue

2011-07-27 Thread Anthony Grimes
It's odd that it works fine in the first one but no the second. You'd think with that post button being so small that it'd be difficult to... yeah. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Bizarre ClojureScript issue

2011-07-27 Thread Anthony Grimes
Yep, just double checked. No extra spaces. -- 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 from new members are moderated - please be patient with your first post. To

Re: Bizarre ClojureScript issue

2011-07-27 Thread Anthony Grimes
Yeah. To the extent that I can read Javascript, the calls look exactly the same and it looks fine. -- 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 from new members are

Re: Bizarre ClojureScript issue

2011-07-27 Thread Anthony Grimes
That's actually what I thought at first, but the node example that ships with ClojureScript actually does the same thing (uses a node function outside of -main and then calls that function from -main) I did and it works fine. Here is the generated JavaScript for the failing -main and such:

Re: Bizarre ClojureScript issue

2011-07-27 Thread Anthony Grimes
The first argument to Javascript's 'call' is a 'this' argument. All generated functions are called like this. -- 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 from new

Re: Bizarre ClojureScript issue

2011-07-27 Thread Anthony Grimes
It looks like main is called the same way. Like I said, my example is not much different than the one that comes with cljs. (ns nodels (:require [cljs.nodejs :as nodejs])) (def fs (nodejs/require fs)) (def path (nodejs/require path)) (defn file-seq [dir] (tree-seq (fn [f] (.isDirectory

Re: Bizarre ClojureScript issue

2011-07-27 Thread Anthony Grimes
Hah! That was it! You, sir, are one clever fellow. Thank you very much. -- 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 from new members are moderated - please be patient

Generated nodejs code from ClojureScript doesn't include some functions

2011-07-27 Thread Anthony Grimes
This is an odd one. It seems that, when new functions are added to cljs.core, the code generated when you compile targeting nodejs doesn't include them. I noticed this initially when I pulled this commit https://github.com/clojure/clojurescript/commit/3b3ed7783ebbd07fec6772b6a1bca4ed32924fb8

Re: Generated nodejs code from ClojureScript doesn't include some functions

2011-07-27 Thread Anthony Grimes
I guess I should have added that it's not just rand that isn't being included. It's all of the recently added functions. Check the commit log. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: clooj, a lightweight IDE for clojure

2011-07-18 Thread Anthony Grimes
Check out http://github.com/daveray/seesaw. It might help ease some of that Swing pain. -- 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 from new members are moderated -

Re: Build tool for mixed Clojure/Java projects

2011-07-03 Thread Anthony Grimes
Cake can indeed handle Java source files. Throw them in src/jvm, I believe. Leiningen and cake can both handle on-disk jar files, but (at least in cakes case) they need to be installed in the local repository. -- You received this message because you are subscribed to the Google Groups Clojure

Re: #= reader macro

2011-06-19 Thread Anthony Grimes
Check out Seesaw http://github.com/daveray/seesaw. It's a Clojure Swing wrapper that really cuts back on boilerplate, and will probably serve you better than rolling your own making-swing-manageable macros. Happy hacking! -- You received this message because you are subscribed to the Google

Re: Early Registration has opened for Clojure Conj 2011!

2011-06-14 Thread Anthony Grimes
Awesome! Looking forward to it. :) -- 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 from new members are moderated - please be patient with your first post. To unsubscribe