summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA
diff options
context:
space:
mode:
Diffstat (limited to 'comp/lucas-standen-NEA')
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib.example3
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/c++/fib.cpp16
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/go/fib.go14
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/go/go.mod3
-rwxr-xr-xcomp/lucas-standen-NEA/writeup2/examples/fib/go/mbin0 -> 2131040 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/CHANGELOG.md5
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/app/Main.hs8
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/autogen/Paths_haskell.hs74
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/autogen/cabal_macros.h120
-rwxr-xr-xcomp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskellbin0 -> 17280 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell-tmp/Main.dyn_hibin0 -> 1985 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell-tmp/Main.dyn_obin0 -> 5800 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/buildbin0 -> 314 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/configbin0 -> 3419 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/registrationbin0 -> 33 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/package.conf.inplace/package.cachebin0 -> 40 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/package.conf.inplace/package.cache.lock0
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/setup-configbin0 -> 48744 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/compilerbin0 -> 12292 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/configbin0 -> 2975 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/elaborated-planbin0 -> 32659 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/improved-planbin0 -> 50630 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/plan.json1
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/solver-planbin0 -> 69001 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/source-hashesbin0 -> 155 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/up-to-datebin0 -> 129 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/packagedb/ghc-9.2.8/package.cachebin0 -> 40 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/packagedb/ghc-9.2.8/package.cache.lock0
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/haskell/haskell.cabal34
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/java/Main.classbin0 -> 496 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/java/fib.java12
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/python/fib.py (renamed from comp/lucas-standen-NEA/writeup2/examples/fib.py)2
-rwxr-xr-xcomp/lucas-standen-NEA/writeup2/examples/fib/rust/fibbin0 -> 420600 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/rust/fib.rs11
-rw-r--r--comp/lucas-standen-NEA/writeup2/examples/fib/zpy/fib.zpy (renamed from comp/lucas-standen-NEA/writeup2/examples/fib_example.zpy)3
-rwxr-xr-xcomp/lucas-standen-NEA/writeup2/examples/fib_examplebin21280 -> 0 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/writeup.synctex.gzbin0 -> 1088637 bytes
-rw-r--r--comp/lucas-standen-NEA/writeup2/writeup.tex38
38 files changed, 332 insertions, 12 deletions
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib.example b/comp/lucas-standen-NEA/writeup2/examples/fib.example
deleted file mode 100644
index f013b0b..0000000
--- a/comp/lucas-standen-NEA/writeup2/examples/fib.example
+++ /dev/null
@@ -1,3 +0,0 @@
-give me a number (bellow 30 if you want it to be quick): 10
-55
-
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/c++/fib.cpp b/comp/lucas-standen-NEA/writeup2/examples/fib/c++/fib.cpp
new file mode 100644
index 0000000..ce55901
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/c++/fib.cpp
@@ -0,0 +1,16 @@
+#include <iostream>
+
+class fibclass {
+ public:
+ int run(int n){
+ if (n < 2) return n;
+ return run(n - 1) + run(n - 2);
+ }
+};
+
+int main(){
+ fibclass obj = fibclass();
+ std::cout << obj.run(10);
+ std::cout << "\n";
+}
+
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/go/fib.go b/comp/lucas-standen-NEA/writeup2/examples/fib/go/fib.go
new file mode 100644
index 0000000..4ef84a8
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/go/fib.go
@@ -0,0 +1,14 @@
+package main
+
+import "fmt"
+
+func fib(n int) int {
+ if (n < 2) {
+ return n
+ }
+ return fib(n-1) + fib(n-2)
+}
+
+func main(){
+ fmt.Println(fib(10))
+}
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/go/go.mod b/comp/lucas-standen-NEA/writeup2/examples/fib/go/go.mod
new file mode 100644
index 0000000..a851617
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/go/go.mod
@@ -0,0 +1,3 @@
+module example.com/m/v2
+
+go 1.23.4
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/go/m b/comp/lucas-standen-NEA/writeup2/examples/fib/go/m
new file mode 100755
index 0000000..847fe36
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/go/m
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/CHANGELOG.md b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/CHANGELOG.md
new file mode 100644
index 0000000..500a0d0
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Revision history for haskell
+
+## 0.1.0.0 -- YYYY-mm-dd
+
+* First version. Released on an unsuspecting world.
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/app/Main.hs b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/app/Main.hs
new file mode 100644
index 0000000..5571519
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/app/Main.hs
@@ -0,0 +1,8 @@
+import Prelude
+
+fib :: Integer -> Integer
+fib n | n < 2 = n
+ | otherwise = fib(n - 1) + fib(n - 2)
+
+main :: IO()
+main = print $ fib(10)
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/autogen/Paths_haskell.hs b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/autogen/Paths_haskell.hs
new file mode 100644
index 0000000..e1b049e
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/autogen/Paths_haskell.hs
@@ -0,0 +1,74 @@
+{-# LANGUAGE CPP #-}
+{-# LANGUAGE NoRebindableSyntax #-}
+{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
+{-# OPTIONS_GHC -w #-}
+module Paths_haskell (
+ version,
+ getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
+ getDataFileName, getSysconfDir
+ ) where
+
+
+import qualified Control.Exception as Exception
+import qualified Data.List as List
+import Data.Version (Version(..))
+import System.Environment (getEnv)
+import Prelude
+
+
+#if defined(VERSION_base)
+
+#if MIN_VERSION_base(4,0,0)
+catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a
+#else
+catchIO :: IO a -> (Exception.Exception -> IO a) -> IO a
+#endif
+
+#else
+catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a
+#endif
+catchIO = Exception.catch
+
+version :: Version
+version = Version [0,1,0,0] []
+
+getDataFileName :: FilePath -> IO FilePath
+getDataFileName name = do
+ dir <- getDataDir
+ return (dir `joinFileName` name)
+
+getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath
+
+
+
+bindir, libdir, dynlibdir, datadir, libexecdir, sysconfdir :: FilePath
+bindir = "/home/thing1/.cabal/bin"
+libdir = "/home/thing1/.cabal/lib/x86_64-linux-ghc-9.2.8/haskell-0.1.0.0-inplace-haskell"
+dynlibdir = "/home/thing1/.cabal/lib/x86_64-linux-ghc-9.2.8"
+datadir = "/home/thing1/.cabal/share/x86_64-linux-ghc-9.2.8/haskell-0.1.0.0"
+libexecdir = "/home/thing1/.cabal/libexec/x86_64-linux-ghc-9.2.8/haskell-0.1.0.0"
+sysconfdir = "/home/thing1/.cabal/etc"
+
+getBinDir = catchIO (getEnv "haskell_bindir") (\_ -> return bindir)
+getLibDir = catchIO (getEnv "haskell_libdir") (\_ -> return libdir)
+getDynLibDir = catchIO (getEnv "haskell_dynlibdir") (\_ -> return dynlibdir)
+getDataDir = catchIO (getEnv "haskell_datadir") (\_ -> return datadir)
+getLibexecDir = catchIO (getEnv "haskell_libexecdir") (\_ -> return libexecdir)
+getSysconfDir = catchIO (getEnv "haskell_sysconfdir") (\_ -> return sysconfdir)
+
+
+
+
+joinFileName :: String -> String -> FilePath
+joinFileName "" fname = fname
+joinFileName "." fname = fname
+joinFileName dir "" = dir
+joinFileName dir fname
+ | isPathSeparator (List.last dir) = dir ++ fname
+ | otherwise = dir ++ pathSeparator : fname
+
+pathSeparator :: Char
+pathSeparator = '/'
+
+isPathSeparator :: Char -> Bool
+isPathSeparator c = c == '/'
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/autogen/cabal_macros.h b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/autogen/cabal_macros.h
new file mode 100644
index 0000000..34b2b11
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/autogen/cabal_macros.h
@@ -0,0 +1,120 @@
+/* DO NOT EDIT: This file is automatically generated by Cabal */
+
+/* package haskell-0.1.0.0 */
+#ifndef VERSION_haskell
+#define VERSION_haskell "0.1.0.0"
+#endif /* VERSION_haskell */
+#ifndef MIN_VERSION_haskell
+#define MIN_VERSION_haskell(major1,major2,minor) (\
+ (major1) < 0 || \
+ (major1) == 0 && (major2) < 1 || \
+ (major1) == 0 && (major2) == 1 && (minor) <= 0)
+#endif /* MIN_VERSION_haskell */
+/* package base-4.16.4.0 */
+#ifndef VERSION_base
+#define VERSION_base "4.16.4.0"
+#endif /* VERSION_base */
+#ifndef MIN_VERSION_base
+#define MIN_VERSION_base(major1,major2,minor) (\
+ (major1) < 4 || \
+ (major1) == 4 && (major2) < 16 || \
+ (major1) == 4 && (major2) == 16 && (minor) <= 4)
+#endif /* MIN_VERSION_base */
+
+/* tool gcc-14.2.1 */
+#ifndef TOOL_VERSION_gcc
+#define TOOL_VERSION_gcc "14.2.1"
+#endif /* TOOL_VERSION_gcc */
+#ifndef MIN_TOOL_VERSION_gcc
+#define MIN_TOOL_VERSION_gcc(major1,major2,minor) (\
+ (major1) < 14 || \
+ (major1) == 14 && (major2) < 2 || \
+ (major1) == 14 && (major2) == 2 && (minor) <= 1)
+#endif /* MIN_TOOL_VERSION_gcc */
+/* tool ghc-9.2.8 */
+#ifndef TOOL_VERSION_ghc
+#define TOOL_VERSION_ghc "9.2.8"
+#endif /* TOOL_VERSION_ghc */
+#ifndef MIN_TOOL_VERSION_ghc
+#define MIN_TOOL_VERSION_ghc(major1,major2,minor) (\
+ (major1) < 9 || \
+ (major1) == 9 && (major2) < 2 || \
+ (major1) == 9 && (major2) == 2 && (minor) <= 8)
+#endif /* MIN_TOOL_VERSION_ghc */
+/* tool ghc-pkg-9.2.8 */
+#ifndef TOOL_VERSION_ghc_pkg
+#define TOOL_VERSION_ghc_pkg "9.2.8"
+#endif /* TOOL_VERSION_ghc_pkg */
+#ifndef MIN_TOOL_VERSION_ghc_pkg
+#define MIN_TOOL_VERSION_ghc_pkg(major1,major2,minor) (\
+ (major1) < 9 || \
+ (major1) == 9 && (major2) < 2 || \
+ (major1) == 9 && (major2) == 2 && (minor) <= 8)
+#endif /* MIN_TOOL_VERSION_ghc_pkg */
+/* tool haddock-2.26.0 */
+#ifndef TOOL_VERSION_haddock
+#define TOOL_VERSION_haddock "2.26.0"
+#endif /* TOOL_VERSION_haddock */
+#ifndef MIN_TOOL_VERSION_haddock
+#define MIN_TOOL_VERSION_haddock(major1,major2,minor) (\
+ (major1) < 2 || \
+ (major1) == 2 && (major2) < 26 || \
+ (major1) == 2 && (major2) == 26 && (minor) <= 0)
+#endif /* MIN_TOOL_VERSION_haddock */
+/* tool hpc-0.68 */
+#ifndef TOOL_VERSION_hpc
+#define TOOL_VERSION_hpc "0.68"
+#endif /* TOOL_VERSION_hpc */
+#ifndef MIN_TOOL_VERSION_hpc
+#define MIN_TOOL_VERSION_hpc(major1,major2,minor) (\
+ (major1) < 0 || \
+ (major1) == 0 && (major2) < 68 || \
+ (major1) == 0 && (major2) == 68 && (minor) <= 0)
+#endif /* MIN_TOOL_VERSION_hpc */
+/* tool hsc2hs-0.68.8 */
+#ifndef TOOL_VERSION_hsc2hs
+#define TOOL_VERSION_hsc2hs "0.68.8"
+#endif /* TOOL_VERSION_hsc2hs */
+#ifndef MIN_TOOL_VERSION_hsc2hs
+#define MIN_TOOL_VERSION_hsc2hs(major1,major2,minor) (\
+ (major1) < 0 || \
+ (major1) == 0 && (major2) < 68 || \
+ (major1) == 0 && (major2) == 68 && (minor) <= 8)
+#endif /* MIN_TOOL_VERSION_hsc2hs */
+/* tool pkg-config-2.3.0 */
+#ifndef TOOL_VERSION_pkg_config
+#define TOOL_VERSION_pkg_config "2.3.0"
+#endif /* TOOL_VERSION_pkg_config */
+#ifndef MIN_TOOL_VERSION_pkg_config
+#define MIN_TOOL_VERSION_pkg_config(major1,major2,minor) (\
+ (major1) < 2 || \
+ (major1) == 2 && (major2) < 3 || \
+ (major1) == 2 && (major2) == 3 && (minor) <= 0)
+#endif /* MIN_TOOL_VERSION_pkg_config */
+/* tool runghc-9.2.8 */
+#ifndef TOOL_VERSION_runghc
+#define TOOL_VERSION_runghc "9.2.8"
+#endif /* TOOL_VERSION_runghc */
+#ifndef MIN_TOOL_VERSION_runghc
+#define MIN_TOOL_VERSION_runghc(major1,major2,minor) (\
+ (major1) < 9 || \
+ (major1) == 9 && (major2) < 2 || \
+ (major1) == 9 && (major2) == 2 && (minor) <= 8)
+#endif /* MIN_TOOL_VERSION_runghc */
+/* tool strip-2.43 */
+#ifndef TOOL_VERSION_strip
+#define TOOL_VERSION_strip "2.43"
+#endif /* TOOL_VERSION_strip */
+#ifndef MIN_TOOL_VERSION_strip
+#define MIN_TOOL_VERSION_strip(major1,major2,minor) (\
+ (major1) < 2 || \
+ (major1) == 2 && (major2) < 43 || \
+ (major1) == 2 && (major2) == 43 && (minor) <= 0)
+#endif /* MIN_TOOL_VERSION_strip */
+
+#ifndef CURRENT_COMPONENT_ID
+#define CURRENT_COMPONENT_ID "haskell-0.1.0.0-inplace-haskell"
+#endif /* CURRENT_COMPONENT_ID */
+#ifndef CURRENT_PACKAGE_VERSION
+#define CURRENT_PACKAGE_VERSION "0.1.0.0"
+#endif /* CURRENT_PACKAGE_VERSION */
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell
new file mode 100755
index 0000000..edb4e5d
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell-tmp/Main.dyn_hi b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell-tmp/Main.dyn_hi
new file mode 100644
index 0000000..e4c1256
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell-tmp/Main.dyn_hi
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell-tmp/Main.dyn_o b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell-tmp/Main.dyn_o
new file mode 100644
index 0000000..16ea7ea
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell-tmp/Main.dyn_o
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/build b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/build
new file mode 100644
index 0000000..920bc19
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/build
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/config b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/config
new file mode 100644
index 0000000..10499cc
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/config
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/registration b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/registration
new file mode 100644
index 0000000..b755b9f
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/cache/registration
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/package.conf.inplace/package.cache b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/package.conf.inplace/package.cache
new file mode 100644
index 0000000..b3cae5c
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/package.conf.inplace/package.cache
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/package.conf.inplace/package.cache.lock b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/package.conf.inplace/package.cache.lock
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/package.conf.inplace/package.cache.lock
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/setup-config b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/setup-config
new file mode 100644
index 0000000..450c04a
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/setup-config
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/compiler b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/compiler
new file mode 100644
index 0000000..9d46463
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/compiler
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/config b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/config
new file mode 100644
index 0000000..1b17af2
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/config
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/elaborated-plan b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/elaborated-plan
new file mode 100644
index 0000000..95bbdbc
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/elaborated-plan
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/improved-plan b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/improved-plan
new file mode 100644
index 0000000..4a2fc7b
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/improved-plan
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/plan.json b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/plan.json
new file mode 100644
index 0000000..a9d09f9
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/plan.json
@@ -0,0 +1 @@
+{"cabal-version":"3.6.2.0","cabal-lib-version":"3.6.3.0","compiler-id":"ghc-9.2.8","os":"linux","arch":"x86_64","install-plan":[{"type":"pre-existing","id":"base-4.16.4.0","pkg-name":"base","pkg-version":"4.16.4.0","depends":["ghc-bignum-1.2","ghc-prim-0.8.0","rts-1.0.2"]},{"type":"pre-existing","id":"ghc-bignum-1.2","pkg-name":"ghc-bignum","pkg-version":"1.2","depends":["ghc-prim-0.8.0"]},{"type":"pre-existing","id":"ghc-prim-0.8.0","pkg-name":"ghc-prim","pkg-version":"0.8.0","depends":["rts-1.0.2"]},{"type":"configured","id":"haskell-0.1.0.0-inplace-haskell","pkg-name":"haskell","pkg-version":"0.1.0.0","flags":{},"style":"local","pkg-src":{"type":"local","path":"/home/thing1/school/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/."},"dist-dir":"/home/thing1/school/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell","depends":["base-4.16.4.0"],"exe-depends":[],"component-name":"exe:haskell","bin-file":"/home/thing1/school/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/build/x86_64-linux/ghc-9.2.8/haskell-0.1.0.0/x/haskell/build/haskell/haskell"},{"type":"pre-existing","id":"rts-1.0.2","pkg-name":"rts","pkg-version":"1.0.2","depends":[]}]} \ No newline at end of file
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/solver-plan b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/solver-plan
new file mode 100644
index 0000000..b7caf03
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/solver-plan
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/source-hashes b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/source-hashes
new file mode 100644
index 0000000..025c4f7
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/source-hashes
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/up-to-date b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/up-to-date
new file mode 100644
index 0000000..f80eb87
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/cache/up-to-date
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/packagedb/ghc-9.2.8/package.cache b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/packagedb/ghc-9.2.8/package.cache
new file mode 100644
index 0000000..b3cae5c
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/packagedb/ghc-9.2.8/package.cache
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/packagedb/ghc-9.2.8/package.cache.lock b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/packagedb/ghc-9.2.8/package.cache.lock
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/dist-newstyle/packagedb/ghc-9.2.8/package.cache.lock
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/haskell.cabal b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/haskell.cabal
new file mode 100644
index 0000000..e4262c3
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/haskell/haskell.cabal
@@ -0,0 +1,34 @@
+cabal-version: 2.4
+name: haskell
+version: 0.1.0.0
+
+-- A short (one-line) description of the package.
+-- synopsis:
+
+-- A longer description of the package.
+-- description:
+
+-- A URL where users can report bugs.
+-- bug-reports:
+
+-- The license under which the package is released.
+-- license:
+author: thing 1
+maintainer: thing1@seacrossedlovers.xyz
+
+-- A copyright notice.
+-- copyright:
+-- category:
+extra-source-files: CHANGELOG.md
+
+executable haskell
+ main-is: Main.hs
+
+ -- Modules included in this executable, other than Main.
+ -- other-modules:
+
+ -- LANGUAGE extensions used by modules in this package.
+ -- other-extensions:
+ build-depends: base ^>=4.16.4.0
+ hs-source-dirs: app
+ default-language: Haskell2010
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/java/Main.class b/comp/lucas-standen-NEA/writeup2/examples/fib/java/Main.class
new file mode 100644
index 0000000..9e979a8
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/java/Main.class
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/java/fib.java b/comp/lucas-standen-NEA/writeup2/examples/fib/java/fib.java
new file mode 100644
index 0000000..92966bd
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/java/fib.java
@@ -0,0 +1,12 @@
+class Main {
+ static int fib(int n) {
+ if (n < 2) {
+ return n;
+ }
+ return fib(n - 1) + fib(n - 2);
+ }
+
+ public static void main(String[] args) {
+ System.out.println(fib(10));
+ }
+}
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib.py b/comp/lucas-standen-NEA/writeup2/examples/fib/python/fib.py
index f6823af..cdf31ad 100644
--- a/comp/lucas-standen-NEA/writeup2/examples/fib.py
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/python/fib.py
@@ -4,5 +4,5 @@ def fib(n):
return fib(n-1) + fib(n-2)
-val = 30
+val = 10
print(fib(val))
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/rust/fib b/comp/lucas-standen-NEA/writeup2/examples/fib/rust/fib
new file mode 100755
index 0000000..39c0328
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/rust/fib
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib/rust/fib.rs b/comp/lucas-standen-NEA/writeup2/examples/fib/rust/fib.rs
new file mode 100644
index 0000000..13ed7e9
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/rust/fib.rs
@@ -0,0 +1,11 @@
+fn fib(n: i32) -> i32 {
+ if n < 2 {
+ return n;
+ }
+ return fib(n - 1) + fib(n - 2);
+}
+
+fn main(){
+ let val = fib(10);
+ println!("{val}");
+}
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib_example.zpy b/comp/lucas-standen-NEA/writeup2/examples/fib/zpy/fib.zpy
index 2c66618..adb2a71 100644
--- a/comp/lucas-standen-NEA/writeup2/examples/fib_example.zpy
+++ b/comp/lucas-standen-NEA/writeup2/examples/fib/zpy/fib.zpy
@@ -7,7 +7,8 @@
(endfun)
(defun main int)
- (let n:int 30)
+ (printstr "give me a number (bellow 30 if you want it to be quick): ")
+ (let n:int (readint))
(printint (fib n))
(printchar '\n')
(endfun)
diff --git a/comp/lucas-standen-NEA/writeup2/examples/fib_example b/comp/lucas-standen-NEA/writeup2/examples/fib_example
deleted file mode 100755
index 130332f..0000000
--- a/comp/lucas-standen-NEA/writeup2/examples/fib_example
+++ /dev/null
Binary files differ
diff --git a/comp/lucas-standen-NEA/writeup2/writeup.synctex.gz b/comp/lucas-standen-NEA/writeup2/writeup.synctex.gz
new file mode 100644
index 0000000..2c7031c
--- /dev/null
+++ b/comp/lucas-standen-NEA/writeup2/writeup.synctex.gz
Binary files differ
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}