ArticleslgStudy

computer science

Toit

Toit 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 Toit rather than just read about it. In short: Toit is an open-source programming language designed for Internet of things (IoT) applications, with a focus on ESP32 microcontrollers made by Espressif Systems. It was developed by Toitware ApS, a Danish company founded in 2018, and released as open source in November 2021.

Key takeaways

  • Toit 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 Toit to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Toit from memory before moving on to harder problems.

Reference excerpt

Toit is an open-source programming language designed for Internet of things (IoT) applications, with a focus on ESP32 microcontrollers made by Espressif Systems. It was developed by Toitware ApS, a Danish company founded in 2018, and released as open source in November 2021. Toit was created by a team that included Lars Bak and Kasper Lund, who had previously developed the V8 JavaScript engine for Google Chrome and co-designed the Dart programming language at Google. As of 2026, the language targets ESP32-class hardware. Using a garbage-collected runtime on a microcontroller involves memory and latency trade-offs compared to hand-optimised C, a consideration noted in coverage of the language.

History

Founding Lars Bak and colleagues founded Toitware ApS in Aarhus, Denmark, in 2017–2018 to build a new programming language for IoT development. In February 2019, the company raised DKK 23 million (approximately US$3.5 million) in seed funding from Swedish venture capital firm Creandum. Early versions required cloud registration to deploy code to devices.

Open sourcing In November 2021, Toitware announced the language would be released as open source under the LGPL licence. At the same time, Espressif Systems — the manufacturer of the ESP32 — published coverage of Toit on its own news platform, noting performance comparisons with MicroPython on ESP32 hardware. CNX Software, an independent embedded-systems publication, also covered the release, reporting Toitware's claim that Toit ran approximately 30 times faster than MicroPython on the ESP32. The commercial cloud offering was later discontinued. Development of fleet-management tooling continued through an open-source project called Artemis, built on Supabase and PostgreSQL, which users self-host. According to Denmark's Central Business Register, Toitware ApS ceased operating in 2024. Development of the language continues as a community project on GitHub.

Design Toit uses an indentation-based syntax similar to Python, in which block structure is indicated by indentation rather than braces or keywords. Semicolons are not required to terminate statements, and function calls do not use parentheses around arguments. The type system is optional: programs can be written without type annotations and will still run, but adding types enables static analysis and compiler optimisations. Memory is managed by a garbage collector. The language supports object-oriented programming with classes, interfaces, and mixins, as well as standard library features including strings, lists, maps, and exception handling. In the context of embedded development, Toit includes built-in support for hardware interfaces including GPIO, I²C, and SPI.

Syntax

Hello World

Functions and calls Functions are declared with a name, parameters, and a colon. Arguments are passed by juxtaposition, without parentheses or commas, similar to Smalltalk and Unix shell syntax.

Classes

Implementation

Virtual machine Toit programs compile to bytecode and run on a purpose-built lightweight virtual machine (VM). The same VM runs on both microcontrollers and desktop systems. On desktop, the VM and bytecode can be bundled into a single self-contained executable.

Containers On the ESP32, the Toit VM can run multiple programs simultaneously. These are called "containers". Each container runs independently, with no shared memory, and containers communicate via a built-in remote procedure call (RPC) mechanism.

Concurrency Within a container, programs use cooperative concurrency through a "tasks" abstraction. Tasks are not preempted arbitrarily; they yield at explicit yield statements or when waiting on hardware or system calls.

Tooling The Toit toolchain is distributed as two command-line tools, both available on GitHub:

toit — compiles and runs Toit programs on desktop systems and manages packages. jag (Jaguar) — deploys, updates, and monitors Toit programs on ESP32 hardware over Wi-Fi without reflashing the device.

Reception EE Times described Toit as addressing the complexity of IoT development by offering a high-level language with memory safety for devices that traditionally require C or C++. EEJournal reviewed the language in 2021, calling it a practical alternative to MicroPython for ESP32 development. Codecentric, a software consultancy, published a technical evaluation 2022 concluding that Toit's performance and live-reload capability made it suitable for production IoT work on ESP32.

References

Worked examples

Example 1 — a first encounter with Toit

Start with the simplest possible case. Write down what Toit 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 Toit 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 Toit 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 Toit

In research
Toit 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 Toit 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
Toit is common in secondary-school and first-year university syllabi. It links to neighbouring topics Embedded systems, Free and open-source software, Internet of things, so understanding it makes those chapters shorter.
In everyday life
Look for Toit 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 “Toit” →

How to study Toit in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Toit 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 Toit out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Toit in simple terms?

Toit is an open-source programming language designed for Internet of things (IoT) applications, with a focus on ESP32 microcontrollers made by Espressif Systems. It was developed by Toitware ApS, a Danish company founded in 2018, and released as open source in November 2021.

Why does Toit 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 Toit?

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 Toit.

Tags

  • Embedded systems
  • Free and open-source software
  • Internet of things
  • Object-oriented programming languages
  • Programming languages

Keep exploring