On Jun 27, 6:32 pm, "J. McConnell" wrote:
> On Jun 27, 2009, at 12:28 PM, Four of Seventeen
> wrote:
> > Regardless, it's a security problem that someone other than Rich was
> > able to bring clojure.org down for tens of minutes last night at the
>
On Jun 27, 5:53 am, Meikel Brandmeyer wrote:
> Hi,
>
> Am 26.06.2009 um 20:41 schrieb Four of Seventeen:
>
> > (defn- foo [args] body)
>
> > (defmacro bar [args] body)
> > `(foo ~some-args (fn [~more-args] ~...@body)))
>
> > and it complained that
On Jun 27, 1:53 am, CuppoJava wrote:
> It was a server maintenance for wikispaces.org which is the hosting
> site for the Clojure website.
But the Clojure website is clojure.org. NOT clojure.wikispaces.org or
something. It's clearly standing alone, or at least it's supposed to
be. Server mainten
On Jun 26, 11:14 pm, CuppoJava wrote:
> Are you sure? It resembles a regular site maintenance to me...
It resembles a "regular site maintenance" for some website other than
clojure.org.
Not that it really matters why it is/was down. The API docs going down
for any amount of time longer than a m
I just went to check the API docs about something and they're gone! In
fact, everything at clojure.org has been trashed. The site has
apparently been vandalized.
The vandals appear to have replaced every page on the site with some
kind of a maintenance page copied from some unrelated site. Probab
This is odd. Doing a clean & build made this go away. After I did
that, load-file also worked, and using the first workaround (let [x
foo]) at that.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To p
I had code something like this:
(defn- foo [args] body)
(defmacro bar [args] body)
`(foo ~some-args (fn [~more-args] ~...@body)))
and it complained that foo was not public when I invoked bar from
outside its home namespace.
OK, easy workaround, I thought:
(defmacro bar [args] body)
(let [
Got another one.
(if-not (zero? diskqueue-count (if value
(trait-dir trait)
(trait-undecided-dir trait)))
#
This should be saying wrong number of args passed to core$zero? rather
than core$fn. I don't know why it isn't.
(For tho
On Jun 25, 10:09 pm, Four of Seventeen wrote:
> Meanwhile I guess I'll fall back on the old, tedious debugging method
> for cases like this: break everything up into separate modules and try
> to compile each one until I find the one with the error, and then
> whittle that on
On Jun 25, 5:23 pm, "Stephen C. Gilardi" wrote:
> That error appears to be coming from a Java-level class loader (see
> the ultimate "caused by" in the stack trace). If you search for it
> using Google, you'll see it's appeared in contexts other than Clojure.
> I read it as "I can't complet
Got this doing a load-file:
#
Full stack trace:
java.lang.ClassFormatError: Unknown constant tag 116 in class file com/
foo/bar$eval__10559 (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:4543)
at clojure.core$eval__3990.invoke(core.clj:1728)
at clojure.ma
On Jun 25, 12:18 pm, James Reeves wrote:
> Some languages go a step further, and highlight syntax errors directly
> with some ASCII art:
>
> Unmatched delimiter:
> (let [x map inc nums)]
> ^
The javac compiler, for one.
> Though that seems quite tricky to do within
On Jun 25, 12:14 pm, cody wrote:
> On Jun 25, 8:39 am, Berlin Brown wrote:
>
> > This is my main point: One thing that Clojure is NOT. It is not
> > limited by the limitations of the Java programming language.
>
> It may not be limited by the java _language_, but it is limited by the
> java _pl
On Jun 25, 8:31 am, BerlinBrown wrote:
> I have a clojure application where each file has its own namespace (ns
> blah)...I generally let the files sit in a classpath directory, so I
> am assuming the clojure code is loaded at startup time.
>
> What are the differences between clojure code which
On Jun 25, 8:36 am, Emeka wrote:
> From Steve's post
> Symbol objects are subject to garbage collection, but the "namespace" and
> "name" strings that identify them are not. Those strings are "interned" via
> the "intern" method on java.lang.String.
Recent JVMs do collect unused interned strings
On Jun 24, 12:22 pm, "Stephen C. Gilardi" wrote:
> On Jun 24, 2009, at 11:31 AM, samppi wrote:
>
> > Are keywords and symbols garbage-collected? If I generated a lot of
> > keywords or symbols, put them into a collection, and then removed
> > them, would they disappear and free up space? I'm wond
On Jun 24, 12:28 pm, Four of Seventeen wrote:
> user=> (defmacro nanotime [& body] `(let [start (System/nanotime)]
> ~...@body (- (System/nanotime) start)))
> #'user/nanotime
user=> (defmacro nanotime [& body] `(let [start# (System/nanotime)]
~...@body (- (Syste
On Jun 24, 2:43 am, Christophe Grand wrote:
> On Wed, Jun 24, 2009 at 7:53 AM, Richard Newman wrote:
>
> > > Even with the optimization, sort somehow beats top for speed. It looks
> > > like top is best used to avoid major memory consumption for long seqs;
> > > if you have the memory and need t
On Jun 23, 10:46 pm, Bradbev wrote:
> A further optimization would be to keep track of the lowest value in
> your "keep" set. A simple compare against that value will eliminate
> many of the add/removes from the keep set.
(defn top [n comptr coll]
(let [m (reduce #(assoc %1 %2 true) (sorted-m
On Jun 23, 4:25 am, Jules wrote:
> Let N be the total number of elements in your collection (e.g.
> 1000,000), and n the number of elements that you want to take out of
> this collection (e.g 10).
>
> By sorting the collection of N elements you spend N log N time. By
> repeatedly adding an to the
On Jun 23, 1:09 pm, CuppoJava wrote:
> Hi everyone,
> I remember reading a few old posts that mentioned adding some
> functions to core, and I was wondering what was the result of that
> discussion. The functions I'm interested in are:
>
> (iterate inc 0)
> (map vector ...)
These functions seem
On Jun 22, 6:46 pm, "beatle...@gmail.com" wrote:
> (take 10 (sort (for [x (range 100)] (rand)
>
> Now the problem is the memory usage, as it does not merely uses memory
> space for 10 items, but it keeps a reference to the entire sequence.
> If I leave out the sort its all ok, and done la
On Jun 22, 8:24 pm, arasoft wrote:
> I just wrote my first practice macro, first without and then with
> syntax quoting:
>
> (defmacro take-until1 [function sq]
> (list 'take-while (list 'fn (vector 'x) (list 'not (list function
> 'x))) sq))
>
> (defmacro take-until2 [function sq]
> `(take-wh
On Jun 19, 10:12 am, BerlinBrown wrote:
> 574 instances of class clojure.lang.DynamicClassLoader
That is curious. Ordinarily one only needs one instance of any
particular classloader, not 574 of them. :) Not that I know much about
clojure's internals.
--~--~-~--~~~---
On Jun 18, 1:25 pm, Adam Blinkinsop wrote:
> I'm looking through the primitives that Clojure has for STM with refs, and
> it seems nice and minimal, except for these two functions, which I can't
> tease apart. From the documentation,
>
> *(ref-set ref val)*
>
> Must be called in a transaction.
25 matches
Mail list logo