On Jun 8, 3:51 pm, Konrad Hinsen wrote:
> See also my patch that creates such a universal root type [...]
Nice! That's exactly what I was thinking about
Peter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Cloju
Sure, I sent a private mail because I didn't want to increase noise in is
group. I used the mail address you left on vimclojure site to reach you.
I just learned about user.home. So I can simplify
also the .vim installation of the plugin.
Beautiful, when is it coming out?
Emeka
>
--~--~--
Just see http://en.wikibooks.org/wiki/Clojure_Programming/Further_Reading
On Jun 6, 3:12 pm, Robert Campbell wrote:
> Going beyond the language-specific Programming Clojure book, what
> other books have best helped you make the (sometimes mind-bending)
> transition from OOP thinking to FP thinki
On Sun, Jun 7, 2009 at 6:37 PM, Meikel Brandmeyer wrote:
> Am 07.06.2009 um 17:41 schrieb Emeka:
>
>> And it took Meikel three weeks to make out time to talk to me.
>>
>
> Huh? Did I miss something?
Meikel,
You've been incredibly open and helpful on this list and we all appreciate
it. Thanks f
On Fri, Jun 5, 2009 at 5:26 PM, tsuraan wrote:
>
> I have a function to get the path out of a lucene searcher
> (documentation at
> http://lucene.apache.org/java/2_3_2/api/core/org/apache/lucene/search/IndexSearcher.html).
> The searcher has a Reader, which has a Directory. The Directory is
> ab
On Sat, Jun 6, 2009 at 11:10 PM, maxsu wrote:
>
> Hi, i'd like to write some AI in clojure.
>
> Reading Russel & Norvig's AI: A Modern Approach, which focuses heavily
> on autonomous intelligence agents.
>
> Has anyone worked with these or other AI in clojure? Any libraries/git
> repos out there?
Programming Erlang is also good. The syntax and message passing
emphasis aren't relevant to Clojure, but Erlang also uses immutable
data, and is definitely a functional language.
On Sat, 6 Jun 2009 13:12:16 +0200
Robert Campbell wrote:
>
> Going beyond the language-specific Programming Clojure
Not quite sure what the right way to report this is. There seems to
be some spam in the file report. The "Mathis-Oberg-
Insulating_Guide.pdf" seems to be out of place. My apologies if this
is a false positive.
--~--~-~--~~~---~--~~
You received this message becau
On Jun 8, 2009, at 7:24 AM, Nathan Hawkins wrote:
> The syntax and message passing emphasis aren't relevant to Clojure
I don't have any experience with agents in Clojure, but I wonder if
they be used to similar effect? Agents seem more like data in another
thread to me than self-recursive
> I thought it might be fun to try out the new repl-utils expression-info fn
> on
> this.
Is this just in source control, or is it in a release? I'm using
1.0.0, and I don't seem to have that function.
> So first I had to recreate your 'import' line (you might consider including
> this
> kind o
I'd love to be able to do this:
(defstruct person-s :name :gender)
(def name-a (accessor person-s :name))
(def gender-a (accessor person-s :gender))
(def person-1 (struct person-s "Jane" :female))
(let [{name name-a, gender gender-a, :as person} person-1]
(println name gender person))
...ins
On Mon, Jun 8, 2009 at 11:41 AM, tsuraan wrote:
>
> > I thought it might be fun to try out the new repl-utils expression-info
> fn
> > on
> > this.
>
> Is this just in source control, or is it in a release? I'm using
> 1.0.0, and I don't seem to have that function.
repl-utils is a library in c
Hi,
Am 08.06.2009 um 09:15 schrieb Emeka:
Sure, I sent a private mail because I didn't want to increase noise
in is group. I used the mail address you left on vimclojure site to
reach you.
Ok. I'm sorry. It must have been stuck in the spam filter.
I searched my mails, but only found the qu
On Jun 8, 2009, at 17:46, samppi wrote:
> ...I'd love it if the values of symbol keys could be any symbol, not
> just keywords, so that the key symbol is bound to (val-symbol
> the-map):
> (let [{name this-is-a-symbol} person-1] ...) ; name is bound to
> (this-is-a-symbol person-1)
>
> It's bac
> repl-utils is a library in clojure-contrib. Docs here:
>
> http://code.google.com/p/clojure-contrib/wiki/ReplUtilsApiDoc
>
> Source here:
>
> http://code.google.com/p/clojure-contrib/source/browse/trunk/src/clojure/contrib/repl_utils.clj
>
> HTH,
Yup, that certainly does help :) Thanks!
--~--
Thanks. I will wait.
Regards,
Emeka
On Mon, Jun 8, 2009 at 5:05 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am 08.06.2009 um 09:15 schrieb Emeka:
>
> Sure, I sent a private mail because I didn't want to increase noise in is
>> group. I used the mail address you left on vimclojure site to reach you.
I get an exception
Invalid method Code length 70026 in class file user$eval__3286
0: java.lang.ClassLoader.defineClass1(Native Method)
1: java.lang.ClassLoader.defineClass(ClassLoader.java:675)
2: java.lang.ClassLoader.defineClass(ClassLoader.java:520)
3: clojure.lang.DynamicClassLoader.d
Following a blog post on building large object graphs I was suggested
with the following solution:
(def nested-object (-> GrandFather. Father. GrandSon.))
this indeed seems to be correct however fails in even in a simple
example:
user=> (-> String. String.)
java.lang.ClassNotFoundException: St
you need to pass something in.
example:
=> (-> "foo" String. String.)
"foo"
=> (macroexpand '(-> String. String.))
(new String String.)
=> (macroexpand '(-> "foo" String. String.))
(new String (clojure.core/-> "foo" String.))
=> (macroexpand '(-> "foo" String.))
(new String "foo")
String. is o
On Jun 8, 2009, at 12:38 PM, ronen wrote:
user=> (-> String. String.)
java.lang.ClassNotFoundException: String. (NO_SOURCE_FILE:7)
expanding the macros involved seems to reveal the issue:
user=> (macroexpand-1 `(-> String. String.))
(java.lang.String. java.lang.String.)
the "." macro isn't e
I see, using "->" with "." will not create a chain of "new"
invocations, the best solution that iv found is:
user=> (String. (String.))
""
user=> (macroexpand (String. (String.)))
""
user=> (macroexpand `(String. (String.)))
(new java.lang.String (java.lang.String.))
Nesting is a must :)
Thank yo
Just to be clear, is (String.) a macro? I thought it was just a special
form.
On Mon, Jun 8, 2009 at 3:47 PM, Stephen C. Gilardi wrote:
>
> On Jun 8, 2009, at 12:38 PM, ronen wrote:
>
> user=> (-> String. String.)
> java.lang.ClassNotFoundException: String. (NO_SOURCE_FILE:7)
>
> expanding the m
sure it can, you just need to pass in an initial value.
(-> (String.) String. String.) ; works
(-> x String. String.) ;works for any x where string has a constructor
that takes something of type x
for example
(-> "file.txt" File. FileReader. BufferedReader.)
will return a buffered reader on fi
Hello Meikel,
I have not been able to resolve this issue. As I mentioned in another
thread, I want to use filechooser to select the excel file.
My code is in this link http://friendpaste.com/wmX89ywgPhdN5hvVBEAbg
Regards,
Emeka
--~--~-~--~~~---~--~~
You received t
Great! that was the missing bit i was looking for.
thanks for clearing it out
(& it seems that String. is indeed a macro)
On Jun 8, 11:05 pm, Kevin Downey wrote:
> sure it can, you just need to pass in an initial value.
>
> (-> (String.) String. String.) ; works
> (-> x String. String.) ;works
Hi Jason,
I've run into the same thing. This has come up on the group before,
more info can be found here:
http://groups.google.com/group/clojure/msg/efd607d75d59088e
Cheers,
Tom
On Jun 8, 1:32 pm, Jason Wolfe wrote:
> I get an exception
>
> Invalid method Code length 70026 in class file user$
Thanks for the replies. This post is moderately long as it includes
responses
to most of the replies.
Before I reply to replies, I will quickly describe some add'l data
that I obtained from further tests. I was lead to a line of
investigation by the description at the following URL:
http:/
Hi,
Am 08.06.2009 um 22:11 schrieb Emeka:
I have not been able to resolve this issue. As I mentioned in
another thread, I want to use filechooser to select the excel file.
My code is in this link http://friendpaste.com/wmX89ywgPhdN5hvVBEAbg
I'm sorry. Could be a bit more specific, about wha
Dear Clojurians,
in the past there were several discussions on the list
regarding the one or the other macro. Please let me
show some design principles, which I believe are good
ideas for macro design.
On the occasion of a question in another thread we will
write a small helper macro to add an a
Hi,
Am 08.06.2009 um 04:35 schrieb e:
That'd be awesome. assume the user doesn't even have vim. they just
have jdk. ... and they only care about vim for clojure. Well, I'd
want to eventually integrate with svn and git, but I suppose folks
just drop to a shell for that stuff, typically.
> First, thanks for the info, Richard.
>
> Interesting. I am now left to wonder if your disposition is typical
> of most JVM developers and deployers. I'll have to continue asking
> my inquiry.
I'm actually not a typical JVM developer -- I come from a Common Lisp
background, and I avoid wri
I second most of the book suggestions already mentioned (those that
I've read).
If you like reading papers, I strongly suggest you take a look at "Can
Programming Be Liberated from the von Neumann Style?":
http://www.stanford.edu/class/cs242/readings/backus.pdf
This paper will help you with two
Oh, I didn't know that. It makes me wonder, then, why integers were
not implemented as functions of sequential collections: (3
[:a :b :c]).
Ah, well. I guess since let can't be changed, it's then a choice
between using accessors or being more elegant. Thanks for the reply.
On Jun 8, 9:25 am, Kon
Hi everyone,
I've started playing with SWT + Clojure (I know very little about SWT
and I've just started out with Clojure, so please bear with me) and I
would like to get it going from within Aquamacs Emacs + SLIME. I'm not
sure if this is a real Clojure question or more of a Cocoa/Carbon
The relational operations work on sets. That's often useful, but there
are situations in which preserving cardinality is more useful. One
such situation bit me today -- I did some relational operations on
some spreadsheet-esque data, much as I would in SQL or SPARQL, finally
projecting to
I think I know what you mean by a "bag", but I'm not quite sure. How
does a bag compare to a set, vector and/or list?
On Jun 9, 1:31 am, Richard Newman wrote:
> The relational operations work on sets. That's often useful, but there
> are situations in which preserving cardinality is more usef
> I think I know what you mean by a "bag", but I'm not quite sure. How
> does a bag compare to a set, vector and/or list?
A bag is also known as a multiset: it's an unordered collection in
which an item can appear more than once. Think of a set without the
distinctness.
--~--~-~--~-
On 09.06.2009, at 07:31, Richard Newman wrote:
> Has there been any thinking about supporting a 'bag' sibling of 'set',
> and allowing it to be passed correctly through the relational
> operators? Right now I have a choice between rephrasing my code in
> non-
> relational terms, or adding a uni
On 08.06.2009, at 21:59, Andrew Wagner wrote:
> Just to be clear, is (String.) a macro? I thought it was just a
> special form.
Let's ask Clojure:
(macroexpand-1 '(String.))
-> (new String)
So it's a macro. The only difference between a macro and a special
form is that a macro
39 matches
Mail list logo