Re: [ANN] Stasis - not another static site framework

2014-03-09 Thread Magnar Sveen
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 developmen

Om-powered HTML slide-decks

2014-03-09 Thread Malcolm Sparks
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 you

Re: Getting started - overcoming my first obstacles

2014-03-09 Thread Frank Behrens
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 clojure@googl

Working with big datasets, merging two ordered lists by key

2014-03-09 Thread Frank Behrens
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 seems

More functional Quil

2014-03-09 Thread J . Pablo Fernández
Hello Clojurians, I'm starting to play with Processing and I want to use my favorite programming language for it, so I started using Quil. The problem is that Processing has a imperative architecture and makes my Clojure code look bad. For those that don't know Pr

Need help understanding a lazy sequence function

2014-03-09 Thread Asfand Yar Qazi
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. I

Re: More functional Quil

2014-03-09 Thread Laurent PETIT
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 v

Re: More functional Quil

2014-03-09 Thread J . Pablo Fernández
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

Re: More functional Quil

2014-03-09 Thread Laurent PETIT
2014-03-09 14:21 GMT+01:00 J. Pablo Fernández : > > > 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 happen

How to use function "doubles" ?

2014-03-09 Thread ru
(doubles (into-array [1.2 2.2])) # ??? -- 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 post. To unsubscr

Re: How to use function "doubles" ?

2014-03-09 Thread Jozef Wagner
(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 reflection/t

Re: Need help understanding a lazy sequence function

2014-03-09 Thread Atamert Ölçgen
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 f

Om-powered HTML slide-decks

2014-03-09 Thread Base
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

Re: Getting started - overcoming my first obstacles

2014-03-09 Thread Florian Salihovic
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 highl

Re: Working with big datasets, merging two ordered lists by key

2014-03-09 Thread Timothy Washington
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 (= (firs

Re: Working with big datasets, merging two ordered lists by key

2014-03-09 Thread Moritz Ulrich
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 wrote: > Hey Frank, > > Try opening up a repl, and running this for comprehension. > > (def user_textfile [[:id1 {:name

Re: Om-powered HTML slide-decks

2014-03-09 Thread haosdent
An awesome slide. On Sun, Mar 9, 2014 at 11:15 PM, Base 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 this group,

Re: Om-powered HTML slide-decks

2014-03-09 Thread Ben Mabey
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 writing

Re: Om-powered HTML slide-decks

2014-03-09 Thread Malcolm Sparks
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 navi

Re: Compiling Clojure security knowledge

2014-03-09 Thread Christopher Poile
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

Re: Adatx - Test driven development... literally.

2014-03-09 Thread Ludwik Grodzki
... 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}

[soft/philosophical] event handers in cljs

2014-03-09 Thread t x
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 * ha

Re: 1.6.0-beta2 / sumatra / graal / okra / hsa / gpgpu

2014-03-09 Thread Jules
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 graa

[ANN] self-build, a self contained build server

2014-03-09 Thread ronen
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 h

Re: Working with big datasets, merging two ordered lists by key

2014-03-09 Thread Timothy Washington
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 *clojure.set/i

Re: More functional Quil

2014-03-09 Thread Nikita Beloglazov
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, w

Re: [ANN] durable-queue: an in-process disk-backed queue

2014-03-09 Thread Leif
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 dat

Re: [soft/philosophical] event handers in cljs

2014-03-09 Thread Sam Ritchie
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 March 9, 2014 1:43 PM Hi, Before core.async, the way I did event handling in cljs was: ## ap

Re: More functional Quil

2014-03-09 Thread Lee Spector
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 eas

Request for Mentors for GSoC Projects

2014-03-09 Thread zcaudate
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 p

Request for Mentors for GSoC Projects

2014-03-09 Thread zcaudate
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 p

Re: [ANN] Stasis - not another static site framework

2014-03-09 Thread Jarrod Swart
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 y

Re: More functional Quil

2014-03-09 Thread Gary Trakhman
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 wrote: > > FWIW I'm not crazy about these suggestions because they seem to me to be > mostly cosmetic, and actually

New Functional Programming Job Opportunities

2014-03-09 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Clojure Programmer/Data Scientist at Weft http://functionaljobs.com/jobs/8692-clojure-programmer-data-scientist-at-weft Senior Clojure Developer at Sonic Boom Wellness http://functionaljobs.com/jobs/8691-seni