Skip to content

Commit 58f5a1c

Browse files
committed
Add more in the README
1 parent 4bf4a4e commit 58f5a1c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@
44

55
This is a normal sbt project, you can compile code with `sbt compile` and run the tests
66
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

Comments
 (0)