ClojureScript is a dialect of Clojure that compiles to JavaScript.
3
votes
0answers
25 views
Improve performance of a ClojureScript program
I have a ClojureScript program that mainly performs math calculations on collections. It was developed in idiomatic, host-independent Clojure, so it's easy to benchmark it. To my surprise (and ...
1
vote
0answers
64 views
Is the architectural model in the Clojure Pedestal framework an operational transform similar to Google Wave?
Reading through the Pedestal presentation (and reading the sample source code) - I see a model based on transforms and operations.
Is it true that Pedestal uses an operational transform similar to ...
2
votes
0answers
22 views
how would the (<map> <key>) calling convention be implemented for js-objects?
I would like to be able to use (js-obj) like a hash-map so that
(def a (js* "{'a': 1, 'b':2}"))
(a :a)
;=> 1
I tried doing this:
(extend-type object
IFn
(-invoke
([o k] (aget o ...
2
votes
2answers
66 views
How to use defmacro instead of eval?
I have come up with the below function, which works as intended but it uses eval which is horrible, and does not exist in ClojureScript where i intend to use it.
(defn path [d p]
(eval
(concat ...
2
votes
2answers
136 views
Implementing Clojure on top of V8 engine
I am just wondering if it would make sense to implement Clojure on top of Googles V8 Javascript engine. I never use Java interoperability. I also am learning ClojureScript. So I could see an advantage ...
1
vote
1answer
31 views
IE9 does not accept unicode string in Javascript
I tried to run my webapp with IE 9 (it already runs well in Firefox and Chrome) and I continuously get The error
Script1014: Invalid Character
The debugger yields one line of code that contains ...
1
vote
1answer
25 views
How is the defprotocol macro defined in clojurescript?
I'm trying to figure out where is the source code the defprotocol macro is defined.
in the cljs.core source:
https://github.com/clojure/clojurescript/blob/master/src/cljs/cljs/core.cljs
The ...
1
vote
1answer
85 views
Writing in Meteor using ClojureScript
Is there currently a solution for integrating ClojureScript with Meteor?
I want to build a Meteor application and between the flavors of JavaScript (JavaScript, CoffeeScript, TypeScript, LiveScript ...
-3
votes
0answers
72 views
Which Clojurescript DOM manipulation libraries work with Lighttable? [closed]
I have tried Enfocus, Dommy, and Domina, and Domina is the only Clojurescript library that partially works in interactive mode with Lighttable. Has anyone got any other DOM manipulation ibraries to ...
1
vote
1answer
25 views
Locating unmatched delimiters in Clojurescript
occasionally I find myself in a situation where I mismatch these friends here: {}()[]. Using leininingen and cljsbuild I have a hard time tracking down the error source. Usually it boils down to ...
0
votes
1answer
33 views
WebSQL in ClojureScript?
I'm having some trouble formatting a ClojureScript wrapper for websql. The main problem is that JavaScript uses tx and err arguments for websql that work without being defined. When the ...
1
vote
2answers
34 views
Using Closure Templates with Clojurescript
Is it possible to use Google Closure Templates with Clojurescript?
I have looked around but haven't found any informaiton regarding this.
0
votes
1answer
30 views
Adding a Clojurescript protocol to a Google Closure element
How can i extend a Google Closure element using Clojurescript protocols. I tried this but it doesn't seem to work:
(ns my-stuff.main
(:require
[goog.dom :as dom))
(defprotocol ds
...
2
votes
1answer
66 views
How to create Button Elements in ClojureScript?
I'm trying to create new elements in ClojureScript and it doesn't appear to be working. I'll start up by showing an example that I found here.
(let [dom6238 (.createElement js/document "a")]
...
1
vote
2answers
56 views
Why can't I call seq functions in a sequence generated by js->clj?
Although I can get turn a simple js object into a clojure object with something like;
-> "{a: 2, b: 3}" js* js->clj)
I'm apparently not being able to do so with a particular object, ...