Skip to content

Commit

Permalink
Revert #63
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonGrodin committed Jan 3, 2019
1 parent 29e8843 commit 69d3d62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
10 changes: 3 additions & 7 deletions Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is machine-generated - editing it directly is not advised

[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

Expand Down Expand Up @@ -28,7 +30,7 @@ uuid = "b552c78f-8df3-52c6-915a-8e097449b14b"
version = "0.0.7"

[[Distributed]]
deps = ["LinearAlgebra", "Random", "Serialization", "Sockets"]
deps = ["Random", "Serialization", "Sockets"]
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"

[[InteractiveUtils]]
Expand Down Expand Up @@ -58,12 +60,6 @@ version = "0.4.4"
deps = ["Base64"]
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"

[[Memoize]]
deps = ["Test"]
git-tree-sha1 = "d9683969337ad20dc957122038bd2c0ead4b5209"
uuid = "c03570c3-d221-55d1-a50c-7939bbd78826"
version = "0.3.0"

[[Mmap]]
uuid = "a63ad114-7e13-5084-954f-fe012c677804"

Expand Down
1 change: 0 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ version = "0.1.0"
[deps]
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
DiffRules = "b552c78f-8df3-52c6-915a-8e097449b14b"
Memoize = "c03570c3-d221-55d1-a50c-7939bbd78826"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
SpecialSets = "c6b63f46-9023-11e8-3b28-1f7d8c94880d"

Expand Down
4 changes: 2 additions & 2 deletions src/rule.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using DiffRules, Memoize
using DiffRules

export Rules
export normalize
Expand Down Expand Up @@ -26,7 +26,7 @@ Base.vcat(rss::Rules...) = Rules([(rs.rules for rs ∈ rss)...;])


normalize(rs::Rules) = Base.Fix2(normalize, rs)
@memoize function normalize(t::Term, rs::Rules)
function normalize(t::Term, rs::Rules)
while true
t = map(normalize(rs), t) # FIXME: replace with `subexpressions`
t′ = foldl(normalize, rs; init=t)
Expand Down

0 comments on commit 69d3d62

Please sign in to comment.