You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,3 +4,13 @@
4
4
5
5
This is a normal sbt project, you can compile code with `sbt compile` and run the tests
6
6
with `sbt test`.
7
+
8
+
### Exercise
9
+
10
+
Implement optimizations for a simple dot product on arrays where the arrays may be statically known.
11
+
`src/main/scala/Vectors` already implments the a `dot` product using a macro. The implmentation is in the method `dotImpl` which already optimizes for two statically known empty vectors. Your task is to add more optimizations
12
+
based on statically known information that can be recovered through the TASTy reflect API.
13
+
14
+
### TASTy relfect
15
+
16
+
TASTy reflect is mostly based on extractors. Using the show method on trees will show the extractors required to pattern match on it. Some examples are shown in the code.
0 commit comments