Re: Keyword namespaces

2010-09-19 Thread Kyle Schaffrick
. Still, I want to make sure I'm not missing something. -Kyle On Sep 19, 11:56 am, Kyle Schaffrick k...@raidi.us wrote: Would it be correct to say that the namespace portions of keywords are semantically opaque? In other words, if I have a keyword :my-ns/foo and a symbol 'my-ns/foo

Re: existing idiom for delaying a future ?

2010-08-05 Thread Kyle Schaffrick
On Thu, 5 Aug 2010 16:05:07 +0200 Laurent PETIT laurent.pe...@gmail.com wrote: My point was that by providing different interfaces/protocols to different users, it's more an implementation detail than anything else if they have the same object or not. I don't expect my users to program on

Re: existing idiom for delaying a future ?

2010-08-05 Thread Kyle Schaffrick
On Fri, 6 Aug 2010 00:04:08 +0200 Laurent PETIT laurent.pe...@gmail.com wrote: No offense, but ... are you serious ? So my off-the-cuff, wrote-it-in-5 minutes code is laughable? If you mean no offense then why say this at all? :( I still prefer my own version, repeated here for the record

Re: Symbol substitution in macro

2010-08-04 Thread Kyle Schaffrick
On Wed, 4 Aug 2010 14:58:46 -0400 Andrew Boekhoff boekho...@gmail.com wrote: Hi, because the symbol's namespace is then nil, and you still can't tell if they're shadowing it with a let binding, or have renamed it with :as. If the namespace is nil then its either been :used or

Re: Symbol substitution in macro

2010-08-03 Thread Kyle Schaffrick
On Mon, 2 Aug 2010 07:23:12 -0400 Andrew Boekhoff boekho...@gmail.com wrote: On Sunday 01 August 2010 21:34:16 Kyle Schaffrick wrote: Hello, I'm trying to write a library with two main parts. The first is a macro, I'll call it 'with-feature, that walks through forms passed inside

Symbol substitution in macro

2010-08-01 Thread Kyle Schaffrick
Hello, I'm trying to write a library with two main parts. The first is a macro, I'll call it 'with-feature, that walks through forms passed inside it, and any time it sees a call to another function in my library, 'feature, do some transformations. The problem I'm concerned about is as follows:

VimClojure 2.2.0 snapshot missing?

2010-07-29 Thread Kyle Schaffrick
Is there some reason the 2.2.0-SNAPSHOT's of vimclojure have vanished from Clojars? I have the 2.2.0 vim pieces in my .vim directory and the nailgun commands blow up when using the jar of nails from the 2.1.2 release :( Would be hesitant to spend half an hour to clean out the 2.2.0 snapshot of

Re: Function called from macro loses record structure

2010-07-18 Thread Kyle Schaffrick
On Sat, 17 Jul 2010 00:59:35 -0700 (PDT) Quzanti quza...@googlemail.com wrote: Thanks Michał I suppose this raises a deeper question - should an expression and what it evaluates to always be interchangeable in source code? This is essentially what I was trying to say, stated much more

Re: Function called from macro loses record structure

2010-07-16 Thread Kyle Schaffrick
On Thu, 15 Jul 2010 23:08:27 -0700 (PDT) Quzanti quza...@googlemail.com wrote: Kyle I think I understand what you are saying. So in practice you should prevent functions called from a macro from evaluating the records (using quoting), so that the output is in a form that looks like

Re: Function called from macro loses record structure

2010-07-15 Thread Kyle Schaffrick
On Thu, 15 Jul 2010 08:10:55 -0700 (PDT) Quzanti quza...@googlemail.com wrote: Hi Here is my sorry tale http://gist.github.com/477069 I am not sure if this could be my misunderstanding of macros or the ~ idiom Anyway if you spell out a record structure to a macro then you keep the

Re: Clojure on BEAM

2010-07-13 Thread Kyle Schaffrick
On Mon, 12 Jul 2010 02:06:05 -0700 (PDT) Krukow karl.kru...@gmail.com wrote: On Jul 11, 11:55 am, stewart setor...@gmail.com wrote: Hi All, Has anybody considered implementing Clojure on BEAM. Are there any works or current attempts currently available? In your view where are the

Re: Moving Window Function

2009-06-23 Thread Kyle Schaffrick
On Mon, 22 Jun 2009 23:36:25 -0700 (PDT), Sean Devlin francoisdev...@gmail.com wrote: Hey all, Does anyone know of a moving window function? I'm curious if there are any tools like this for digital signals processing, 30-day moving averages, etc. If you need weighted moving averages, this

Re: Moving Window Function

2009-06-23 Thread Kyle Schaffrick
On Tue, 23 Jun 2009 10:20:52 -0400 Kyle Schaffrick k...@raidi.us wrote: On Mon, 22 Jun 2009 23:36:25 -0700 (PDT), Sean Devlin francoisdev...@gmail.com wrote: Hey all, Does anyone know of a moving window function? I'm curious if there are any tools like this for digital signals

Re: Moving Window Function

2009-06-23 Thread Kyle Schaffrick
On Tue, 23 Jun 2009 18:23:01 +0200 Christophe Grand christo...@cgrand.net wrote: I think you could simplify your code by using map twice. What about: (untested) (defn weighted-moving-average Generate a lazy sequence consisting of weighted moving averages over the input sequence.

Re: Poll for a new name for clojure eclipse plugin 'clojure-dev'

2009-06-23 Thread Kyle Schaffrick
On Tue, 23 Jun 2009 21:35:33 +0200 Laurent PETIT laurent.pe...@gmail.com wrote: I like reptile, and also Corona for the meaning it conveys, a lot ! I like Corona as well. It lends itself nicely to some kind of visual pun involving a partial eclipse and a parenthesis :) -Kyle

Re: Clojure in Computing in Science and Engineering

2009-06-22 Thread Kyle Schaffrick
On Sun, 21 Jun 2009 14:39:37 +0100, Jon Harrop j...@ffconsultancy.com wrote: I had not looked at Intel's offering because it does not (AFAIK) support accurate garbage collection. Also, it is worth noting that there is no difference between data and task parallelism in a genuine functional

Re: Clojure in Computing in Science and Engineering

2009-06-20 Thread Kyle Schaffrick
On Sat, 20 Jun 2009 11:29:44 +0100 Jon Harrop j...@ffconsultancy.com wrote: On Saturday 20 June 2009 08:34:39 Konrad Hinsen wrote: What't TPL? The Task Parallel Library. It uses concurrent wait-free work-stealing queues to provide an efficient implementation of work items than can spawn

Re: accum

2009-06-17 Thread Kyle Schaffrick
On Wed, 17 Jun 2009 10:51:48 -0700 (PDT), Wrexsoul d2387...@bsnow.net wrote: On Jun 17, 3:20 am, kkw kevin.k@gmail.com wrote: I only knew about map, apply, and reduce from studying haskell in uni. I've not heard of 'reduce' referred to as 'accum', but then again when I wanted to determine

Re: performance concerns (again)

2009-06-09 Thread Kyle Schaffrick
On Fri, 5 Jun 2009 02:18:53 -0700 (PDT) Robert Lehr robert.l...@gmail.com wrote: The problem was that it was not as fast as I expected it should be given that it was using no less than 100% of the CPU on my system. (two 3GHz Xeon CPUs [1 core]; 3GB RAM; a beefy workstation). That this was

Re: Modifying data structures without changing their interface

2009-04-21 Thread Kyle Schaffrick
On Mon, 20 Apr 2009 21:53:41 +0200 Laurent PETIT laurent.pe...@gmail.com wrote: Hi David, 2009/4/20 David Nolen dnolen.li...@gmail.com: A couple of things. In your initial example, you conflated some things. One issue is simply a matter of convenience- defining a getter so that you

Re: How do you print to standard output without using *out*?

2009-04-03 Thread Kyle Schaffrick
On Fri, 3 Apr 2009 07:20:39 -0700 (PDT) Daniel Jomphe danieljom...@gmail.com wrote: Since I can't find the way to solve this issue, let's tackle it at a more fundamental level. First, I need to make sure I can print to standard output without using *out*, so I can later, temporarily bind

Re: proposed new contrib: java-utils

2009-04-03 Thread Kyle Schaffrick
On Fri, 3 Apr 2009 10:17:33 -0400 Stuart Halloway stuart.hallo...@gmail.com wrote: Hi all, I would like to pull together functions that help with Java interop and place them in a new contrib: java-utils. Some examples: [...] If this is interesting to others (or at least

Bit-syntax (Was: Re: I need help tracking down a performance problem.)

2009-03-24 Thread Kyle Schaffrick
On Mon, 23 Mar 2009 19:41:07 -0700 Mark Engelberg mark.engelb...@gmail.com wrote: On Mon, Mar 23, 2009 at 7:31 PM, Vincent Foley vfo...@gmail.com wrote: More generally, is it possible that I'm just doing this whole thing wrong?  That using vectors to represent binary fields and records

Re: Bug in set?

2009-03-12 Thread Kyle Schaffrick
On Wed, 11 Mar 2009 21:51:51 -0700 (PDT) Raffael Cavallaro raffaelcavall...@gmail.com wrote: On Mar 11, 11:43 pm, Stephen C. Gilardi squee...@mac.com wrote: Here are the expressions and results in a simplified notation: #{a b c} - #{a b} = #{c} #{a b} - #{a b c} = #{} ok, so I was

Re: Bug in set?

2009-03-12 Thread Kyle Schaffrick
On Thu, 12 Mar 2009 12:45:00 -0700 (PDT) Jason Wolfe jawo...@berkeley.edu wrote: Also, union/difference/intersection/symmetric-diff are binary. Would there be any interest in a patch to make them n-ary? Union, difference, and intersection are all variadic as of a month or so ago. Are

Re: VimClojure 2.0.0 released (merged with Gorilla)

2009-03-12 Thread Kyle Schaffrick
On Wed, 11 Mar 2009 00:36:39 +0100 Meikel Brandmeyer m...@kotka.de wrote: Dear vimming Clojurians, I'm proud to announce VimClojure 2.0! Working fantastic here, thanks for this. I just cannot get comfortable in Emacs. I really did try :) More information on the installation can be

Re: VimClojure 2

2009-03-12 Thread Kyle Schaffrick
On Thu, 12 Mar 2009 13:30:51 -0700 (PDT) Mark Volkmann r.mark.volkm...@gmail.com wrote: On Mar 12, 3:21 pm, Mark Volkmann r.mark.volkm...@gmail.com wrote: The README.txt file doesn't describe the files that need to be copied to ~/.vim. I'm getting errors starting Vim now. I suspect it's

Re: Bug in set?

2009-03-12 Thread Kyle Schaffrick
On Thu, 12 Mar 2009 15:50:16 -0700 Jason Wolfe jawo...@berkeley.edu wrote: On Mar 12, 2009, at 3:34 PM, Kyle Schaffrick wrote: On Thu, 12 Mar 2009 12:45:00 -0700 (PDT) Jason Wolfe jawo...@berkeley.edu wrote: Also, union/difference/intersection/symmetric-diff are binary. Would

Re: Git : I'm lazy

2009-02-14 Thread Kyle Schaffrick
On Wed, 11 Feb 2009 23:07:31 -0500 Stephen C. Gilardi squee...@mac.com wrote: On Feb 11, 2009, at 10:57 PM, Jeffrey Straszheim wrote: I know I should look this up on the web, but I'm really busy these days. I do intend to learn git someday, but I'm doing fine with Subversion for

Re: Persistent storage

2008-12-18 Thread Kyle Schaffrick
On Thu, 18 Dec 2008 18:06:40 -0500 Chouser chou...@gmail.com wrote: On Thu, Dec 18, 2008 at 4:47 PM, r nbs.pub...@gmail.com wrote: Is is possible to use some kind of backend storage for Clojure's data structures? I mean something like Perl's tie function that makes data structures

Re: DISCUSS: replace (rand)

2008-12-04 Thread Kyle Schaffrick
On Thu, 4 Dec 2008 00:07:56 -0800 (PST) don.aman [EMAIL PROTECTED] wrote: Since we're being all high-level, it'd be good for a random function which allows us to specify the range of numbers, since % doesn't promise an even spread of probabilities (especially for large ranges). If one plans

SVN or release?

2008-11-29 Thread Kyle Schaffrick
Hi all, I've been playing with Clojure for a few days now, following the mailing list, searching and tinkering, etc. I'm really excited about this language! I'm running the latest packaged release, and I'd like to start writing some more serious spikes in Clojure, but I'm starting to get the

Re: SVN or release?

2008-11-29 Thread Kyle Schaffrick
On Sat, 29 Nov 2008 19:05:23 -0800 (PST) Parth Malwankar [EMAIL PROTECTED] wrote: Regarding Chimp, maybe you can try Gorilla: http://groups.google.com/group/clojure/browse_thread/thread/c8b7bc3106c39791 I haven't used it personally yet. My mistake, I actually did mean Gorilla and not