Re: Calling function in required library in a different namespace

2010-11-17 Thread Victor -
tions.. On Wed, Nov 17, 2010 at 9:51 PM, Ken Wesson wrote: > On Wed, Nov 17, 2010 at 9:36 PM, Victor Olteanu > wrote: > > Hi, > > Please excuse my newbie ignorance - I would like to do something that > seems > > pretty basic, yet I couldn't figure it out yet. >

Calling function in required library in a different namespace

2010-11-17 Thread Victor Olteanu
Hi, Please excuse my newbie ignorance - I would like to do something that seems pretty basic, yet I couldn't figure it out yet. I would like to call a function that is loaded in a different namespace, but without having to load the library again in the current namespace - more precisely: in db.clj

Re: LabREPL status ... github returning 404's

2010-11-15 Thread Victor Olteanu
d (in the Rails community) and erased all of his repos :) Then I saw all my account's history and repos were gone, and that was scary. Luckily, twitter quickly revealed to me that they were experiencing problems. Victor On Mon, Nov 15, 2010 at 8:37 AM, Rick Moynihan wrote: > On 15 November 20

Re: LabREPL status ... github returning 404's

2010-11-14 Thread Victor Olteanu
Github is down at the moment unfortunately... On Sun, Nov 14, 2010 at 3:27 PM, Rick Moynihan wrote: > Hi all, > > When I ran some Clojure Dojo's in Dundee, we did a few group sessions > going through labrepl and its exercises; and I thought the format > worked well. I'm keen to do the same thing

Re: Clojure on Javascript

2010-10-30 Thread Victor Olteanu
How can people not *love* JavaScript? :) Take for example this excerpt from 'JavaScript: the Good Parts': "The new function object is given a prototype property whose value is an object containing a constructor property whose value is the new function object" (PS: that is not one of the "good par

Re: Clojure on Javascript

2010-10-29 Thread Victor Olteanu
cf. node js, I thought of mentioning this link http://dosync.posterous.com/22397098 On Fri, Oct 29, 2010 at 11:10 PM, Santosh Rajan wrote: > Now that server side javascript is growing with node.js, clojure on > javascript will be usefull. Nodejs is event based and not thread based so I > don't k

Karras update problem

2010-10-27 Thread Victor Marzo
I'm trying to update a document that has an user list inside: test.db> (def uu (fetch-one users (where (eq :name "victor" #'test.db/uu test.db> uu {:password "1234", :name "victor", :_id #} test.db> (def pp (insert projects {:name "test&qu

Re: Getting this error regarding duck-streams/spit ...

2010-10-26 Thread Victor Olteanu
made "official" then we could update those docs so other people won't run into these same issues. Victor On Tue, Oct 26, 2010 at 12:46 AM, Btsai wrote: > I don't think it's a mistake or accident that spit exists in > clojure.core. In 1.2, duck-streams became deprecat

Re: Getting this error regarding duck-streams/spit ...

2010-10-25 Thread Victor Olteanu
f Clojure... On Mon, Oct 25, 2010 at 10:25 PM, Michael Ossareh wrote: > > > On Mon, Oct 25, 2010 at 19:09, Victor Olteanu wrote: >> >> java.lang.IllegalStateException: spit already refers to: >> #'clojure.contrib.duck-streams/spit in namespace: datatool.api (api.

Getting this error regarding duck-streams/spit ...

2010-10-25 Thread Victor Olteanu
e is: (ns datatool.api (:use compojure.core) (:use hiccup.core) (:use hiccup.page-helpers) (:use [ring.middleware reload stacktrace file file-info]) (:use datatool.db) (:use clojure.contrib.json) (:use clojure.contrib.duck-streams)) Thank you, Victor -- You received this message becau

Re: Displaying POSTed string from form text-field in Compojure

2010-09-18 Thread Victor Olteanu
quot;my_datum"} :params} ...) Thanks again! Victor On Fri, Sep 17, 2010 at 9:18 PM, Miki wrote: > See http://clojure.pastebin.com/ncaULRbU (works for me). > I've changed the POST handler to use *params* and I also think you're > not closing the :h2 in view output

Re: Displaying POSTed string from form text-field in Compojure

2010-09-17 Thread Victor Olteanu
doesn't seem to be the case, and there are no "parseString" methods that I could use instead. Thank you, Victor On Fri, Sep 17, 2010 at 5:30 PM, Miki wrote: > My *guess* it's somehow connected to the code of "view-layout" since > it shows the representation of th

Displaying POSTed string from form text-field in Compojure

2010-09-17 Thread Victor
y what I entered and submitted (say I typed the string "a"). (defn view-output [a] (view-layout [:h2 (str "This is what you entered: " a))) However what I get is this: clojure.core$...@1e731e90 Thanks in advance for your help! Victor -- You received this message

Re: why data structure

2010-08-23 Thread Victor Olteanu
Some examples to illustrate this would be very welcome. On Aug 22, 2010, at 9:17 AM, Nicolas Oury wrote: > On Sun, Aug 22, 2010 at 11:30 AM, Belun wrote: >> why does everything have to be a data structure ? like (operation >> parameter parameter ...) > > Because it makes really easy to do me

Re: gedit syntax highlighting for clojure.

2010-08-21 Thread Victor Olteanu
Thanks, I like gedit too as it's fast and easy to use. What about auto-indenting, any ideas about that? -V On Fri, Aug 20, 2010 at 8:30 PM, mitko wrote: > Apparently it is not that hard to create something that does decent > job for syntax highlighting for Clojure. It took me about 3-4 hours >

Re: Anyone working with Eclipse and log4j? I have a beginner labrepl question...

2010-07-24 Thread Victor S
Well so far it works, I'm just confused by some of these java errors... - V On Jul 23, 7:26 am, Laurent PETIT wrote: > And may I add that "crazy easy labrepl installation for ccw" is around the > corner:http://github.com/smuehlst/ccw/tree/labrepl-sample-project! &

Anyone working with Eclipse and log4j? I have a beginner labrepl question...

2010-07-23 Thread Victor S
I finally got labrepl to work with one IDE, tried with intelliJ but didnt work, also comand line didnt work on mac os x. But Eclipse version seems to work! Yay! So I can't wait to start learning more about Clojure, but the road so far is pretty bumpy... Any help in figuring out what this log4j err

Re: CCW in Eclipse Market Place + needs a logo !

2010-07-23 Thread Victor S
I can send you something, but I don't know how to attach files here... - V On Jul 22, 7:09 am, Laurent PETIT wrote: > Hello, > > Just a word to inform you that I've provisioned the Eclipse Market Place for > Counterclockwise. > > That way, installing counterclockwise from Eclipse Helios is even

Re: Aleph and Conjure

2010-07-21 Thread Victor S
Thank you all for the input, it has made me understand some new things. I find node.js push for NIO as the de-facto mode of existence for web apps interesting, and I was trying to have my cake and eat it too. JS programming just doesn't look all that appealing. - V On Jul 20, 1:46 pm, Peter Schu

Compojure & Conjure & Aleph

2010-07-19 Thread Victor S
Hello, I'm Coming here view PHP to RoR ro Node.js to Clojure (still investigating) and am mostly interesting in building scalable web applications. I hear aleph being compared to node.js but how do the other two frameworks compare in performance to the their counterparts, such as express.js and s

Could Clojure be used to program on top of GPU's?

2010-07-19 Thread Victor S
Hi, Just a curiosity question, I'm not sure how far off the JVM is from running on your GPU, but I imagine that with the hundreds and even thousands of cores, a GPU might, theoretically show us just what Clojure can do... -- You received this message because you are subscribed to the Google Grou

Aleph and Conjure

2010-07-19 Thread Victor S
Can conjure be used to build web app over aleph? Or what does it take to build highly scalable web apps in clojure similar to node.js and express.js? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Re: ClojureDocs.org

2010-07-09 Thread Victor Olteanu
e the site will grow with many people's contributions. Victor On Fri, Jul 9, 2010 at 4:32 AM, zkim wrote: > Hi All, > > I'll try to keep this short. > > I've gotten a lot out of Clojure: I can honestly say that learning > this language, and being part of this com

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: >> >>

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
ructing exceptions what is slow, not throwing or catching them. In other words, for the amb implementation above, it might be worth defining a "constant" exception and throwing that. (Although I'm confused, I see in the code (.Exception "something"), shouldn't that be

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
x.html. For example, the jruby folks use it, since they need to run all those scripts needed by Ruby on Rails. Cheers, Victor R. > But I found, that clojure's startup time is too bad to do that. > So I implemented a client-server architecture which works pretty much > like clojure&

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
>=, =, etc. are > symbols?  (I assume they are symbols because I can write (< 3 4), > etc.) Looks like the documentation is out of date: user> (def <>= 3) #'user/<>= user> <>= 3 Cheers, Victor R. > > > --~--~-~--~~~---

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
have a link handy for instructions, but there have been various thread about starting clojure swank for Java, and google *will* turn out useful info. Cheers, Victor. > On 17 Mar, 23:02, Laurent PETIT wrote: >> If you don't have a preferred environment right now, or if your preferred >>

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

2009-03-17 Thread Victor Rodriguez
I think you will find it useful. Cheers, Victor R. >> application, I create a thread which loads a clojure program passed on >> the command line (I don't have the source in front of me, but if you >> need it, I can give you a hand), > > That would be great. > >>