Hello,
On Thu, Oct 29, 2009 at 2:24 PM, Meikel Brandmeyer wrote:
> On Oct 29, 1:15 pm, Miron Brezuleanu wrote:
>> Cons: I'm afraid of getting the SQL generating syntax wrong and making
>> the data structures used for generation ugly. But I guess that can be
>> fixed by iterating a little. :-)
>
> I do plan to add a feature so that it loads all jars from a lib directory
This is a nice feature!
> I don't know anything about maven
I'm brand new to maven, but let me introduce some advantages if maven
were used. Take
http://github.com/ngocdaothanh/telchat-clojure
as an example:
* Run "mvn
Daniel Simms wrote:
> On Thu, Oct 29, 2009 at 4:34 PM, Rayne wrote:
>> but I would highly recommend that you just pull it from the github
>> repository.
>
> Especially if you're going to use clojure-contrib ...or is there some
> "release" of contrib synch'd to clojure releases that I missed
> so
On Thu, Oct 29, 2009 at 4:34 PM, Rayne wrote:
> but I would highly recommend that you just pull it from the github
> repository.
Especially if you're going to use clojure-contrib ...or is there some
"release" of contrib synch'd to clojure releases that I missed
somewhere?
--~--~-~--~---
You can't use Clojure to run Common Lisp programs on the JVM. Clojure
is it's own Lisp, and has nothing to do with Common Lisp. There are
some implementations of Common Lisp on the JVM, the most popular of
which I believe is ABCL.
I believe there are some experimental Ubuntu packages available, b
Works beautifully. Thank you sir.
On Oct 28, 10:40 pm, Alex Osborne wrote:
> youngblood.carl wrote:
> > When I try and call createFile from clojure:
> > (.createFile path)
>
> > I get an exception that there is no field named createFile.
>
> If I remember correctly variable argument Java methods
> * Is it OK if live-repl uses one version of Clojure and the attached
> process uses another?
It should be fine.
I check to see if Clojure is already on the process's classpath. If it
isn't a Clojure process, I use the bundled copy of Clojure; if Clojure
is already loaded then I just use that
Hi Roman,
sure. Tom sent me a link to this thread:
http://groups.google.com/group/clojure/browse_thread/thread/d98cedb860f16a34/
and also he sent me a tgz of his NetKernel module. I believe he has
licensed it to be freely available:
/**
* CloNK4 Project : Clojure for NetKernel 4.
* Copyright
Here's a macro that generalizes the two 'threading' macros -> and ->>.
It works by using the idea of 'nesting marker' (from Oz) to specify
where the result of the previous form should be nested in the
subsequent form.
(defmacro -$>
"Threads the expr through the forms. Inserts x into
the firs
user=> ((eval `(fn [x#] (~(symbol ".setFileSelectionMode") x# 1))) jfc)
nil
user=>
On Thu, Oct 29, 2009 at 6:38 AM, Meikel Brandmeyer wrote:
>
> Hi,
>
> On Oct 29, 2:07 pm, Tiago Antão wrote:
>
>> The eval form still shows some problems, if I do this preparation:
>>
>> (import javax.swing.JFil
Hi,
On Oct 29, 2:07 pm, Tiago Antão wrote:
> The eval form still shows some problems, if I do this preparation:
>
> (import javax.swing.JFileChooser)
> (def jfc (new JFileChooser))
>
> And then do:
>
> user=> (.setFileSelectionMode jfc 1)
> nil
>
> All good here, but, if I do the eval variation
First, thank you Rich & Co for doing Clojure.
We've been using Clojure for a real-world project, and I thought I'd
share some observations.
The project does some large-scale (but not really huge) data
analysis. Example: ~10M records are processed and transformed,
various computations occur, and
All the parallel work will be done in Clojure, so I think I will go
with the refs and atom path. When the processing in Clojure is done
the data is passed as XML to another system so Java doesn't need to
change it anymore, so the immutability when it's done is not a
problem.
Thank you very much f
Hi,
On Oct 29, 1:15 pm, Miron Brezuleanu wrote:
> The pros I see are the ability to construct the data structure using
> all the tools Clojure/Lisp offer in this area (quasiquotation and its
> many friends, for instance). The ability to output code that is pretty
> printed in a customized way i
Hello,
First let me congratulate the clojure team on this wonderful
initiative: porting lisp to the jvm.
Next is my question: can I run common lisp programs on the jvm using
clojure? I was thinking specifically to Maxima - (the formal calculus
program)?
And finally another question: are there a
My environment is enclojure on netbeans. Ive compiled all of the code
for swank-clojure. However, when i call a function which produces a
certain error (in a new case, attempting to call some invalid java
method on a java object) i get the no source file thing. So im
guessing that somehow i have t
In my experience, the NO_SOURCE_FILE shows up when I make a mistake at
the REPL/SLIME. When I have a precompiled .JAR, then I get a
reference to a specific file w/ a mistake in it.
That's why I was asking about what environment you used.
On Oct 29, 1:30 pm, Gorsal wrote:
> Oh, my actual questi
Oh, my actual question was to ask why the general NO_SOURCE_FILE would
appear and how to fix it, the specific error message was just an
example.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post
Sorry. I was just compiling everything and changing some code so it
broke. Where it actually came from is probably irrelevant, i have
gotten the phrase 'NO_SOURCE_FILE' when compiling before.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Where did you get this from? Were you using SLIME at the time?
On Oct 29, 12:22 pm, Gorsal wrote:
> Often , i get error messages like
> # swank.core.connection/*current-connection* is unbound. (NO_SOURCE_FILE:
> 358)
>
> My question is how do i know what the source file name is? Do i
> somehow
Often , i get error messages like
#http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
it does look like &&& is pretty much the same as juxt.
partial isn't the same as curry, though. (curry uses thunk, which is
the same as partial, but can take a function and no args)
curry waits for a specific number of args before it evals. so if you
keep evaluating a curried fn with 0 args, you'
Hello,
On Thu, Oct 29, 2009 at 3:06 PM, Chouser wrote:
>> earlier today I was wondering about the best way to write some
>> Transact-SQL code. I normally write code in C#, Python and lately
>> Clojure. Even though TSQL is a decent procedural extension to SQL, it
>> still feels very cumbersome to
I'm a huge fan of point free code. Some of you functions already
exist in Clojure under different names, and I have a few questions.
>>> is the same as (reverse (comp x)) right?
&&& is called juxt
*** - I believe this (map (juxt f-coll) coll)
curry is called partial
Still, good to see the com
Hello all.
Thanks everyone for the comments. This was the kind of info I was
looking for.
I'll play around with this some more when I get a chance. (Too many
grants due / conferences in October.)
cheers
Matt
On Oct 1, 10:08 am, Jonathan Smith wrote:
> On Sep 30, 1:18 pm, Matt Brown wrote:
>
+1
On Wed, Oct 28, 2009 at 4:47 PM, Michael Wood wrote:
>
> 2009/10/28 Kyle Schaffrick :
> >
> > Don't forget those of us who dislike web-forum software and prefer to
> > interact with the group via email: I very seldom use the GG site itself.
> > I find threaded email is a *very* good way of fo
there are a few on git already:
http://github.com/hclarke/pointfree-clojure/tree/master/src/
i'll add more soon.
also, this could be worth looking at: http://www.haskell.org/arrows/
there will be some differences, but it's pretty much the same idea.
On Oct 28, 9:09 pm, Paul Barry wrote:
> Would
> 2. Go Functional -- pass objects and anonymous functions (Strategy and
> Mediator patterns may help)
I meant "anonymous objects that implement some interface or extend a
class (Template pattern)", not "anonymous functions" really. :-)
Regards,
Shantanu
--~--~-~--~~~
On Oct 29, 4:50 pm, vanallan wrote:
> Ok thanks for the answer :)
>
> I have now began to implement the Java parts. The data that is going
> to be processed in Clojure is mapped to clojure structs, but I now
> have another question. How should I update the values in the structs?
> Since function
On 29.10.2009, at 13:48, John Harrop wrote:
> One issue with using multimethods is the resolution overhead. I
> don't think the JIT can optimize this to the extent it can optimize
> a normal polymorphic Java call.
That's worth exploring - while keeping in mind that the JIT improves
all the
On 29.10.2009, at 14:01, Rock wrote:
>>> Suppose we're dealing with rank n objects. Do you think it
>>> would be an easy task to figure all that out dealing with nested
>>> vectors?
>>
>> If you can assume the array is well-formed, it is rather easy.
>> Otherwise it isn't.
>
> Can you give an exa
On Thu, Oct 29, 2009 at 2:15 AM, Alex Osborne wrote:
>
> Using eval (which will also work for dynamically calling Clojure functions):
>
> (let [obj "some string"
> fname ".substring"]
> (eval (list (symbol fname) obj 2)))
Thanks a lot. I was trying to avoid reflection (ie, looking
On Thu, Oct 29, 2009 at 8:15 AM, Miron Brezuleanu wrote:
>
> Hi,
>
> earlier today I was wondering about the best way to write some
> Transact-SQL code. I normally write code in C#, Python and lately
> Clojure. Even though TSQL is a decent procedural extension to SQL, it
> still feels very cumber
> I didn't address such issues because there is no point in discussing
> them before making the fundamental decision whether to use an abstract
> or an exposed data type for array data. That choice dictates the
> priorities for everything that follows.
Yes, I agree.
> > Suppose we're deal
On Thu, Oct 29, 2009 at 4:49 AM, Konrad Hinsen
wrote:
> On 28 Oct 2009, at 22:21, Rock wrote:
> > I honestly prefer your first case scenario. Seems much more efficient,
> > less resource-consuming, and just straightforward. But I really would
> > like to know what your preference is. If you had to
Hi,
earlier today I was wondering about the best way to write some
Transact-SQL code. I normally write code in C#, Python and lately
Clojure. Even though TSQL is a decent procedural extension to SQL, it
still feels very cumbersome to the languages I use daily. Having done
some C# code generation
Ok thanks for the answer :)
I have now began to implement the Java parts. The data that is going
to be processed in Clojure is mapped to clojure structs, but I now
have another question. How should I update the values in the structs?
Since functions are going to run in parallel and a function may
Yes, they both work - and the "#^chars" is much more legible.
Many thanks!
FYI, to whom it may concern...I think it's worth noting that this
simple
case gives confusing output from the repl.
user=> (new String #^chars (make-array Character/TYPE 3))
"user=>
And this:
user=> (def
On 29.10.2009, at 10:30, perdalum wrote:
> Has anyone been able to use QuickLook wich Clojure source files?
I use the QLColorCode plugin (version 2.02):
http://code.google.com/p/qlcolorcode/
To make it treat Clojure files (*.clj) like Lisp source code, open the
Info.plist file in the
Do you mind sharing the links? I am interested in it as well.
Thanks!
Roman
2009/10/28 Tony Butterfield :
>
> Tom Hicks has just pointed me to an old thread which answers
> questions about namespaces and isolation. Let me read and
> absorb all that work first - I suspect it answers a lot of my
Hi there!
Has anyone been able to use QuickLook wich Clojure source files?
Regards,
Per
--~--~-~--~~~---~--~~
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
On 28 Oct 2009, at 22:21, Rock wrote:
> Your analysis is crystal clear and very helpful Konrad. But you
> haven't addressed the issue of dealing with useful information
> regarding the data structure itself. What if, for example, a function
> wanted to know the rank and dimensions of a multidimen
On Wed, Oct 28, 2009 at 11:08 PM, John Harrop wrote:
> For the specific case of hashCode, no; identical values must have identical
> hashes but different values need not have different hashes. Collisions due
> to the hypothetical cutoff get exponentially less likely with each
> additional increme
John Harrop wrote:
> On Wed, Oct 28, 2009 at 9:35 PM, Alex Osborne wrote:
>
> Choosing some arbitrary magic cutoff point just
> seems cause for trouble and much confusion.
>
> For the specific case of hashCode, no; identical values must have
> identical hashes but different values need
Hello,
On Thu, Oct 29, 2009 at 3:35 AM, Alex Osborne wrote:
>
> John Harrop wrote:
>> Probably the seq .hashCode should consider only the first N elements
>> for some maximum N and if two longer (or even infinite) sequences
>> collide so be it.
>
> I strongly disagree. Choosing some arbitrary m
I think it would be great if JLine is integrated in live-repl.
I have some questions:
* Why not use maven and clojure-maven-plugin?
* Is it OK if live-repl uses one version of Clojure and the attached
process uses another?
On Oct 29, 9:35 am, David Powell wrote:
> > Under Linux I had to fix th
46 matches
Mail list logo