jayq [1] now supports jQuery deferred API , there are 2 examples of its use
with these 2 macros: let-ajax and let-deferred (see the readme).
[1] https://github.com/ibdknox/jayq
On Tuesday, November 27, 2012 12:51:22 AM UTC+1, FrankS wrote:
All this call-back stuff drives me crazy in
Conjure is a lightweight mocking library intended to be used on top of
clojure.test.
We've been using it at Runa for a long time, and it is compatible with all
versions of Clojure from 1.2 to 1.5-beta1.
https://github.com/amitrathore/conjure
Alex
--
You received this message because you are
angularjs also has a promise - http://docs.angularjs.org/api/ng.$q
I can vouch for using angularjs with clojurescript (it's much better than
using jquery in cljs), but haven't got as far as using this API item,
though I can't imagine that it would be that complicated.
- Niel
On Tue, Nov 27,
Hey,
I've grown extremely enthusiastic about Clojure (and still growing more and
more :) ) and would like to spread the love around here in Budapest,
Hungary.
This is to estimate how many people are interested in attending a monthly
meetup where we'd have presentations, code dojos, etc, so
I hadn't considered a need to generate html strings on the browser (at
least, not for performance). Do you have any references that demonstrate
that it is faster to parse strings than generate dom elements directly with
the js dom api. That seems counter-intuitive to me.
D
On Monday, 26
Hello Alex,
This looks very useful, thanks. What's the license under which you are
releasing this code? Also, I'm wondering whether something like that could
be the next step for Typed Clojure. From Ambrose's thesis, I got the
impression that he would like Typed Clojure to eventually cater for
Having a good Java IDE around (e.g. Eclipse or IntelliJ) certainly
helps, though not so much in developing a comprehensive mental model
of how everything fits together.
Some years ago, Chris Houser worked at building static visualizations
of the core Clojure interfaces and abstract
Balint Erdi balint.e...@gmail.com writes:
Hey,
I've grown extremely enthusiastic about Clojure (and still growing more and
more :) ) and would like to spread the love around here in Budapest,
Hungary.
This is to estimate how many people are interested in attending a monthly
meetup
Thank you!
On Fri, Nov 23, 2012 at 3:04 PM, dmiller dmiller2...@gmail.com wrote:
Frank:
Fixed in the master branch (which is 1.5 dev).
I also created a new branch named clojure-1.4.1 that is still a 1.4
version, with the the patch.
Also created binary distribution zip files for the new
Using Clojure? Let people know here:
http://www.infoq.com/research/next-jvm-language
--
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
I've been meaning to write a wrapper around the google closure async
primitives:
https://groups.google.com/forum/#!msg/closure-library-discuss/aHjKn7K6O9Q/XmZSK54lc3cJ
Are there any reasons not to, or any libraries that have attempted it already?
On Tue, Nov 27, 2012 at 12:21 AM, Niel Drummond
Thanks Max - I can see you have been busy with jayq lately… I'll check it out.
-FS.
On Nov 27, 2012, at 12:05 AM, Max Penet m...@qbits.cc wrote:
jayq [1] now supports jQuery deferred API , there are 2 examples of its use
with these 2 macros: let-ajax and let-deferred (see the readme).
I put together some notes and hints on how to share Clojure functions with
an Android app in Java for the Portland Clojure meetup.
https://github.com/cesarpinera/TargetAndroid
Clojure is hard on the device's resources, particularly memory. Also,
there's somethings that don't work terribly well
Hi all,
I just published the 8th episode of my series of tutorials on clojurescript.
https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-08.md
In this episode I patched the CLJS compiler to overcome the code duplication
problem detected in the 7th tutorial. I extended CLJS
On Monday, November 26, 2012 9:14:07 PM UTC-5, Herwig Hochleitner wrote:
2012/11/26 John Gabriele jmg...@gmail.com javascript:
What are currently the main limitations in creating and running
Clojure programs on Android? (Does some limited subset of Clojure
work? Does the bytecode that
On Tuesday, November 27, 2012 12:46:44 PM UTC-5, César Piñera wrote:
I put together some notes and hints on how to share Clojure functions with
an Android app in Java for the Portland Clojure meetup.
https://github.com/cesarpinera/TargetAndroid
This looks great. Thanks, César.
Clojure
Sometimes I want to do the same thing for multiple classes of
exceptions without writing very similar catch clauses repeatedly, so I
wrote a macro:
(defmacro try*
Exactly like try, except that catch statements can contain a
sequence of exception-types which should all be handled in the same
PPK has numbers for this from a few years
ago: http://www.quirksmode.org/dom/innerhtml.html
A more recent benchmark: http://andrew.hedges.name/experiments/innerhtml/
There used to be a huge difference in favor of strings + innerHTML, but
with recent browsers the situation seems to have evened
How do you use clojurescript on android? SL4A? How does it compare to a
native app? I'm looking to try to write an android app but want to avoid
java, but it sounds like clojure isn't really ready for production on
android.
On Monday, November 26, 2012 8:14:07 PM UTC-6, Herwig Hochleitner
I've been trying to create a simple project with CLJS source and CLJS
tests using lein-cljsbuild 0.2.9, but it doesn't seem to be able to
pick up on the cljs source.
How can I get the clojurescript tests to compile/run and include the
actual project source?
The output from running `lein clean
I think you need to make sure that the cljs files are also on the Lein 2
:source-paths
David
On Tue, Nov 27, 2012 at 12:50 PM, Sean Grove s...@cloudfuji.com wrote:
I've been trying to create a simple project with CLJS source and CLJS
tests using lein-cljsbuild 0.2.9, but it doesn't seem to
Curtis,
I have successful built a ClojureScript app that uses SL4A (Rhino). The
startup time is an issue, the performance isn't great but is acceptable.
If you're just prototyping something or need a tool for in-house use - this
is one alternative.
Given the work and efforts that Cesar
Thanks for the tip!
Sadly, doesn't seem to make any difference - here's the updated
project.clj and the (same) output:
https://gist.github.com/c159e76e559f407287ce
SEVERE:
/Users/sgrove/code/clojure/zenbox/.lein-cljsbuild-compiler-1/zenbox/test/main.js:3:
ERROR - required zenbox.main namespace
Hi,
I really like the design decisions taken by ClojureScript One and I would
like use them to build applications at work.
Unfortunately it is not possible to use clojure at work but I'm think of
using a similar approach with javascript.
In your knowledge what is the javascript framework that
Not really, take a look at core.logic's project.clj and try to determine
what's wrong.
On Tuesday, November 27, 2012, Sean Grove wrote:
Thanks for the tip!
Sadly, doesn't seem to make any difference - here's the updated
project.clj and the (same) output:
2012/11/27 Giacomo Cosenza mimmo.cose...@gmail.com
Hope you find it useful
Giacomo,
This is fantastic. I think this may be the most valuable source of
information about CLJS
on the Web.
We will figure out a way to add ClojureScript content to
http://clojure-doc.org, this has to be easier
to
On Tue, Nov 27, 2012 at 3:09 PM, Michael Klishin
michael.s.klis...@gmail.com wrote:
This is fantastic. I think this may be the most valuable source of
information about CLJS
on the Web.
We will figure out a way to add ClojureScript content to
http://clojure-doc.org, this has to be easier
Hi,
I have a special non-browser environment which doesn't support a
ClojureScript REPL at the moment.
I was wondering if someone has any insight into how much work it would be
to create an equivalent of the browser-connected repl for a new
environment. That is, I'd like a repl running in the
It is possible to execute forms in a debugging context but AFAIK there is
no easy setup that allows you to step through the execution.
The easiest way to evaluate forms in context is to setup emacs as described
here http://clojure-doc.org/articles/tutorials/emacs.html. This will allow
you to
It's definitely possible. I've been to meaning to merge some experimental
work I've done creating a Node.js ClojureScript REPL in hopes that some one
would be willing to take it further.
David
On Tue, Nov 27, 2012 at 4:22 PM, Krukow karl.kru...@gmail.com wrote:
Hi,
I have a special
Great! Thanks for your quick reply (again).
I'd certainly love to look at it if you can provide a link.
What do you think about the possibility of creating some protocol for the
transport needed for a connected repl?
- Karl
On 27/11/2012, at 22.32, David Nolen wrote:
It's definitely
Pls take a look at Bodil's recent project:
https://github.com/bodil/cljs-noderepl
-FS.
On Nov 27, 2012, at 1:32 PM, David Nolen dnolen.li...@gmail.com wrote:
It's definitely possible. I've been to meaning to merge some experimental
work I've done creating a Node.js ClojureScript REPL in
Yes! Thank you for that link :)
On 27/11/2012, at 22.44, Frank Siebenlist wrote:
Pls take a look at Bodil's recent project:
https://github.com/bodil/cljs-noderepl
-FS.
On Nov 27, 2012, at 1:32 PM, David Nolen dnolen.li...@gmail.com wrote:
It's definitely possible. I've been to
Looks much better than my attempt :)
On Tue, Nov 27, 2012 at 4:58 PM, Karl Krukow karl.kru...@gmail.com wrote:
Yes! Thank you for that link :)
On 27/11/2012, at 22.44, Frank Siebenlist wrote:
Pls take a look at Bodil's recent project:
https://github.com/bodil/cljs-noderepl
-FS.
Did you look at what vimclojure (+ nailgun server + lein vimclojure plugin)
currently provides? It doesn't use nrepl yet, but I'd be curious to know
how its features relate to emacs' clojure plugins, and also how their
features may be valuable when it comes to working with noir/compojure/ring.
I had some trouble because all goals need to take in the list of lvars.
`infd` doesn't take in a list, but your sudoku blog post has `all-infd`
which does the trick:
(defn all-infd
Assign a domain to all vars.
[vars domain]
(if (seq vars)
(all
(domfd
Yep infd's api is a bit annoying - I'd like to change it to match
distinctfd.
David
On Tue, Nov 27, 2012 at 5:57 PM, Frederik De Bleser
frede...@burocrazy.comwrote:
I had some trouble because all goals need to take in the list of lvars.
`infd` doesn't take in a list, but your sudoku blog
On Tue, Nov 27, 2012 at 1:30 PM, Walter van der Laan
waltervanderl...@gmail.com wrote:
Stepping through the execution is harder to setup but it might be possible.
The CDT debugger can be set up as described here
http://georgejahad.com/clojure/swank-cdt.html. It worked great for me at
some
Cool. I just voted. And from the looks of it, Clojure is tracking very
well.
Total number of participants: *432*Option Adoption% of Code in New Language
Votes DetailsScala78%72% 253Heatmap
http://www.infoq.com/research/next-jvm-language#
Clojure78%76% 230Heatmap
A long time ago, I wrote this simple heap implementation:
https://gist.github.com/4158634
There are a lot of rough edges here. Many of them could be cleaned up (ie,
replaced with standard library functions) if I could rely on the contents
of the heap being trivially comparable using and
On Tue, 2012-11-27 at 10:34 -0800, Ben Wolfson wrote:
What's going on? Where'd my try* go?
try* isn't general enough to accept some macroexpansions, because list?
is not the predicate you want.
repl (- (macroexpand-1 '(g 2 3)) (drop 3) first)
(catch [java.lang.Exception
ah, ok. thanks.
On Tue, Nov 27, 2012 at 7:03 PM, Stephen Compall
stephen.comp...@gmail.com wrote:
On Tue, 2012-11-27 at 10:34 -0800, Ben Wolfson wrote:
What's going on? Where'd my try* go?
try* isn't general enough to accept some macroexpansions, because list?
is not the predicate you want.
Hi Stathis,
Thanks for your interestin clj-schema. If you use it and have any feedback
please let me know.
clj-schema is released under the MIT license: http://mit-license.org/
I think TypedClojure is really cool. I'm excited about both approaches
because in general I'm very interested in
Thank you Andy - This was fabulously helpful - I really appreciate
your explanation.
Would you permit me to include your answer in a blog post about the above
question?
On Monday, November 19, 2012 6:25:30 PM UTC-8, Andy Fingerhut wrote:
If you are familiar with tail recursion, then
On 11/27/12 9:17 PM, Curtis wrote:
Thank you Andy - This was fabulously helpful - I really appreciate
your explanation.
Would you permit me to include your answer in a blog post about the
above question?
On Monday, November 19, 2012 6:25:30 PM UTC-8, Andy Fingerhut wrote:
If you are
When considering the availability of a debugger, keep in mind that your
workflow might be different when you code Clojure compared to how you
approach Java, Ruby etc.
Because functions require less context to run than methods of an object, I
find that experimenting at the REPL (or rather
On Nov 27, 2012, at 8:17 PM, Curtis wrote:
Thank you Andy - This was fabulously helpful - I really appreciate your
explanation.
Would you permit me to include your answer in a blog post about the above
question?
Sure, use it however you like.
Andy
--
You received this message
On Mon, Nov 19, 2012 at 6:24 PM, Andy Fingerhut
andy.finger...@gmail.com wrote:
Clojure's loop/recur only implements tail recursion, not general tail-call
optimization. tail recursion is far more commonly used in languages that
have it than the general tail-call optimization to arbitrary
Yes, that wasn't very clear of me. Here is what I was thinking when writing
that.
In Scheme, which has general tail-call optimization, you will often find
functions written where the programmer went out of their way to change it from
recursive, but doesn't use tail calls, into something that
Thanks Michael,
hope to mantain myself to your generous judgment.
mimmo (it's my nickname)
On Nov 27, 2012, at 9:09 PM, Michael Klishin michael.s.klis...@gmail.com
wrote:
2012/11/27 Giacomo Cosenza mimmo.cose...@gmail.com
Hope you find it useful
Giacomo,
This is fantastic. I think
50 matches
Mail list logo