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
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:
>
>
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
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
> 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
>
>
> 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
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
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
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
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
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
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
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
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
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
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
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
>
> 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
> 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
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
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
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
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
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
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
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.
&
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
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
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
>
> 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
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
>
> 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
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
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
>
> 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
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
> 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
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
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
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
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
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
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
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
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
>
> 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
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
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
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
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
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
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
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
>
> 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
>
> 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
>
> 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'
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
&
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
- 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
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
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
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
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
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
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
>
> 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
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
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
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
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
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
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
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 (
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
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
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,
>
> 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
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
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
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 ...
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
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
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
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
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
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
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
87 matches
Mail list logo