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
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
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
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://
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
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
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
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)
>
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
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
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
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
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
+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
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
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
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
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
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
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
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
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
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
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
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
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
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
27 matches
Mail list logo