Re: Why I have chosen not to employ clojure

2010-03-22 Thread Miron Brezuleanu
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. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient

Re: Clojure + Intellij IDEA: stepping through Clojure implementation code

2010-01-03 Thread Miron Brezuleanu
Hi Rich, On Sat, Jan 2, 2010 at 7:13 PM, Rich Hickey richhic...@gmail.com wrote: On Fri, Jan 1, 2010 at 5:16 PM, Miron Brezuleanu mbr...@gmail.com 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 I mean

Re: Clojure + Intellij IDEA: stepping through Clojure implementation code

2010-01-03 Thread Miron Brezuleanu
, when you create a new project clojure.jar is suggested to be downloaded automatically. With best regards, Ilya 2010/1/2 Miron Brezuleanu mbr...@gmail.com Hello, In order to get a better understanding of how some things happen in Clojure, I'd like to step through Clojure code (and I mean

Clojure + Intellij IDEA: stepping through Clojure implementation code

2010-01-01 Thread Miron Brezuleanu
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 Brezuleanu -- You received this message because you

Re: Clojure + Music Notation

2009-12-22 Thread Miron Brezuleanu
-in, assoc-in and get-in and maybe your data structure will be easier to manipulate. Zippers are great too, as James Sofra suggests. I hope I managed to describe what you were missing, I probably used too many words in the attempt :-) -- Miron Brezuleanu -- You received this message because you

Re: Generalizing - -

2009-12-04 Thread Miron Brezuleanu
to participate 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 -- You

Re: Space leak with lazy sequences.

2009-11-27 Thread Miron Brezuleanu
://groups.google.com/group/clojure?hl=en -- 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 members are moderated - please be patient with your

Re: Better documentation and error messages are needed for the ns macro

2009-11-11 Thread Miron Brezuleanu
, 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 you are subscribed to the Google

Re: ClojureCLR: out parameters

2009-11-02 Thread Miron Brezuleanu
... 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:-) -- Miron Brezuleanu --~--~-~--~~~---~--~~ You received

Re: ClojureCLR: out parameters

2009-11-02 Thread Miron Brezuleanu
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

Re: Syntax highlighting clojure code

2009-11-02 Thread Miron Brezuleanu
? 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, -- Miron Brezuleanu [1] The script does add

ClojureCLR: out parameters

2009-11-01 Thread Miron Brezuleanu
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 --~--~-~--~~~---~--~~ You received this message because you are subscribed

Compiling latest ClojureCLR

2009-10-31 Thread Miron Brezuleanu
. Run the $CLOJURE/clojure-clr/Clojure/Clojure.Main/bin/Debug/Clojure.Main.exe. Celebrate getting a Clojure REPL by typing (+ 1 1) or your favourite Clojure expression. Cheers, -- Miron Brezuleanu --~--~-~--~~~---~--~~ You received this message because you

ClojureCLR - clojure.contrib.repl-utils

2009-10-31 Thread Miron Brezuleanu
[] 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 received this message because you are subscribed to the Google

Re: Compiling latest ClojureCLR

2009-10-31 Thread Miron Brezuleanu
, -- 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 members are moderated - please be patient with your

Re: Scriptjure, Parenscript - why not generate code in other languages

2009-10-30 Thread Miron Brezuleanu
Hello, On Thu, Oct 29, 2009 at 2:24 PM, Meikel Brandmeyer m...@kotka.de wrote: On Oct 29, 1:15 pm, Miron Brezuleanu mbr...@gmail.com 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

Re: Infinite sequences hang sets and maps

2009-10-29 Thread Miron Brezuleanu
. 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 everyone (other than infinity). -- Miron Brezuleanu

Scriptjure, Parenscript - why not generate code in other languages

2009-10-29 Thread Miron Brezuleanu
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 because you are subscribed to the Google Groups

Re: Scriptjure, Parenscript - why not generate code in other languages

2009-10-29 Thread Miron Brezuleanu
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 because you are subscribed to the Google Groups Clojure group. To post

Re: On using GPL libs in Clojure

2009-10-11 Thread Miron Brezuleanu
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 software depends, assuming this is feasible. -Tom Gordon -- Miron Brezuleanu --~--~-~--~~~---~--~~ You received

Re: Basic questions

2009-10-08 Thread Miron Brezuleanu
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 members

Re: Two minor typos in the cheatsheet

2009-10-02 Thread Miron Brezuleanu
. Thanks, On Fri, Oct 2, 2009 at 12:40 AM, AlamedaMike amino.metr...@gmail.com wrote: odd and even should be odd? and even? Thanks for creating this. Most useful. -- Miron Brezuleanu --~--~-~--~~~---~--~~ You received this message because you

Re: Schema for data structures

2009-09-27 Thread Miron Brezuleanu
Hi, On Sat, Sep 26, 2009 at 3:36 PM, Daniel Werner daniel.d.wer...@googlemail.com wrote: On Sep 24, 10:14 am, Miron Brezuleanu mbr...@gmail.com 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

Re: Schema for data structures

2009-09-25 Thread Miron Brezuleanu
*, 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 this group, send email to clojure@googlegroups.com Note

Naming structs

2009-09-24 Thread Miron Brezuleanu
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 group. To post to this group, send email

Schema for data structures

2009-09-24 Thread Miron Brezuleanu
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 --~--~-~--~~~---~--~~ You received this message because you

Re: Naming structs

2009-09-24 Thread Miron Brezuleanu
Hi, On Thu, Sep 24, 2009 at 12:12 PM, Jarkko Oranen chous...@gmail.com wrote: On Sep 24, 11:01 am, Miron Brezuleanu mbr...@gmail.com wrote: Hello, I find that I tend to name struct instances like the struct. For instance, You could name the struct base person or something. I vaguely

Re: Schema for data structures

2009-09-24 Thread Miron Brezuleanu
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 --~--~-~--~~~---~--~~ You received this message because

Re: minor grievance with arithmetic on characters

2009-09-09 Thread Miron Brezuleanu
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 received this message because you are subscribed to the Google Groups Clojure

Eval troubles

2009-09-03 Thread Miron Brezuleanu
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)))

Re: Eval troubles

2009-09-03 Thread Miron Brezuleanu
Hello, thanks everyone for replies, On Thu, Sep 3, 2009 at 2:36 PM, Konrad Hinsen konrad.hin...@fastmail.net 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 (NO_SOURCE_FILE:1

Re: Eval troubles

2009-09-03 Thread Miron Brezuleanu
Hi, On Thu, Sep 3, 2009 at 4:26 PM, Konrad Hinsenkonrad.hin...@fastmail.net 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 languages

Re: Eval troubles

2009-09-03 Thread Miron Brezuleanu
not enough at the worst moments, so a more capable debugger would come in handy. Thanks, -- 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

Re: Eval troubles

2009-09-03 Thread Miron Brezuleanu
- 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 because you are subscribed to the Google Groups Clojure