I don't seem to be able to get rid of reflection warnings on
definterface/deftype field/method calls...
Clojure 1.2.0-master-SNAPSHOT
user=> (set! *warn-on-reflection* true)
true
(import '(java.io File))
java.io.File
(definterface IFile (^String getNm[]))
(deftype TFile [^File file] IFile (^String
[I'm not sure if the Clojure list is the right place for this, or if it should
go somewhere more specific to CCW -- please let me know if it's the latter.]
On Jun 29, 2010, at 2:41 PM, Laurent PETIT wrote:
> There's now auto-indentation (when you hit the Enter key). What is
> still missing is "b
Adding Dfile.encoding=UTF-8 solves the problem:
java -Dfile.encoding=UTF-8 -cp clojure-1.2.0-
master-20100623.220259-87.jar clojure.main
I think it is because when Java reads the input, it does not know the
correct encoding.
--
You received this message because you are subscribed to the Google
G
It could also be be helpful to have links to mailing list discussions
or blog postings discussing the reasons for including a method in
Clojure or the tradeoffs in using one method vs. another. A few
examples:
seq?, sequential?
http://groups.google.com/group/clojure/browse_thread/thread/9dbaff59e
This question was first posted by me on StackOverflow (http://
stackoverflow.com/questions/3169821/accept-headers-of-the-clojure-xml-
parse-call).
When calling the function clojure.xml/parse with an URI Clojure
performs a HTTP GET request to fetch the data. However the HTTP
request contains the f
This probably isn't the right way to do it, but it works:
user=> (def n0 {:in (atom ()) :out (atom '(#'n1))})
#'user/n0
user=> (def n1 {:in (atom '(#'n0)) :out (atom ())})
#'user/n1
user=> (swap! (:in n0) conj '#'n3)
((var n3))
user=> n0
{:in #, :out #}
user=> @(eval (first @(:in n1)))
{:in #, :o
Hi,
This is my nth attempt to learn Clojure.
I think it will be an improvement if there are links to API document
for functions in the cheat sheet (http://clojure.org/cheatsheet).
Clicking a function name will jump right to the description for the
function is very convenient for newbies.
--
You
I think it would be helpful to make a couple of changes to the "Getting Started
with Eclipse and Counterclockwise" page on assembla
(http://www.assembla.com/wiki/show/clojure/Getting_Started_with_Eclipse_and_Counterclockwise).
Is this the right place to propose such a thing?
I guess since it's
Great. That will be nice to follow the same interface as you do.
Will do that during this week.
Best,
Nicolas.
On Sat, Jul 3, 2010 at 1:53 PM, Saul Hazledine wrote:
> On Jul 3, 10:41 am, Nicolas Oury wrote:
> > I have a - very simple - memoizer that uses Weak/Soft/Hard Hash tables
> from
>
On Jul 3, 10:41 am, Nicolas Oury wrote:
> I have a - very simple - memoizer that uses Weak/Soft/Hard Hash tables from
> the JDK or from google collections.
> (Google collections has different strategies for expiration of cache. Soft
> is the last time since used strategy. Weak is
> a good strategy
Thanks for both answers. Two ways of doing it. Great!
On Sat, Jul 3, 2010 at 9:56 AM, Saul Hazledine wrote:
> On Jul 2, 6:35 pm, Nicolas Oury wrote:
> >
> > I am looking for a way to tell leiningen what JVM options to use with the
> > SWANK server. (I need a lot of Heap size to do anything usef
I have a - very simple - memoizer that uses Weak/Soft/Hard Hash tables from
the JDK or from google collections.
(Google collections has different strategies for expiration of cache. Soft
is the last time since used strategy. Weak is
a good strategy for object for which identity is equality.)
It is
cache-dot-clj Clojure library that caches the results of impure
functions.
It is almost entirely based on the memoize functions described here:
http://kotka.de/blog/2010/03/memoize_done_right.html
I have found this useful for caching the results of database calls and
for holding HTML snippets.
On Jul 2, 6:35 pm, Nicolas Oury wrote:
>
> I am looking for a way to tell leiningen what JVM options to use with the
> SWANK server. (I need a lot of Heap size to do anything useful...)
>
> I wasn't able to find that in the doc. Is it not the right way of
> proceeding?
I'd recommend the sample pr
14 matches
Mail list logo