Hi Jarrod,
Sounds to me like you're using harpjs mainly as an asset pipeline
replacement? Stasis doesn't care about Jade, LESS or any such thing -
because that is covered by other libraries that you would use along with
it. Stasis is only concerned with 1) serving your pages live in
There are some HTML-based tools out there (reveal.js, slidy, impress.js,
deck.js ...) for building slide-based presentations for conference talks.
But you usually have to write your slides in raw HTML. This feels
cumbersome when you're used to writing LISP s-expressions with paredit. And
if
Dear Florian (or anybody),
I really like how your post is so beautifully syntax highlighted.
How did you do that ?
nice day !, Frank
(PS this Frank)
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Hi,
i'm investigating if clojure can be used to solve the challenges and
problems we have at my day job better than ruby or powershell. A very
common use case is validating data from different systems against some
criteria. i believe clojure can be our silver bullet, but before that, it
Hello Clojurians,
I'm starting to play with Processing and I want to use my favorite
programming language for it, so I started using
Quilhttps://github.com/quil/quil.
The problem is that Processing has a imperative architecture and makes my
Clojure code look bad. For those that don't know
Hi,
I'm trying to understand the following function (from
http://en.wikibooks.org/wiki/Clojure_Programming/Examples/Lazy_Fibonacci#Self-Referential_Version):
(def fib-seq
(lazy-seq
(map +
(cons 0 (cons 0 fib-seq))
(cons 1 fib-seq
I'm trying to understand how this works.
Hello,
To be honest I don't see any fundamental difference between your first
attempt and the improvement: both share the fact that the mutation of the
state happens within the draw function. So in both cases, you have a
temporal coupling between updating the state of the app and rendering a new
On Sunday, March 9, 2014 1:02:52 PM UTC, Laurent PETIT wrote:
Hello,
To be honest I don't see any fundamental difference between your first
attempt and the improvement: both share the fact that the mutation of the
state happens within the draw function. So in both cases, you have a
2014-03-09 14:21 GMT+01:00 J. Pablo Fernández pup...@pupeno.com:
On Sunday, March 9, 2014 1:02:52 PM UTC, Laurent PETIT wrote:
Hello,
To be honest I don't see any fundamental difference between your first
attempt and the improvement: both share the fact that the mutation of the
state
(doubles (into-array [1.2 2.2]))
#ClassCastException java.lang.ClassCastException: [Ljava.lang.Double;
cannot be cast to [D
???
--
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
(double-array [1.2 2.2])
doubles just cast object into a double array, which fails if the object is
not already one. It does not convert arbitrary array into array of doubles.
doubles is used in few cases, when you need to pass array of doubles
instead of just Object (or to get rid of
Hello,
(take 1 fib-seq) = (1)
Which can also be seen as[*] (map + (0) (1))
(map + '(0) '(1)) = (1)
Makes sense?
(take 2 fib-seq) = (1 1)
Here the recursive definition (note that it's not a function, fib-seq
simply a Var that holds a LazySeq object) comes into play. We already know
the
This is really cool. Could you share some examples of the SVG animations you
have been playing with?
--
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
That's actually quite easy. I saved my script as a github gist and copied
it from there ... with all the highlighting etc.
Cheers Florian
Am Sonntag, 9. März 2014 10:36:44 UTC+1 schrieb Frank Behrens:
Dear Florian (or anybody),
I really like how your post is so beautifully syntax
Hey Frank,
Try opening up a repl, and running this *for* comprehension.
(def user_textfile [[:id1 {:name 'Frank'}] [:id3 {:name 'Tim'}]])
(def user_database [[:id1 {:age 38}] [:id2 {:age 27}] [:id3 {:age 18}]
[:id4 {:age 60}]])
(for [i user_textfile
j user_database
:when (=
I think it would be more efficient to read one of the inputs into a
map for random access instead of iterating it every time.
On Sun, Mar 9, 2014 at 4:48 PM, Timothy Washington twash...@gmail.com wrote:
Hey Frank,
Try opening up a repl, and running this for comprehension.
(def user_textfile
An awesome slide.
On Sun, Mar 9, 2014 at 11:15 PM, Base basselh...@gmail.com wrote:
This is really cool. Could you share some examples of the SVG animations
you have been playing with?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
On 3/9/14, 3:45 AM, Malcolm Sparks wrote:
There are some HTML-based tools out there (reveal.js, slidy,
impress.js, deck.js ...) for building slide-based presentations for
conference talks.
But you usually have to write your slides in raw HTML. This feels
cumbersome when you're used to
Sure. For SVG examples please view the presentation here:
http://qcon.juxt.pro - I'm sorry it isn't (yet) responsive or
touch-sensitive (getting it working on my laptop before the talk became the
overriding priority) so you'll need a keyboard to control it. Use the
left/right arrow keys to
On Monday, September 2, 2013 8:10:10 PM UTC-6, Nelson Morris wrote:
Several of Yesod's responses to other items on the list are humorous in
there vagueness, but in my experience for clojure:
1.Injection: Done by JDBC's prepared statements, and clojure.jdbc's use
of them
2. XSS
... and here's an example of how it works:
(def workings
(adatx/prob-solve
{
:symvec['+ '- '* '/ 'x1 'x2]
:prog-holder '(fn [x1 x2] :adatx.prog-hold/prog)
:in-out-pairs [{:in [1 2] :out 4}
{:in [1 3] :out 5}
{:in [2 3] :out 7}
Hi,
Before core.async, the way I did event handling in cljs was:
## approach 1
goog.events.listen(... , callback-func)
After learning core.async, I read (and liked the idea of):
## approach 2
* (defn global-events (core.async/chan 1))
* shove all events on to global-events
*
Well - not sure about interest levels :-) but I am soldiering on.
I've tidied up and checked in the code I mentioned and some more stuff that
I am playing with.
If you are running Fedora 20 x86_64 then you are only a few lines of
cut-n-paste away from being able to build yourself a working
self-build is a simple build server currently focused on simplicity and
easy setup, its main goal is to enable a continues build by just running:
$ lein self-build jobs.edn
Right from within a lein project thus saving us from the need to setup
Jenkins or other more complex solutions.
Check
Hmm, the *for* comprehension yields a lazy sequence of results. So the
penalty should only occur when one starts to use / evaluate the result.
Using maps is a good idea. But I think you'll have to use another algorithm
(not *for*) to get the random access you seek.
Frank could try a
Hi Pablo
You can find similar old thread on Quil github repo:
https://github.com/quil/quil/pull/19 It may serve as good background what
other people considered to make Quil more functional-style.
I like your suggestion though I would split your :draw function to 2 fns:
an :update function,
Hi, Zach.
I was trying to benchmark at different values of the :fysnc-* parameters,
and I noticed that it didn't matter what value of :fsync-interval I set,
the performance was constant, and about what it is with both :fsync-put?
and :fsync-take? disabled.
Any suggestions on how to test if
Well, I typically have multiple channels. No need to have a single
global event bus for everything. With multiple channels, you can have a
bunch of local event loops.
t x mailto:txrev...@gmail.com
March 9, 2014 1:43 PM
Hi,
Before core.async, the way I did event handling in cljs was:
##
FWIW I'm not crazy about these suggestions because they seem to me to be mostly
cosmetic, and actually negative if they end up leading to multiple incompatible
modes of operation. The Processing model seems to me to be intrinsically
imperative, and it's also well-known by lots of people and
I'm happy to mentor the Typed Clojure Beginner Tutorial, Annotations Error
Messages and/or the typed Clojurescript Annotations
--
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
I'm happy to mentor the Typed Clojure Beginner Tutorial, Annotations Error
Messages and/or the typed Clojurescript Annotations
--
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
Awesome, thanks for bringing these great libraries to my attention!
--
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
FWIW, I've got an example of a decoupled update/draw loop here:
https://github.com/gtrak/quilltest/blob/master/src/quilltest/balls.clj
On Sun, Mar 9, 2014 at 10:16 PM, Lee Spector lspec...@hampshire.edu wrote:
FWIW I'm not crazy about these suggestions because they seem to me to be
mostly
33 matches
Mail list logo