Re: license of Javascript files generated by Clojurescript?

2013-06-12 Thread Evan Mezeske
On Wednesday, June 12, 2013 5:29:42 AM UTC-7, David Pollak wrote: > With all this being said, the only thing you have to worry about is if you > make a change to the ClojureScript compiler itself or another > Clojure-related library. Those are licensed under the EPL which requires > that you ma

Re: Released lein-cljsbuild 0.3.1

2013-05-12 Thread Evan Mezeske
Oops, I just had to release version 0.3.2 -- I had merged an old pull request that depended on ClojureScript 0-0-1803 instead of 0-0-1806. Fixed. On Saturday, May 11, 2013 6:54:37 PM UTC-7, David Nolen wrote: > > Thanks! > > On Saturday, May 11, 2013, Evan Mezeske wrote: > >

Released lein-cljsbuild 0.3.1

2013-05-11 Thread Evan Mezeske
Nothing major in this release other than some bugfixes and bringing the default ClojureScript version up to date. Thanks to all contributors! Release notes: https://github.com/emezeske/lein-cljsbuild/blob/master/doc/RELEASE-NOTES.md -Evan -- -- You received this message because you are sub

Re: clojurescript memory management

2013-03-29 Thread Evan Mezeske
Are you having trouble with the ClojureScript compiler running out of memory? lein-cljsbuild runs the ClojureScript compiler in a fairly "clean room" Leiningen project, with only a few things from your project.clj being passed through (for instance, things that affect the classpath). It would

Re: ClojureScript crossovers

2013-03-27 Thread Evan Mezeske
> Right, but if the crossover namespace for my library is defined in its project.clj, and I'm importing that library as a dependency into another project, it's sort of redundant to repeat information already specified. I guess what I hoped for was that crossover namespaces would automatically be

Re: ClojureScript crossovers

2013-03-27 Thread Evan Mezeske
> > > My question is, is this necessary? If it's on the classpath, why must I > specifically tell it what namespaces I'm going to use? [...] > The ClojureScript compiler looks for *.cljs files to compile as ClojureScript. Hence, at a minimum, the *.clj files that you want to also use from Clo

Re: Midje 1.5 released

2013-03-18 Thread Evan Mezeske
Thanks for your continued work on this, Brian. I can't wait to upgrade! On Monday, March 18, 2013 10:36:57 AM UTC-7, Brian Marick wrote: > > Midje is a test framework for Clojure that aims to be more readable than > clojure.test and to allow styles of testing that clojure.test does not. > > 1.5

Re: Laziness in filter

2013-03-17 Thread Evan Mezeske
I'd guess that what you're seeing is related to chunked sequences: http://blog.fogus.me/2010/01/22/de-chunkifying-sequences-in-clojure/ . On Sunday, March 17, 2013 1:12:17 AM UTC-7, bruce li wrote: > > Hello, everyone. I'm writing some code that utilizes the lazy sequence. > But I found somethi

Re: clojurescript browser repl not working.

2013-03-14 Thread Evan Mezeske
Oops, there's an open case to bring lein-cljsbuild's default compiler version up to r1586: https://github.com/emezeske/lein-cljsbuild/issues/186. I will try to get to that soon. In the meantime, you should be able to add [org.clojure/clojurescript "0.0-1586"] to your :deps to get the latest ve

Re: recommended way to write loop where a binding depends on a previous 'useless binding' operation?

2013-02-12 Thread Evan Mezeske
rge Oliver wrote: > @Baishampayan, I'm just experimenting at the repl right now so there's no > stopping condition yet. It's a socket server. > > > On Monday, February 11, 2013 11:56:22 PM UTC-8, Evan Mezeske wrote: >> >> Generally when you are calling fu

Re: recommended way to write loop where a binding depends on a previous 'useless binding' operation?

2013-02-11 Thread Evan Mezeske
Generally when you are calling functions that have (and depend on) side-effects, you will end up using "do" a lot. Also, I noticed that in your example there's really no reason to make the x and y bindings part of the loop. I haven't tried this code but I think it's along the lines of what you

Re: Minimizing the download of js code in Multipage ClojureScript webapp

2013-01-27 Thread Evan Mezeske
I solved this problem for my web app in a different way, which might be worth considering. My entire ClojureScript project compiles to a single JS file which is used by every single page. I organized things such that each page had a cljs namespace associated with it, which has an "init" functi

Re: Help with Clojurescript + DOM Manipulation

2013-01-23 Thread Evan Mezeske
13 8:39:51 PM UTC-8, Evan Mezeske wrote: > > When you want to iterate over things and perform a side-effecty action for > each one (logging is a side effect, as would be adding event listeners to > DOM nodes, changing CSS classes, etc), doseq is usually the clearest thing > t

Re: Help with Clojurescript + DOM Manipulation

2013-01-23 Thread Evan Mezeske
When you want to iterate over things and perform a side-effecty action for each one (logging is a side effect, as would be adding event listeners to DOM nodes, changing CSS classes, etc), doseq is usually the clearest thing to do: (defn listen-to [links] (doseq [link links] (.log js/con

Re: ClojureScript + Jayq Resulting in Error

2013-01-19 Thread Evan Mezeske
A simple observation: Ari, you are using [lein-cljsbuild "0.2.9"] while Ilia is using version "0.2.10". Also, you are using [org.clojure/clojurescript "0.0-1450"]. I generally do not recommend specifying a clojurescript version explicitly -- the version that lein-cljsbuild defaults to is the o

Re: if-let/when-let

2013-01-03 Thread Evan Mezeske
Wouldn't it be more accurately named "if-and-let" if it supported that? E.g. (if (and x y z) ...). On Thursday, January 3, 2013 10:24:57 PM UTC-8, Edward Tsech wrote: > > Hey guys, > > if-let and when-let macros support only 2 forms in binding vector: > > (if-let [x 1 y 2] > ...) > java.lang.I

[ANN] lein-cljsbuild 0.2.10

2012-12-16 Thread Evan Mezeske
Hello, After a very long three weeks without a home internet connection, I've finally gotten around to releasing version 0.2.10 of lein-cljsbuild. Thank you all for your patience, I know that there hasn't been a release in a while! This release will default to using the upstream ClojureScript

Re: [lein-cljsbuild] exclude a cljs from compilation

2012-12-06 Thread Evan Mezeske
> > the new compiler option is :exclude and accepts both a name of a file or > directory o a vector of files and/or directories. > > Hope it helps > > mimmo > > > On Nov 16, 2012, at 10:39 AM, Mimmo Cosenza > > > wrote: > > > On Friday, November

Re: [ANN] ClojureScript release 0.0-1535 with G.Closure 0.0-2029

2012-12-01 Thread Evan Mezeske
> That said what's the compelling reason these days for lein-cljsbuild to > depend on a specific version of ClojureScript? Are you relying on certain > aspects of the analyzer or compiler's API and find that they change quite > frequently? I guess the (debatably compelling) reason for that t

Re: [lein-cljsbuild] exclude a cljs from compilation

2012-11-15 Thread Evan Mezeske
Hi Mimmo, Unfortunately, there's no way to do that right now. I can't even think of a decent workaround (although that doesn't mean there isn't one). This is part of a more general problem, which is that each build can only have a single :source-path and is not otherwise customizable. If you

Re: [ANN] ClojureScript release 0.0-1535 with G.Closure 0.0-2029

2012-11-13 Thread Evan Mezeske
I agree with Herwig, in that if the ClojureScript JAR makes use of goog.async.Deferred, which is from the third party library, then the JAR really needs to depend on the third-party library. I doubt that lein-cljsbuild is the only thing broken by this -- I expect this would break things like pi

Re: [ANN] ClojureScript release 0.0-1535 with G.Closure 0.0-2029

2012-11-12 Thread Evan Mezeske
The policy is: update the default version as quickly as possible when a new ClojureScript compiler revision is released. So, feel free to poke me if it seems like I haven't noticed a new release (as I might not have!). :) Unfortunately, after setting the default ClojureScript version to 0.0-15

Re: [ANN] ClojureScript release 0.0-1535 with G.Closure 0.0-2029

2012-11-11 Thread Evan Mezeske
Oops, I've been out of town and did not see this release! I'll cut a new lein-cljsbuild tomorrow night. -Evan On Friday, November 9, 2012 9:51:01 AM UTC-7, Sean Corfield wrote: > > Nice! > > I wonder how quickly lein-cljsbuild will get updated for this new > release? (Evan?) > > Nice to see

Re: Clojurescript externs when using a local file (cljsbuild)

2012-10-25 Thread Evan Mezeske
One other thing I ought to mention is that your *.cljs files need to be arranged in an appropriate directory structure (i.e. the directories must match the namespaces): /src-cljs/live/helper/webTemplate.cljs /src/cljs-test/helper/webTemplate/test.cljs The ClojureScript compiler (sadly) allows f

Re: Clojurescript externs when using a local file (cljsbuild)

2012-10-25 Thread Evan Mezeske
For what you're trying to do, :externs is not the solution. Ultimately, all you need to do is make sure that both src-cljs/live and src-cljs/test are on the classpath at compile time. The easiest way to do this would be to put both builds into the same project: :builds {:live {:source-path "sr

Re: ClojureScript: how to call a js method when you have the method-string?

2012-10-16 Thread Evan Mezeske
he "clarity" of the docstring a little. > > -FS. > > > On Oct 16, 2012, at 8:20 PM, Evan Mezeske > > wrote: > > > I think the easiest solution is to use "aget" and "aset". There may be > a better way, but if so I'm not aware of it. &

Re: ClojureScript: how to call a js method when you have the method-string?

2012-10-16 Thread Evan Mezeske
I think the easiest solution is to use "aget" and "aset". There may be a better way, but if so I'm not aware of it. http://stackoverflow.com/questions/9861485/clojurescript-interop On Tuesday, October 16, 2012 6:21:45 PM UTC-7, FrankS wrote: > > I understand that you can call js-methods and get

Re: Building School Seating Charts in Clojure and ClojureScript: Part 1

2012-08-29 Thread Evan Mezeske
On Wednesday, August 29, 2012 6:10:59 AM UTC-7, Stathis Sideris wrote: > > Nice post, thanks. Did you write the the geometry utilities yourself? Yeah, I did. That code is pretty application-specific. It covers things like "if a lab-bench desk with two chairs is rotated, where do the seats end

Building School Seating Charts in Clojure and ClojureScript: Part 1

2012-08-29 Thread Evan Mezeske
I finally got around to writing the first installment in what is going to be a series of articles about my experiences with building a commercial web app in Clojure and ClojureScript: http://blog.mezeske.com/?p=552 Sorry if the first article doesn't have enough meaty technical details (or code

Re: School Seating Charts

2012-08-07 Thread Evan Mezeske
> > I would encourage you to blog, especially appengine-magic. > I'll do that sometime soon. > Does it use or need core.logic? > Not currently. I considered using core.logic for the seating constraints, but I know basically nothing about logic programming at the moment, so in order to get

School Seating Charts

2012-08-06 Thread Evan Mezeske
I just launched https://www.schoolseatingcharts.com , which might be of interest to this mailing list because it's constructed out of 100% Clojure and ClojureScript. The codebase is about 60% Clojure (all running on the server) and 40% ClojureScript (all running on the client). Altogether, it

Re: assoc! order problem

2012-08-05 Thread Evan Mezeske
> > I know the sorted-map, but my question is : *why the map is not 'ordered' > when size is larger than 32 ?* > Because a hash-map is never guaranteed to be sorted. In your case, it sounds like Clojure is being smart and using a different implementation for small maps (say, less than 32 elem

Re: (let [a 0] (eval 'a)))

2012-07-31 Thread Evan Mezeske
This thread on SO might be helpful: http://stackoverflow.com/questions/6221716/variable-scope-eval-in-clojure . On Tuesday, July 31, 2012 2:02:30 PM UTC-7, Andrew wrote: > > I have a value and a string. The string contains valid Clojure code and it > mentions a variable. I'd like to let-bind tha

Re: swap! and atom behavior

2012-07-30 Thread Evan Mezeske
The problem is that take-while is lazy, so it does not actually perform the "taking" operation until the lazy-seq it returns is realized, e.g. by being printed. So when your code binds the (take-while ...) expression to "i", the anonymous function you provided is not yet being invoked, and thus

Re: how can "a" become *agent* in this code?

2012-07-29 Thread Evan Mezeske
> > When you call (send-off the-agent the-function), "the-function" gets > called with a single argument (which is the current value of the > agent). That is why log-dumper has an argument. Of course, > log-dumper does not use its argument, but it must still be there. > Perhaps it should hav

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
wrote: > > > > On Sunday, July 15, 2012 3:15:34 PM UTC-7, Evan Mezeske wrote: >> >> > Thanks; do you know of a project that uses the latest cljsbuild with >> lein 2 I could try to test? >> >> Not off the top of my head. Unfortunately, github's searc

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
> Thanks; do you know of a project that uses the latest cljsbuild with lein 2 I could try to test? I was able to launch the ring server in the advanced project, but I'm still failing launching the repl. Not off the top of my head. Unfortunately, github's search tool is junk, otherwise it mi

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
Since Leiningen 2.x has not yet been released, lein-cljsbuild uses Leiningen 1.x for both the example projects, and building the plugin itself. The problem you ran into is a difference between Leiningen 1.x and 2.x. I created an issue to make sure that this fact is made more clear: https://gi

Re: [ANN] ClojureScript release 0.0-1443

2012-07-07 Thread Evan Mezeske
e? Can that be a project-level dependency decision? > -S > > > On Friday, July 6, 2012 3:49:29 PM UTC-4, Evan Mezeske wrote: >> >> Thanks for the quick turnaround on this release, Stuart! >> >> I just pushed out [lein-cljsbuild "0.2.4"], which will pull

Re: [ANN] ClojureScript release 0.0-1443

2012-07-06 Thread Evan Mezeske
Thanks for the quick turnaround on this release, Stuart! I just pushed out [lein-cljsbuild "0.2.4"], which will pull in the new 0.0-1443 release. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegro

Re: scanLeft

2012-06-11 Thread Evan Mezeske
I think this does what you want: clj> (reductions + 0 [1 2 3]) (0 1 3 6) On Monday, June 11, 2012 5:51:15 PM UTC-7, Andy C wrote: > > Hi, > > I am looking for a way to express following function in Clojure: > scala> scanLeft(List(1,2,3))(0)(_ + _) > res1: List[Int] = List(0, 1, 3, 6) > > Any

Re: why String is not a collection (of Character)

2012-06-07 Thread Evan Mezeske
How would that affect Java interop? It seems like it would make Clojure strings incompatible with Java functions that take strings as arguments. On Wednesday, June 6, 2012 11:03:11 PM UTC-7, Andy C wrote: > > Hi, > > So my questions is as in subject. I did a bit of research but could not > find

Re: How do I suppress warnings in a Clojurescript compilation?

2012-05-30 Thread Evan Mezeske
I also meant to mention that there are a ton of knobs on the closure compiler that are not exposed by the ClojureScript compiler. This is something I'd like to improve (or see improved) at some point, but it's a tricky problem, due to the vast number of options [1]. I expect the only way to r

Re: How do I suppress warnings in a Clojurescript compilation?

2012-05-30 Thread Evan Mezeske
r > itself? Will modifying the jquery code manually generate substantially > different code than letting closure figure out which jquery resources I am > actually using? I am curious. > > On Wednesday, May 30, 2012 1:33:25 PM UTC-7, Evan Mezeske wrote: >> >> It sounds t

Re: How do I suppress warnings in a Clojurescript compilation?

2012-05-30 Thread Evan Mezeske
It sounds to me like you're using a plain JavaScriupt file as an externs definition. If that's the case, one way to get rid of the warnings is to clean up the externs file so that it only contains the function/variable names that are meant to be publicly used. As an example, here's the extern

Re: Getting started with lein-cljsbuild

2012-05-28 Thread Evan Mezeske
> > Right, this is a big part of why I think that lein trampoline was at least > part of the culprit. But by ensuring that the project's path didn't > contain a space, and by eliminating all spaces from my environment > variables, lein trampoline repl is now working for me, also lein trampolin

Re: Getting started with lein-cljsbuild

2012-05-28 Thread Evan Mezeske
Also, observe that if the project's path contains a space, "lein trampoline repl" fails as well. -- 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 modera

Re: Getting started with lein-cljsbuild

2012-05-28 Thread Evan Mezeske
This looks like a problem with Leiningen's trampoline feature to me. I edited my ~/bin/lein script, to insert "echo $TRAMPOLINE" before "exec sh -c "exec $TRAMPOLINE", near the end of the file. I then copied the lein-cljsbuild advanced example project into a path that contained a space (".../a

Re: NullPointerException

2012-05-17 Thread Evan Mezeske
On Thursday, May 17, 2012 1:25:45 PM UTC-7, Armando Blancas wrote: > > -- it's also just plain wrong. Those are not local functions: def always >> operates at top-level. >> >> > Big deal. You see what I mean? Pedantry is contagious. > Well, I guess if "trying not to give newcomers blatantly fals

Re: NullPointerException

2012-05-17 Thread Evan Mezeske
On Thursday, May 17, 2012 12:52:27 PM UTC-7, Armando Blancas wrote: > > "There's nothing wrong" is a pretty strong statement. > > > LOL. Perhaps as strong as "it is definitely the wrong way to do things"? > Jeez. > > Pedantry is the wrong way to welcome newbies to this board. > Far from being ped

Re: [ANN] ClojureScript release 0.0-1236

2012-05-16 Thread Evan Mezeske
Looks awesome! I just pushed out lein-cljsbuild 0.1.10, with the sole change being that it depends on ClojureScript 0.0-1236. On Wednesday, May 16, 2012 1:50:55 PM UTC-7, Stuart Sierra wrote: > > http://build.clojure.org/job/clojurescript-release/12/ > > Highlights: > > - Reducers > - Dependenci

Re: deps.js in cljsbuild?

2012-05-16 Thread Evan Mezeske
Mefesto's solution is correct. I wrote a brief justification for why you need to set CLOSURE_NO_DEPS=true in lein-cljsbuild's simple example: https://github.com/emezeske/lein-cljsbuild/blob/master/example-projects/simple/src-clj/example/views.clj#L8 On Monday, May 14, 2012 6:21:06 AM UTC-7, Mur

Re: A few questions about clojurescript & lein-cljsbuild

2012-05-08 Thread Evan Mezeske
3. Although there's no single-command way to do this, I frequently accomplish the same thing by just running "lein cljsbuild auto" in one terminal, and "lein trampoline cljsbuild repl-listen" in another. It works out pretty well for me. -- You received this message because you are subscribed

Re: CLJS: Cross-namespace analysis (and classpaths?)

2012-04-25 Thread Evan Mezeske
> > Shell scripts have PATH, Java has CLASS_PATH, Python has PYTHONPATH, Ruby > has RUBYLIB, Node.js has NODE_PATH... it's annoying that there are so many > of them, but they exist for a reason: It's about as simple as it gets for > getting a piece of code for a given file name. > ClojureScrip

Re: Embed clojurescript literals in server response

2012-04-24 Thread Evan Mezeske
> > Basically, I want to see what's possible. If someone's done the research > on how to do it this way, I'd like to see it. There's a different trade-off > being made with each method. > If you're looking for an example, the clojurescript browser REPL dynamically compiles forms and sends them

Re: Embed clojurescript literals in server response

2012-04-24 Thread Evan Mezeske
> > I would like to evaluate other methods which may involve: > -parsing hidden strings in the html code > The way that I've been doing this, for better or worse, has been to insert a Javascript function call into the HTML output by my server, like: $(function() {my_cljs_ns.initialize('data'

Re: New release of Paredit mode for Vim with support for VimClojure repls and Map literals

2012-04-22 Thread Evan Mezeske
e whether he treats {} the same as () and [] (ensuring they're > balanced, and having them work with localleader-[OJ><]). > > Is there a Kovac's version on Github? I can only find it on BitBucket. > If you send me a link to one on GitHub, I'll open a pull request with &

Re: New release of Paredit mode for Vim with support for VimClojure repls and Map literals

2012-04-20 Thread Evan Mezeske
Could you elaborate on what the differences are between your version (Greenberg) of paredit-vim and the original one written by Tamas Kovacs that it appears to be based on? I'm a bit confused -- the latest Kovacs version that I've used is 0.9.3 from November 2011. The Greenberg version looks l

Re: cljsbuild and checkouts?

2012-04-19 Thread Evan Mezeske
- I have to be explicit here. > > > D > > > On Friday, 20 April 2012 10:23:48 UTC+10, Evan Mezeske wrote: >> >> Yeah, you should be able to avoid having a .crossover or .generic or >> whatever in your namespaces; those are just examples based on my personal &g

Re: cljsbuild and checkouts?

2012-04-19 Thread Evan Mezeske
src > directory? > > If not - how hard do you think this would be? > > Cheers > > Dave > > > On Saturday, 7 April 2012 13:39:10 UTC+10, Dave Sann wrote: >> >> I'll take a look >> >> On Thursday, 5 April 2012 16:34:34 UTC+10, Evan Mezeske w

Re: Converting clojure code to clojurescript

2012-04-19 Thread Evan Mezeske
Is the 16 seconds figure from running your code in Rhino? From what I've heard, the V8 engine is much, much faster (like, order(s) of magnitude) than Rhino. I'm not really sure what the best way to interactively run code on V8 is. You could compile with node.js as the platform, and I think Da

Re: Getting started with lein-cljsbuild

2012-04-19 Thread Evan Mezeske
That's great news that you got it to work. I can't make any sense of the stack trace you're seeing with "lein deps", though, unfortunately. Other than installation, does the plugin seem to work (e.g. "lein cljsbuild once", etc)? I haven't tested it under Windows myself, and people have had tr

Re: ANN: New VimClojure plug-in now known as lein-tarsier

2012-04-15 Thread Evan Mezeske
On Saturday, April 14, 2012 9:07:39 PM UTC-7, Daniel Solano Gómez wrote: > > Thanks for your thoughts. After considering your points, I've decided > to rename the plug-in 'lein-tarsier', after the animal that appears on > the cover of 'Learning the vi and Vim Editors'. > Awesome choice. A relevan

Re: ANN: A more fully-featured lein-vimclojure

2012-04-14 Thread Evan Mezeske
hosed. On Saturday, April 14, 2012 1:10:40 PM UTC-7, Evan Mezeske wrote: > > Thank you! In particular, the Leiningen 1/2 support is a huge win. I'm > really glad someone decided to tackle this! > > I feel I should point out, though, that the name of the plugin is > unfortu

Re: ANN: A more fully-featured lein-vimclojure

2012-04-14 Thread Evan Mezeske
Thank you! In particular, the Leiningen 1/2 support is a huge win. I'm really glad someone decided to tackle this! I feel I should point out, though, that the name of the plugin is unfortunate. There are already several plugins named "lein-vimclojure", so that when I google that term, the to

Re: Supporting platform specific code

2012-04-12 Thread Evan Mezeske
> > First thing which comes to mind is to use metadata for this purpose. > Something like > > (defn ^{:platform :jvm} to-string [x] ...) > You might be interested in https://github.com/lynaghk/cljx , which already does this sort of thing. -- You received this message because you are subscrib

Re: Help in porting Hiccup to ClojureScript

2012-04-07 Thread Evan Mezeske
On Saturday, April 7, 2012 2:24:21 PM UTC-7, r0man wrote: > > Why do you think it is impossible to have the same API in Clojure > and ClojureScript? > For instance, hiccup.core/html and hiccup.core/h cannot live in the same namespace in ClojureScript if hiccup.core/html is going to be a macro, an

Re: Help in porting Hiccup to ClojureScript

2012-04-07 Thread Evan Mezeske
I think crate is about the closest that you're going to be able to get to hiccup in practice. ClojureScript macros are written in Clojure, and thus have to come from separate namespaces from the rest of the ClojureScript code. So, it is not possible to just port hiccup to ClojureScript on a v

Re: cljsbuild and checkouts?

2012-04-04 Thread Evan Mezeske
I haven't used checkout dependencies with lein-cljsbuild myself, but my understanding is that lein will put the "checkouts" directory earlier in the classpath than other dependencies, so things in there will be found first. The clojurescript compiler runs inside an "eval-in-project" in Leining

Re: ClojureScript release 0.0-1006

2012-03-30 Thread Evan Mezeske
Awesome, I've been looking forward to this release. The new release has made it out to the upstream maven repository. I just pushed out lein-cljsbuild 0.1.4, which has the new 0.0-1006 dependency (as well as some other features [1]. It works on my personal projects! -Evan [1] https://github

Re: Multiple ClojureScript (sub)projects with shared CLJS libraries per single clojure project

2012-03-30 Thread Evan Mezeske
I can confirm Mark Rathewell's note; that's part of what lein-cljsbuild is meant to do. With his configuration, the script1.js and script2.js files would both be built, and each would only contain the code from the project1 or project2 directories, respectively (unless they require code from ou

Re: ClojureScript gets PersistentVectors

2012-03-29 Thread Evan Mezeske
This is excellent. Big thanks to Laszlo! I've been working on a Raphaël-based interactive GUI app in ClojureScript that maintains a big vector of elements, and had just recently started to run into what seemed to be the performance limits of the copy-on-write approach. I'm very optimistic th

Re: Alternate set literal syntax?

2012-03-25 Thread Evan Mezeske
Doesn't this amount to arguing over what color the bike shed should be? [1] Is there anything I could do with Clojure with an aesthetically different (but functionally identical ) set notation that I cannot do with Clojure right now? Anyway, no matter how beautiful a new set notation might be (

Re: core.logic now runs under ClojureScript

2012-03-25 Thread Evan Mezeske
On Saturday, March 24, 2012 7:19:41 PM UTC-7, David Nolen wrote: > > There's a lot of work left to do but I was able to successfully solve the > zebra puzzle with core.logic running under JavaScript via V8 in ~170ms. > There's tons of performance optimization yet to do, but to give some > perspe

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-23 Thread Evan Mezeske
On Friday, March 23, 2012 5:26:16 AM UTC-7, David Nolen wrote: > > This needs a design page on Confluence. Anything under discussion should > probably address the new :refer. > > David > I'd be happy to consolidate this topic into a wiki page if I had the privileges needed to create one. Or may

Re: Frustrations in being moderated

2012-03-23 Thread Evan Mezeske
Thanks a bunch! -Evan On Friday, March 23, 2012 6:22:12 AM UTC-7, stuart@gmail.com wrote: > > The "policy" is entirely controlled by Google Groups. I think it's > time-based. > -S > > > It can also be overridden per user, once you find your way through the > confusing groups API. > > Evan,

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-23 Thread Evan Mezeske
> > In the Clojure case you extract the chunk with >tangle mydoc "Clojure code" >file > and in the ClojureScript case you extract it with >tangle mydoc "ClojureScript code" >file > This adds an cumbersome step to the build process, adds an external dependency, and is exactly the kind of t

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-22 Thread Evan Mezeske
compiler. I'd be more than happy to implement such support if people thought it was desirable. -Evan On Tuesday, March 20, 2012 10:12:43 PM UTC-7, Evan Mezeske wrote: > > Hi, > > I'm working on some tools for making it easier to share generic Clojure > code between

Frustrations in being moderated

2012-03-22 Thread Evan Mezeske
Hi, I've been posting very lightly to this group for a few weeks now, and am an active member of the Clojure community (or so I'd like to think), and yet all my posts still have to go through human moderation. I understand that there's probably something algorithmic going on behind the scenes

Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-22 Thread Evan Mezeske
Hi, I'm working on some tools for making it easier to share generic Clojure code between Clojure and ClojureScript, and one problem that does not seem to have a pretty solution is that of requiring macros. Clojure uses a regular (:require ...) whereas ClojureScript needs a (:require-macros ...

Re: Clojurescript: named/numbered releases?

2012-03-08 Thread Evan Mezeske
I've been working off the releases under "tags": https://github.com/clojure/clojurescript/tags I think these are still pre-1.0 releases, but they seem to be released at more stable points than just tracking the master. On Wednesday, March 7, 2012 9:02:48 PM UTC-7, kovasb wrote: > > It's gre

Re: How to use goog.dom.query

2012-03-08 Thread Evan Mezeske
Just a word of warning: I've had several reports of people encountering difficulties (e.g. weird stack traces) when trying to use a recent ClojureScript compiler with the various "goog" jars that are flying around. Presumably this is due to the fact that the compiler depends on the Google Clo

Re: Major lein-cljsbuild update: 0.1.0

2012-02-26 Thread Evan Mezeske
ssover files don't pollute my > cljs-sources anymore :) > > One suggestion: Wouldn't it be nicer if the default value for > :crossover-path would be a hidden (dot-) directory? > > > > > > > > > > On Sat, Feb 25, 2012 at 10:06, Evan Mezeske wrot

Major lein-cljsbuild update: 0.1.0

2012-02-25 Thread Evan Mezeske
Hey, I just released a major update to the lein-cljsbuild plugin for Leiningen (version 0.1.0). On top of a bunch of bug fixes and minor improvements, there are a couple new features: * Support for running ClojureScript tests, with an example using PhantomJS. * Support for running ClojureScript

Re: lein-cljsbuild 0.0.1 released

2012-01-20 Thread Evan Mezeske
I find the idea of using a special filename extension rather appealing. A couple of notes: (1) I'm not sure there is a "generic clojure". ClojureScript has a couple serious differences from Clojure, such as the way macros are included in (ns ...). (2) ClojureScript macro files, AFAICT, really a

Re: lein-cljsbuild 0.0.1 released

2012-01-17 Thread Evan Mezeske
On Jan 16, 5:09 pm, Dave Sann wrote: > This looks interesting. > > I have a couple of comments and questions: > > 1. I am wary of the copying of cls -> cljs files in the src tree. Due to > the (inevitable at some point) confusion over which code is authored as > cljs and which copied. I really thi

lein-cljsbuild 0.0.1 released

2012-01-01 Thread Evan Mezeske
Hello, I just pushed out the first release of my new lein plugin, lein- cljsbuild. It adds a lein task that can either build your ClojureScript one time, or watch for modifications and automatically build it when necessary (like cljs-watch). It also has support for hooking into the "lein compile