Hi All,
I've been able to figure out many Java things based on Sun's online
documentation, and this is undoubtedly due to my not being a Java
programmer, but for the life of me I can't figure out based on Java examples
how to get my Clojure JApplets to respond to keyboard input. Does anyone
have
It is also possible to use the clj-todo module for annotating your
code with todo items.
http://github.com/tgk/clj-todo
http://clojars.org/clj-todo
Thomas
On Jun 13, 4:13 pm, j-g-faustus wrote:
> Hi,
>
> I get an exception whenever I put a colon in a multiline comment:
>
> (comment
> TODO: x
On Sun, Jun 13, 2010 at 23:26, Phil Hagelberg wrote:
> There are some bugs in package.el that I have fixed in my personal fork but
> have not yet made it upstream yet. Try clearing out .emacs.d/elpa and trying
> again with the version at http://GitHub.com/technomancy/package.el and it
> should wor
You can also use a multiline string in a comment...
(comment "
To do: x y z
More to do: a b c
")
-Rgds, Adrian.
--
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
Note that posts from ne
I looked through some of my Project Euler solutions and found this
version. It is essentially the same as Uncle Bob's, but to my eye it
is a bit easier to read.
(defn least-nontrivial-divisor [n];; integer n > 1
(loop [k 2]
(cond
(zero? (rem n k)) k ;; k divides n,
> I think you're missing something :)
>
> Clout is a very low level library. It matches routes using a
> Rails-like routing syntax, but it doesn't do anything more than that.
> You can match routes like "/book/:id", but you can also match routes
> like "/:controller/:action/:id".
>
> user=> (use '
There are some bugs in package.el that I have fixed in my personal fork but
have not yet made it upstream yet. Try clearing out .emacs.d/elpa and trying
again with the version at http://GitHub.com/technomancy/package.el and it
should work although you will get byte compilation warnings.
Sorry for
Hi,
Am 13.06.2010 um 21:50 schrieb Moritz Ulrich:
> Huh? I don't see why I wire server at macro expansion time. You can
> pass a variable and it'll be integrated in the emitted code.
>
> (with-server (concat "http://"; "localhost" ":5984")
> (database-list))
>
> will expand to
>
> (binding [d
Hi Clojurians,
This weekend, while off the grid, I discovered that mvn clojure:swank
and M-x slime-connect no longer talk to eachother.
When I got back, I looked in M-x package-list-packages to see that
there had been updates to clojure-mode (1.7.2), clojure-test-mode
(1.4), slime (20100404). (sw
Sorry for the second mail - I've just improved the macro so server is
only evaluated once (It's side-effect save now)
On Sun, Jun 13, 2010 at 9:50 PM, Moritz Ulrich
wrote:
> Huh? I don't see why I wire server at macro expansion time. You can
> pass a variable and it'll be integrated in the emitte
Huh? I don't see why I wire server at macro expansion time. You can
pass a variable and it'll be integrated in the emitted code.
(with-server (concat "http://"; "localhost" ":5984")
(database-list))
will expand to
(binding [database-list (partial database-list (concat "http://";
"localhost" ":
Hi,
On 13 Jun., 19:55, Moritz Ulrich wrote:
> This was in the original branch of the clojure-couchdb-project. I
> forked it and rewrote all functions to take an argument instead of
> using *server*.
>
> This annoyed me, because it was complicated to use multiple servers
> with one codebase (bin
Hi,
Am 13.06.2010 um 19:50 schrieb Heinz N. Gies:
> comment just is a function that says 'don't evaluate the stuff in here, it
> still needs to be correct clojure code you can either use:
>
> ; TODO: x y z
> or
> #_(Todo: x y z)
Note that after #_ it must also be valid code.
Sincerely
Meike
This was in the original branch of the clojure-couchdb-project. I
forked it and rewrote all functions to take an argument instead of
using *server*.
This annoyed me, because it was complicated to use multiple servers
with one codebase (binding is annoying in multi-thread-applications).
On Sun, Ju
comment just is a function that says 'don't evaluate the stuff in here, it
still needs to be correct clojure code you can either use:
; TODO: x y z
or
#_(Todo: x y z)
On Jun 13, 2010, at 16:13 , j-g-faustus wrote:
> Hi,
>
> I get an exception whenever I put a colon in a multiline comment:
>
Hi,
I get an exception whenever I put a colon in a multiline comment:
(comment
TODO: x y z
)
=> #
Is this a Clojure bug? Or related to Enclojure on NetBeans? Or some
sort of hidden feature in comments?
Regards
jf
--
You received this message because you are subscribed to the Google
Groups
Hi,
Am 13.06.2010 um 18:31 schrieb Moritz Ulrich:
> Thanks for your answers.
Wouldn't it be more appropriate to have a *server* Var, which is allowed to be
rebound by the user? The function can still use optional arguments to configure
the server directly in a call.
(declare *server*)
(defn
On 13 June 2010 14:20, Matt wrote:
> Yesterday morning, I took one more look at Leiningen for Conjure.
> After a few false starts and build hacking, I had exactly the same
> idea for a Conjure plugin for Leiningen. I've started breaking Conjure
> into two jars, conjure.jar which will be all the ba
I don't think that Structure and Interpretion of Computer Programs is
a good first-book if you want to start lisp-programming (Especially
Clojure). It's very detailed and gives much insights, but Clojure is
way more practical than this book. If you want to start programming
Clojure, I'd recommend "
Hello,
I would like to re-bind some functions from a namespace with a macro.
The list of functions to rebind should be determined at
macro-expansion-time, the functions to rebind are marked with a
special metadata-entry.
I implemented it in the this gist: http://gist.github.com/436786
Can someon
If your are new to programming I recommend reading at least the first
three chapters of The Structure and Interpretation of Computer
Programs. It's available online.
David
On Friday, June 11, 2010, Jared wrote:
> Hi everyone,
>
> I'm 100% new to LISP, 95% new to Java, and 90% new to programming
Yup, I would like to know why you chose clutch over clojure-couchdb
too. (I don't want to insinuate that clojure-couchdb is the better
lib)
On Thu, Jun 10, 2010 at 9:39 PM, Jim Blomo wrote:
> On Thu, Jun 10, 2010 at 4:32 AM, Chas Emerick wrote:
>> - Clutch to interface to CouchDB (which we abuse
Probably, but I'm at a loss to figure out exactly what it might be. I
cleaned emacs off, along with the .emacs.d directory, reinstalled, and
the problem reappeared. I'm not touching it right now since, as I
mentioned, I managed too bootstrap using aquamacs.
On Jun 13, 12:42 am, Thomas Kjeldahl N
Hi,
Am 12.06.2010 um 06:08 schrieb zahardzhan:
> When i eval code from Google App Engine SDK clojure throws very
> strange class cast exception. I put this code into Java class, then
> eval this class from clojure - and there is no problem.
>
> Is this Clojure bug?
No. Try (LocalServiceTestHel
> I was in much the same position as you a few months ago. Refactoring
> Compojure to use the Ring libraries took a lot of work, so I have an
> idea of the amount of effort involved :)
I've added the latest version of Ring to Conjure, but I haven't
updated the cookies or parameters yet. Otherwise,
Hi everyone,
I'm 100% new to LISP, 95% new to Java, and 90% new to programming in
general. Where and how would you recommend learning Clojure? I'm
planning on buying Programming Clojure, but until then what would you
suggest?
I got Netbeans working with Clojure and the default template is this:
When i eval code from Google App Engine SDK clojure throws very
strange class cast exception. I put this code into Java class, then
eval this class from clojure - and there is no problem.
Is this Clojure bug?
Source example:
http://goo.gl/cjjt
--
You received this message because you are subsc
I'm a clojure newbie trying to understand when to use atoms versus refs.
In clojure-http.resourcefully, if you use the with-cookies macro stores the
cookies in a thread local ref. Why a ref and not an atom? My impression is
that refs are for when you need to coordinate changes to more than one
v
On Jun 8, 1:34 pm, Krukow wrote:
> I would like to hear the groups opinion before (and if) I release this
> to the general public.
>
> http://github.com/krukow/clj-ds
I really like this approach.
Not sure if it's any use, but I created a data structure library of my
own in Java which may have so
There is an old patch that was contributed to the list:
http://groups.google.com/group/clojure/browse_thread/thread/aa22a709501a64ac
I'm also interested in this, it would be a nice extension point have
without having to patch clojure.core.
On Jun 10, 6:58 pm, James Reeves wrote:
> On 10 June
On Thu, Jun 10, 2010 at 4:32 AM, Chas Emerick wrote:
> - Clutch to interface to CouchDB (which we abuse as a message queue, among
> other things)
Can you comment on the choice of Clutch over clojure-couchdb? I've
found clojure-couchdb to be reliable and straightforward. the-kenny's
(Moritz Ulri
Thanks for comments.
In fact, I have some other thing to recommend.
I think that there should be some kind of clojure "standard library".
I don't see how to write any code if I have to have 2 different
versions depending on underlying virtual machine, JVM or CLR. There
are 3 python implementations
Thanks for comments.
In fact, I have some other thing to recommend.
I think that there should be some kind of clojure "standard library". I
don't see how to write any code if I have to have 2 different versions
depending on underlying virtual machine, JVM or CLR. There are 3 python
implementations
Thank you, but could you provide me a little code snippet which will
iterate through collection and assoc "children" key for each row.
On 13 июн, 16:35, Andrzej wrote:
> On Sun, Jun 13, 2010 at 7:35 PM, Oleg wrote:
>
> > Currently i'm just calling function, but there is a danger of
> > StackOver
On Sun, Jun 13, 2010 at 7:35 PM, Oleg wrote:
>
> Currently i'm just calling function, but there is a danger of
> StackOverflow. I can't use recur, because it's not last statement. As
> i can understand recur is good to build long sequences, but in my case
> i'm building hierarchy.
Two potential s
OK, I'm done for this weekend. Here's what I got:
* the binary reader
* the vm ("interpreted" for now - would like to make a "compiled" vm.
still have to think about it, I guess macros would help?)
* a graphical visualizer
* a controller framework to solve the actual problems
The code is surprisi
So, I'm done for this weekend. What I have (and put on the blog)
* a binary parser
* the vm (interpreted, maybe I can turn it into a compiled vm in the
coming week? any ideas? macros? have to think about it)
* a graphical visualizer
* a controller "framework", allows you to solve the actual proble
Hello Guys!
Here is the task:
Assume that we have function called `fetch-from-source`, which used to
fetch vector of maps from the data source. I want to make iteration on
every fetched row (element of vector) and ask `fetch-from-source`
again to add 'children' key to that row. And so on, until g
Weird - I installed the Cocoa build last night, and got everything set
up via elpa including swank-clojure. Some local problem?
Regards,
Thomas Kjeldahl Nilsson
On Sun, Jun 13, 2010 at 2:02 AM, Rob Lachlan wrote:
> I agree that the cocoa builds are the nicest. But there is one
> problem that I
39 matches
Mail list logo