sion. But, as you said,
> this is all speculation until someone writes some tests...
>
> --
> ! Lauri
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribe
jure.jar in public
> maven repository.
And a pom with groupId, artifactId and version, so the jar can be
refered from other poms.
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
s, and I am not sure whether or not it should be generally
recommended style (indecision ftw).
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure
trees [iterations depth]
> (let [sum #(+ (check-tree (make-tree % depth))
> (check-tree (make-tree (- %) depth)))]
>(reduce #(+ %1 %2) 0 (map sum (range 1 (inc iterations))
>
> (time (println "result:" (sum-trees 1 10)))
>
> However, ther
Ah, disregard that. I found the rules:
http://shootout.alioth.debian.org/u32q/benchmark.php?test=binarytrees&lang=all#about
On Fri, Dec 5, 2008 at 1:04 AM, Christian Vest Hansen
<[EMAIL PROTECTED]> wrote:
> Is it important that we build and deconstruct a complete tree in the
>
(NO_SOURCE_FILE:0)
user=> (defn xth [coll i]
(if (zero? i) (first coll) (recur (rest coll) (dec i
#'user/xth
user=> (xth (repeatedly (fn [] 0)) 1000)
0
I could be wrong, but I don't think 'nth' should blow the heap here.
--
Ve
supports
> it? For whatever reason, Akregator (KDE-based RSS feed aggregator) does
> not like that URL.
s/feed/http/ seems to do the trick, for some reason.
>
>
>
> Randall Schulz
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~--
On Sun, Dec 7, 2008 at 2:22 AM, Randall R Schulz <[EMAIL PROTECTED]> wrote:
>
> On Saturday 06 December 2008 17:11, Christian Vest Hansen wrote:
>> I played around with some code, trying to explore the memory problems
>> with 'filter' that is discussed in
g on OS X Leopard, and I've tried both the 1.5 and 1.6 JVMs.
> I don't normally pass any non-standard memory size arguments to the VM
> unless I expect I'll need it for something I'm doing.
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--
Thu, Dec 11, 2008 at 7:00 PM, Paul Mooser wrote:
>
> I think this might just be a JVM version issue. I can reproduce this
> issue with a 1.5 JVM, but I can't reproduce it with 1.6.
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~--
er=> (doall x)
>> (1 2)
>> user=> (doall x)
>> (1 2)
>> user=>
>>
>> user=> (def x (for [i (range 1 3)] (do (println i) i)))
>> #'user/x
>> user=> (dorun x)
>> 1
>> 2
>> nil
>> user=> (dorun x)
>>
ntrib/
>>>
>>> All new checkins will occur there.
>>>
>>
>> There's also a read-only list/feed that will broadcast commit messages
>> from both clojure and clojure-contrib:
>>
>> http://groups.google.com/group/clojure-commits
>>
>
the same line
regardless of how long the doc-string is.
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to cl
--
> Michael Wood
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@goog
ts have watchers that do exactly this? Depending on
>> how complex your use case, you might be able to get away with using
>> agents and 'await' for now.
>>
>> Another option, as long as you don't tell Rich, is that you could
>> abuse the validator functi
in tail position seems simpler than
> detecting that an arbitrary function call is) I fail to see what the
> problem is.
>
> Anyone cares to elaborate?
>
> Many Thanks
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~-
g with namespaces defined via Clojure code.
> 'import' is different in that it's only for dealing with .class files.
>
> --Chouser
Good material for the FAQ, no?
Or maybe just the docs. Regardless, this is a good explanation.
--
Venlig hilsen / Kind regards,
Christian Ve
nested "path" element.
>
> Total time: 4 seconds
>
>
> Could anyone please tell me what I need to do instead? Or, better
> yet, add a README to the clojure-contrib repository?
>
> Konrad.
>
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest
hen you apply reduce function of
> #(.) does it suspend #(....) closure capability.
>
> Emeka
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are su
cl (if (vector? (first fdecl))
(list fdecl)
fdecl)
On Fri, Dec 19, 2008 at 1:06 PM, Christian Vest Hansen
wrote:
> On Fri, Dec 19, 2008 at 12:46 PM, Michael Wood wrote:
>>
>> Where would it go when you have multiple parameter lists and
ut less clear in
> real-life code. I'd then rather write a small macro to evaluate the
> constant expression, but before doing so I'd like to know if I really
> have to.
>
> Konrad.
>
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-
ven? but do not use it?
>
> Ick. But perhaps a macro could make style less terrible to use?
>
> --Chouser
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you a
repared
> (format "update %s set %s where %s"
> (the-str table) template where)
> [values])))
>
> It only send one set of values to do-prepared because of the where
> clause that would have to change accordin
when it overlaps itself
> - announcing a win when the length of the snake reaches 10
> - automatically restarting the game after an overlap or a win
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest H
Hehe, "venlig hilsen" is danish for "kind regards" :)
On Sat, Jan 3, 2009 at 3:23 PM, Emeka wrote:
> Venlig hilsen and Timothy Prately
>
> Thanks so much.
>
> Emeka
>
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-
true
> user> (list (.hashCode [1 2]) (.hashCode '(1 2)))
> (994 -1919631597)
>
> Cheers, Jason
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
read the other day :p )
> --Steve
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojur
ve symbol: recur in this context).
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this gro
like class members in Java, can be
defined in any order and that the existence of the correct symbols
will be properly checked at compile time. Yet this assumption would be
wrong, no?
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~---
;ethel")
> (test-rebind)
>
> ricky loves lucy
> Logging str
> Logging str
> Logging str
> Logging str
> Logging str
> fred loves ethel
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
Yo
d-multiply [old-state times ms]
> (Thread/sleep ms)
> (* old-state times))
>
> (send-off my-agent sleep-and-multiply 2 1500)
> (send-off my-agent sleep-and-multiply 3 1000)
> (await my-agent)
> (println "my-agent =" @my-agent)
>
> --
> R. Mark Volkmann
&g
s
> ASeq.count() does, at the cost of the efficient vector counting
> demonstrated above.
>
> If you have comments or questions, don't hesitate or I'll move this to
> the issues page!
>
> --Chouser
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Ve
t; I tried this (let [{:coin coin :as snake}{...}][coin
> snake]) and got failure. Why is it so?(just changed the position of
> the key :coin)
Because the binding-form goes before the key when you use map-binding
forms, and a keyword (:coin) cannot be used as a binding-form.
>
> Emeka
&g
On Wed, Jan 7, 2009 at 9:03 AM, Christian Vest Hansen
wrote:
> You are effectively trying to do (#(println %) 1 2).
Typo. I meant to write (#(println %) 2 3).
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received t
On Wed, Jan 7, 2009 at 2:10 PM, Chouser wrote:
>
> On Wed, Jan 7, 2009 at 2:41 AM, Christian Vest Hansen
> wrote:
>>
>> On Wed, Jan 7, 2009 at 5:26 AM, Chouser wrote:
>>> Since I couldn't find any other class that uses this kind of
>>> recursion for
't implement Comparable.
Comparable implies that an Object can be reduced to a scalar value, if
only for the purpose of comparing. How do you imagine this should work
on list of arbitrary things?
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~-
sure what a good solution to this problem would be, but I
> thought I'd post an update for anyone who was curious what the actual
> issue was.
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this
ve to be convinced that Clojure is a viable choice,
> but I need to be a realist too. So what do people think?
> How realistic are my three "hopes"? And are there
> any other performance enhancing possibilities that I
> have not taken into account?
>
> Thanks,
>
>
On Wed, Jan 14, 2009 at 1:59 PM, Rich Hickey wrote:
>
> I am interested in symbols with arbitrary names,
>
Why is this interesting?
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message becaus
x27;nets (NBHashMap by Cliff Click and FashHashMap in
Javolution).
>
> mfh
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group
On Thu, Jan 15, 2009 at 8:47 PM, Christian Vest Hansen
wrote:
> On Thu, Jan 15, 2009 at 8:35 PM, Mark H. wrote:
>> On Jan 15, 1:38 am, stuhood wrote:
>>> The benchmark contains 4 bi-directional dictionary implementations:
...
>>
>> Doesn't Java already hav
2. Optimism + MVCC + persistence fall down when faced with a majority of
> writes. (see the 100% write case in the writes graph.)
>
> Thanks,
> Stu
>
>
> On Thu, Jan 15, 2009 at 2:52 PM, Christian Vest Hansen
> wrote:
>>
>> On Thu, Jan 15, 2009 at 8:47 PM, Christ
> user> (first (time (loop [i (int 0)] (if (< i (int 6000)) (recur
> (inc i)) [i]
> "Elapsed time: 8576.649 msecs"
> 6000
>
> user> (time (loop [i (int 0)] (if (< i (int 6000)) (recur (inc i))
> [i])))
> "Elapsed time: 250.407 msecs&
tjure/blob/b184f842686861a3b4a947a24ea92a610edd8b46/textjure.clj#L318
[3]:
http://github.com/karmazilla/textjure/blob/b184f842686861a3b4a947a24ea92a610edd8b46/textjure.clj#L627
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message becau
Excellent!
The getScrollableTracksViewportWidth() trick did it :)
On Mon, Jan 19, 2009 at 3:26 PM, MikeM wrote:
>
> This might be helpful:
>
> http://os-lists.sun.com/thread.jspa?messageID=457986
> >
>
--
Venlig hilsen / Kind regards,
user=> (binding [*num* 1024] (h *num*))
(1024)
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this grou
ould get something
>> > like this:
>> > C:\java>clj job-queue.clj
>> > (4 3)
>> > (0 nil Hi mum)
>> > Which are the results of multiple queued computations taken at two
>> > subsequent points in time.
>>
>> > From your po
MT safety
of ordinary iters, and I don't know enough to prefer one approach over
the other.
>
> For those looking to experiment with such things, feel free to try it
> now and provide feedback.
>
> Thanks,
>
> Rich
>
> >
>
--
Venlig hilsen / Kind regards,
I type this expression in the REPL (trunk 1228):
user=> (let [s (.keySet {:a 1})] [(set? s) (ifn? s)])
[false false]
But I expected it to return [true true].
Is this an oversight, or is there a good reason for this behavior?
--
Venlig hilsen / Kind regards,
Christian Vest Han
On Fri, Jan 23, 2009 at 11:06 PM, Rich Hickey wrote:
>
>
>
> On Jan 23, 1:47 pm, Christian Vest Hansen
> wrote:
>> I type this expression in the REPL (trunk 1228):
>>
>> user=> (let [s (.keySet {:a 1})] [(set? s) (ifn? s)])
>> [false false]
&g
unction.
>
> I don't have any anonymous function definitions in my function, so
> what is causing the used PermGen growth?
>
> thanks,
> Greg
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You rece
ch in turn
have references to all Classes that it has loaded.
So, if an Object whose Class was loaded by loader A holds a reference
to any Object whose Class was loaded by loader B, then you will not be
able to GC loader B or any of its classes.
--
Venlig hil
, Jan 25, 2009 at 3:08 PM, Greg Harman wrote:
>
> I believe you, but I don't understand why. I'm doing nothing but
> evaluate my test function over and over. Since no new functions are
> being defined, why would this evaluation use any PermGen?
>
> On Jan 25, 5:57 am, Ch
> being defined,
The expression to call your function was being defined over and over,
causing new classes to be generated.
This is a side-effect of eval, which the REPL is based upon.
> why would this evaluation use any PermGen?
>
> On Jan 25, 5:57 am, Christian Vest Hansen
> wrote:
&
get into your way. Whenever you end up with "But in this other
>> field/language we do/have/can ....", you should take a step
>> back and forget about the other field/language and look
>> simply at Clojure. We cannot cater all the previous experiences
>> of all the Cloj
e.
However, I think your double-check scheme, while safe, is of limited
value. Uncontended locks, as would be the case in lancet, are pretty
cheap.
>
> Stuart
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~---
s of the function. When the function is no longer live, both it
and its ClassLoader become legible for garbage collection.
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are su
gt;>
>>> What is the correct interpretation of these results? Does one need
>>> more than 2 CPU's to see a benefit? Or is the Mac JVM only using one
>>> CPU instead of two? Or...?
>>>
>>> ...and is there something wrong with my setup tha
> (Well, you can but it won't do what you want).
But what you can do is put your "clj" script in /usr/local/bin and
then invoke it with "#!/usr/bin/env clj" :)
>
> --
> Cosmin Stejerean
> http://offbytwo.com
>
>
> >
>
--
Venlig hilsen / K
y.
More likely, I think one of them could take multiple arities and make
the other obsolete.
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You
:address :city])
>>
>> Is this the best way to get a new map where the city is changed?
>> (update-in person [:employer :address :city] (fn [old & args] "Clayton"))
>> I can't get this to work with #("Clayton") in place of the anonymous
>> functio
nding
> something. In other words, the class certainly does exist within the
> com.X.Y.Z package, so the code should be correct.
>
> I think what's going on is that while the then-branch is not really
> evaluated, the parser walks over the AST and then som
ed as well.
>
> Are there alternate strategies for building a large sequence that
> would consume less memory per element?
Don't keep the head around on any list (well, seq really) unless you
really mean/need it.
>
> Thanks,
> Keith
>
> >
>
--
Venlig hilsen /
On Mon, Feb 2, 2009 at 1:34 PM, wubbie wrote:
>
> any concrete example?
http://github.com/karmazilla/textjure/blob/cf4ac457358e02f1d1d46d14a2885da0544dbd46/textjure.clj#L342
>
> thanks,
> -sun
>
>
> On Feb 2, 5:13 am, Christian Vest Hansen wrote:
>> On Sun, Fe
gt; those. I
>> > > will have to study maps more, I guess, to understand the last one. I
>> > > don't
>> > > know where 'x' came from:
>> >
>> > >> user=> (-> x :one :b)
>> > >> 2- Hide quoted text -
gt; microbenchmark! Can anybody explain this to me? (No flame wars,
> please, I am really interested in why the things are as they are, is
> it considered ok or not, and what can be done to make Clojure faster
> on similar tests).
>
> >
>
--
Venlig hilsen / Kind regards,
C
end. For queues you need to add
> at one end and remove from the other, so one of the two operations is
> necessarily expensive. But is there a difference between the two?
>
> Konrad.
>
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-
significantly in JDK 7:
http://markmail.org/message/7conncsespvrlazn
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to t
m the left and eats someone :)
>
> --
> Professional: http://cgrand.net/ (fr)
> On Clojure: http://clj-me.blogspot.com/ (en)
>
>
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message
e same value?
Your "cs" var have type Object and therefor hits the generc
String.valueOf(Object) overload.
You can fix it with typehints:
user=> (def #^{:tag "[C"} cs (.toCharArray "abc"))
#'user/cs
user=
tribution, but in which jar file?
It was added in Java 6. Could you perchance be running Java 5?
>
> Konrad.
>
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you
I see no mention of a JVM being available for those CPUs, but perhaps
the no-asm HotSpot can be build with gcc on it.
Otherwise, cool gear :)
On Fri, Feb 13, 2009 at 11:47 PM, Raoul Duke wrote:
>
> http://sicortex.com/products
>
> >
>
--
Venlig hilsen / Kind regards,
Chr
On Sat, Feb 14, 2009 at 1:31 AM, Stuart Sierra
wrote:
>
> On Feb 13, 6:13 pm, Christian Vest Hansen
> wrote:
>> I see no mention of a JVM being available for those CPUs, but perhaps
>> the no-asm HotSpot can be build with gcc on it.
>
> Looks like they run Lin
> I know this is not the best way to write a factorial (it is not tail-
> recursive), the point is just to show an example of a recursive call.
>
> Konrad.
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--
gt; (do
>(map (fn [_] (throw (RuntimeException. "fail"))) [1 2])
>"no exception"))
>
> this however does throw exception:
>
> (defn foo []
> (map (fn [_] (throw (RuntimeException. "fail"))) [1 2]))
>
> Is this a bug or am I missing so
gt; 6 7 7 8 8})
> {1 1, 2 2, 3 3, 4 4, 5 5, 6 6, 7 7, 8 8}
>
> Granted, it's not casual Clojure code but it's surprising.
>
> Christophe
>
> --
> Professional: http://cgrand.net/ (fr)
> On Clojure: http://cl
key twice, which in turn
causes it to evaluate twice; into two different keys with two
different associations.
On Tue, Feb 17, 2009 at 8:28 PM, Christian Vest Hansen
wrote:
> That's odd.
>
> Might you have uncovered a bug regarding:
>
> user=>
Just to clarify; I think PersistentArrayMap is too naïve:
user=> {1 1 1 1 1 1 2 2}
{1 1, 1 1, 1 1, 2 2}
Also, this is rev 1286 (just prior to lazy-branch merge thingy).
On Tue, Feb 17, 2009 at 8:50 PM, Christian Vest Hansen
wrote:
> I think I got it :)
>
> The two (swap! a in
an't say what's
normal here.
>
> Christophe
>
> --
> Professional: http://cgrand.net/ (fr)
> On Clojure: http://clj-me.blogspot.com/ (en)
>
>
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~
On Tue, Feb 17, 2009 at 10:07 PM, Rich Hickey wrote:
>
>
>
> On Feb 17, 3:30 pm, Christian Vest Hansen
> Please don't create issues without getting a nod from me here first.
Ok. I won't. I must have overlooked the "Similarly, please confirm a
bug before making a
uld answer, that would be a great help.
>
> What is the minimum required JVM version for clojure?
>
> What versions of Java have been tested?
>
> What versions of Java are supported?
>
> Thanks!
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--
persue it any further.
>
> A translation from standard Clojure syntax to this alternate form
> should also be possible.
>
> Is this a bad idea?
It is not inherently bad, but I doubt that a lot of people would
prefer it as their primary reader over the standard Clojure reader.
It could,
pport is *extremely* experimental and
> probably not too reliable at this point. Also note that while it is
> possible that Clojure support will be merged into the Buildr trunk in
> future, it has not yet been decided one way or another (see
> https://issues.apache.org/jira/browse/B
e to generate the docs I can live with, but that "File not
found" line looks pretty suspect.
>
> Daniel
>
> On Feb 26, 10:58 am, Christian Vest Hansen
> wrote:
>> Nice initiative!
>>
>> However, it the net-ssh dependency has problems:
>>
>
ll about, but you
> should still be ok (crazy gems). Try the following:
>
> buildr --version
>
> Daniel
>
> On Feb 26, 3:16 pm, Christian Vest Hansen
> wrote:
>> On Thu, Feb 26, 2009 at 6:17 PM, Daniel Spiewak wrote:
>>
>> > Odd. Must be a problem wi
er. "10") (Long. "10"))
false
user=> (= (Integer. "10") (Long. "10"))
true
Given these consequences, I think the current behavior is the best compromise.
>
> Allen
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hanse
gt; On Feb 26, 7:59 pm, Daniel Spiewak wrote:
>>
>> > Crud. I suspect this is something weird with the way that the GitHib
>> > gem server works. I'll try to repeat the problem on Ubuntu as soon as
>> > I get back to my computer. In the meantime, you could try th
seen ?
What about this case:
(when-let [x (instance? java.lang.Boolean false)] (println x))
I think that should print 'true', and therefor I am against this proposal.
>
> Thanks in advance,
>
> --
> Laurent
>
>
> >
>
--
Venlig hilsen / Kind regards,
the average stupid programmer can't understand
>> virtually guarantees that you'll increase your success chances, since you
>> and your team-mates will be of a higher caliber.
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~--
t 'coerce'
instead of 'instance' - I think that name is clearer and fits the
intent better.
>
>
> Regards,
> Tim.
>
>
> On Mar 10, 7:15 pm, Christian Vest Hansen
> wrote:
>> On Mon, Mar 9, 2009 at 11:10 PM, Laurent PETIT
>> wrote:
>&g
On Wed, Mar 11, 2009 at 9:01 AM, Vagif Verdi wrote:
>
> Is (first (filter ..) lazy like in haskell ?
Yes.
> I would hate to wait for filter to get all results just to throw them
> out and pick the first one.
>
> >
>
--
Venlig hilsen / Kind regard
times [i 100]
> (rest c
>
> (timerest (into [] (range 1))) ==> "Elapsed time: 125.826519 msecs"
>
> If 'rest' were O(n) on vectors, we should be able to multiply the
> length of the vector by 100 and see the time g
ra characters.
>
> "pick" might be good.
>
> -Stuart Sierra
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cl
cases where this isn't
true.
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send e
ot; without having to restart the
> JVM between each change.
>
> Is there anything I'm missing, or will there be a way in the future to create
> dynamic Java objects at runtime?
>
> --
> Sverre Johansen
>
> >
>
--
Venlig hilsen / Kind regards,
Christian
ill be in the user
> community and the code that we can generate. A good package manager
> will help fuel that growth.
>
> And now I'll cop out & say that I have no idea about how to actually
> implement this sort of thing - I'm hoping somebody else will want to
> do
with Scala/Java or Groovy/Java does not necessitate
> an extra "require", but this first one is necessary to get the process
> started and ensure that Clojure's compiler becomes the dominant
> selection.
>
> Daniel
> >
>
--
Venlig hilsen / Kind regar
nce. If I found out that a
>> particular transaction was commonly being retried many times, is that
>> a sign that I need to write the code differently? How would I find out
>> that was happening? I know I could insert my own code to track that,
>> but it seems like this may be
ents and proposals are appreciated. :)
>
> With best regards,
> Ilya Sergey
>
>
>
> >
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
s to be
directly and knowingly interacted with in the Java code.
So, my *assumption* (because I have no way of knowing for sure) is
that this last case is the less common one, and therefor it makes
sense to compile the Java code first.
This is my reasoning anyway.
--
Venlig hilsen / Kind regard
1 - 100 of 154 matches
Mail list logo