Yes, it was what i think seeing the sources...
for the compiler part, its a good decision since lisps are the best tool for
it.. but i dont think its a priority
and even dont need to be.. sure there more importants things to be done...
for the persistent data.. well all this "laziness" and dinami
Fabio,
Yes, there is a plan to implement Clojure in Clojure and protocols, et
al., are part of this.
This biggest part from a performance point of view is not the compiler
itself, but rather Clojure's persistent data structures (maps,
vectors, etc.).
You can find more of the discussion around th
Perhaps you misunderstand protocols. Protocols don't support a
hierarchy, thus you don't extend them; you have types implement/reify
them. Any "extending" you do will be against a type.
Further, a protocol is a set of abstract function definitions; it is
not a type, as such the notion of "functi
Okay, so you can actually print password-masked characters. But I
can't figure out how to actually do anything I couldn't already do
with my command-line before JLine, except I can't seem to exit the
Clojure REPL with CTRL+c.
I'm curious because I have a number of Java-ish command line
utilities,
Hi,
I'm developing visualization component for some application. There is
a protocol to be extended to existing application problem domain
classes to specify how to visualize each type. The user can load
predefined implementations of the protocol or create custom
visualizations in REPL.
The probl
Okay, I am a big enough programmer to admit when I have made a rookie
mistake.
My first version of Blah.clj contained a function. Of course, this
does not output anything.
Later, I apparently was editing a different file and running the one
with only the function defined. So no matter what I ch
Okay, I guess I wasn't specific.
I tried with something simple, like:
(println "alsjflsjlajlsdjas")
Since I got nothing at the output, I also tried with invalid Clojure,
like:
aslfjasljf This is invalid clojure.
In both cases, there was no output.
In the case where Blah.clj did not exist, I got
On 05/15/2010 02:53 AM, Patrick Wright wrote:
> For more details about Microsoft's work on STM, and the many, many
> problems they had to address, see Joe Duffy's blog on the topic
> http://www.bluebytesoftware.com/blog/2010/01/03/ABriefRetrospectiveOnTransactionalMemory.aspx
>
I have just about
Any reason why you're using -server flag?
Sort of assuming you've checked that the jars you reference are where
you say they are
(println "Howdy I'm working")
would be reasonable file contents.
the batch file might be swallowing your output.
--
You received this message because you are subsc
I'm working in a simple single-thread console-based rpg game in
clojure (a port from my own scala version)
and didn't want to use any concurrency structure because the game is
single threaded.
I was thinking about a macro like
(defmacro set!! [s val]
`(def ~s ~val))
so I can set my game state w
> I'm thinking the problem - since the command line appears to be
> correct, and starts a repl if no script is provided - is that Blah.clj
> just defines functions, but doesn't invoke one of them. Without
> looking at the script, this is just a WAG, but I recall some
> discussion about this issue e
On Sat, 15 May 2010 22:13:17 +0200
Peter Schuller wrote:
> > Which leads to the question: what's in Blah.clj? In particular,
> > there's nothing in clojure that automatically run things in the script
> > file; you have to explicitly invoke the main function at the end of
> > the script. If you don
> Which leads to the question: what's in Blah.clj? In particular,
> there's nothing in clojure that automatically run things in the script
> file; you have to explicitly invoke the main function at the end of
> the script. If you don't, then invoking it on the command line will
> just load it, and
On Sat, 15 May 2010 21:54:53 +0200
Peter Schuller wrote:
> > I am running the following command line:
> >
> > c:\apps\jdk1.6.0\bin\java.exe -server -cp "C:\apps\clojure-1.2.0\\lib
> > \clojure-1.2.0-master-SNAPSHOT.jar;C:\apps\clojure-1.2.0\\lib\clojure-
> > contrib-1.2.0-SNAPSHOT.jar" clojure.ma
You can use Weka (java).
On May 14, 10:56 pm, nathaniel wrote:
> I saw a post about this from June 2009 or thereabouts, but it did not
> get much follow-up. I'm curious about AI libraries for Clojure,
> partly since I imagine some Lisp AI code could be translated to
> Clojure fairly easily. I a
> I am running the following command line:
>
> c:\apps\jdk1.6.0\bin\java.exe -server -cp "C:\apps\clojure-1.2.0\\lib
> \clojure-1.2.0-master-SNAPSHOT.jar;C:\apps\clojure-1.2.0\\lib\clojure-
> contrib-1.2.0-SNAPSHOT.jar" clojure.main Blah.clj
>
> If Blah.clj does not exist, I get a FileNotFoundExcep
I am running the following command line:
c:\apps\jdk1.6.0\bin\java.exe -server -cp "C:\apps\clojure-1.2.0\\lib
\clojure-1.2.0-master-SNAPSHOT.jar;C:\apps\clojure-1.2.0\\lib\clojure-
contrib-1.2.0-SNAPSHOT.jar" clojure.main Blah.clj
If Blah.clj does not exist, I get a FileNotFoundException. Howev
Thanks for responses and links.
It looks like I can't comment on those threads without signing up as a
Clojure contributor (by postal mail, even) which is a bit more
commitment than I'd like right now, so I'll post my comments here
instead.
I disagree with Stuart Sierra in the "need" proposal tha
Hi All -
I have been pondering a webapp using Clojure and am a bit stuck.
Previously i have buit a few prototypes in GWT and have had good
success.
I have played around with compojure and scriptjure and am wondering
how to develop a more interactive app using these tools. Has anyone
had any succ
Well, I even don't know how to expand the condition creation. Is
anyone can help me providing example for this?
Calling my-macro like this would bind some values to a b and c (number
of arguments is vary) so when in use
(my-macro [ a b c]
(println a) (println b))
I would get
> "hello"
> "wo
(ns michael.ds.monitor
(:import [java.util.concurrent.locks ReentrantLock Condition ]))
(def locks (atom { :monitors {} :conds {} }))
(defn create-monitor[]
(ReentrantLock.))
(defn create-cond[m]
(.newCondition m))
(defmacro lock-monitor[ lck & body ]
`(let [z# ~
For more details about Microsoft's work on STM, and the many, many
problems they had to address, see Joe Duffy's blog on the topic
http://www.bluebytesoftware.com/blog/2010/01/03/ABriefRetrospectiveOnTransactionalMemory.aspx
--
You received this message because you are subscribed to the Google
Gr
Yeah, but I'm missing conditions (with ability to spawn multiple instances)
and the use wait and signal.
It would be nice to have:
(some where in code
(locking [my-lock c1 c2]
(wait c1)
bla bla bla. ...
(signal c2)))
(in other place
(locking [my-lock c1 c2]
(signal c1)
...
23 matches
Mail list logo