Skip to content

Instantly share code, notes, and snippets.

(time
(binding [cljs.env/*compiler* (cljs.env/default-compiler-env)]
(let [js (-> "(cljs.core/map even? [1 2 3])"
java.io.StringReader.
cljs.analyzer/forms-seq
cljs.closure/compile-form-seq)
repl-env (cljs.repl.node/repl-env)
_ (cljs.repl/-setup repl-env {:output-dir "out"
:optimizations :none
:cache-analysis true})
Welcome to the Emacs shell
~/clojure/cider-nrepl $ lein eastwood
clojure/lang/PersistentHashMap.java:1089: warning: '_' used as an identifier
Box _ = new Box(null);
^
(use of '_' as an identifier might not be supported in releases after Java SE 8)
clojure/lang/PersistentHashMap.java:1092: warning: '_' used as an identifier
.assoc(edit, shift, key1hash, key1, val1, _)
^
@cichli
cichli / project.clj
Created March 21, 2015 19:14
cljs-repl-example
; CIDER 0.9.0snapshot (package: 20150320.2207) (Java 1.8.0_05, Clojure 1.6.0, nREPL 0.2.6)
WARNING: CIDER requires nREPL 0.2.7 to work properly
user> (cemerick.piggieback/cljs-repl :repl-env (cemerick.austin/exec-env))
Browser-REPL ready @ http://localhost:49215/9931/repl/start
Type `:cljs/quit` to stop the ClojureScript REPL
nil
cljs.user> (+ 1 1)
2
cljs.user>
@cichli
cichli / [1] project.clj
Last active August 29, 2015 14:17
piggieback 0.2.0-SNAPSHOT + upstream deps issue
(defproject new-piggieback-test "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-3148"]
[com.cemerick/piggieback "0.2.0-SNAPSHOT"]
[cljsjs/react "0.13.1-0"]])
@cichli
cichli / 0001-source-tracking-eval-wip.patch
Last active August 29, 2015 14:17
source-tracking-eval
From 1248e8505235d177f325d469c4a1b2166ee27d2b Mon Sep 17 00:00:00 2001
From: Michael Griffiths <mikey@cich.li>
Date: Thu, 26 Mar 2015 14:55:28 +0000
Subject: [PATCH] source tracking eval wip
---
META-INF/MANIFEST.MF | 2 +-
doc/ops.md | 2 +-
pom.xml | 8 +++++-
.../tools/nrepl/middleware/interruptible_eval.clj | 29 ++++++++++++++++++----

Keybase proof

I hereby claim:

  • I am cichli on github.
  • I am cichli (https://keybase.io/cichli) on keybase.
  • I have a public key whose fingerprint is B8A1 42AC 4558 65B2 9243 EA6B 96B5 8D8A 9241 C7C0

To claim this, I am signing this object:

~/clojure/fipp $ lein run -m fipp.benchmark
Benchmarking #object[clojure.core$prn 0x4c531172 clojure.core$prn@4c531172]
WARNING: Final GC required 1.185285595103793 % of runtime
Evaluation count : 3000 in 60 samples of 50 calls.
Execution time mean : 21.017381 ms
Execution time std-deviation : 1.663482 ms
Execution time lower quantile : 20.098501 ms ( 2.5%)
Execution time upper quantile : 26.829274 ms (97.5%)
Overhead used : 1.919992 ns
~/clojure/fipp $ lein run -m fipp.benchmark
Benchmarking #object[clojure.core$prn 0x647b9364 clojure.core$prn@647b9364]
WARNING: Final GC required 1.028263063711387 % of runtime
Evaluation count : 2880 in 60 samples of 48 calls.
Execution time mean : 21.070573 ms
Execution time std-deviation : 1.132967 ms
Execution time lower quantile : 20.266897 ms ( 2.5%)
Execution time upper quantile : 25.025460 ms (97.5%)
Overhead used : 1.591034 ns

Keybase proof

I hereby claim:

  • I am cichli on github.
  • I am cichli (https://keybase.io/cichli) on keybase.
  • I have a public key ASCPkQm7HAfFzbi9dJx8vMzO3_XaOp9-Wq8hF4uD8VbAVQo

To claim this, I am signing this object: