Skip to content

Commit 2db16e2

Browse files
committed
Initial commit
0 parents  commit 2db16e2

7 files changed

Lines changed: 226 additions & 0 deletions

File tree

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
*.annot
2+
*.cmo
3+
*.cma
4+
*.cmi
5+
*.a
6+
*.o
7+
*.cmx
8+
*.cmxs
9+
*.cmxa
10+
11+
# ocamlbuild working directory
12+
_build/
13+
14+
# ocamlbuild targets
15+
*.byte
16+
*.native
17+
18+
# oasis generated files
19+
setup.data
20+
setup.log
21+
22+
# Merlin configuring file for Vim and Emacs
23+
.merlin
24+
25+
# Dune generated files
26+
*.install
27+
28+
# Local OPAM switch
29+
_opam/
30+
31+
32+
# VSCode
33+
.vscode/

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# AKT süvenduspraktikum 2026
2+
3+
[AKT süvenduspraktikumi 2026](https://courses.cs.ut.ee/2026/AKTSP/spring) materjalide repositoorium.
4+
5+
6+
## Paigaldamine
7+
1. Sõltuvalt operatsioonisüsteemist:
8+
* Windows: paigalda [WSL](https://docs.microsoft.com/en-us/windows/wsl/install). **Edasi tööta WSL-is.**
9+
* Paigalda opam-i ja OCaml-i jaoks vajalikud paketid: `sudo apt install bubblewrap unzip bzip2 gcc make`
10+
* Linux: ära tee midagi, tegid juba õige valiku!
11+
* MacOS: paigalda [homebrew](https://brew.sh/).
12+
2. Paigalda [opam](https://opam.ocaml.org/doc/Install.html).
13+
3. Paigalda [Visual Studio Code](https://code.visualstudio.com/) ja [OCaml Platform laiendus](https://marketplace.visualstudio.com/items?itemName=ocamllabs.ocaml-platform).
14+
* Kui kasutad WSL-i, siis paigalda ka [WSL laiendus](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl).
15+
4. [Git](https://git-scm.com/downloads)-iga klooni [see repositoorium](https://github.com/sws-lab/aktsp2026).
16+
* NB! Windows-is klooni repositoorium WSL-i sisse (nt sealsesse kodukausta `~`), mitte väljaspoole (`/mnt/c/...`), sest muidu toimub OCaml-i kompileerimine väga aeglaselt.
17+
5. Navigeeri käsureal kloonitud repositooriumi kausta.
18+
6. Käivita: `opam init -a --bare -y`
19+
7. Käivita: `opam switch create --deps-only --locked -y . 5.4.0` (NB! punkt)
20+
21+
### Paigalduse kontrollimine
22+
1. Käivita: `eval $(opam env)`
23+
2. Käivita: `dune exec src/hello/hello.exe`
24+
* Väljund peaks olema `Hello, OCaml!`.
25+
26+
27+
## Kasutamine
28+
1. Navigeeri käsureal kloonitud projekti repositooriumi kausta.
29+
2. Käivita: `eval $(opam env)`
30+
3. Käivita: `code .` (NB! punkt)
31+
4. Käivita
32+
* Kompileerimiseks: `dune build`
33+
* Jooksvalt testimiseks: `dune runtest -w`
34+
* Jooksvalt osaliseks testimiseks: `dune runtest -w test/crashcourse/`
35+
* Interaktiivselt kasutamiseks: `dune utop`

aktsp2026.opam

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This file is generated by dune, edit dune-project instead
2+
opam-version: "2.0"
3+
synopsis: "AKT süvenduspraktikumi 2026 materjalid"
4+
maintainer: ["Simmo Saan"]
5+
authors: ["Simmo Saan"]
6+
homepage: "https://github.com/sws-lab/aktsp2026"
7+
bug-reports: "https://github.com/sws-lab/aktsp2026/issues"
8+
depends: [
9+
"dune" {>= "3.0"}
10+
"ocamlgraph"
11+
"ppx_deriving"
12+
"ppx_deriving_hash"
13+
"ounit2"
14+
"qcheck-ounit" {>= "0.91"}
15+
"ocaml-lsp-server"
16+
"utop"
17+
"odoc" {with-doc}
18+
]
19+
build: [
20+
["dune" "subst"] {dev}
21+
[
22+
"dune"
23+
"build"
24+
"-p"
25+
name
26+
"-j"
27+
jobs
28+
"@install"
29+
"@runtest" {with-test}
30+
"@doc" {with-doc}
31+
]
32+
]
33+
dev-repo: "git+https://github.com/sws-lab/aktsp2026.git"

aktsp2026.opam.locked

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
opam-version: "2.0"
2+
name: "aktsp2026"
3+
version: "dev"
4+
synopsis: "AKT süvenduspraktikumi 2026 materjalid"
5+
maintainer: "Simmo Saan"
6+
authors: "Simmo Saan"
7+
homepage: "https://github.com/sws-lab/aktsp2026"
8+
bug-reports: "https://github.com/sws-lab/aktsp2026/issues"
9+
depends: [
10+
"astring" {= "0.8.5"}
11+
"base" {= "v0.17.3"}
12+
"base-bigarray" {= "base"}
13+
"base-bytes" {= "base"}
14+
"base-domains" {= "base"}
15+
"base-effects" {= "base"}
16+
"base-nnp" {= "base"}
17+
"base-threads" {= "base"}
18+
"base-unix" {= "base"}
19+
"camlp-streams" {= "5.0.1"}
20+
"chrome-trace" {= "3.21.0"}
21+
"cppo" {= "1.8.0"}
22+
"csexp" {= "1.5.2"}
23+
"dune" {= "3.21.0"}
24+
"dune-build-info" {= "3.21.0"}
25+
"dune-configurator" {= "3.21.0"}
26+
"dune-rpc" {= "3.21.0"}
27+
"dyn" {= "3.21.0"}
28+
"fiber" {= "3.7.0"}
29+
"fs-io" {= "3.21.0"}
30+
"jsonrpc" {= "1.25.0"}
31+
"lambda-term" {= "3.3.3"}
32+
"logs" {= "0.10.0"}
33+
"lsp" {= "1.25.0"}
34+
"lwt" {= "6.1.0"}
35+
"lwt_react" {= "1.2.0"}
36+
"merlin-lib" {= "5.6.1-504"}
37+
"mew" {= "0.1.0"}
38+
"mew_vi" {= "0.5.0"}
39+
"ocaml" {= "5.4.0"}
40+
"ocaml-base-compiler" {= "5.4.0"}
41+
"ocaml-compiler" {= "5.4.0"}
42+
"ocaml-compiler-libs" {= "v0.17.0"}
43+
"ocaml-config" {= "3"}
44+
"ocaml-index" {= "5.6.1-504"}
45+
"ocaml-lsp-server" {= "1.25.0"}
46+
"ocaml-options-vanilla" {= "1"}
47+
"ocaml_intrinsics_kernel" {= "v0.17.1"}
48+
"ocamlbuild" {= "0.16.1"}
49+
"ocamlc-loc" {= "3.21.0"}
50+
"ocamlfind" {= "1.9.8"}
51+
"ocamlformat-rpc-lib" {= "0.28.1"}
52+
"ocamlgraph" {= "2.2.0"}
53+
"ocplib-endian" {= "1.2"}
54+
"ordering" {= "3.21.0"}
55+
"ounit2" {= "2.2.7"}
56+
"pp" {= "2.0.0"}
57+
"ppx_derivers" {= "1.2.1"}
58+
"ppx_deriving" {= "6.1.1"}
59+
"ppx_deriving_hash" {= "0.1.3"}
60+
"ppx_yojson_conv_lib" {= "v0.17.0"}
61+
"ppxlib" {= "0.37.0"}
62+
"qcheck-core" {= "0.91"}
63+
"qcheck-ounit" {= "0.91"}
64+
"re" {= "1.14.0"}
65+
"react" {= "1.2.2"}
66+
"result" {= "1.5"}
67+
"seq" {= "base"}
68+
"sexplib0" {= "v0.17.0"}
69+
"spawn" {= "v0.17.0"}
70+
"stdlib-shims" {= "0.3.0"}
71+
"stdune" {= "3.21.0"}
72+
"top-closure" {= "3.21.0"}
73+
"topkg" {= "1.1.1"}
74+
"trie" {= "1.0.0"}
75+
"uchar" {= "0.0.2"}
76+
"utop" {= "2.16.0"}
77+
"uucp" {= "17.0.0"}
78+
"uuseg" {= "17.0.0"}
79+
"uutf" {= "1.0.4"}
80+
"xdg" {= "3.21.0"}
81+
"yojson" {= "3.0.0"}
82+
"zed" {= "3.2.3"}
83+
]
84+
build: [
85+
["dune" "subst"] {dev}
86+
[
87+
"dune"
88+
"build"
89+
"-p"
90+
name
91+
"-j"
92+
jobs
93+
"@install"
94+
"@runtest" {with-test}
95+
"@doc" {with-doc}
96+
]
97+
]
98+
dev-repo: "git+https://github.com/sws-lab/aktsp2026.git"

dune

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(env
2+
(dev
3+
(flags (:standard -warn-error -A))))

dune-project

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(lang dune 3.0)
2+
(name aktsp2026)
3+
4+
(source (github sws-lab/aktsp2026))
5+
(authors "Simmo Saan")
6+
(maintainers "Simmo Saan")
7+
8+
(generate_opam_files true)
9+
10+
(package
11+
(name aktsp2026)
12+
(synopsis "AKT süvenduspraktikumi 2026 materjalid")
13+
(depends
14+
ocamlgraph
15+
ppx_deriving
16+
ppx_deriving_hash
17+
ounit2
18+
(qcheck-ounit (>= 0.91))
19+
ocaml-lsp-server
20+
utop)
21+
(allow_empty))

src/dune

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(env
2+
(dev
3+
(flags (:standard -w -unused-var-strict -w -unused-value-declaration -w -unused-rec-flag -w -unused-constructor))))

0 commit comments

Comments
 (0)