this email in my "clojure mailbox", I will
> unsubscribe from this mailing list, delete the clojure mailbox and I will not
> be following up in any way.
>
--
Miron Brezuleanu
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
nteractivity.
http://groups.google.com/group/clojure/browse_thread/thread/8d77ad0da8d190c8/baf2a0bdf87b7dd6?lnk=gst&q=repl+macro#baf2a0bdf87b7dd6
(sorry for the long URL)
also
http://georgejahad.com/clojure/debug-repl-macros.html
for macros.
>
> Thanks,
> Ajay
> --
>
Miron Brezuleanu
odule it will be automatically included to the classpath. Normally, when
> you create a new project clojure.jar is suggested to be downloaded
> automatically.
>
> With best regards,
> Ilya
>
> 2010/1/2 Miron Brezuleanu
>
>> Hello,
>>
>> In order to get a b
Hi Rich,
On Sat, Jan 2, 2010 at 7:13 PM, Rich Hickey wrote:
> On Fri, Jan 1, 2010 at 5:16 PM, Miron Brezuleanu wrote:
> > Hello,
> > In order to get a better understanding of how some things happen in
> Clojure,
> > I'd like to step through Clojure code (and
using the
output window).
Since I am a complete IDEA newbie, I'd be very happy if someone who is using
IDEA to work on Clojure can provide a few pointers. I don't mind trying this
with Eclipse, so Eclipse advice is welcome too.
Many thanks and Happy New Year everyone,
--
Miron Brezulea
te, the score is mostly the same, because most
of the old score is reused (even though it's a 'new one' - which makes
sense). <=== so try using update-in, assoc-in and get-in and maybe
your data structure will be easier to manipulate. Zippers are great
too, as James Sofra suggests.
pseudonymously for those people that (unlike myself) value their privacy
> sufficiently not to want to even post here under their real names.
Remember SCO & IBM & Novell & Linux & many others? I assume this is
why many open source projects today require CAs.
--
Miron Brezuleanu
received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this g
Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
Miron B
lass path problem, and its setup is completely non-obvious.
> The ns macro has the potential of putting off an otherwise committed
> newcomer. Clear and abundant short examples would go a long way, and
> be very appreciated.
>
--
Miron Brezuleanu
--
You received this message because y
t;> tags?
Try putting the code in a gist on GitHub then use the 'embed' link on
the gist page in your blog post (this adds a script to the page, so it
doesn't fit your 'simple html' requirements [1] , but I thought it's a
neat alternative anyway).
Cheers,
--
Miro
call Test.m(ref int x) and
(Test/m #^Int32 a)
should call Test.m(int x),
while
(Test/m a)
should throw an exception because it can't pick a method.
So ... a mandatory uglified type hint. Language design is hard :-)
there are probably much better alternatives.
Cheers,
--
Miron Brezuleanu
--
be to
wrap the out/ref calls in methods without out/ref in C#, which is kind
of painful... Implementing the 'return a list' suggestion above would
in fact automate writing such wrappers by asking the Clojure
compiler/runtime to generate that code.
I hope there are better ways to handle ref/outs:-)
--
a
1/1/0001 12:00:00 AM
user=>
I guess TryParse creates another instance of a DateTime, and the
instance passed via 'a' is left unmodified.
I believe the same problem applies to 'ref' parameters.
Thanks,
--
Miron Brezuleanu
--~--~-~--~~~---~--~---
ther, at least not the build I have.
>
> user=> (apply (fn [] 1))
> java.lang.IllegalArgumentException: Wrong number of args passed to:
> core$apply (NO_SOURCE_FILE:0)
Correct. My Clojure JVM version was a little (too) old, and ClojureCLR
was fresh out of GitHub :-)
Thanks,
--
Miron Brezuleanu
--~--~---
g. Any plans for clojure.contrib? I'd be really
interested in helping where I can, and porting clojure code to .NET is
something I can do. I'm aware of the fact that Clojure core isn't
ported completely yet, but I think work can proceed in parallel on
core and contrib. Some device to avo
Of course, this is
equivalent to "((fn [] 1))" (which works on both Clojures) but I find
the `apply` version clearer than double parentheses.
Sorry about multi-topicness and thanks for any pointers,
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
You receive
d a reference to the project to the Clojure project. Try
compiling the Clojure project again.
13. The compilation succeeds. Wonderful. Build the Clojure.Compile
project, then the Clojure.Main project.
14. Run the
$CLOJURE/clojure-clr/Clojure/Clojure.Main/bin/Debug/Clojure.Main.exe.
Celebr
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
>> f
ng something similar for TSQL.
>
> Are you thinking of something like this?
>
> http://www.gitorious.org/clojureql/
Thanks! clojureql seems to be very close to what I need.
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
You received this message becaus
syntax.
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. :-)
Thanks,
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
You received this message be
ng it also hang?
+1, I also disagree. If there is a need to compare parts of infinite
sequences, just truncate them and compare the resulting finite parts.
This is something that belongs in the application, not in the
language, as the value for N depends on the application and there is
no N that fits e
gt; Still, it would surely be less risky to interpret the GPL in a way
> which is consistent with FSF's interpretation.
>
> If you really want to avoid risks, the safest thing to do would be
> negotiate license contracts with the owners of all the components upon
> which your s
ted with
the contents of clojure.contrib.
HTH,
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
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
Note that posts from new
t resource.
Thanks,
On Fri, Oct 2, 2009 at 12:40 AM, AlamedaMike wrote:
>
> odd and even should be odd? and even?
>
> Thanks for creating this. Most useful.
> >
>
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
You received this message because y
Hi,
On Sat, Sep 26, 2009 at 3:36 PM, Daniel Werner
wrote:
>
> On Sep 24, 10:14 am, Miron Brezuleanu wrote:
>> about). The degree of typing can be varied (i.e. a person is any map
>> with a :name key, or any map with only a :name key, or any map with a
>> :name key wh
t; (I also have a defstruct*, but it defines accessors and a struct-map
> coercion, not a predicate :))
>
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to
nstance, make sure
via unit tests that a function that should return a data structure
with certain properties always returns such a data structure.
I'll try to formalize my fuzzy ideas as code. Thanks for giving me
some starting points.
--
Miron Brezuleanu
--~--~-~--~~
Hi,
On Thu, Sep 24, 2009 at 12:12 PM, Jarkko Oranen wrote:
>
> On Sep 24, 11:01 am, Miron Brezuleanu wrote:
>> Hello,
>>
>> I find that I tend to name struct instances like the struct. For instance,
>>
>
> You could name the struct base or something. I
ith only a :name key, or any map with a
:name key which is nil or string etc.)
I browsed through clojure.test (which is clojure.contrib.test-is
integrated into Clojure, right?) but couldn't find something like
this.
Thank you,
--
Miron Brezuleanu
--~--~-~--~~~
I'm
trying to use (let [aperson (struct person "John")]...) but I'm not
completely happy with it.)
Thanks,
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure"
7;s compare should use java.text.Collator when comparing
strings and chars - or add a textCompare function that would do that,
to avoid slowing down compare?
Thanks,
> user=> (.compareTo \a \b)
> -1
>
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
You recei
.
Anyway, Clojure is great even without this feature - maybe it will be
added at some point in the future. I sure don't mind the extra speed
gained from compiling as much as possible :-)
Thanks,
--
Miron Brezuleanu
--~--~-~--~~~---~--~~
You received this message b
look at JSwat, even though I'm quite comfortable with a
REPL in Emacs to test small pieces of code (plus automated tests
later) and 'printf debugging' - the problem is they are sometimes not
enough at the worst moments, so a more capable debugger would come in
handy.
Thanks,
--
Miron B
Hi,
On Thu, Sep 3, 2009 at 4:26 PM, Konrad Hinsen wrote:
>
> On 3 Sep 2009, at 14:43, Miron Brezuleanu wrote:
>
>> Is there a way to get the list of symbols bound locally and to access
>> their values?
>
> I don't think so. Python and Clojure are quite different
Hello,
thanks everyone for replies,
On Thu, Sep 3, 2009 at 2:36 PM, Konrad Hinsen
wrote:
>
> On 3 Sep 2009, at 08:24, Miron Brezuleanu wrote:
>
> > user=> (let [x 1] (eval '(inc x)))
> > java.lang.Exception: Unable to resolve symbol: x in this context
> &g
Hello,
I'm a Clojure newbie (many thanks to Rich Hickey and everyone involved
- it's a great programming environment) and I have some trouble with
'eval'.
What I'm trying is:
$ java -cp clojure.jar clojure.lang.Repl
Clojure 1.1.0-alpha-SNAPSHOT
user=> (let [x 1] (eval '(inc x)))
java.lang.Except
37 matches
Mail list logo