Re: clojure.contrib.sql = clojure.java.jdbc - looking for feedback!

2011-04-29 Thread Mibu
I think adding the generic sub-namespaces java, data, algo, tools, etc. is unnecessary and confusing. How many libraries fit neatly in one of those categories and not the other? Why use clojure.data.json when clojure.json would suffice? More examples: clojure.cli, clojure.enlive, clojure.monads

Re: ANN: Clojure Toolbox (Early Beta)

2011-03-15 Thread Mibu
Great site! Clean, simple, and very useful. There's a missing 'n' at the end of the link to ring-basic-authentication. The Beta label doesn't mean what it used to mean. Today, it's unflattering and unnecessary to have it on display. Thanks for doing this. You're awesome! -- You received this

Re: clojure xmpp

2011-02-12 Thread Mibu
Smack is the go to library for XMPP client programming on the JVM. It has some quirks and annoying bugs, but it's versatile; it mostly works, and it has excellent (simple!) documentation. Also, there is no worthy free alternative available. Docs:

Re: classic clojure-contrib 1.3.0-alpha4 released

2010-12-22 Thread Mibu
For me as a user, the appeal of contrib was the bundling. I used to just download the latest contrib jar, throw it in the classpath, and have plenty of functionality that could be easily summoned using a single line of code. Just like a standard library, even though it's not officially standard.

Long as keys in hash-map

2010-05-20 Thread Mibu
I tried to use Long keys from the java.io.File/length method in a hash- map and failed to retrieve values using them. sorted-map is fine. The doc says hash-maps require keys that support .equals and .hashCode. Doesn't Long support those or am I missing something else? -- You received this

Reader and octal numbers

2010-05-12 Thread Mibu
Do people use the octal number format in Clojure programming (zero on the left)? (Have no idea what I'm talking about? You're not alone. Try this at your REPL: (* 2 010). If you expected to get 20, welcome to the world of octal numbers.) It's confusing to read in source code because it's rare,

Restricted eval

2010-05-06 Thread Mibu
So far I have delightfully used Clojure's reader-evaluator-printer to store and load data, as an ad-hoc scripting language and command line interface, as a configuration language, and as an RPC protocol. It's all simple and great when those interfaces are trusted. Now I want to do it with

Re: Restricted eval

2010-05-06 Thread Mibu
As far as I can tell, clj-sandbox works by a set whitelist of arbitrary functions, which is not a very generic approach. It works for sandboxes like clojurebot, but not for other stuff. A restricted eval in all likelihood will not refer directly to clojure.core, and it's much better allowing the

Re: Restricted eval

2010-05-06 Thread Mibu
I mentioned in the first message that javaop should also be disabled in a restricted eval. On May 6, 5:18 pm, gary ng garyng2...@gmail.com wrote: On Thu, May 6, 2010 at 4:19 AM, Mibu mibu.cloj...@gmail.com wrote: As far as I can tell, clj-sandbox works by a set whitelist of arbitrary

Annoying auto-signature

2010-05-06 Thread Mibu
Am I the only one driven mad by the new auto-appended signature to every message in this group (You received this message because you are subscribed...)? It started on April 16th. Is there a way a moderator can stop it? -- You received this message because you are subscribed to the Google Groups

Clojure on Wikipedia

2009-05-04 Thread Mibu
Congratulations Rich and everyone for 1.0! Clojure really is remarkable, and people start to notice. Today, when people want to know something new they first go to Wikipedia before they even visit the homepage. There will be a lot of new interest in Clojure now that it has reached 1.0. Please

Re: Book for Programming Clojure

2009-05-01 Thread Mibu
Mark, Thanks for the excellent article. Your Clojure page is a great resource page too. Loved the Clojure Categorized. It's similar to what Chouser started doing in the official docs. This categorizing and tagging is tremendously helpful for understanding the vocabulary of the language in the

Re: Is Clojure production ready?

2009-04-16 Thread Mibu
If you have to ask if a technology is production ready then it isn't. On Apr 15, 10:34 pm, Aaron Feng aaron.f...@gmail.com wrote: Hi, I work for a large financial software company, and we are interested in using Clojure for our new project.  Due to the concurrent nature of the project, we

Inclusive-exclusive range

2009-03-04 Thread Mibu
Why does range in Clojure use an inclusive-exclusive range? I'm aware of the traditional substring range convention, which always puzzled me as to how an unintuitive and error-prone use became cemented as the norm. I'm not calling for a change in range. I'm just genuinely curious.

Re: Inclusive-exclusive range

2009-03-04 Thread Mibu
On Mar 4, 2:46 pm, Michael Wood esiot...@gmail.com wrote: On Wed, Mar 4, 2009 at 2:07 PM, Mibu mibu.cloj...@gmail.com wrote: Why does range in Clojure use an inclusive-exclusive range? For what it's worth, Python's range function works the same way. I think Clojure's design leans towards

Re: Inclusive-exclusive range

2009-03-04 Thread Mibu
Joshua, my puzzlement is not with the first element but the last. For example, the (range -1 2) gives (-1 0 1). On Mar 4, 3:06 pm, Joshua Fox joshuat...@gmail.com wrote: This is discussed, with references, herehttp://en.wikipedia.org/wiki/Array#Index_of_the_first_element

Re: Laziness madness

2009-03-01 Thread Mibu
doseq is the idiomatic way to write imperative code segments like this (add-watch generates a side-effect). Nevertheless, I too love using map for stuff like that. All you need to do is surround the map with dorun (or doall if you need the return value) and it will force the computation. see:

Road to Clojure on c.l.l

2009-02-21 Thread Mibu
comp.lang.lisp had a great Road to Clojure Survey thread which was actually an x-is-better-than-y thread that turned into a full blown flamewar. http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/0d05837df1efe075 These kind of threads are usually pointless, but this specific

Re: Contributors and community

2009-02-20 Thread Mibu
For me, Clojure made programming exhilarating again. Thank you, Rich and everyone else for making this happen. On Feb 20, 9:59 pm, Rich Hickey richhic...@gmail.com wrote: There have been many new additions to the contributors list: http://clojure.org/contributing and many new donations:

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-16 Thread Mibu
I'm all for breaking bad habits and names and I love it that you give good design considerations precedence over heritage, but here I think using the first/rest/next combo is confusing, and will continue to be confusing in the long-term. rest is expected to be a sequence by Lispers, and next is

Re: Sudoku solver with GUI

2009-02-07 Thread Mibu
If you want to test your code, you can use the 50 sudokus from Project Euler problem 96: http://projecteuler.net/index.php?section=problemsid=96 You will have to register and log in to check your answer. On Feb 6, 4:22 pm, Tzach tzach.livya...@gmail.com wrote: Hi all As my first Clojure

Re: Clojure is not a serious language

2009-01-31 Thread Mibu
Check out the comment left by Blue Phil. Priceless. On Jan 31, 6:40 am, Jon Harrop j...@ffconsultancy.com wrote: Apologies if you've seen this before but I just thought it was absolutely hillarious: http://www.3ofcoins.net/2009/01/30/common-lisp-clojure-and-seriousness/ -- Dr Jon Harrop,

Re: Request for feature: watchers on namespaces

2009-01-31 Thread Mibu
At this point I think maybe a broader more abstract view is in order. How about watchers for every mutable construct in Clojure? On Feb 1, 7:12 am, Mark Fredrickson mark.m.fredrick...@gmail.com wrote: I know its been discussed before, but I would like to register a   request for a feature:

Suggestion for new reader macros

2009-01-01 Thread Mibu
What do you think about adding these new reader macros: !form = (complement form) #!(...) = (fn [args] (complement (...))) Two problems I see with these macros are the hassle to the reader with names that include '!' (e.g. set!, swap!), and the possible confusion of meaning with (not form) to

Re: Parallel words frequency ranking

2008-12-30 Thread Mibu
, psort, and par:map functions, but I wasn't very successful. Anyone who knows what s/he's doing can shed some light on how to use it with this example? Mibu P.S. psort and sort's arguments are inconsistent (psort [coll comp] vs. sort [comp coll]). On Dec 30, 3:56 pm, Piotr 'Qertoip' Włodarek qert

Where's spit? (Was: Exercise: words frequency ranking)

2008-12-28 Thread Mibu
it. You've got spit. Mibu On Dec 28, 4:22 pm, Boyd Brown boy...@gmail.com wrote: Hello.  I can't seem to find 'spit'. java exception: unable to resolve symbol spit. I'm using Clojure Box rev1142.  Tried using the clojure.jar from the 20081217 release of Clojure but to no avail. spit

sorted-map-by value

2008-12-26 Thread Mibu
Is there a way to sort a sorted-map-by by value without a letrec? --~--~-~--~~~---~--~~ 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 To unsubscribe from this

Re: Exercise: words frequency ranking

2008-12-25 Thread Mibu
)) }) {} (map #(.toLowerCase %) (re-seq #\w+ (slurp input-filename) Mibu On Dec 25, 2:16 pm, Piotr 'Qertoip' Włodarek qert...@gmail.com wrote: Given the input text file, the program

Superficial barriers to entry

2008-12-17 Thread Mibu
in. Mibu [1] http://d2nbqsesuabw8o.cloudfront.net/tmp/doc-1116/index.html --~--~-~--~~~---~--~~ 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 To unsubscribe

Non-NS-qualified hierarchies

2008-12-07 Thread Mibu
Is it possible to remove the asserts in derive that restrict the parent and child to namespace-qualified names? It would be much more useful if the asserts are moved to the global- hierarchy case ([child parent]) and the private hierarchies ([h child parent]) can do as they wish. Maybe ditch the

Re: Concerned about Clojure's license choice.

2008-11-05 Thread Mibu
property. I just think free software licenses are useless at best and counterproductive at worst when applied to projects that are supposed to be free. About the flame war thingy, it's with a tongue-in-cheek. Mibu --~--~-~--~~~---~--~~ You received this message because you

Re: Concerned about Clojure's license choice.

2008-11-04 Thread Mibu
that invigorating entry to this group, I must say Clojure looks so good, I can't remember when I felt so excited and hopeful about a new piece of technology. Thanks for making this happen with or without those stupid licenses. Mibu --~--~-~--~~~---~--~~ You received