Hello,
2 quick remarks concerning the patch:
* type hints are written like #^String and not ^String
* why ltrim / rtrim , but upper-case / lower-case ? Why not ltrim / rtrim
+ ucase / lcase , or left-trim right-trim + upper-case / lower-case ? Will
left-trim/right-trim be so often used that t
On Jun 3, 2010, at 2:31 AM, Laurent PETIT wrote:
> * why ltrim / rtrim , but upper-case / lower-case ? Why not ltrim / rtrim +
> ucase / lcase , or left-trim right-trim + upper-case / lower-case ? Will
> left-trim/right-trim be so often used that they must be shortened to
> ltrim/rtrim (espec
Hi Zak,
It seems very weird that my version of fac changes performance
characteristics on my machine and not yours (OS/hardware dependent?).
Can you tell your hardware configuration, esp. number of physical and
logical cores? I am planning next to leave out using pmap and just try
to run the thing
Hi,
I still didnt find good high coverage descriptions/tutorials about how
to write macros in Clojure. I read the stuff in Stuart Halloways book,
thats good, but just a small introduction.
I still have some technical questions, but the main issue seems to be
that I need to dive more deeply into t
On Thu, Jun 3, 2010 at 09:31, Laurent PETIT wrote:
> Hello,
>
> 2 quick remarks concerning the patch:
>
> * type hints are written like #^String and not ^String
not anymore:
http://github.com/richhickey/clojure/commit/787938361128c2bc21ed896dd4523651b59cb420
http://github.com/richhickey/cloju
2010/6/3 B Smith-Mannschott
> On Thu, Jun 3, 2010 at 09:31, Laurent PETIT
> wrote:
> > Hello,
> >
> > 2 quick remarks concerning the patch:
> >
> > * type hints are written like #^String and not ^String
>
> not anymore:
>
>
> http://github.com/richhickey/clojure/commit/787938361128c2bc21ed896d
On 03.06.2010, at 10:36, alux wrote:
> 1. I can use syntax-quote in the REPL, outside of a macro-definition.
> Is this of any use? Does this mean the REPL always macroexpands
> everything?
Macro expansion is part of evaluation, whether at the REPL or elsewhere.
Syntax quote is not macro expansio
On Thu, Jun 3, 2010 at 11:03, Laurent PETIT wrote:
> 2010/6/3 B Smith-Mannschott
>>
>> On Thu, Jun 3, 2010 at 09:31, Laurent PETIT
>> wrote:
>> > Hello,
>> >
>> > 2 quick remarks concerning the patch:
>> >
>> > * type hints are written like #^String and not ^String
>>
>> not anymore:
>>
>>
>>
Hi Konrad,
many thanks. Thats stuff to ponder ;-)
(map (fn [s v] `(def ~s ~v)) '(a b c) '(1 2 3))
Thats impressive. I'm still, hm, puzzled. Nice example of something
that can only be done with syntax-quote, and outside of a macro. (Or
can this be done without syntax-quote, and I just dont see i
Yes.
Another question: could you add copy paste funcionality?
Feka
On Jun 2, 6:15 am, sergey-miryanov wrote:
> Feka, do you select a text on page and press button in toolbar?
>
> On Jun 1, 8:49 pm, feka wrote:
>
>
>
> > Good idea! Thanks. (And try-clojure is good idea, too. So they also
> > m
Hi,
I'm new to ClojureCLR and the DLR, so I'm trying to grasp the basic concepts
of it.
If I want to call Clojure code from C#, is it possible to compile the
Clojure code to a DLL and then reference it from my C# project, or am I
always supposed to load the script using methods?
// Peter Hultgre
On 3 Jun 2010, at 12:46, alux wrote:
Thats impressive. I'm still, hm, puzzled. Nice example of something
that can only be done with syntax-quote, and outside of a macro. (Or
can this be done without syntax-quote, and I just dont see it?)
That particular example is easy to do without syntax-quo
Hello,
The following article:
http://kirindave.tumblr.com/post/658770511/monkey-patching-gorilla-engineering-protocols-in
claims that, as far as code safety is concerned, clojure's solution is far
better than e.g. ruby monkey patching.
If I understand things well, one problem with ruby monkey p
Hi,
On Thu, Jun 03, 2010 at 01:56:36PM +0200, Laurent PETIT wrote:
> Now to clojure. I can see the same problem occur, while the article's author
> claims that in clojure there's (almost) no problem anymore.
> If several libraries, including my program, redefine blindlessly a protocol
> implement
Heinz N. Gies wrote:
> On Jun 1, 2010, at 22:26 , Sina K. Heshmati wrote:
>>> "Heinz N. Gies" said:
>>>
>>> The DNS is fixed, try-clojure.org is now working too :)
>>
>> Not anymore! I was actually using it. I missed C-a C-k though.
>
> You make me cry :P thanks for the hint this time it was my ev
On Thu, Jun 3, 2010 at 1:56 PM, Laurent PETIT wrote:
> If I understand things well, one problem with ruby monkey patching is that
> if a library I use opens a class C and adds a method whose signature is M to
> it, and if in my own code I also open the same class C and add a method
> whose signatu
On 3 Jun 2010, at 13:56, Laurent PETIT wrote:
If I understand things well, one problem with ruby monkey patching
is that if a library I use opens a class C and adds a method whose
signature is M to it, and if in my own code I also open the same
class C and add a method whose signature is M
The surface of the problem is reduced because of namespacing: two
different "fold" methods (with different semantics) from two protocols
won't clash. Plus if there are two extensions of the same protocol to
the same type, they should be rather equivalent since they satisfies
the same semantics.
Hi,
2010/6/3 Christophe Grand
> On Thu, Jun 3, 2010 at 1:56 PM, Laurent PETIT
> wrote:
> > If I understand things well, one problem with ruby monkey patching is
> that
> > if a library I use opens a class C and adds a method whose signature is M
> to
> > it, and if in my own code I also open th
Hi,
2010/6/3 Meikel Brandmeyer
> Hi,
>
> On Thu, Jun 03, 2010 at 01:56:36PM +0200, Laurent PETIT wrote:
>
> > Now to clojure. I can see the same problem occur, while the article's
> author
> > claims that in clojure there's (almost) no problem anymore.
> > If several libraries, including my prog
Hi,
When 'destructure' is doing a map destructuring, 'pmap' is the
function to use. 'pmap' will do some kind of process to the given
bindings using these lines of code:
bes (reduce
(fn [bes entry]
> The above point has been answered to Christophe. I was not talking about the
> way that namespacing will reduce the problem by allowing different function
> names (with probably different semantics) to live in different namespaces.
> This is no different than distinguishing 2 ordinary function
How about:
pper-case-uay
ower-case-ay
eft-trim-lay
ight-trim-lay
and so on...
Steve
On Wed, Jun 2, 2010 at 10:49 AM, Tom Hickey wrote:
> Including a space is correct when changing a string "to upper
> case" (hence Java's toUpperCase), though no space would be fine there
> as well.
2010/6/3 Stuart Halloway
> The above point has been answered to Christophe. I was not talking about
> the way that namespacing will reduce the problem by allowing different
> function names (with probably different semantics) to live in different
> namespaces. This is no different than distinguis
Whoops should have said:
upper-case-ay
ower-case-lay
eft-trim-lay
ight-trim-ray
Or something like that.
Steve
On Thu, Jun 3, 2010 at 9:16 AM, Steve Molitor wrote:
> How about:
>
> pper-case-uay
> ower-case-ay
> eft-trim-lay
> ight-trim-lay
>
>and so on...
>
> Steve
>
>
> On
Hi all,
I am trying to close out important tickets prior to the 1.2 beta release. If
you have submitted a ticket that you think is important, and it has received no
action yet, please help me by making sure the pieces are in place so I can
review it efficiently.
One thing that seems missing f
Stu,
#358 is marked as fixed but this bug occurs for other loength of
transient vectors (see my 2nd patch for fix and test).
Christophe
On Thu, Jun 3, 2010 at 4:58 PM, Stuart Halloway
wrote:
> Hi all,
>
> I am trying to close out important tickets prior to the 1.2 beta release. If
> you have s
2010/6/3 Christophe Grand
> Stu,
>
> #358 is marked as fixed but this bug occurs for other loength of
> transient vectors (see my 2nd patch for fix and test).
>
>
May I add that Christophe created the patch 'cause I reported a weird error
in parsley, and since I've tested that the patch removed m
On Jun 3, 9:28 am, Laurent PETIT wrote:
> Hi,
>
> 2010/6/3 Christophe Grand
>
>
>
>
>
> > On Thu, Jun 3, 2010 at 1:56 PM, Laurent PETIT
> > wrote:
> > > If I understand things well, one problem with ruby monkey patching is
> > that
> > > if a library I use opens a class C and adds a method who
Hi,
Am 03.06.2010 um 16:16 schrieb Laurent PETIT:
> I think I clearly understand the benefits of namespaces in this case. I was
> reacting to Meikel's sentence:
>
> "And redefining things in foreign namespaces is rather not a technique we
> should support..."
I think what I meant was mentione
TryClojure is powered by jquery-console, which also powers TryHaskell.
jquery-console doesn't support paste functionality. While I imagine I
could somehow hook pasting (and might end up doing so), I have to
agree with Chris and the guys at TryRuby about pasting: copy/paste is
generally bad for lear
On Thu, Jun 3, 2010 at 9:38 AM, YD wrote:
> Hi,
>
> When 'destructure' is doing a map destructuring, 'pmap' is the
> function to use. 'pmap' will do some kind of process to the given
> bindings using these lines of code:
> bes (reduce
>
Many thanks Konrad, thats illuminating!
Regards, alux
On 3 Jun., 13:36, Konrad Hinsen wrote:
> On 3 Jun 2010, at 12:46, alux wrote:
>
> > Thats impressive. I'm still, hm, puzzled. Nice example of something
> > that can only be done with syntax-quote, and outside of a macro. (Or
> > can this be d
Hello alux,
> I still have some technical questions, but the main issue seems to be
> that I need to dive more deeply into the whole area of macro
> programming.
You might find http://www.paulgraham.com/onlisp.html interesting.
(The PDF version of the book is free to download there)
It's about co
> It seems very weird that my version of fac changes performance
> characteristics on my machine and not yours (OS/hardware dependent?).
> Can you tell your hardware configuration, esp. number of physical and
> logical cores?
It's an early Mac Pro with two dual-core Xeon 5150s, 5gb RAM, Mac OS
10.
2010/6/3 Meikel Brandmeyer
> Hi,
>
> Am 03.06.2010 um 16:16 schrieb Laurent PETIT:
>
> > I think I clearly understand the benefits of namespaces in this case. I
> was reacting to Meikel's sentence:
> >
> > "And redefining things in foreign namespaces is rather not a technique we
> should support.
Hi Mike, thank you!
Third book put on my reading list this week. Sigh.
Regards, alux
On 3 Jun., 21:24, Miki wrote:
> Hello alux,
>
> > I still have some technical questions, but the main issue seems to be
> > that I need to dive more deeply into the whole area of macro
> > programming.
>
> You
2010/6/3 Rich Hickey
>
>
> On Jun 3, 9:28 am, Laurent PETIT wrote:
> > Hi,
> >
> > 2010/6/3 Christophe Grand
> >
> >
> >
> >
> >
> > > On Thu, Jun 3, 2010 at 1:56 PM, Laurent PETIT >
> > > wrote:
> > > > If I understand things well, one problem with ruby monkey patching is
> > > that
> > > > i
> May I add this policy concerning Clojure protocols (as well as the rule "one
> must only extend a protocol to a type if he owns either the type or the
> protocol. If one breaks the rule, one should be prepared to withdraw should
> the implementor of either provide a definition") to the assembl
Hi,
Am 03.06.2010 um 21:51 schrieb Laurent PETIT:
>> (in-ns 'some.other.namespace)
>>
>> (let [orig-x some-x]
>> (defn some-x
>>[foo]
>>(if (my-foo? foo)
>> (do-stuff foo)
>> (orig-x foo
>
> Sorry Meikel, but I'm having trouble following you today.
> Does the above examp
More of a Java question than a Clojure one, but it's in the context of
clojure, and I don't know a better place to ask, so forgive me...
I've seen a couple of references in articles about clojure to using
"java -server". My "java" executable has a "server" option, but when I
try it, I get told:
2010/6/3 Rich Hickey
> [...]
> I don't have a means to prevent this at present, but I'd like to
> suggest this policy moving forward:
>
> If a protocol comes with Clojure itself, avoid extending it to types
> you don't own, especially e.g. java.lang.String and other core Java
> interfaces. Rest
2010/6/3 Stuart Halloway
> > May I add this policy concerning Clojure protocols (as well as the rule
> "one must only extend a protocol to a type if he owns either the type or the
> protocol. If one breaks the rule, one should be prepared to withdraw should
> the implementor of either provide a d
2010/6/3 Meikel Brandmeyer
> Hi,
>
> Am 03.06.2010 um 21:51 schrieb Laurent PETIT:
>
> >> (in-ns 'some.other.namespace)
> >>
> >> (let [orig-x some-x]
> >> (defn some-x
> >>[foo]
> >>(if (my-foo? foo)
> >> (do-stuff foo)
> >> (orig-x foo
> >
> > Sorry Meikel, but I'm having
This error indicates that your "java" executable is coming from the
JRE rather than the JDK. On windows, the JRE only includes the
"client" virtual machine.
If you have the JDK already installed on your computer, switch your
JAVA_HOME and PATH to use it instead, and try it again.
--
You received
> I've seen a couple of references in articles about clojure to using
> "java -server". My "java" executable has a "server" option, but when I
> try it, I get told:
> Error: no `server' JVM at `C:\Program Files\Java\jre6\bin\server\jvm.dll'.
I'm surprised and I don't know why this is the case.
On 3 June 2010 21:25, Aaron Cohen wrote:
> This error indicates that your "java" executable is coming from the
> JRE rather than the JDK. On windows, the JRE only includes the
> "client" virtual machine.
>
> If you have the JDK already installed on your computer, switch your
> JAVA_HOME and PATH t
On Thu, Jun 3, 2010 at 1:24 PM, Miki wrote:
> Hello alux,
>
>> I still have some technical questions, but the main issue seems to be
>> that I need to dive more deeply into the whole area of macro
>> programming.
> You might find http://www.paulgraham.com/onlisp.html interesting.
> (The PDF versio
Indeed.
When I first started tryclojure, the idea wasn't really for it to be
much of a tutorial sort of thing as it was to just be a REPL-in-the-
browser sort of thing for general usage when you didn't have access to
an REPL. Eventually the tutorial got added, and I've been stuck
between orienting
I don't appear to have permission to go back and edit or add to the
ticket I created (#372), so here's a link to the [brief] IRC
discussion:
http://clojure-log.n01se.net/date/2010-05-29.html#21:48
I mailed a Contributor's Agreement late last week - not sure how that
process works, but I'd be happy
Update-in behaves oddly when getting an empty path. (update-in [] {1 2}
(constantly {2 3})) returns {nil {2 3} 1 2} not {2 3} as I'd expect. get-in
works well with empty pathes so I think this isn't a good behavior.
Regards,
Heinz
--
You received this message because you are subscribed to the
51 matches
Mail list logo