ArticleslgStudy

computer science

Owl Scientific Computing

Owl Scientific Computing is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Owl Scientific Computing rather than just read about it. In short: Owl Scientific Computing is a software system for scientific and engineering computing developed in the Department of Computer Science and Technology, University of Cambridge. The Systems Research Group (SRG) in the department recognises Owl as one of the representative systems developed in SRG in the 2010s.

Owl Scientific Computing — main illustration
Owl Scientific Computing — illustration

Key takeaways

  • Owl Scientific Computing belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Owl Scientific Computing to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Owl Scientific Computing from memory before moving on to harder problems.

Reference excerpt

Owl Scientific Computing is a software system for scientific and engineering computing developed in the Department of Computer Science and Technology, University of Cambridge. The Systems Research Group (SRG) in the department recognises Owl as one of the representative systems developed in SRG in the 2010s. The source code is licensed under the MIT License and can be accessed from the GitHub repository. The library is mostly designed and developed in the functional programming language OCaml. As a unique functional programming language, OCaml offers runtime efficiency, flexible module system, static type checking, intelligent garbage collector, and powerful type inference. Owl inherits these features directly from OCaml. With Owl, users can write succinct type-safe numerical applications in a concise functional language without sacrificing performance. It speeds up the development life-cycle, and reduces the cost from prototype to production use. The system serves as the de facto tool for computation intensive tasks in OCaml.

History Owl was developed when Dr. Liang Wang was working as a Post-Doc in the OCaml Labs. Owl originated from a research project which studied the design of synchronous parallel machines for large-scale distributed computing in July 2016. Back then the libraries for numerical computing in OCaml ecosystem were very limited and the tooling was fragmented at that time. In order to test various analytical applications, many numerical functions had to be implemented, from very low level algebra and random number generators to the high level stuff like algorithmic differentiation and deep neural networks. These code snippets started accumulating. These functions were later taken out and wrapped into a standalone library named Owl. Owl's architecture undertook at least a dozen of iterations in the beginning, and some of the architectural changes are quite drastic. After one-year intensive development, Owl was capable of doing many complicated numerical tasks (e.g. image classification). Dr. Liang Wang held a tutorial at the CUFP 2017 to demonstrate data science in OCaml. In 2018, Prof. Richard Mortier gave a talk about Owl in the Alan Turing Institute. To further promote OCaml and functional programming in data science, Owl provides abundant learning materials in the form of a detailed manual, published together with the API documentation. The project is currently led by Jianxin Zhao.

Design and features Owl has implemented many advanced numerical functions atop of its implementation of n-dimensional arrays. Compared to other numerical libraries, Owl is unique in many perspectives, e.g. algorithmic differentiation and distributed computing have been included as integral components in the core system to maximise developers' productivity. The figure below gives a bird view of Owl's system architecture. The subsystem on the left part is Owl's Numerical system. The modules contained in this subsystem fall into three categories.

The first category is the core modules, which contain the basic data structures, i.e. the N-dimensional array (Ndarray). The Ndarray module supports various number types: float32, float64, complex32, complex64, int16, int32, etc. Also, the core modules provide foreign function interfaces to other low level numerical libraries, such as CBLAS and LAPACK. These libraries are fully interfaced to the Linear Algebra module. The second category is the classic analytics modules. This part contains basic mathematical and statistical functions, linear algebra, regression, optimisation, etc. Plotting is provided by the companion package owl-plplot. Advanced math and statistics functions such as statistical hypothesis testing and Markov chain Monte Carlo are also included. As a core functionality, Owl provides the algorithmic differentiation (or automatic differentiation) and dynamic computation graph modules. The highest level in the Owl architecture includes modules for more advanced numerical applications such as neural network, natural language processing, data processing etc. The modules in the second category, especially the algorithmic differentiation, make the code at this level quite concise. The subsystem on the right is called Actor Subsystem, which extends Owl's capability to parallel and distributed computing. The core idea is to transform a user application from sequential execution mode into parallel mode (using various computation engines) with minimal efforts. The method is to compose two subsystems together with functors to generate the parallel version of the module defined in the numerical subsystem. Besides what have been mentioned in this figure, there are several other features in Owl. For example, the JavaScript and unikernel backends, integration with other frameworks such as TensorFlow and PyTorch, utilising GPU and other accelerator frameworks via symbolic graph, etc. Reinforcement learning on top of Owl is provided by the companion library owl-rllib, which implements tabular methods, deep reinforcement learning algorithms such as DQN, A2C and PPO, and reinforcement learning methods for fine-tuning language models.

Research The Owl project is research oriented, and supports research of numerical computing in multiple related topics. Some of its research topics are listed below.

… excerpt ends here. Continue reading the full article.

Illustrations

Owl Scientific Computing illustration
Owl Scientific Computing: The architecture of the Owl numerical library.
The architecture of the Owl numerical library.

Worked examples

Example 1 — a first encounter with Owl Scientific Computing

Start with the simplest possible case. Write down what Owl Scientific Computing claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Owl Scientific Computing before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Owl Scientific Computing ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Owl Scientific Computing

In research
Owl Scientific Computing appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Owl Scientific Computing in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Owl Scientific Computing is common in secondary-school and first-year university syllabi. It links to neighbouring topics Array programming languages, Free mathematics software, Free science software, so understanding it makes those chapters shorter.
In everyday life
Look for Owl Scientific Computing outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Owl Scientific Computing” →

How to study Owl Scientific Computing in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Owl Scientific Computing means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Owl Scientific Computing out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Owl Scientific Computing in simple terms?

Owl Scientific Computing is a software system for scientific and engineering computing developed in the Department of Computer Science and Technology, University of Cambridge. The Systems Research Group (SRG) in the department recognises Owl as one of the representative systems developed in SRG in…

Why does Owl Scientific Computing matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Owl Scientific Computing?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Owl Scientific Computing.

Tags

  • Array programming languages
  • Free mathematics software
  • Free science software
  • Numerical analysis software for Linux
  • Numerical analysis software for macOS
  • Numerical programming languages
  • Software using the MIT license

Keep exploring