This file contains hidden or 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
| (System/getProperty "java.class.path") |
This file contains hidden or 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
| cat `which datomic-repl` |
This file contains hidden or 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
| #!/bin/bash | |
| JAVA_HOME="$(/usr/libexec/java_home)" exec "/usr/local/Cellar/datomic/0.9.5153/libexec/bin/repl" "$@" |
This file contains hidden or 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
| brew update && brew install datomic |
This file contains hidden or 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
| lein repl |
This file contains hidden or 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 rock-paper-scissors.core | |
| (:refer-clojure :exclude [==]) | |
| (:use clojure.core.logic)) | |
| (defrel beats hand1 hand2) | |
| (facts beats [[:rock :scissor] [:paper :rock] [:scissor :paper]]) | |
| (defn play [hand1 hand2] | |
| (run* [result] | |
| (conde |
This file contains hidden or 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
| (defproject rock-paper-scissors "0.1.0-SNAPSHOT" | |
| ; ... | |
| :dependencies [[org.clojure/clojure "1.5.1"] | |
| [org.clojure/core.logic "0.8.3"]]) |
This file contains hidden or 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
| lein new rock-paper-scissors | |
| cd rock-paper-scissors/ |
This file contains hidden or 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
| package jvmjit; | |
| public class JvmJit { | |
| static long startTime = System.nanoTime(); | |
| public static void main(String[] args) { | |
| Test0 me = new Test0(); | |
| while (true) { | |
| me.runHello(); | |
| } |
This file contains hidden or 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
| lein repl |