Introduction to Kotlin scientific programming
Recording of lectures in 2019 is available here.
Course purpose
As physics (and science in general) develops, computer methods are becoming more and more important in the daily work of a scientist. In conducting an experiment, computer methods and tools are used at all stages of the work: planning the experiment, preparing the installation, collecting data, processing and publishing it. In such a situation, the quality of the programs used is beginning to play an important role. In addition, there is a need for specialists who understand both science and programming and who develop and improve software tools.
Most students (and scientists) are more or less familiar with the basic tools of a programmer, for example, writing simple programs in Python. This is not enough for serious scientific development, so the course aims at a more advanced understanding of hardware, program structure and modern development tools.
As the main programming language we will use Kotlin
, which appeared recently and managed to gain a large market share. Kotlin has several significant advantages as an initial language for advanced scientific programming:
- Strict typing, a clearly constructed system of types.
- High performance.
- Automatic memory management.
- Fully compatible with a huge number of Java libraries.
- Better toolkit.
- Extensive community.
- Possibility of commercial use.
Lecturer
Alexander Nozik - experimental physicist, data analysis specialist in physical experiment and scientific software. Senior researcher at the INR RAS, Deputy Head of the MIPT LNPM. JetBrains Research team leader.
Andrey Shcheglov - Senior Software Engineer at JetBrains.
Course format
In 2020, the course is held with the participation of JetBrains and the support of JetBrains Research. The most active students will have the opportunity to participate in summer internships at JetBrains. There is also an opportunity for senior students to do research at the MIPT Laboratory of Nuclear Physics Experiments Methods (participant of JetBrains Research) and at the JetBrains Moscow office.
In this course we will learn to work in Kotlin language and apply it to scientific problems. We will focus on practical aspects and examples, so that no additional knowledge is needed to understand it. For practical examples we will use the development environment IntelliJ IDEA Community Edition.
All questions related to the course will be discussed in telegram groups @mipt-npm (scientific) and Kotlin at MIPT (any questions about Kotlin).
All those wishing to participate should complete the form.
Course content
-
From hard to soft
- Program as a set of instructions. Evolution of programs.
- Memory structure. Segmentation fault.
- Programming paradigms. Genealogy of languages.
- Virtual machines, byte-code.
- Compilation and optimization.
- Static and dynamic linking. Libraries.
- Program structure. Entry points.
-
The tools of the modern programmer
- Automatic assembly systems.
- Version control systems.
- Integrated development environments.
-
Kotlin language
- Variables, classes and objects.
- Control flow. Procedural and functional approach.
- Short circuits.
- Data structures and operations on them.
- Properties and Delegates.
- Parametric types.
- Extensions.
- Boxing.
- Multiplatform projects
-
Program Architecture
- Abstractions and interfaces.
- basics of collective development with the help of modern tools.
- Ideology of object programming. Separation of behavior.
- Ideology of functional programming.
-
Scientific programming.
- Basics of numerical methods. The concept of numerical accuracy. Complexity of algorithms.
- Numerical differentiation and integration.
- Random Number Generators and Monte Carlo Modeling.
- High-performance parallel and competitive computing.
- The problem of I/O and the main methods to solve it.
- Data collection systems. Protocols of data exchange.
- Basics of work with big data.
- Streaming data processing.
Reporting
The offset is held in the form of a presentation based on the materials of an individual project. Interim reporting in the form of assignments is also provided.