On 01.01.2010, at 03:58, Phil Hagelberg wrote:
> I welcome discussion about this proposal. Do you think it's
> necessary? Are
> there any functions we should leave out? Any others we should
> promote from
> contrib?
I am very much in favour of a clojure.io library. It's difficult to do
much
There you go: http://github.com/purcell/redis-memo
I doubt the memoize functions provided therein will be directly useful to you,
but you may find a few lines of helpful code there. Best of luck with your
experiment.
-Steve
On 31 Dec 2009, at 16:20, Gabi wrote:
> Yes. I think it is of much i
Hi,
On Jan 1, 3:58 am, Phil Hagelberg wrote:
> I've been looking over our use of contrib in our large-ish project
> at work. About 90% of the invocations of contrib functions are
> I/O-related.
evil mutable little bastards, these files ;-)
> I wonder if it would be a good idea to include a clo
FWIW I have never touched ELPA but got a setup with SLIME from CVS
plus SBCL and Clojure. A rudimentary description can be found at
http://www.skamphausen.de/cgi-bin/ska/My_Clojure_Setup
The only part that feels tricky is compiling swank for which I needed
a Maven setup, IIRC.
Regards,
Stefan
-
Jackrabbit is heavy. It might be powerful but I am sure it is much
slower than Redis or MongoDB.
On Dec 31 2009, 6:59 pm, jem wrote:
> Something else to look at might be the Apache Jackrabbit project
> athttp://jackrabbit.apache.org/.
>
> I've been looking at tools along these lines as well, and
Everything looks the same if you use a loose enough equality function
I guess.
Using a loose enough equality function, you can argue that Clojure is
just Lisp running on top of a mutable, Object Oriented framework (the
JVM). Immutable data structures and controlled changes of immutable
values is n
Paul Graham might be correct that main stream languages will
incorporate features that Lisp had many years ago but the result won't
be Lisp.
--
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
and FWIW I got the whole thing going without ELPA by using the
instructions here:
http://learnclojure.blogspot.com/2009/11/installing-clojure-on-ubuntu-910-karmic.html
but on OSX.
On 1 Jan 2010, at 11:30, Stefan Kamphausen wrote:
> FWIW I have never touched ELPA but got a setup with SLIME fro
On 01.01.2010, at 12:30, Stefan Kamphausen wrote:
> FWIW I have never touched ELPA but got a setup with SLIME from CVS
> plus SBCL and Clojure. A rudimentary description can be found at
> http://www.skamphausen.de/cgi-bin/ska/My_Clojure_Setup
>
> The only part that feels tricky is compiling swank
Phil,
Overall I think this is a good idea, but I get the feeling duck-
streams isn't quite ready, at least not today. However, this isn't to
say that it couldn't be ready if we worked hard on it over the next
few months.
Here are some things to look into off the top of my head
1. I'd recommend
Hi,
On Jan 1, 4:35 pm, Konrad Hinsen wrote:
> On 01.01.2010, at 12:30, Stefan Kamphausen wrote:
> > The only part that feels tricky is compiling swank for which I needed
> > a Maven setup, IIRC.
>
> I just run swank from source code, uncompiled. No Maven, no worry :-)
I had some errors before co
I would like to add Ada exception management. I don't know if there were
previous work on the field. Any info? I worked with Algol, but I don't
remember if something like exceptions was present those days. Any early Lisp
exception management?
And namespaces. The first Eiffel had no management of n
On 01.01.2010, at 17:29, Stefan Kamphausen wrote:
> I had some errors before compiling and putting the resulting JAR on
> the CP. But I'm not much of a Java-hero. What is your classpath? I
> have swank-clojure/target/swank-clojure-1.0-SNAPSHOT.jar on it.
I always work with the latest Clojure (
Stefan Kamphausen writes:
> you may want to read the thread
> http://groups.google.com/group/clojure/browse_frm/thread/3e5f416e3f2a1884/337057edae5dcdc3
I had read that thread /twice/ before, as well as the thread on the
SLIME mailing list, but I had neglected to try disabling
autodoc-mode. This
On Fri, 1 Jan 2010 13:45:43 -0300
Angel Java Lopez wrote:
> I would like to add Ada exception management. I don't know if there were
> previous work on the field. Any info? I worked with Algol, but I don't
> remember if something like exceptions was present those days. Any early Lisp
> exception
"Steven E. Harris" writes:
> This morning, doing so makes things work much better.
Still I see this in the *inferior-lisp* buffer when starting slime:
,
| (require 'swank.swank)
|
| (swank.swank/ignore-protocol-version "2009-12-23")
|
| (swank.swank/start-server "c:/DOCUME~1/seh/LOCALS~1/
"Steven E. Harris" writes:
> Rob Wolfe writes:
>
>> I did it like this (I assume that clojure-mode.el has been installed):
>
> Thanks, Rob. I followed your instructions after not being able to get
> Clojure to cooperate with my normal Swank/SLIME installation, and it
> works, but only to a point
Happy New Year to you, Alex.
I reproduced the problem as follows:
user=> (loop [x (byte 0) count 0]
(if (< count 10) (recur 0 (inc count
java.lang.RuntimeException: java.lang.IllegalArgumentException: recur
arg for primitive local: x must be matching primitive (NO_SOURCE_FILE:
57)
user=>
I
On Fri, Jan 01, 2010 at 12:31:16PM -0500, Mike Meyer wrote:
>On Fri, 1 Jan 2010 13:45:43 -0300
>Angel Java Lopez wrote:
>
>> I would like to add Ada exception management. I don't know if there were
>> previous work on the field. Any info? I worked with Algol, but I don't
>> remember if something l
Rob Wolfe writes:
> So how do you exactly start SLIME for Clojure?
I've tried both `C-u - M-x slime RET clojure' and `run-clojure', which
both amount to the same thing eventually
> These settings:
[...]
> should cause automatic start of *inferior-lisp* and *slime-repl clojure*
> after typing
On Dec 31 2009, 9:58 pm, Phil Hagelberg wrote:
> I wonder if it would be a good idea to include a clojure.io
> namespace in Clojure itself. I've mentioned the idea a few times on IRC,
> and people seemed to be very much in favour.
I've considered this too, but I know Rich Hickey has plans for a
d
"Steven E. Harris" writes:
> This is the only content in the *slime-events* buffer while I'm waiting
> for the connection to complete:
>
> ,[ *slime-events* buffer ]
> | (:emacs-rex
> | (swank:connection-info)
> | "COMMON-LISP-USER" t 1)
> `
I also confirmed that `slime-set-connection-
I should have brought this up before 1.1 was released, but I'm
bothered by the change of clojure.core/import from a function to a
macro.
If I'm creating a namespace dynamically, I can't evaluate the name of
the class I want to pass to import. The only way is to use
undocumented Java functions, li
I've just recently been poking around these NoSQLs investigating their
features, so...
Redis has limited data structures - flat un-nested lists and sets, and
plain strings. It doesn't have sets exactly - just keys and values.
Nothing nested at all, unless you serialize to strings. No indexes,
alth
Oops, typo - I meant, doesn't have hashes.
On Jan 1, 9:07 pm, Julian Morrison wrote:
> It doesn't have sets exactly - just keys and values.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.co
Sean Devlin writes:
> 1. I'd recommend adding support for general unix file utilities.
> I've written some of them myself, and you can review/borrow/steal code
> from here:
>
> http://github.com/francoisdevlin/devlinsf-clojure-utils/blob/master/src/lib/sfd/file_utils.clj
These are all one-line
Rob Wolfe writes:
> Stefan Tilkov writes:
>
>> Two quick Emacs/Clojure questions I can't seem to find the answer to:
>>
>> - In his screencasts, Sean Devlin moves the mouse over an item in his
>> REPL history and it becomes highlighted (and he can paste it to the
>> current prompt with one click
I want to create a new instance of a deftype from inside one of its
methods. A basic example would be
(defprotocol Foo
(foo [x]))
(deftype Bar
[i]
Foo
(foo [] (Bar (inc i
(foo (Bar 0))
This fails with an exception:
java.lang.ClassCastException: java.lang.Class cannot be cast
I think something more abstract would be good. A function or macro
where you pass it an "IO Spec" and it takes care of all the class
stuff.
(io/read [:bytes :from :as p]
(do-stuff-with-a-byte p))
(io/read [:lines :from :as p]
(do-stuff-with-a-string p))
(io/read [:lines :from ]) ;no :as b
Hello,
In order to get a better understanding of how some things happen in Clojure,
I'd like to step through Clojure code (and I mean the Java code used to
implement Clojure). Basically, just debug a REPL, set breakpoints etc.
Since there's a free version of IDEA, I downloaded it and successfully
On Fri, 01 Jan 2010 17:13:01 -0500, Konrad Hinsen
wrote:
> I want to create a new instance of a deftype from inside one of its
> methods.
I ended-up using extend-type for this case.
Hugo
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post t
On Dec 13, 1:24 am, Rich Hickey wrote:
> fnil seems to me to have greater utility than patching all functions
> that apply functions with default-supplying arguments.
Hi Rich,
To further comment on fnil, after having experimented with it a bit
now, I've come to slightly prefer specifying the 'd
I am interested in the idea: Completely stateless set of Clojure nodes
(on many machines), operating on a central state stored in some
datastore.
If transactions could be managed somehow, I think it would be very
compelling model for many applications.
On Jan 1, 11:07 pm, Julian Morrison wrote:
>
What is the preferred way getting a vector back from sequence, after a
sequence producing operation (like sort)? Does using (vec..) on a
sequence that was a vector is costly?
One (bad?) possibility is creating a new vector out of sequence:
(vec (sort [1 2 3 4 5 6]))
I am asking because I nee
Kevin Downey writes:
> (io/read [:lines :from :as p]
>(do-stuff-with-a-string p))
>
> (io/read [:lines :from ]) ;no :as binding or body, results
> in a lazy-seq of lines
And it's important to specify whether "p" in the former or the head item
in the sequence in the latter remain valid after
"Steven E. Harris" writes:
> My next step will be to instrument the Swank side to see when
> `connection-info' is being called.
I found the problem: swank.util.sys/get-pid.
It looks like the JMX call to get the PID hangs. If I visit the
*inferior-lisp* buffer's REPL and evaluate the following f
My 2c.
In any clojure.io library, make sure none of the warts that are planned to
be fixed in NIO2 are codified.
JDK7 includes work on Path, large directory traversal, event notifications
etc.
See http://java.sun.com/developer/technicalArticles/javase/nio/
Alexander
2010/1/1 Phil Hagelberg
>
On Jan 1, 4:34 pm, Phil Hagelberg wrote:
> Sean Devlin writes:
> > 1. I'd recommend adding support for general unix file utilities.
> > I've written some of them myself, and you can review/borrow/steal code
> > from here:
>
> >http://github.com/francoisdevlin/devlinsf-clojure-utils/blob/master/s
You vec approach is the current solution. I'm 95% sure you'll have to
pay the O(n) once, but you'll be good to go after that.
Sean
On Jan 1, 7:19 pm, Gabi wrote:
> What is the preferred way getting a vector back from sequence, after a
> sequence producing operation (like sort)? Does using (vec.
Tim,
I don't think your version of the signature supports variadic defaults
well. Also, I'd (initially) implement fnil differently that Rich.
Here's my fnil-2 that I *suspect* has the intended behavior
(defn fnil-2
[f & defaults]
(fn[& args]
(let [used-args (map (fn [default-value value]
"Steven E. Harris" writes:
> Is there a separate mailing list to which I should report this problem?
There's http://groups.google.com/group/swank-clojure, though for this
particular issue you can just continue in this thread.
But I'm not quite following on the exact problem and specific repro
c
Stuart Sierra writes:
> On Dec 31 2009, 9:58 pm, Phil Hagelberg wrote:
>> I wonder if it would be a good idea to include a clojure.io
>> namespace in Clojure itself. I've mentioned the idea a few times on IRC,
>> and people seemed to be very much in favour.
>
> I've considered this too, but I kn
On Fri, Jan 1, 2010 at 7:19 PM, Gabi wrote:
>
> I am asking because I need random access (nth ..) to huge sorted
> vectors - which are now actually huge sequences after the sort, with
> horrible O(n) random access time
Clojure's 'sort' actually copies your input collection into an
array, and then
I can attest from personal experience that many of the folks who were
working on Ada were quite familiar with everything going on with Lisp
as well as Smalltalk and other language trends of the day (this was
around 1980).
While many of the ideas in Ada aren't so popular now (and weren't even
while
Howard Lewis Ship writes:
> Is this available via a Maven repo yet and, if so, what version of
> clojure-contrib is compatible (and stable?).
I just added the 1.1.x branch to build.clojure.org, so you can use
http://build.clojure.org/snapshots to get it. It looks like contrib has
finally had its
Saul writes:
> Many thanks. This works for me and I find it useful. However, in a
> perfect world:
>
> lein compile
>
> would also compile my java source code or call compile-java before
> performing a compile. In fact in this perfect world:
>
> lein swank
>
> would download all dependencies, com
Saul writes:
> Hello,
> I'm moving a small project over from maven built scala to leiningen
> built clojure. One of the features that was available with the maven
> scala plugin was the ability to run scala scripts:
>
> mvn scala:script -DscriptFile=scripts/build_db.scala
>
> This is useful for
Perry Trolard writes:
> Currently for the Leiningen uberjar task, all dev-dependencies are
> included in the resulting standalone jar. In a comment in uberjar.clj,
> there's a note that excluding these is on the todo list. I wonder if
> there are any ideas on how best to do it?
One simple way wo
48 matches
Mail list logo