Re: Foreclojure

2009-06-25 Thread Victor Rodriguez
On Thu, Jun 25, 2009 at 3:17 AM, Emeka wrote: > accounting software in Clojure? > Which area of accounting will it cover? Why, forclosures of course! (Sorry, couldn't resist). Cheers, Victor. > Emeka > > On Thu, Jun 25, 2009 at 3:41 AM, fft1976 wrote: >> >> I know some of you are searching f

Re: Where does the language end and the libraries begin?

2009-06-04 Thread Victor Rodriguez
y of Squeak, a practical Smalltalk written in itself", by Dan Ingalls et al. www.vpri.org/pdf/tr1997001_backto.pdf Cheers, Victor Rodriguez. > Here's Paul Grahams paper on eval: > > http://lib.store.yahoo.net/lib/paulgraham/jmc.ps > > Get to the part where he defines eval, and l

Re: Google App Engine - best workflow

2009-05-13 Thread Victor Rodriguez
art a REPL from the development server. I have got as far as starting the REPL, but I have yet to find the time to use this setup, so there might be other "showstoppers". Cheers, Victor Rodriguez. > cheers, > Kees > > > --~--~-~--~~~---~--~

Re: Designing an SQL-based application

2009-05-11 Thread Victor Rodriguez
[f] "Call a function with the feeds as an argument" ...) (defmacro with-feeds [feeds & body] `(call-with-feeds (fn [~feeds] ~...@body))) Kind regards, Victor Rodriguez. > Approach #3:  This is a good approach once you hit the limits of the > first approach, and before

Re: stumped by class not found (vista)

2009-05-10 Thread Victor Rodriguez
"." (I copied it), "." is part of the > CLASSPATH as far as I can tell. OK, but how are you specifying the classpath? From what directory do you launch Java from? Try giving the full path to the directory instead of ".". Cheers, Victor Rodrig

Re: Clojure Community Geography (The Clojure Map)

2009-05-08 Thread Victor Rodriguez
t" >        - on the map, at the upper left, click the blue marker icon >        - place the marker and edit the info >        - save Shouldn't people leave their email address? Otherwise how can you get in contact with local hackers? Cheers, V

Re: Google announcement, version 1.0 & SCM Holy War (not really)

2009-04-24 Thread Victor Rodriguez
heck out Magit, there is a very nice screencast demonstrating it at http://alexvollmer.com/index.php/2009/01/18/meet-magit/. There are other videos about git, I recommend the ones from Linus Torvalds and Randal Schwartz. Cheers, Victor Rodriguez. > Eventually I went with tried and true sv

Re: Google announcement, version 1.0 & SCM Holy War (not really)

2009-04-24 Thread Victor Rodriguez
t; > Does this make changing the SCM tool to Hg a real possibility?  While > this might not be such a big deal for Clojure core, I would *LOVE* an > easy way to fork contrib, and I bet I'm not the only one. For what it is worth, I would also like the source to be kept under Hg. Chee

Re: ICFP 2009

2009-04-22 Thread Victor Rodriguez
08-contest/task.html Sounds like a fun thing to try. Could someone give a brief description of what would be required in terms of time commitment to participate on a team? (Sadly, spare time is hard to come by...) Cheers, Victor Rodriguez. > I spent a day on last year'

Re: Abstract data types in functional languages

2009-04-22 Thread Victor Rodriguez
sets of private data produce the same hash... (or someone boinks the hash value in the map). Cheers, Victor. > On Wed, Apr 22, 2009 at 1:01 PM, Victor Rodriguez wrote: >> >> On Tue, Apr 21, 2009 at 12:01 PM, David Nolen >> wrote: >> > Nice post thanks for putting

Re: Abstract data types in functional languages

2009-04-22 Thread Victor Rodriguez
ries, and I believe this supports equality > just fine.  Since we're using metadata the data travels around easily This won't work, since metadata is not used for equality tests, isn't that right? Regards, Victor Rodriguez. > between operations. > -- Forwarded m

Re: 'first vs 'nth on maps

2009-04-22 Thread Victor Rodriguez
rst it's a good idea for 'nth. Probably not. I expect nth on a vector to be much faster than on a seq. O(1) vs O(n), respectively. Cheers, Victor Rodriguez. > > [Apologies to all for the several redundant posts on this topic. I've > been getting rejection messages from

Re: Amb operator

2009-04-13 Thread Victor Rodriguez
care about the stack trace. You can even have a mutable exception (and thus probably a bad idea) to "pop" values up the stack. Regards, Victor. > control, on the nested loop thread I've added my findings... > On Mon, Apr 13, 2009 at 4:24 PM, Victor Rodriguez wrote: >>

Re: Amb operator

2009-04-13 Thread Victor Rodriguez
On Mon, Apr 13, 2009 at 2:13 PM, David Nolen wrote: > One caveat is that because this works by transforming the code into > Continuation Passing Style, it's dog slow, like 2 orders of magnitude for > regular Clojure code. This is not really much of an issue for user interface > related code (whic

Re: Has anyone on this group ever tried Forth?

2009-04-13 Thread Victor Rodriguez
tor compiler does at least some checks on stack effects. Cheers, Victor Rodriguez. > Basically, applicative languages (like C) are to Forth, what GC is to > malloc/free and what STM is to locks: a huge step forward. > > I don't know what Factor people are doing. It

Re: DISCUSS: tests that read and write files

2009-04-09 Thread Victor Rodriguez
ct directory, and it is OK to leave the files around. Cheers, Victor Rodriguez. > (2) Also have tests that read a file, and I would be much more > comfortable not having to rely on code to write the file first. > Doesn't feel like a unit test. > > (3) The macro is more co

Re: Java 6 dependency in clojure-contrib ok?

2009-04-08 Thread Victor Rodriguez
, or are we maintaining > Java 5 compatibility? For what it's worth, I haven't upgraded from Tiger so I'm stuck with Java 1.5, so I'd like to keep 1.5 compatibility. Kind regards, Victor Rodriguez. > Stu > > > > --~--~-~--~~~---~--~

Re: DISCUSS: clojure.contrib.java-utils/file

2009-04-06 Thread Victor Rodriguez
s, or keep its own version private. Cheers, Victor Rodriguez. > - James > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googleg

Re: A clojure server

2009-04-01 Thread Victor Rodriguez
On Wed, Apr 1, 2009 at 8:28 AM, christ...@mvonessen.de wrote: > > Hi, > > I wanted to use clojure for some scripting-like tasks (mostly > experimenting with clojure's abilities). You might be interested in taking a look at nailgun: http://www.martiansoftware.com/nailgun/index.html. For example,

Re: Quick slime/emacs questions

2009-03-29 Thread Victor Rodriguez
are missing opportunities to be much more productive. Emacs is an amazing tool, it pays to spend some time becoming proficient with it. A good place to start is emacswiki.org. Cheers, Victor Rodriguez. > Thanks! > > > > --~--~-~--~~~---~--~~ You r

Re: Characters allowed in symbols

2009-03-27 Thread Victor Rodriguez
On Fri, Mar 27, 2009 at 5:51 PM, ke...@ksvanhorn.com wrote: > > The Clojure documentation, under "Reader", gives a list of characters > allowed in a symbol name.  The characters, <, >, and = are not > included in this list.  How is it then that <, <=, >, >=, =, etc. are > symbols?  (I assume they

Re: file io

2009-03-26 Thread Victor Rodriguez
(writer ~f)] (binding [*out* w#] ~...@body))) (with-out-as "/tmp/test.txt" (print "hola,") (println " crayola")) Cheers, Victor Rodriguez. > Hmm - I've never written a macro, maybe I should give this a try... > > - Korny > > On We

A toy string template macro

2009-03-20 Thread Victor Rodriguez
Here is something I wrote as a Clojure learning exercise. I have a suspicion that a serious implementation of this may exist, please let me know if that is so! Cheers, Victor Rodriguez. http://gist.github.com/82727 ;;; A toy to experiment with Clojure macros. ;;; ;;; (f "1 + 2 = ~(

Re: reload modified java class

2009-03-18 Thread Victor Rodriguez
On Wed, Mar 18, 2009 at 3:11 AM, linh wrote: > > Emacs and slime works fine for me, but I'm willing to try other > alternatives. > Thanks for the tip. You can launch clojure-swank from Eclipse, then you will have Emacs *and* Java code reloading. Sorry, I don't have a link handy for instructions

Re: I got to use Clojure at work today !!!

2009-03-17 Thread Victor Rodriguez
On Tue, Mar 17, 2009 at 12:21 PM, Tassilo Horn wrote: > > Paul  Mooser writes: > > Hi Paul, > >> It's actually fairly straightforward. In my (ordinary java) Take a look at this blog post: http://avodonosov.blogspot.com/2008/12/simpler-clojureslime-embedding.html I think you will find it useful