On 11.05.2009, at 03:00, Rich Hickey wrote:
> Could you explain a bit why you needed to do this? I'm a bit concerned
> about libraries requiring symbol-macros.
Here is a simplified view of how my monad library works. Each monad
is an object that contains the definition of a few functions. Othe
On May 10, 9:38 pm, Victor Rodriguez wrote:
> On Sun, May 10, 2009 at 1:32 PM, tarvydas
>
> wrote:
>
...
Thanks for your reply (sorry about posting this question twice - after
waiting 3 hours and not seeing my question appear in the group, I re-
posted it, assuming that I'd done something wro
On Sun, May 10, 2009 at 1:32 PM, tarvydas
wrote:
>
> I'm a CL oldie and a Java newbie (mostly because I never make it past
> CLASSPATH problems before giving up :-). This is probably an simple
> question, but I'm stumped.
>
> I've managed to get emacs + slime + ants.clj to run on Windows Vista.
On May 10, 12:21 pm, Konrad Hinsen wrote:
> On 09.05.2009, at 20:33, samppi wrote:
>
> > Wow, I've never seen ~' before. But it works great. Thanks a lot.
>
> It's not a special syntax, it's just ~ (insert value of the following
> expression) with (quote symbol) as the expression.
>
> >> Now th
I'm a CL oldie and a Java newbie (mostly because I never make it past
CLASSPATH problems before giving up :-). This is probably an simple
question, but I'm stumped.
I've managed to get emacs + slime + ants.clj to run on Windows Vista.
I'm trying to get Vladimir Konrad's Clojure, GUI and NetBean
I'm a java newbie (but a CL oldie). I'm trying to run Vladimir
Konrad's Clojure, GUI and NetBeans example on Vista.
I've got emacs + slime + ants.clj running. "." is in my CLASSPATH and
the "gui" subdirectory (containing MainFrame.class, created by the
NetBeans project) is in "." (i.e. ./gui/Ma
> Myriam Abramson wrote:
>> Is there something to do that easily? After all the syntax is not that
>> much different and that's what lisp do well.
Stuart Sierra writes:
> I'd never say this out loud on comp.lang.lisp, but I can't think of
> any CL libraries for which there is not a functionally
Is there a core Clojure function that does this:
(fn mystery [& subfunctions]
(fn [& args]
(some #(apply % args) subfunctions)))
...in other words, composing the functions with or. (mystery nil?
(partial = "the")) would be equivalent to #(or (nil? %) (= "the" %)).
--~--~-~--~
Phil Hagelberg writes:
> Howard Lewis Ship writes:
>
>> clojure-lang because there will be a clojure-contrib artifact for the
>> same group.
>
> And this is ... a bad thing? I'm lost.
>
> -Phil
Good, at least I'm not the only one.
Why can't we have both clojure and clojure-contrib as Id's?
D
On May 10, 6:41 pm, David Nolen wrote:
> You'll need to have a similar folder structure in all of your libraries if
> you want it to be easy for other people.
>
> Stack trace
> =
>
> INIT GL IS: com.
melipone wrote:
> I understand that you can use Java libraries with Clojure but can you
> use Common Lisp libraries for example CXML?
David Nolen writes:
> Not unless you port it ;)
Myriam Abramson wrote:
> Is there something to do that easily? After all the syntax is not that
> much differen
I'll remove it.
-SS
On May 10, 1:56 pm, miner wrote:
> I'm just getting started with Clojure. I had a small issue trying to
> build the clojure-contrib project. I'm on an old PPC Mac with only
> Java 5. The javalog.clj file requires Java 6.
>
> There's an easy fix for javalog.clj. GLOBAL_LOG
For those tracking,
... thanks to help from you all,
I've now implemented a demo showing the PersistentHeap in action for a-star
search, instantiated for the 15-puzzle:
http://code.google.com/p/jc-pheap/source/browse/#svn/trunk/jc-pheap/src/clj_algorithms
.
I hope to tackle an efficient Dijkstra
I'm just getting started with Clojure. I had a small issue trying to
build the clojure-contrib project. I'm on an old PPC Mac with only
Java 5. The javalog.clj file requires Java 6.
There's an easy fix for javalog.clj. GLOBAL_LOGGER_NAME is always
just "global", so you can use the literal val
You'll need to have a similar folder structure in all of your libraries if
you want it to be easy for other people.
Stack trace
=
INIT GL IS: com.sun.opengl.impl.GLImpl
Chosen GLCapabilities: GLCapabil
This particular case also looks easy parallelize. Using agents you can
divide the execution time by number of available CPUs.
On Sun, May 10, 2009 at 9:35 AM, Julien wrote:
>
> here's a improved version of the byte-array-sound function which is
> probably easier to understand. based upon a real
On 09.05.2009, at 20:33, samppi wrote:
> Wow, I've never seen ~' before. But it works great. Thanks a lot.
It's not a special syntax, it's just ~ (insert value of the following
expression) with (quote symbol) as the expression.
>> Now that monads use symbol macros (a change that's a few days
Hello Julien,
I am in a similar situation to yours: I am writing a Clojure library
to parse Starcraft replay files, but my Clojure code is very far from
nearly equivalent Java code. Currently, on my home PC, parsing 1,050
files takes ~70 seconds with Clojure and about 12 with Java. The code
is
Howard Lewis Ship writes:
> clojure-lang because there will be a clojure-contrib artifact for the
> same group.
And this is ... a bad thing? I'm lost.
-Phil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojur
David Nolen writes:
> Not unless you port it ;)
>
Is there something to do that easily? After all the syntax is not that
much different and that's what lisp do well.
On May 8, 7:17 pm, André Thieme wrote:
> In principle you could run Clojure and ABCL inside the same VM.
> http://common-li
here's a improved version of the byte-array-sound function which is
probably easier to understand. based upon a real mathematical formula.
(defn byte-array-sound-2 [frequency sample-rate nb-frame]
(let [sample-array (make-array (. Byte TYPE) (* nb-frame 2))
sample-interval (/ 1 (double
On May 10, 2:08 am, David Nolen wrote:
> What's a sample set of values you would pass to this function?
(byte-array-sound 2000 44100 10)
here frequency would be the pitch of the sound generated 2000Hz,
sample-rate set to 44100Hz.
Thank you David, it does work faster now.
I uploaded the
2009/5/10 Meikel Brandmeyer
> Hi Laurent,
>
> Am 10.05.2009 um 07:19 schrieb Laurent PETIT:
>
> No problem, but you can still consider (for the definition of the
>> function) the equivalent higher-order version I provided later in the my
>> post (you didn't answer to this one):
>>
>> (defn repea
23 matches
Mail list logo