Skip to content

Commit

Permalink
removed logic code
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Baldridge committed Mar 7, 2013
1 parent a1e4612 commit 26bd3b0
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 885 deletions.
3 changes: 0 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
:dependencies [[org.clojure/clojure "1.5.0-RC2"]
[speclj "2.5.0"]
[net.java.dev.jna/jna "3.4.0"]
[fipp "0.1.0-SNAPSHOT"]
[criterium "0.3.1"]
[org.clojure/core.logic "0.8.0-rc2"]
[org.clojure/core.match "0.2.0-alpha11"]
[jcuda/jcuda "0.5.0"]]
:plugins [[speclj "2.5.0"]]
:test-paths ["spec/"]
Expand Down
1 change: 0 additions & 1 deletion spec/mjolnir/.#constructors_spec.clj

This file was deleted.

1 change: 0 additions & 1 deletion spec/mjolnir/.#expressions_spec.clj

This file was deleted.

68 changes: 0 additions & 68 deletions spec/mjolnir/code_queries_spec.clj

This file was deleted.

43 changes: 0 additions & 43 deletions spec/mjolnir/logic_trees_spec.clj

This file was deleted.

1 change: 0 additions & 1 deletion src/examples/.#bf.clj

This file was deleted.

20 changes: 8 additions & 12 deletions src/examples/bf.clj
Original file line number Diff line number Diff line change
Expand Up @@ -122,22 +122,18 @@
(if code
(recur ip code)
ip)))))]

(let [target (config/default-target)]

(binding [config/*target* (config/default-target)
config/*int-type* Int64]
(let [_ (println "Compiling")
built (exp/build (c/module ['examples.bf] cfn))
module (c/module ['examples.bf]
cfn)
built (exp/build module)
optimized (exp/optimize built)
_ (println "Writing Object File")
compiled (time (emit-to-file target
compiled (time (emit-to-file config/*target*
optimized
options))]
1
#_(when-not output-file
(println "Running")
(time (-> compiled
(exp/run-exe)
(pr-str)
println)))))
options))]))
(println "Finished")
(shutdown-agents)
0))
Expand Down
2 changes: 1 addition & 1 deletion src/mjolnir/.#config.clj
1 change: 0 additions & 1 deletion src/mjolnir/.#expressions.clj

This file was deleted.

1 change: 0 additions & 1 deletion src/mjolnir/.#types.clj

This file was deleted.

121 changes: 0 additions & 121 deletions src/mjolnir/code_queries.clj

This file was deleted.

12 changes: 1 addition & 11 deletions src/mjolnir/expressions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@
[mjolnir.config :refer :all]
[clojure.java.shell :as shell]
[clojure.string :as string]
[mjolnir.targets.target :as target]
[bbloom.fipp.edn :refer (pprint pretty pretty-map) :rename {pprint fipp}])
[mjolnir.targets.target :as target])
(:import [com.sun.jna Native Pointer]))

(defmethod pretty clojure.lang.IRecord [r]
[:span (-> r class .getName (clojure.string/split #"\.") last) (pretty-map r)])

(defn pdebug [x]
(println "-------------")
(fipp x)
(println "-------------")
x)

(def genname (comp name gensym))

(defprotocol Expression
Expand Down
Loading

0 comments on commit 26bd3b0

Please sign in to comment.