This is very interesting, but I cannot seem to get Clojure code to execute in it. I have it installed and field thinks it is installed. Do I need to somehow switch modes?
--- Joseph Smith j...@uwcreations.com On Jan 4, 2010, at 3:42 PM, Marc Downie wrote: > > Well, if people are in the mood for fun, hybrid, Clojure REPLs... > > The latest version of Field (a mac-only open source IDE for digital art) > secretly supports Clojure as one of its embedded languages (screenshot here, > more information about Field here). This means you can write: > > # these lines are Python (strictly, Jython) > xxx =15 > vv = Vector3(1.2,0,1) # Vector3 is actually Java Class > > // start-clojure > > (defn asum [#^floats xs] > (areduce xs i ret (float 0) > (+ ret (aget xs i)))) > > (println (asum (float-array [xxx (.x vv) 3]))) > > // end-closure > > # back to Python, in beta 11 > _clojure.asum(array('f', [1,2,3])) > > ------- > > Installation instructions upon request: it's just an undocumented hack right > now, but it's a working hack. You can use it to write code against the > Field's OpenGL graphics system or Processing libraries. If anybody is excited > (rather than repulsed or outraged) by this we could use some Clojure hacking > talent to make it real. > > best, > > Marc. > > On Mon, Jan 4, 2010 at 2:17 PM, Brian Goslinga <quickbasicg...@gmail.com> > wrote: > Nice. This reminds me of some of the things you can do in CLIM. > > -- > 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 > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > > > -- > 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 > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en
-- 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 first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en