clojurescript repl in vim -- java.lang.OutOfMemoryError

2011-12-19 Thread Wei Hsu
Hi! Could someone share a good Clojurescript workflow using vim? I currently use nailgun/vimclojure, and would like to use the same setup for Clojurescript. I tried to follow Brenton Ashworth's video (http://vimeo.com/couchmode/ user8648776/videos/sort:newest/29535884), getting as far as opening

Re: clojurescript repl in vim -- java.lang.OutOfMemoryError

2011-12-19 Thread Meikel Brandmeyer
Hi, this likely a more involved topic. Repls from stock Vim are difficult. That's the reason VimClojure currently rolls its own. I doubt that the ClojureScript repl will work out of the box. Since I'm not especially bought into ClojureScript at the moment, I can't help much here. If someone wi

Re: clojurescript repl in vim -- java.lang.OutOfMemoryError

2011-12-19 Thread Wei Hsu
Thanks Meikel, sounds like the vimclojure group is a good forum and I'll ask there. On Dec 19, 1:20 am, Meikel Brandmeyer wrote: > Hi, > > this likely a more involved topic. Repls from stock Vim are difficult. That's > the reason VimClojure currently rolls its own. I doubt that the ClojureScript

Re: clojurescript: how do i copy one input text field to another?

2011-12-19 Thread Gijs S.
The problem is the setTextContent function from Google closure. Text content is the text within a div, span, p, label etc but not the value of an input element. Likewise getTextContent on field1 returns "", rather than the value "Hello World!". The following clojurescript can set the value of a te

Re: Reuse of generic Clojure/ClojureScript code? Part 2

2011-12-19 Thread Dave Sann
Updated to allow compilation of project cljs dependencies - in the "Leiningen checkouts fashion" - to assist modular development. -- 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

Re: Couch Error

2011-12-19 Thread Chas Emerick
Could you share your project.clj? - Chas On Dec 12, 2011, at 10:30 AM, Rups wrote: > Hello friends, > > I am new in clojure, i want to create document in couch db using > clojure. i got some error please help me. > > my code is > > (ns web-app.views.welcome > (:require [clj-file-utils.c

lein-beanstalk 0.2.1 released

2011-12-19 Thread Chas Emerick
lein-beanstalk v0.2.1 — a Leiningen plugin providing deployment functionality to Amazon's Elastic Beanstalk service — has been released to clojars. [lein-beanstalk "0.2.1"] The biggest change is that lein-beanstalk now looks for AWS credentials in ~/.lein/init.clj, instead of requiring that

same ns multiple file

2011-12-19 Thread FD
Hello, In lisp, one can define functions within a package in multiple file. Files have just to start with (in-package ...). Is it possible to do it in clojure? I made several attempts with - load-file but I can't use a (declare xxx ...) in one file and (defn xxx ...) in an other file - a 'cascade'

Re: same ns multiple file

2011-12-19 Thread Mark Rathwell
in-ns and load are what you are looking for: ;; foo.clj (ns my.foo ... ... (load "foo_a") ;; foo_a.clj (in-ns 'my.foo) ... On Mon, Dec 19, 2011 at 11:37 AM, FD wrote: > Hello, > > In lisp, one can define functions within a package in multiple file. > Files have just to start with (in-package .

Re: same ns multiple file

2011-12-19 Thread FD
File2 (ns two (:use one)) Last file (ns all (:use two)) but functions of used-ns are not imported in ns all. Thanks -- 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

Overtone 0.6.0 - WIth auto-caching asset system

2011-12-19 Thread Sam Aaron
Hello everyone, 'tis the season to be jolly, therefore with the full festive spirit befitting of such an occasion, we bring you an early Christmas gift: Overtone 0.6.0. It's fresh on clojars[1] and also tagged on github[2] and, as always, we've updated the cheatsheet[3]. Now before we start, l

REPL limitation lines to paste?

2011-12-19 Thread Antonio Recio
I have noticed that there is a limit in the lines that be are able to paste in REPL. For example when I try to paste 200 lines of clojure code in REPL, it only paste the first 92 lines. Is it a bug or express? Is it possible to be able to paste unlimited? -- You received this message because y

Clojure/West update - San Jose, CA - Mar 16-17th

2011-12-19 Thread Alex Miller
Hey all, Just a quick update on Clojure/West. We've had a bunch of great talks submitted so far but I would be very interested in seeing more! The keynote speakers (so far) are listed below. The final schedule should be published in mid-January. Confirmed keynotes: - Rich Hickey - Stuart Hallo

Re: same ns multiple file

2011-12-19 Thread FD
Great Thanks On 19 déc, 17:50, Mark Rathwell wrote: > in-ns and load are what you are looking for: > > ;; foo.clj > (ns my.foo ... > ... > (load "foo_a") > > ;; foo_a.clj > (in-ns 'my.foo) > ... > > > > > > > > On Mon, Dec 19, 2011 at 11:37 AM, FD wrote: > > Hello, > > > In lisp, one can define

[ANN] ClojureQL 1.0.3

2011-12-19 Thread Herwig Hochleitner
Hello, we've finally got around to do a bug fix release for ClojureQL. This time pushing it to clojars too (sorry for that). I'm posting it here, because even though the increment is minor, it is an important release because of all the accumulated bug fixes. I am pleased to announce that it can

Compiler: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

2011-12-19 Thread Brian Marick
I have tried for two days to figure out what is causing the compiler to throw the following when compiling a macro: Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at clojure.lang.Compiler.analyzeSeq(Compiler.java:6390) at clojure.lang.

Re: Compiler: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

2011-12-19 Thread Brian Marick
On Dec 19, 2011, at 7:34 PM, Brian Marick wrote: > I have tried for two days to figure out what is causing the compiler to throw > the following when compiling a macro: > > Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to > java.lang.Integer > at clojure.lang.Com

Help request: clojurescript macro for object property access

2011-12-19 Thread Dave Sann
I would like to have a macro to do the following, is this possible? (getm javascript-map "key") expands to: (.key javascript-map) This is to manage situations where a javascript map/object is accessed by string key. In advanced optimisations mode this will fail. The key must be accessed as a p

Re: Help request: clojurescript macro for object property access

2011-12-19 Thread David Nolen
On Mon, Dec 19, 2011 at 8:58 PM, Dave Sann wrote: > I would like to have a macro to do the following, is this possible? > > (getm javascript-map "key") > > expands to: > > (.key javascript-map) > What advantage does the former have over the latter? The latter is shorter. Also the new property sy

Re: Help request: clojurescript macro for object property access

2011-12-19 Thread Dave Sann
I will give a concrete example as explanation. In pinot.events there is a function "on" (on elems :click event_handler) :click goes on to be looked up in the javascript map EventType in goog.events This lookup is done by string - which is fine in unoptimised code but does not work in advanc

Clutch 0.3.0 released (a CouchDB client library for Clojure)

2011-12-19 Thread Chas Emerick
Clutch 0.3.0 has been released to clojars. [com.asahafa/clutch "0.3.0"] This is a breaking release that contains a significant refactoring of the Clutch API. It also includes a number of bugfixes: https://github.com/ashafa/clutch/issues?milestone=4&state=closed A summary changelog is incl

Re: Help request: clojurescript macro for object property access

2011-12-19 Thread Dave Sann
Nevermind, I think I can see why this is a non-starter -- 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 firs

Re: Help request: clojurescript macro for object property access

2011-12-19 Thread Dave Sann
The corollary of this would be that, in advanced mode, there is no way to pass a property key to a function to access a js object property because the key would be munged. Right? In which case - you need to be careful when attempting this sort of access. For the case above, for now, I ported t

Re: Help request: clojurescript macro for object property access

2011-12-19 Thread Dave Sann
To clarify, the key in the map/object would be munged. -- 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 po

Could be my favourite improvement in 1.4

2011-12-19 Thread Daniel Gagnon
Allow colon as whitespace in map literals That's a very subtle subtle change but with this it will be easier to experiment with JSON or Python data I want to just grab and paste. That attention to little detail is very appreciated. -- You received thi

Re: Could be my favourite improvement in 1.4

2011-12-19 Thread Phil Hagelberg
JSON as readable Clojure was discussed and shot down a while back, albeit with a weirder implementation: http://groups.google.com/group/clojure-dev/browse_thread/thread/5b066af1224efe8e/9ae78e878f873058The idea of colons having special treatment in the context of maps is rather distasteful to me pe

clojurescript: foreign libs support / javascript externs

2011-12-19 Thread Dave Sann
In relation to this discussion: https://groups.google.com/d/topic/clojure-dev/wJdJxE-d7ao/discussion "Clojurescript foreign libs support" It seems that the inclusion of general js libs with the closure compiler is not easy. The :foreign-libs option for cljsc does not work in advanced mode if th

Re: Could be my favourite improvement in 1.4

2011-12-19 Thread Alan Malloy
On Dec 19, 9:25 pm, Phil Hagelberg wrote: > JSON as readable Clojure was discussed and shot down a while back, albeit > with a weirder > implementation:http://groups.google.com/group/clojure-dev/browse_thread/thread/5b066... > idea of colons having special treatment in the context of maps is > ra