- Compiler in REPL seems broken: https://gist.github.com/slagyr/7d52ba4ba98e96172456
- Not interested in Node.js so I skipped all that
- Development Mode: Okay... this is where I'm confused.
- The wiki says include 'hello.js'.
- hello-dev.html explicitely includes goog.base.js.
- hello-dev.html also requires hello.core.
- The generated hello.js loads goog.base if it isn't already.
- out/cljs_deps.js looks like cljsbuild's :output-to file
- cljbuild doesn't generate anything like sample/hello.js
- maybe I'll learn about all these difference later in the guide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from funcy import mapcat | |
class Pyfe: | |
def __init__(self): | |
self._living_cells = set() | |
@property | |
def living_cells(self): | |
return self._living_cells |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Micah's Autumn setup | |
*/ | |
alert('Running Autumn!'); | |
/** | |
* Window management | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def sm {:sleeping {:_on-entry [:tracking-0] | |
:_default [:sleeping] | |
:start [:taxiing [:start-leg]] | |
:stop [:sleeping [:cancel-leg]] | |
:entry [:treading] | |
:scud [:scudding [:start-leg]] | |
:cruise [:cruising [:start-leg]]} | |
:treading {:_on-entry [:tracking-1] | |
:_default [:treading] | |
:start [:taxiing [:start-leg]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(micahmartin) ~/Projects/clojure/speclj | |
$ lein cljsbuild once dev | |
Compiling ClojureScript. | |
clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate cljs/util__init.class or cljs/util.clj on classpath: , compiling:(cljs/closure.clj:1:1) | |
at clojure.lang.Compiler.load (Compiler.java:7142) | |
clojure.lang.RT.loadResourceScript (RT.java:370) | |
clojure.lang.RT.loadResourceScript (RT.java:361) | |
clojure.lang.RT.load (RT.java:440) | |
clojure.lang.RT.load (RT.java:411) | |
clojure.core$load$fn__5066.invoke (core.clj:5641) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(micahmartin) ~/Projects/clojure/speclj | |
$ lein deps :tree | |
warn | |
[clojure-complete "0.2.3" :scope "test" :exclusions [[org.clojure/clojure]]] | |
[fresh "1.1.1"] | |
[mmargs "1.2.0"] | |
[org.clojure/clojure "1.7.0-RC2"] | |
[org.clojure/clojurescript "0.0-3308"] | |
[com.google.javascript/closure-compiler "v20150505"] | |
[args4j "2.0.26"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: ansi | |
Main class: clojure.main | |
Program arguments: src/clj/ansi.clj | |
Working directory: <some path to configured project where you put ansi.clj> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns slagyr.async) | |
(den foo [] | |
(js/setTimeout | |
(fn [] (throw (js/Error. "foo"))) | |
100)) | |
(try | |
(foo) | |
(catch js/Object e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(micahmartin) ~/Projects/clojure/clojurescript | |
$ ./script/repljs | |
To quit, type: :cljs/quit | |
ClojureScript:cljs.user> (require '[cljs.closure :as cljsc]) | |
clojure.lang.ExceptionInfo: No such namespace: cljs.closure at line 1 <cljs repl> {:tag :cljs/analysis-error, :file "<cljs repl>", :line 1, :column 1} | |
at clojure.core$ex_info.invoke(core.clj:4403) | |
at cljs.analyzer$error.invoke(analyzer.clj:307) | |
at cljs.analyzer$error.invoke(analyzer.clj:304) | |
at cljs.analyzer$analyze_deps.invoke(analyzer.clj:1117) | |
at cljs.analyzer$eval1661$fn__1663.invoke(analyzer.clj:1343) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(micahmartin) ~/Projects/clojure/clojurescript | |
$ ./script/repljs | |
To quit, type: :cljs/quit | |
ClojureScript:cljs.user> (str (ex-info "foo" {})) | |
org.mozilla.javascript.JavaScriptException: TypeError: Cannot call method "cljs$core$IPrintWithWriter$_pr_writer$arity$3" of undefined (<cljs repl>#12) | |
at <cljs repl>:12 | |
at <cljs repl>:1 | |
ClojureScript:cljs.user> |
NewerOlder