Bit of a technical post for my own reference, about visualization and scripting in clojure.
Clojure and visualization Being interested in clojure, a tweet by Francesco Strozzi (@fstrozzi) caught my attention last week: " A D3 like # dataviz project for # clojure. Codename C2 and looks promising. http://keminglabs.com/c2/ . They need contribs so spread the word! " I tried a while ago to do some stuff in D3, but the javascript got in the way so I gave up after …
…Handlebars, Backbone, Underscore, Sinatra, Clojure, Java, Hadoop, Cascalog. Highlight: "You don't need a database, you need a [expletive deleted] cache" So that's what we did, we traded our database for a cache.
Don't miss all that the Internet has to say on Scalability, click below and become eventually consistent with all scalability knowledge...
…chooses its own tools; works across web, Android, iOS, and Ruby/Scala/ Clojure backend apps; and develops a secure and scalable banking service on AWS. Learn more at careers .
Fitbit is hiring a Site Operations Lead to help us on our mission to make the world a healthier place! Fitbit's wearable fitness devices are worn by people across the world, each syncing with the web site, wirelessly and automatically, every 15 minutes. Join our mission here !
…libraries. and don't miss out on the terrific community on the Clojure google group and # clojure IRC channel.
Michael>> Which areas in Clojure should a would-be Clojure programmer concentrate on in your opinion?
Rich>> If you are coming from an OO background, the most fundamental thing is to concentrate on programming with values. Don't try to replicate your mutable objects, you need them far less than you might think.
Michael>> Do you think this …
Functional Programming Patterns in Scala and Clojure now in beta
…transitioned to a hybrid approach with Ruby apps intermingling with Scala and Clojure apps. I think some of their idea of what is idiomatic Rails and how to operate Ruby are not exactly on center. But, their approach to the problem of a large Rails app is right on: break it up into "micro-services" that, if you don't like the code, you can rewrite quickly if necessary.
Lest you fear this is yet another " Rails doesn't scale!" deck, they do make a key …
Clojure and Leiningen
The next step was to see how these messages would interact with Clojure and Java. Fortunately, there's already a few options and I tried out clojure-protobuf which conveniently includes a Leiningen task for running both the Protocol Buffer compiler protoc and javac .
I added the dependency to my project.clj:
[protobuf "0.6.0-beta2"]
At the time, the protobuf library expected your .proto files to be placed in a ./proto …
…to N. The diagonal holds data for A,A , B,B , etc.
The R code to plot the confusion matrix is as follows:
Alex also suggested using the caret package which includes a function to build the confusion matrix from observations directly and also provides some useful summary statistics. I'm going to hack on our classifier's Clojure code a little more and will be sure to post again with the findings!
…Fay are two of the most interesting. ClojureScript , obviously, is a Clojure implementation which compiles to JavaScript; Fay is a Haskell implementation which compiles to JavaScript. ClojureScript is useful enough that it powers a fascinating new text editor called Light Table.
as of Light Table 0.2.0, the entire thing is now built on top of ClojureScript and the only Clojure left in the system is used for evaling Clojure. With the help of the Node-Webkit…
for-comprehensions; I guess I've read enough about them in Clojure now that they make sense in Scala. It's worth noting that Scala's for-comprehensions feel simpler than Clojure's.
Self-type annotations; I've seen this all over in Scala code and didn't quite understand what was going on. It sure does have an odd name.
And some things are still confusing to me:
Type bounds, variance; when will I need these?
Linearization of object hierarchies; rules, …