Group 6 Students:
- Pedro Ponte | 98059
- André Cardoso | 108269
- Bruno Páscoa | 107418;
Further down this page you'll find the instructions to prepare everything you need for our presentation.
Additionally, we encourage you to browse our Learning folder, if you want to read more about what we prepared.
This guide is aimed at Unix users, if you have another OS refer to the Nim official website (https://nim-lang.org/install.html)
For this presentation you will need three things:
- Nim Compiler
- C Compiler
- Text Editor
The easiest way of installing Nim is using the choosenim tool.
You can install it by running the following commands:
$ sudo apt update && sudo apt upgrade
$ sudo apt install curl
$ curl https://nim-lang.org/choosenim/init.sh -sSf | shAfter installing choosenim, you must add it to your PATH and source your shell profile again:
$ echo '#Nim\nPATH=$HOME/.nimble/bin:$PATH' >> ~/.bashrc
$ source ~/.bashrcYou will need a C compiler to compile the Nim code. We recommend using gcc, but any compiler should work. You can install it by running the following command:
$ sudo apt install gccUse whatever you prefer, we will be using VSCode with the Nim plugin.
After adding Nim to your PATH, confirm it's working. If you get an error, try restarting your terminal
To verify that Nim is installed, run the following command in your terminal
$ nim --version
Nim Compiler Version 2.0.0 [Linux: amd64]
Compiled at 2023-08-01
Copyright (c) 2006-2023 by Andreas RumpfIf you find any errors, you can file an issue on this repo or try the following:
- Visiting https://nim-lang.org/install.html
- Joining the Nim discord server
- Contact us:
- Email: ponte@ua.pt
- Whatsapp: +351 968772323
Navigate to your work directory and clone our repository to get the files needed for this presentation.:
$ git clone https://github.com/Ponte348/Nim_CSLPThe exercises will be in Nim_Exercises.pdf and the theoretical presentation slides are Nim_Presentation.pdf.