Hello All,
Is the fact that the output of (show java.math.BigInteger) and (show
bigint) differ is a bug or a feature? :)
All the best,
--
Miki
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To pos
On Apr 21, 12:18 pm, Daniel Jomphe wrote:
> Paul Stadig wrote:
> > Others have commented on the whole groupId, artifactId, etc., etc. But in
> > terms of the parts of the version number, they are named
> > ..- as documented here:
>
> >http://www.sonatype.com/books/maven-book/reference/pom-relat
Hi,
2009/4/22 Rich Hickey :
> [...]
> {:major 1, :minor 0, :incremental 0, :qualifier :rc1 :interim true}
> [...]
> Possible
> values of :qualifier include :rc, :beta etc,
> and :interim will be true for non-release builds.
I don't think :qualifier is used correctly here (at least if you want
to
OOooops sorry, I mistook "qualifier" for "classifier",
:qualifier seems totally appropriate here, sorry for the noise,
--
Laurent
2009/4/22 Laurent PETIT :
> Hi,
>
> 2009/4/22 Rich Hickey :
>> [...]
>> {:major 1, :minor 0, :incremental 0, :qualifier :rc1 :interim true}
>> [...]
>> Possible
>>
On Apr 20, 10:42 pm, Andrew Wagner wrote:
> It would be fun to have a team of clojure programmers work on the ICFP '09
> contest. Has this been done previously? Anybody interested? I'm new to
> clojure and to lisps in general, but have a pretty good grasp of functional
> programming (mostly fro
Rich Hickey wrote:
> I don't mind the build producing clojure-1.0.0.jar etc, but it doesn't
> now. The master build is Ant. Where is the best place to put the
> version info so it can be leveraged by Ant, Maven and the clojure core
> runtime in order to produce *clojure-version* ?
>
> What changes
Daniel Jomphe wrote:
> Rich Hickey wrote:
> > I don't mind the build producing clojure-1.0.0.jar etc, but it doesn't
> > now. The master build is Ant. Where is the best place to put the
> > version info so it can be leveraged by Ant, Maven and the clojure core
> > runtime in order to produce *cloj
On Apr 22, 2009, at 2:38 AM, miki wrote:
Is the fact that the output of (show java.math.BigInteger) and (show
bigint) differ is a bug or a feature? :)
java.math.BigInteger is a class.
bigint is a function.
Differing output from show is expected.
--Steve
smime.p7s
Description: S/MIME cry
On Wed, Apr 22, 2009 at 2:38 AM, miki wrote:
>
> Is the fact that the output of (show java.math.BigInteger) and (show
> bigint) differ is a bug or a feature? :)
Feature!
The symbol java.math.BigInteger refers to the BigInteger class, and
'show' shows that. The symbol bigint refers to a functio
Thanks Phil. I'll try it out. It's about time I started learning about
Maven anyway.
--~--~-~--~~~---~--~~
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
To u
Hello,
> > Is the fact that the output of (show java.math.BigInteger) and (show
> > bigint) differ is a bug or a feature? :)
>
> java.math.BigInteger is a class.
>
> bigint is a function.
>
> Differing output from show is expected.
Ah, OK.
Thanks,
--
Miki
--~--~-~--~~~---
Let's say I have a sequence of integers:
(def a (3 9 1 5 102 -322 ...))
Is there a function for inserting an object—let's say :foo—after
elements that fulfill a certain predicate?
Furthermore, I mean inserting :foo after any block of elements that
fulfill it:
(mystery-function (partial > 6)
Phil, that's useful advice about unpacking jar files to a project's
dependency directory versus dropping jar files in there. That would be
a good candidate for a FAQ regarding how to add dependent jars during
development without restarting your REPL. And it decreases questions
about the deprecated
Hi,
what about that :
(require 'clojure.contrib.seq-utils)
(defn mystery-function
"f : predicate function ; s : sequence to work on ; o : object to insert
after each group of items fullfilling predicate f"
[f s o]
(let [partitioned (clojure.contrib.seq-utils/partition-by f s)]
(mapc
2009/4/22 Rich Hickey :
> [...]
> {:major 1, :minor 0, :incremental 0, :qualifier :rc1 :interim true}
>
> for interim versions and
>
> {:major 1, :minor 0, :incremental 0}
>
> for releases. :interim tracks the SNAPSHOT segment of the version
> string.
> [...]
> I don't mind the build producing cloj
On Mon, Apr 20, 2009 at 5:17 PM, Hugh Winkler wrote:
>
> On Mon, Apr 20, 2009 at 1:59 PM, David Nolen wrote:
>> Maps aren't ordered so this isn't a good idea anyway.
>
> It's a good idea if you have a sorted map. My example should have used
> sorted-map.
>
>> The reason first/second work is beca
On Wed, Apr 22, 2009 at 4:57 PM, samppi wrote:
>
> Let's say I have a sequence of integers:
> (def a (3 9 1 5 102 -322 ...))
>
> Is there a function for inserting an object—let's say :foo—after
> elements that fulfill a certain predicate?
> Furthermore, I mean inserting :foo after any block of e
On Tue, Apr 21, 2009 at 12:01 PM, David Nolen wrote:
> Nice post thanks for putting it together. My gut feeling is that the need
> for information hiding is still overinflated, but... until someone builds a
> 200k LOC Clojure program who will know for sure?
> Here's my shot at a solution for pri
On Wed, Apr 22, 2009 at 9:58 AM, Michael Wood wrote:
>
> On Wed, Apr 22, 2009 at 4:57 PM, samppi wrote:
> >
> > Let's say I have a sequence of integers:
> > (def a (3 9 1 5 102 -322 ...))
> >
> > Is there a function for inserting an object—let's say :foo—after
> > elements that fulfill a certai
2009/4/22 Michael Wood :
>
> On Wed, Apr 22, 2009 at 4:57 PM, samppi wrote:
>>
>> Let's say I have a sequence of integers:
>> (def a (3 9 1 5 102 -322 ...))
>>
>> Is there a function for inserting an object—let's say :foo—after
>> elements that fulfill a certain predicate?
>> Furthermore, I mean
You're missing the clever hack ;) I'm hashing the private data structure and
associating it to the map. This is what is used in the equality test. You
can verify yourself that it works.
my-object ;; -> {:private -1261861093}
my-other-object ;; -> {:private -1261861093}
Make sense? A few quick test
Hi,
Am 22.04.2009 um 16:57 schrieb samppi:
Let's say I have a sequence of integers:
(def a (3 9 1 5 102 -322 ...))
Is there a function for inserting an object—let's say :foo—after
elements that fulfill a certain predicate?
Furthermore, I mean inserting :foo after any block of elements that
ful
Hi all.
I'm having problems with using swig-generated wrappers with Clojure.
I'm running ubuntu-8.04-i386, gcc-4.2.4, swig-1.3.33, openjdk-1.6.0,
latest clojure release.
I've cut down a minimal reproducible example.
The swig file:
---file:swig_test.i---
%module swig_test
%{
int swig_test_whatever
I couldn't find an equivalent to "rm -rf" in the JDK, so I wrote these
functions:
(defn delete-file
"Delete file f. Raise an exception if it fails."
[f]
(or (.delete (file f))
(throw (java.io.IOException. (str "Couldn't delete " f)
(defn delete-file-recursively
"Delete file f.
On Wed, Apr 22, 2009 at 8:03 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am 22.04.2009 um 16:57 schrieb samppi:
>
>> Let's say I have a sequence of integers:
>> (def a (3 9 1 5 102 -322 ...))
>>
>> Is there a function for inserting an object—let's say :foo—after
>> elements that fulfill a certain pred
I might be wrong,
but shouldn't you compile the .c file to .o with "-fpic", and then
link with ld with "-shared"?
maybe just adding "-fpic" to:
gcc -fpic -shared ${JNI_CFLAGS} swig_test_wrap.c -o libswig_test.so
might do it.
On Apr 22, 6:41 am, "Antonio, Fabio Di Narzo"
wrote:
> Hi all.
> I'
Hi Micheal,
Am 22.04.2009 um 21:18 schrieb Michael Wood:
Your version gives the same answer as mine, but I believe what he
wants is something that skips over all the elements that pass the test
and only inserts one instance of o after them. That's why in his
example there is not a :foo after 1
On 22 Apr., 21:12, Phil Hagelberg wrote:
> I couldn't find an equivalent to "rm -rf" in the JDK, so I wrote these
> functions:
>
> (defn delete-file
> "Delete file f. Raise an exception if it fails."
> [f]
> (or (.delete (file f))
> (throw (java.io.IOException. (str "Couldn't delete "
Hi all!
(defn mystery-function [pred coll]
(lazy-seq
(when (seq coll)
(let [[run etc] (split-with pred coll)]
(if (seq run)
(concat run (cons :foo (mystery-function pred etc)))
(cons (first coll) (mystery-function pred (rest coll
Christophe
samp
On Wed, Apr 22, 2009 at 1:28 PM, David Nolen wrote:
> You're missing the clever hack ;) I'm hashing the private data structure and
> associating it to the map. This is what is used in the equality test. You
> can verify yourself that it works.
> my-object ;; -> {:private -1261861093}
> my-other-o
why is 'when' preferred ... so we know what the considerations are? Thanks
On Wed, Apr 22, 2009 at 6:47 PM, André Thieme
wrote:
>
> On 22 Apr., 21:12, Phil Hagelberg wrote:
> > I couldn't find an equivalent to "rm -rf" in the JDK, so I wrote these
> > functions:
> >
> > (defn delete-file
> >
i've noticed a pattern in explanations in clojure that interface and runtime
are related. Is that the point being made here? Make expensive things hard
or at least explicit?
Maybe instead of nth, since that causes controversy,
call it "find-nth" or something?
On Wed, Apr 22, 2009 at 12:58 P
André Thieme writes:
> This could really be helpful for some fixtures during unit testing.
That's exactly what I'm using it for. =) I think anyone else who has
tests that write files is going to need something like this too, which
is what made me think it'd be appropriate for contrib.
> One mi
I think this might come from Common Lisp (or Scheme, not sure).
In anycase CL also has "unless" which is exactly the opposite of
"when" - e.g. it would do the "else" part of "if".
http://www.lispworks.com/documentation/HyperSpec/Body/m_when_.htm
Basically some of the Common Lispers are saying t
Duh... Ignore me :) - I don't have really an explanation for what I
wrote, but I got confused really badly! hehehe
On Apr 22, 5:16 pm, "Dimiter \"malkia\" Stanev"
wrote:
> I think this might come from Common Lisp (or Scheme, not sure).
>
> In anycase CL also has "unless" which is exactly the opp
I think you can keep the version number in the pom (there's a
element at the top).
It is pretty easy to access the POM version from Ant; from there you
can create a file containing the version number, and have Clojure read
that file at startup. However, this starts getting into the world of
requ
On Wed, Apr 22, 2009 at 6:30 PM, Phil Hagelberg wrote:
>
> Yeah, I had originally put this in the clojure.contrib.java-utils
> namespace, which defines file. Not sure if that's the best place for it,
> but I don't see anything else that would be a better fit.
>
>
This kind of functionality remind
On Apr 22, 4:55 am, Rich Hickey wrote:
>
> I think it would be great if a Clojure team could have a go.
>
> Rich
Interestingly, in the 11 year history of the ICFP contest, a Lisp
variant never won, not even a third prize (unless you consider Dylan a
Lisp), and not for lack of trying.
http://en
On Mon, Apr 20, 2009 at 10:42 PM, Andrew Wagner wrote:
> It would be fun to have a team of clojure programmers work on the ICFP '09
> contest. Has this been done previously? Anybody interested? I'm new to
> clojure and to lisps in general, but have a pretty good grasp of functional
> programming
On Wed, Apr 22, 2009 at 10:49 PM, Chouser wrote:
>
> On Mon, Apr 20, 2009 at 10:42 PM, Andrew Wagner
> wrote:
>> It would be fun to have a team of clojure programmers work on the ICFP '09
>> contest. Has this been done previously? Anybody interested? I'm new to
>> clojure and to lisps in genera
Try your hand at one of the older contests, like this one:
http://www.boundvariable.org/task.shtml
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@googleg
Hi Chrisophe,
You are correct, the doall also solves the problem.
Based on that, I moved the doall out of matrixMultiply and into the
computeActualResponse function, so that the caller can decide whether
they want lazy evaluation for matrixMultiply or not:
(defn computeActualResponse [signumFun
I've uploaded a file
http://groups.google.co.za/group/clojure/web/enlive-tut1.txt?hl=en
which is a basic tutorial on getting started with Enlive (the html
transformation library).
Christophe, this is intended as a contribution to the Enlive project,
so you're welcome to use it as part of the Enli
43 matches
Mail list logo