Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-20 Thread kovas boguta
I also have a small syntax idea. One principle that would be nice, and that Mathematica lacks, is parity between anonymous predicate dispatch constructs, and those attached to vars. So while one way is to look at predicate dispatch as an extension of multimethods, another way is to look at it as

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-20 Thread David Nolen
Lots to think about :) I definitely agree there needs to be a simple way to "query" a predicate dispatch system in order for it to work well in larger programs. But I haven't thought about it much more then that yet. David On Mon, Feb 20, 2012 at 9:56 PM, kovas boguta wrote: > Mathematica imple

Re: ClojureScript for form

2012-02-20 Thread David Nolen
for creates lazy sequences - this can be a problem if you need side effects. I suggest using doseq instead. David On Mon, Feb 20, 2012 at 11:26 AM, Adrian Mowat wrote: > Hi Everyone, > > I have been coding clojure for a few months and I've just started > using clojurescript and I am struggling t

Re: mcache 0.1.0 released

2012-02-20 Thread Leonardo Borges
There's this one: https://github.com/shughes/clojure-memcached It's two years old so definitely out of date but maybe worth forking? Cheers, Leonardo Borges www.leonardoborges.com On Sun, Feb 19, 2012 at 12:14 PM, DHM wrote: > Hi, > > I want to announce the release of mcache 0.1.0: > https://

ClojureScript + Overtone

2012-02-20 Thread Chris Granger
People have been asking for an example using Noir and CLJS for a while, so today I threw together a recording and a blog post of me building an iPad controller for overtone :) HN link: http://news.ycombinator.com/item?id=3615022 Post: http://www.chris-granger.com/2012/02/20/overtone-and-clojurescr

notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-20 Thread kovas boguta
Mathematica implements a version of open and order-independent dispatch, so I wanted to add some points to the discussion. The design of Mathematica's pattern matching is tightly coupled to the language's computational model, as well as with all other aspects of the system. So a lot of it would ge

Re: Clojure 1.3.0 updated cheatsheet, and one with links to clojuredocs.org

2012-02-20 Thread Andy Fingerhut
I've done a tweak that might get rid of that effect, but the final answer is that by some means I don't know in detail, when this gets put into the HTML/web-server context that exists at clojure.org/cheatsheet, it doesn't do that. A temporary workaround is to adjust the width of your whole brow

Re: ns :import / reflection

2012-02-20 Thread Sean Corfield
On Sat, Feb 18, 2012 at 1:29 PM, ClusterCat wrote: > (ns test (:import (java.io File))) This says import the File class from the package java.io > (ns test (:import (java.io.File))) Try: (ns test (:import java.io.File)) >  (let [filename (first *command-line-args*)] >    (println filename) >

Re: recommend a library to emit xml?

2012-02-20 Thread Sean Corfield
On Sun, Feb 19, 2012 at 2:37 PM, Levi Campbell wrote: > For a project I'm working on, I need a library that can produce xml, I > was using clojure.xml/emit but the stackoverflow question > http://stackoverflow.com/questions/4440523/what-happened-to-closure-xml-emit > told me that I need to look el

ns :import / reflection

2012-02-20 Thread ClusterCat
Hello, I have two newbie questions: First - (ns test (:import (java.io File))) I can use File like this (let [file (File. filename)]))) When using this import (ns test (:import (java.io.File))) I get an "Unable to resolve classname: File" which I don't understand. Second -- With this

mcache 0.1.0 released

2012-02-20 Thread DHM
Hi, I want to announce the release of mcache 0.1.0: https://github.com/davidhmartin/mcache This provides protocol-based support for memcached and memcached-like clients, with an implementation using spymemcached. I coded this up in support of a web site I'm developing. I didn't find much in the

Re: Lack in the documentation

2012-02-20 Thread DAemon
I feel that it should be pointed out that all three of Eclipse, Netbeans and IntelliJ IDEA are, under the covers, platforms for building IDEs, rather than just IDEs themselves. Oddly enough, out of the three, I had the simplest transition with IntelliJ - only had to install clojure and leiningen p

recommend a library to emit xml?

2012-02-20 Thread Levi Campbell
For a project I'm working on, I need a library that can produce xml, I was using clojure.xml/emit but the stackoverflow question http://stackoverflow.com/questions/4440523/what-happened-to-closure-xml-emit told me that I need to look elsewhere. Does anyone have any suggestions? Thank you for your t

Re: Google Summer of Code 2012 - any mentors?

2012-02-20 Thread Justin Anthony Hamilton
+1 additional student here. On Feb 17, 6:07 pm, Devin Walters wrote: > +1, would love to help in any way I can > > '(Devin Walters) > > On Feb 17, 2012, at 4:41 PM, Peter Hanak wrote: > > > > > > > > > another +1 here > > > On Feb 14, 3:23 am, Simone Mosciatti wrote: > >> More students > >> +1

Re: ClojureScript One in Eclipse

2012-02-20 Thread Nick Klauer
I'm not sure it's entirely possible, but I could be wrong. When I asked a few months ago about Leiningen integration with Eclipse, it wasn't officially supported yet, and I would have to use some sort of nREPL connection. see here: https://groups.google.com/d/topic/clojuredev-users/3iKc0rb9gF

ClojureScript for form

2012-02-20 Thread Adrian Mowat
Hi Everyone, I have been coding clojure for a few months and I've just started using clojurescript and I am struggling to use for forms inside event handlers. Sorry if this is covered elsewhere but I have searched as best I can without finding the answers. I have an event handler that listens fo

MacOS menu bar time tracker in Clojure

2012-02-20 Thread Philip K
Hey, I just made a text file based menu bar timer tracker as a weekend project in Clojure. It allows for easy task management using your favorite text editor, easy prioritization, time tracking and easy Dropbox integration; it doesn't scale well beyond a single person, but for small projects it ma

Re: bug in clojure.repl/doc to print namespace docs (?)

2012-02-20 Thread Frank Siebenlist
Excellent - Thanks for the confirmation & pointer - FrankS. On Feb 20, 2012, at 4:18 PM, Andy Fingerhut wrote: > Yep, and there is a patch ready to go in JIRA: > > http://dev.clojure.org/jira/browse/CLJ-902 > > Andy > > On Feb 20, 2012, at 3:17 PM, Frank Siebenlist wrote: > >> When I request

Re: bug in clojure.repl/doc to print namespace docs (?)

2012-02-20 Thread Andy Fingerhut
Yep, and there is a patch ready to go in JIRA: http://dev.clojure.org/jira/browse/CLJ-902 Andy On Feb 20, 2012, at 3:17 PM, Frank Siebenlist wrote: > When I request the doc for a namespace, an exception gets thrown (clojure > 1.3): > > >user=> (doc clojure.core) >ClassNotFoundExcepti

Re: ClojureScript One in Eclipse

2012-02-20 Thread turcio
I created a run configuration where I added /src/one/sample/repl.clj to 'Evaluate Clojure source file(s)' list. The namespaces are loaded every time now. The development and production tabs produce exception at first attempt. On the second attempt everything works as expected except the JavaScript

bug in clojure.repl/doc to print namespace docs (?)

2012-02-20 Thread Frank Siebenlist
When I request the doc for a namespace, an exception gets thrown (clojure 1.3): user=> (doc clojure.core) ClassNotFoundException clojure.core java.net.URLClassLoader$1.run (URLClassLoader.java:202) I was looking at the source code, and noticed that in the (cond... first the symbol re

Re: Clojure 1.3.0 updated cheatsheet, and one with links to clojuredocs.org

2012-02-20 Thread Andy Fingerhut
This will likely go live on clojure.org/cheatsheet in a few days, but I want to give it a little longer for folks to have a chance to look it over and submit comments and corrections. Clojure 1.3.0 cheat sheet, sheet version 1.2 (clojure.org/cheatsheet is sheet version 1.0 at the moment), with

Re: ClojureScript One in Eclipse

2012-02-20 Thread turcio
On Feb 20, 11:05 am, Chas Emerick wrote: > Yes, I just cloned and started ClojureScript One using ccw.  I was able to > get the dev server up and running, and click around in all the tabs without > any exceptions. > > You didn't say whether you did this or not, but in addition to the > director

Re: Lack in the documentation

2012-02-20 Thread Sean Corfield
On Mon, Feb 20, 2012 at 1:48 AM, Sergey Didenko wrote: > May be what we really need is a meta site or article on clojure.org or > promotion of other meta site like > http://stackoverflow.com/questions/tagged/clojure, with a lot of > community rated links to existing resources? Folks could contrib

objects with metadata inside eval -- bug?

2012-02-20 Thread Daniel Janus
Hello, In Clojure 1.3 this works: (eval `(let [f# ~(fn [x] (+ x 1))] f#)) This does not, failing with an ExceptionInInitializerError: (eval `(let [f# ~(with-meta #(+ % 1) {:foo :bar})] f#)) Both work in Clojure 1.2.1. Have I hit a regression bug? If not, what is the rationale of this not wo

Re: ClojureScript One in Eclipse

2012-02-20 Thread Chas Emerick
Yes, I just cloned and started ClojureScript One using ccw. I was able to get the dev server up and running, and click around in all the tabs without any exceptions. You didn't say whether you did this or not, but in addition to the directories specified in :extra-classpath-dirs, you need to a

Re: Lack in the documentation

2012-02-20 Thread Sergey Didenko
It looks like our community already has a lot of articles, tutorials, gists, but they are just not very reachable to beginners. May be what we really need is a meta site or article on clojure.org or promotion of other meta site like http://stackoverflow.com/questions/tagged/clojure, with a lot of