Clojure/ClojureScript: One Language to Rule the Web
by Stuart Sierra
Emerging Technologies for the Enterprise 2013
Philadelphia, PA
April 3, 2013
Table of Contents
Related talks at Philly E.T.E. 2013
- How Google Does It: Using Closure Tools for Large JavaScript Applications
- Rhys Brett-Bowen, Creator, PlastronJS
- Tue - 01:30-02:30 PM, Salon A
- The Database as a Value
- Rich Hickey - Author of Clojure, Designer of Datomic
- Tue - 02:45-03:45 PM, Salon C
- Clojure: Enemy of the State
- Alex Miller - Founder, Strange Loop Conference
- Wed - 10:15-11:15 AM, Salon D
- Clojure/ClojureScript: One Language to Rule the Web
- Stuart Sierra - Core Team Member, Clojure
- Wed - 11:30-12:30 PM, Salon E
Clojure/ClojureScript
What is Clojure?
Namespace declaration and function definition:
(ns phillyete.examples) (defn average [& nums] (/ (reduce + nums) (count nums)))
Function invocation:
(average 4 11) ;;=> 15/2 (average 3.0 72 9.6 33) ;;=> 29.4
Compare with Java notitle
(ns phillyete.examples) (defn average [& nums] (/ (reduce + nums) (count nums)))
Compare to Java:
package phillyete.examples; public class Averages { public static double average(double[] nums) { double total = 0.0; for (double num : nums) { total += num; } return total / nums.length; } }
Why? topic1
JS is the Assembly Language of the Web notitle
JavaScript is Assembly Language for the Web
(Scott Hanselman)
Always Bet on JavaScript notitle
alwaysbetonjs.com (Brendan Eich)