summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/writeup2/writeup.tex
diff options
context:
space:
mode:
Diffstat (limited to 'comp/lucas-standen-NEA/writeup2/writeup.tex')
-rw-r--r--comp/lucas-standen-NEA/writeup2/writeup.tex38
1 files changed, 31 insertions, 7 deletions
diff --git a/comp/lucas-standen-NEA/writeup2/writeup.tex b/comp/lucas-standen-NEA/writeup2/writeup.tex
index bde4996..d81163d 100644
--- a/comp/lucas-standen-NEA/writeup2/writeup.tex
+++ b/comp/lucas-standen-NEA/writeup2/writeup.tex
@@ -889,7 +889,7 @@ For example here is the first few digits:
\subsubsection{Code}
In zpy this code can be written as follows:
-\lstinputlisting[language=lisp]{../code2/examples/fib_example.zpy}
+\lstinputlisting[language=lisp]{./examples/fib/zpy/fib.zpy}
\textit{fib\_example.zpy}
A simple explanation of what is happening in this code is,
@@ -906,16 +906,36 @@ A simple explanation of what is happening in this code is,
\item[] I perform the fib calculation and print the value
\end{description}
+\subsubsection{Examples in other languages}
+The following python code produces the same output
-\subsubsection{Demo}
-\lstinputlisting{./examples/fib.example}
+\lstinputlisting[language=python]{./examples/fib/python/fib.py}
+\textit{fib.py}
-55 is indeed the 10th Fibonacci number.
+The following haskell code produces the same output
-The following python code produces the same output
+\lstinputlisting[language=haskell]{./examples/fib/haskell/app/Main.hs}
+\textit{fib.hs}
-\lstinputlisting[language=python]{./examples/fib.py}
-\textit{fib.py}
+The following java code produces the same output
+
+\lstinputlisting[language=java]{./examples/fib/java/fib.java}
+\textit{fib.java}
+
+The following go code produces the same output
+
+\lstinputlisting[language=go]{./examples/fib/go/fib.go}
+\textit{fib.go}
+
+The following C++ code produces the same output
+
+\lstinputlisting[language=C++]{./examples/fib/c++/fib.cpp}
+\textit{fib.cpp}
+
+The following rust produces the same output
+
+\lstinputlisting[language=go]{./examples/fib/rust/fib.rs}
+\textit{fib.rs}
\subsubsection{Performance}
The zippy code is orders of magnitude faster than the python code, the time command in Unix can be used to show this.
@@ -1093,9 +1113,13 @@ To finally test my project I will get my client (Amy C) to use zippy for some si
\begin{description}
\item[What do you like about Zippy?]
+ One thing about Zippy that I like is the disk size efficiency.
\item[What do you not like about Zippy?]
+ I do not like the learning curve of learning to use polish notation.
\item[What would you change about Zippy?]
+ I would add syntax highlighting to editors (VSCode, micro, etc.)
\item[Any other comments about Zippy?]
+ It meets enough requirements to be usable.
\end{description}
\section{Conclusion}