Themis
Automated assessment of student programming assignments — reducing teacher workload while giving students near-instant, consistent feedback.
Themis is a service for automated code assessment. It uses a flexible judging system to automatically run and evaluate student code written in various programming languages.
Benefits for Staff
Automated assessment of student code significantly reduces the workload for teachers and teaching assistants while simultaneously improving the grading process:
- Consistency — each submission is evaluated in an identical environment, ensuring fair and uniform grading.
- Reduced bias — standardizing and automating assessment removes certain evaluator biases.
- Near-instant feedback — students receive results immediately after submission.
- Reduced security risk - evaluators no longer have to run untrusted student code on their own machines to evaluate correct functionality.
Blended Learning and Formative Feedback
Themis directly promotes the use of blended learning and formative feedback. Students can use Themis both during and outside practical sessions, allowing them to prepare for a session by completing assignments in advance. Teachers can easily identify which topics need more attention by reviewing submission data.
The iterative process of submission, assessment, adjustment, and resubmission gives students the opportunity to detect mistakes early and make corrections accordingly. This cycle of formative feedback can be concluded by a summative assessment on the last submission. Compared to the traditional approach of submitting once and receiving feedback once, this iterative approach ensures every student has a genuine chance to complete the full assignment while learning from the feedback Themis provides.
Assignment Flexibility
Themis is designed to be agnostic to the design of assignments. The execution engine is unaware of any assignment details, the programming language used, or even what it means for student code to be "correct". While Themis provides convenient default settings for most settings, all of them can be easily customised. This enabled Themis to be used in a wide range of courses - from basic programming courses, to highly specialized courses with unique requirements.
Some examples to highlight the flexibility of Themis:
- Themis supports custom output comparison (e.g. to compare rendered images instead of text output).
- Themis allows running daemon processes such as a robot simulator for robotics assignments.
- Themis supports complex networking setups to test distributed systems assignments such as DNS servers.
- Themis allows running virtual machines to test operating systems kernels.
This means that Themis can be used in many more programming courses compared to more opinionated offers, which are often designed around simpler (single-file) assignments.
Education as Code
Themis follows Digital Lab's fundamental principle of "education as code". Themis is configured using a git repository to define the assignments using a simple but powerful configuration interface. This helps managing courses with complex assignments, as those are often difficult to set up in a web interface. In addition, the education as code approach simplifies exporting, copying, and backing up course configurations, while providing a full audit log of changes. The git interface also facilitates easy integration with code reviews and various automation tools, including agentic assistants.
Use cases
Programming Fundamentals
Programming Fundamentals is the first programming course at the Computing Science bachelor of the University of Groningen. During the course, students have to solve roughly 80 homework assignments and 3 exams, which are all automatically assessed by Themis. The assignments are submitted in C and Dafny, where C teaches basic programming skills, and Dafny teaches formal verification. Themis automatically assesses program correctness and memory and time efficiency, while teaching staff assess code quality. During the exam, students can resubmit as many times as they want, until the exam is closed. Students walk away from the exam with confidence in their performance due to the immediate feedback from Themis.
- Languages — C, Dafny
- Assignment types — Small programs, algorithms, formally verified programs
Computer Graphics
During Computer Graphics, students write a 3D rendering engine in C++ from scratch. The assignments combine OpenGL/Vulkan interactive applications, and images rendered from scene descriptions using raytracing. Themis assesses the correctness of the student submissions by doing image-based comparison on both the raytraced images and screenshots of the interactive application with a specific input.
- Languages — C++, GLSL
- Assignment types — Rasterizers, shaders, ray tracers
Kernel Engineering & Security
In the master's course Kernel Engineering & Security, students implement a linux-like kernel, implementing their own system calls, memory management, virtual filesystem and security features. Themis builds these kernels and runs them in a QEMU emulator, where a custom unit test framework is able to test subsystems of the kernel for correctness.
- Languages — C, x86 Assembly
- Assignment types — Kernel modules, system calls, memory management
Compiler Construction
Building a compiler is a multi-stage project spanning lexing, parsing, type checking, and code generation. This course is split up into several phases, where students start with a simple lexer and gradually build up to a full compiler. For later assignments, students can implement their own optimizations and compiler warnings, which Themis dynamically checks and reports to the TAs as having been implemented as a bonus feature.
- Languages — C, Flex, Bison
- Assignment types — Lexer, parser, type checker, code generator, optimizations
Information Security
During Information Security, students implement various security and encryption techniques. Students can implement their solutions in different programming languages, with choice between C, C++, Python, Java and Haskell.
- Languages — C, C++, Python, Java, Haskell
- Assignment types — Encryption algorithms
Introduction to Logic
During Introduction to Logic, students learn about propositional and predicate logic. They implement various logical reasoning techniques and solve problems using formal methods. The students write their proofs in Fitch notation, which is then automatically checked for correctness by Themis.
- Languages — Fitch
- Assignment types — Logical proofs, reasoning problems
Introduction to Information Systems
During Introduction to Information Systems, students learn about SQL and how to use it to interact with databases. For the assignments, students implement various database queries and transactions, which can then be tested against predefined test data loaded into a database by Themis. Inefficient queries or queries using disallowed concepts can be rejected by Themis.
- Languages — SQL
- Assignment types — Database queries, transactions
Notable Features
Plagiarism detection
Themis can automatically check for plagiarism between student submissions, and report this to teachers. This is achieved through an integration with the open source tool Dolos developed by Ghent University.Multi-language support
Themis supports offering students the option to submit their work in multiple programming languages.Exam support
Themis can be used to run automatically graded exams with instant feedback to the students. The exam environment offers a full Linux-based virtual machine for students to work on their assignments, using familiar tools such as Visual Studio Code. It is possible to offer "hybrid" exams, in which a traditional digital exam is combined with some programming assignments on Themis.Group support
Themis can be used for group assignments, where students can submit as a group and receive feedback as a group. This includes teacher-defined groups, as well as self-service group enrollment by students.Mixed feedback
Themis supports both automated feedback and manual feedback from teachers, allowing for a blended approach to assessment.Jupyter notebooks
Themis ships a powerful integration with Jupyter notebooks, allowing the teacher to run and evaluate individual cells, and inspect the kernel state at any point in time. This way, student code can be evaluated in depth.
Interested?
Are you interested in using Themis? Contact the Digital Lab at digitallab@rug.nl.