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 thi

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: http://www.igniterealtime.org/builds/smack/docs/lat

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. It

Re: Improving Contrib

2010-10-19 Thread Mibu
The greatest impediment for me is having to sign a contract to participate in an open source project. I understand Rich Hickey and most of you guys live in the litigious US and have to cover yourselves, but I feel not right about this. On Oct 19, 4:00 pm, Rich Hickey wrote: > We are taking sever

Re: Long as keys in hash-map

2010-05-20 Thread Mibu
Jason, this was very helpful. sorted-map's correct behavior compared to the naive behavior of hash-map is what confused me. Thanks for clearing this up. On May 21, 6:31 am, Jason Wolfe wrote: > The crux of the issue: > > user> (= (long 1) (int 1)) > true > user> (.equals (long 1) (int 1)) > fals

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 message

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, no

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 Group

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 wrote: > On Thu, May 6, 2010 at 4:19 AM, Mibu wrote: > > As far as I can tell, clj-sandbox works by a set whitelist of > > arbitrary functions, which is not

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 c

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 untruste

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 h

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 w

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 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 are evaluating t

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 wrote: > This is discussed, with references, > herehttp://en.wikipedia.org/wiki/Array#Index_of_the_first_element --~--~-~--~~~--

Re: Inclusive-exclusive range

2009-03-04 Thread Mibu
On Mar 4, 2:46 pm, Michael Wood wrote: > On Wed, Mar 4, 2009 at 2:07 PM, Mibu 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 what'

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: Laziness madness

2009-03-01 Thread Mibu
Laziness is the bomb. Don't give up on it. ;-) On Mar 2, 8:12 am, max3000 wrote: > Thanks for the pointers. I was indeed able to make it work with > dorun. ;) > > Still, I'm not sure I understand what all the fuss is about regarding > laziness. I'll take your word for it for now but I hope to gr

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: (do

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 thre

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 wrote: > There have been many new additions to the contributors list: > > http://clojure.org/contributing > > and many new donations: > > https://sourc

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 e

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=problems&id=96 You will have to register and log in to check your answer. On Feb 6, 4:22 pm, Tzach wrote: > Hi all > As my first Clojure project, I decided to fina

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 wrote: > I know its been discussed before, but I would like to register a   > request for a feature: watchers on namespaces. My ne

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 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, Flying Frog Con

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 'Qert

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

2008-12-28 Thread Mibu
or (clojure.contrib...). That's it. You've got spit. Mibu On Dec 28, 4:22 pm, Boyd Brown 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 cloju

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 thi

Re: Exercise: words frequency ranking

2008-12-26 Thread Mibu
on. But again, I was being idiomatic. If you need a blazing fast implementation for this specific task, I suspect perl would be a better choice. Mibu On Dec 26, 7:11 pm, Piotr 'Qertoip' Włodarek wrote: > On Dec 25, 4:58 pm, Mibu wrote: > > > My version: > > &

Re: Exercise: words frequency ranking

2008-12-25 Thread Mibu
c (%1 %2 0)) }) {} (map #(.toLowerCase %) (re-seq #"\w+" (slurp input-filename) Mibu On Dec 25, 2:16 pm, Piotr 'Qertoip' Włodarek wrote: > Given the input text

Re: 12 Days of Christmas in idiomatic(?) clojure

2008-12-24 Thread Mibu
I'd write it this way: (apply + (mapcat #(range 1 %) (range 2 14))) I think idiomatically I would have written it with (partial range 1) instead of #(range 1 %), but I prefer compact forms. Mibu On Dec 24, 8:57 pm, MattyDub wrote: > I was presented with the question "How many

Re: Superficial barriers to entry

2008-12-18 Thread Mibu
On Dec 18, 2:37 pm, janus wrote: > I think I need a mentor! Come to the IRC channel (#clojure on irc.freenode.net). The people there are friendly, helpful, and surprisingly patient. Mibu --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Superficial barriers to entry

2008-12-18 Thread Mibu
all did. Unfortunately, not so with a central repo for external libraries. If anyone is interested in the subject of why excess choice is bad, I highly recommend this short and very thought-provoking talk by Barry Schwartz: http://www.ted.com/index.php/talks/barry_schwartz_on_the_paradox_of_choice.

Superficial barriers to entry

2008-12-17 Thread Mibu
epo), useful links, and maybe general thoughts about where this is all going, which I'm sure all are interested in. Mibu [1] http://d2nbqsesuabw8o.cloudfront.net/tmp/doc-1116/index.html --~--~-~--~~~---~--~~ You received this message because you are subscribe

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 th

Re: Concerned about Clojure's license choice.

2008-11-05 Thread Mibu
, not even for intellectual 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 --~--~-~--~~~

Re: Concerned about Clojure's license choice.

2008-11-05 Thread Mibu
needed at all for a free project? It's like inventing a new programming language and debating how you should retrofit it with OOP features because all the other cool languages do it. Mibu (Too idealistic? Hey, it's a flame war. Just playing by the rules...) --~--~-~--~---

Re: Concerned about Clojure's license choice.

2008-11-04 Thread Mibu
f gasoline to the fire. Aside from 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 --~--~-~--~~--