Institute of Computer Science
  1. Courses
  2. 2019/20 fall
  3. Programming Languages (MTAT.03.006)
ET
Log in

Programming Languages 2019/20 fall

  • Info
  • Õppekava
  • Moodle
  • Loengud & Praksid
  • Lisamaterjalid
  • Küsi abi! (Fleep)

Esimene praktikum

Siin väljapakutud tööriistad pole kohustuslikud, kuid need võiks testimise jaoks siiski enda sülearvutitesse laadida.

Haskelli tööriistad

  • Kompilaator (GHC ver. >= 8.0)
    • Installi arvutisse Haskell Stack
    • Jooksutage järgnevad käsud:
stack update
stack setup

Esimene käsk uuendab teekide ja kompilaatorite nimekirja, teine installeerib kompilaatori.

  • Ide või tekstiredaktor
    • Visual Studio Code
      • Installida laiendused "Simple GHC (Haskell) Integration" ja "Haskell Syntax Highlighting"
  • Testfail: Test.hs
    • redaktori avamine käsurealt: code Test.hs
    • interaktiivseks käivitamiseks käsurealt: stack ghci Test.hs
      • GHCi-s main protseduuri jooksutamiseks: main
    • kui on soov kompileerida: stack ghc -- -main-is Test Test.hs

Haskelli ülesanne (kiirematele)

Uurida Test.hs faili sisu. Mida see teeb (interpretaatoris)? Kasutada sarnast mustrit ja implementeerida Fibonacci arve arvutav funktsioon. Testige oma lahendust!

Scala tööriistad

  • Java SE Development Kit 12 (Kuidas kontrollida, mis SDK versioon sul installeeritud on)
  • Uusim IntelliJ IDEA Community Edition
    • Installida Scala plugin
    • New Project → Scala + IDEA (IDEA-based Scala project) → Scala SDK: "Create..." nupp → Download... nupp → 2.13.0 (võib võtta 5 minutit aega, progress bar ei liigu)
  • Testige kompilaatori tööd
    • Scala project: Test1.scala
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment