On Dec 2, 4:52 pm, Peter Wolf [EMAIL PROTECTED] wrote:
I vote that we take Merlyn's code as a base and put it on SourceForge.
I'll add my Lexer and Parser and work on formatting, parens matching and
coloring. Erik can add his REPL and completion stuff.
However, I think it would be polite
@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
On Dec 3, 3:06 pm, levand [EMAIL PROTECTED] wrote:
I am coming to Clojure from the Java side, and am completely ignorant
about lisp indentation newline conventions.
Some things are easy to pick up from posted examples and common
sense...newline + tab after the parameters vector when
On Dec 3, 3:06 pm, levand [EMAIL PROTECTED] wrote:
I am coming to Clojure from the Java side, and am completely ignorant
about lisp indentation newline conventions.
Some things are easy to pick up from posted examples and common
sense...newline + tab after the parameters vector when
On Dec 7, 5:20 am, Meikel Brandmeyer [EMAIL PROTECTED] wrote:
Hi,
Am 07.12.2008 um 09:55 schrieb [EMAIL PROTECTED]:
This solution worked for me and you can see my patch at the following
url.
http://paste.lisp.org/display/71744
This is of course no solution to the problem, but if you
this message because you are subscribed to the Google Groups
Clojure group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
it
(defmacro conj-when [pred new coll]
`(let [test# ~pred]
(if test#
(conj [EMAIL PROTECTED] ~new)
[EMAIL PROTECTED])))
and an example ...
(defn- syncPacket [r]
(let [state (r :state)]
(conj-when (= state :WINNER) { :WINNER (r
On Dec 2, 2:39 am, Meikel Brandmeyer [EMAIL PROTECTED] wrote:
Hi,
On 2 Dez., 04:47, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
So why is the above form not legal in Clojure? I would think it might
come in handy to define a function that relies on something currently
not-yet-defined
On Dec 1, 4:11 pm, Peter Wolf [EMAIL PROTECTED] wrote:
Since I plan to introduce Clojure into existing large Java projects, I want
to use a decent IDE. So I am writing a Clojure plugin for my favorite--
IntelliJ. When I'm done I hope to offer a nice integrated environment
complete
On Nov 29, 7:52 am, Rich Hickey [EMAIL PROTECTED] wrote:
On Nov 29, 2008, at 6:49 AM, Daniel Renfer wrote:
Even if you don't think you'll run into the possibility of blowing
your stack, it's still a good idea to use recur when doing tail call
recursion. The compiler will help you out
On Nov 30, 3:51 pm, Michael Wood [EMAIL PROTECTED] wrote:
On Sun, Nov 30, 2008 at 9:29 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On Nov 29, 7:52 am, Rich Hickey [EMAIL PROTECTED] wrote:
On Nov 29, 2008, at 6:49 AM, Daniel Renfer wrote:
Even if you don't think you'll run
On Nov 25, 11:07 am, Rich Hickey [EMAIL PROTECTED] wrote:
On Nov 25, 10:42 am, Stephen C. Gilardi [EMAIL PROTECTED] wrote:
On Nov 25, 2008, at 9:05 AM, Rich Hickey wrote:
I've added trampoline to ease the conversion/creation of mutually
recursive algorithms in Clojure.
Very cool
On Nov 24, 3:03 pm, Rich Hickey [EMAIL PROTECTED] wrote:
Speculating about inefficiency without a concrete counter-proposal is
not productive. While there could no doubt be some higher-performance
vector constructor/reducers, producing vector-returning versions of
the sequence ops
On Nov 24, 8:17 pm, Chouser [EMAIL PROTECTED] wrote:
One option: You could use a seq instead of all the various structs.
I took your advice and uploaded the rewrite to the files section in
Google Groups, filename is pretty-printer.clj. It doesn't get a stack
overflow anymore, but it runs out
On Nov 25, 12:50 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
On Nov 25, 12:22 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
This approach might just be too inefficient -- perhaps it would be
best to implement the pretty-printer in an imperative style after all.
OTOH it is pretty
Groups
Clojure group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
On Nov 22, 7:31 pm, Christian Vest Hansen [EMAIL PROTECTED]
wrote:
With (vec) I think:http://clojure.org/api#toc508
That's not really efficient as it copies the whole seq. It seems that
relative to sequences the other data structures are second class
insofar as when you use the sequence library
On Nov 22, 9:48 pm, Rich Hickey [EMAIL PROTECTED] wrote:
map and filter don't modify anything. What does it mean to filter a
vector?
Yes yes, I know that. Still in English its sometimes easier to be
sloppy and pretend that I modify something even though I get another
vector.
In any case
, any info would be appreciated.
Thanks
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group
to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
Clojure group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
.
Thanks,
Steve
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more
On Nov 21, 9:03 pm, Stuart Sierra [EMAIL PROTECTED] wrote:
Hi Steve,
Although the reduce is very Lispy, in this case it might be clearer
with loop/recur:
Thanks for your rewrite. I don't see if-let in the website API
documentation. I suppose I should track the latest instead of using
On Nov 14, 3:42 pm, Chouser [EMAIL PROTECTED] wrote:
On Fri, Nov 14, 2008 at 2:11 PM, Jeff Rose [EMAIL PROTECTED] wrote:
Does my dispatch function have to inspect the passed in values to
figure out which type of struct they are, or can I query that
somehow?
My understanding
/things
user (pp things)
nil
{:three [1 2 3 4 5],
:one another,
:five :done,
:four still making things up,
:two {:a map, :map inside}}
user
user (pp (bean (. java.awt.Color black)))
nil
{:RGB -16777216,
:class class java.awt.Color,
:red 0,
:colorSpace [EMAIL PROTECTED],
:transparency 1,
:blue
On Nov 18, 12:53 pm, Meikel Brandmeyer [EMAIL PROTECTED] wrote:
As always: don't copy code blindly! Take a step back and look from a
distance, how you can *translate* the code. For example, in the
show-list-children function, the recursion is just used for iteration.
It starts with x, do
On Nov 18, 1:12 pm, Chouser [EMAIL PROTECTED] wrote:
On Tue, Nov 18, 2008 at 1:05 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Your implementation needs to get the whole value of pr-str before
deciding that it is too long to put on a single line.
That's certainly what it does, but I
On Nov 18, 1:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks for the advice. I think this works for show-list-children:
(defn insert-line [x y]
(doc-concat x (doc-concat (doc-line) y)))
(defn show-list-children [x]
(cond (empty? x)
(doc-nil)
(= (count x) 1
On Nov 14, 3:42 pm, Chouser [EMAIL PROTECTED] wrote:
On Fri, Nov 14, 2008 at 2:11 PM, Jeff Rose [EMAIL PROTECTED] wrote:
Does my dispatch function have to inspect the passed in values to
figure out whichtypeof struct they are, or can I query that
somehow?
My understanding
?
Thank you,
Benoit
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more
to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
Clojure group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
On Nov 10, 9:28 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote:
This works:
svn cohttps://clojure.svn.sourceforge.net/svnroot/clojure/trunkclojure
(checks out)
cd clojure
ant
(builds)
java -cp clojure.jar:./gen clojure.lang.Repl
(fails)
java -cp clojure.jar:./gen
When I rebuilt using 1088 it works correctly. Thank you very much!
On Nov 9, 11:43 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote:
On Nov 9, 2008, at 9:57 PM, [EMAIL PROTECTED] wrote:
svn co -r 1088
If you continue to have trouble, please give more detail about your
hardware
1)
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit
To answer my own question - AFn.java implements java.util.Comparator.
On Nov 6, 10:18 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
The doc of sort states that you need to implement
java.util.Comparator in order to use custom sorting. Why then does
this not cause any error?
user= (defn my
On Nov 4, 4:37 pm, Matthias Benkard [EMAIL PROTECTED] wrote:
The CPL doesn't allow me to choose the GPL. Instead, it forces me to
apply a CPL-compatible, GPL-like license -- a thing which may or may
not currently exist, but which will certainly make my library useless
to almost everybody
On Nov 5, 6:55 am, Konrad Hinsen [EMAIL PROTECTED] wrote:
I agree. Can anyone cite a single lawsuit concerning an inappropriate
mix of licenses?
Usually these license issues get resolved before court. The fact is
that it is illegal to combine CPL and GPL code in certain manners.
Doing
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com
On Nov 3, 5:35 am, J. Pablo Fernández [EMAIL PROTECTED] wrote:
One thing that might be doable and acceptable is dual licensing. If
Clojure is realsed as CPL *and* GPL, it can be combined with GPL
programs and it is not in any way more free than the CPL (say, like if
you add BSD in the bag
On Nov 3, 7:33 am, Christian Vest Hansen [EMAIL PROTECTED]
wrote:
On Mon, Nov 3, 2008 at 2:11 AM, Rich Hickey [EMAIL PROTECTED] wrote:
MIT and BSD are not reciprocal licenses. I want a reciprocal license.
What does it mean that a license is reciprocal?
I think in this case it means that any
-compatible.html
Chris
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more
I am not advocating Clojure move to the GPL!!! I don't want to fight
that battle.
However, a slight change to a GPL *compatible* license would be
*very* welcome
and I think benefit Clojure.
Chris
On Nov 2, 10:50 am, Phlex [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
The biggest
On Nov 2, 10:52 am, jdz [EMAIL PROTECTED] wrote:
2. I personally dislike GPL
sigh Opinions about the GPL are straw men. No one is advocating
conversion to GPLjust a GPL compatible license.
--~--~-~--~~~---~--~~
You received this message because you
On Nov 2, 11:06 am, Randall R Schulz [EMAIL PROTECTED] wrote:
many projects and businesses, both
commercial and open-source, will categorically not use GPL-licensed
software in their projects.
straw man again.They will use a GPL compatible license like MIT
and BSD and many others.
I'm
On Nov 2, 1:16 pm, Matthias Benkard [EMAIL PROTECTED] wrote:
I would hate to seeclojureadopting the GPL.
Certainly, something compatible with the GPL wouldn't have to be the
GPL itself.
Thank you. True!
cs
--~--~-~--~~~---~--~~
You received this message
On Nov 2, 3:28 pm, a r [EMAIL PROTECTED] wrote:
Still, for me a dual CPL/LGPL license would be nicer. This is purely
for practical reasons - Java itself going GPL, reusing (those few) GPL
Java libraries or embeddingClojurecompiler in GPL applications (this
might be OK with CPL, I'm
On Nov 2, 1:56 pm, .Bill Smith [EMAIL PROTECTED] wrote:
For an earlier discussion of this same topic,
seehttp://groups.google.com/group/clojure/browse_thread/thread/735aa7f1c...
Bill
I agree that GPL incompatibility isn't a concern for Clojure *users*.
It would be a practical problem
On Nov 2, 5:11 pm, Rich Hickey [EMAIL PROTECTED] wrote:
I want a reciprocal license.
But I don't want the license to apply to, or dictate anything about,
non-derivative work that is combined with mine, as GPL does. I think
doing so is fundamentally wrong.
It is your code and you are free
On Oct 29, 2:20 pm, Paul Drummond
[EMAIL PROTECTED] wrote:
Is there reason why abs is not part of the Numbers interface?
I don't know, but...
Would be nice to be able to use:
(abs -1.0)
1
(abs 1.0M)
1M
How about this:
(defn abs [x]
(if ( x 0) (- x) x))
This does what you
to the Google Groups
Clojure group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
latest build from svn
any ideas?
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL
Scala is sure to use java primitive int type underline, i.e value
type and boxed to java Integer when necessarily
But why not Clojure auto make this ?
gerry
On Oct 19, 11:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Here is coersion version for Clojure
(defn fib [n]
(let [n
This lazy cached calculate is wonderful ,but i think the benefit from
it mostly due to cache .
On Oct 19, 11:56 pm, Lauri Oherd [EMAIL PROTECTED] wrote:
There is also a faster way to calculate fibonacci numbers in Clojure
(code taken from
fromhttp://en.wikibooks.org/wiki
Austin, Texas, USA.
On Oct 17, 9:18 am, Eric Rochester [EMAIL PROTECTED] wrote:
Atlanta, Georgia, US
On Fri, Oct 17, 2008 at 5:27 AM, Rastislav Kassak [EMAIL PROTECTED]wrote:
Hello Clojurians,
I think after 1st year of Clojure life it's good to check how far has
Clojure spread all
Hubei,China
gerry
On Oct 17, 5:27 pm, Rastislav Kassak [EMAIL PROTECTED] wrote:
Hello Clojurians,
I think after 1st year of Clojure life it's good to check how far has
Clojure spread all over the world.
So wherever are you come from, be proud and say it.
I'm from Slovakia. :)
RK
Santiago, Chile.
On Oct 17, 6:27 am, Rastislav Kassak [EMAIL PROTECTED] wrote:
Hello Clojurians,
I think after 1st year of Clojure life it's good to check how far has
Clojure spread all over the world.
So wherever are you come from, be proud and say it.
I'm from Slovakia. :)
RK
Rich,thanks,
After i finish my translating work, I will contact you to see whether
it fit on your
web. But i hope so :)
Best regards
Gerry
On Oct 16, 6:55 am, Rich Hickey [EMAIL PROTECTED] wrote:
On Oct 14, 1:05 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
hello,rich,
i'm from
On Oct 14, 10:04 am, Asbjørn Bjørnstad [EMAIL PROTECTED] wrote:
[..snip..]
So it is not possible to put the clj files into the jar so that no
unzipping
is neccessary? I tried, but my java/jar knowledge is basically zero.
--
-asbjxrn
it is definitely possible. To make a jar
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---
On Sep 9, 10:51 am, Brett Morgan [EMAIL PROTECTED] wrote:
Would you kindly educate me in how you believe that Clojure would go
about trapping your error and giving you an error message instead of
running out of stack space, given that you had given it a
non-terminating dependency list?
First
67 matches
Mail list logo