ArticleslgStudy

computer science

Mir (software)

Mir (software) 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 Mir (software) rather than just read about it. In short: Mir is a Wayland compositor for the Linux operating system that is under development by Canonical Ltd. Until 2017, it was developed as a display server and it was planned to replace the X Window System for Ubuntu; however, the plan changed and Mutter was adopted as part of GNOME Shell.

Key takeaways

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

Reference excerpt

Mir is a Wayland compositor for the Linux operating system that is under development by Canonical Ltd. Until 2017, it was developed as a display server and it was planned to replace the X Window System for Ubuntu; however, the plan changed and Mutter was adopted as part of GNOME Shell. Mir was announced by Canonical on 4 March 2013 as part of the development of Unity 8, intended as the next generation for the Unity user interface. Four years later Unity 8 was dropped although Mir's development continued for Internet of Things (IoT) applications.

Software architecture

Mir is built on EGL and uses some of the infrastructure originally developed for Wayland such as Mesa's EGL implementation and Jolla's libhybris. The compatibility layer for X, XMir, is based on XWayland. Other parts of the infrastructure used by Mir originate from Android. These parts include Google's Protocol Buffers, and previously included Android's input stack, which has since been replaced by Wayland's libinput, prior to the end of 2015. An implementation detail in memory management shared with Android is the use of server-allocated buffers which Canonical employee Christopher Halse Rogers claims to be a requirement for "the ARM world and Android graphics stack". According to Ryan Paul of Ars Technica,

Some of the benefits that Mir will eventually offer include lower overhead in the display pipeline, more seamless transitions between display modes during the boot process, richer input handling that will make it easier to support things like touchscreen gestures, more seamless support for systems with switchable graphics hardware (like laptops that can dynamically shift between using embedded and discrete graphics), and better application interchange (which will help improve things like the clipboard and drag-and-drop). As of September 2017 it has basic Wayland support.

Adoption

As of May 2014, the only announced desktop environment with native support for Mir was Canonical's Unity 8. No other Linux distribution announced plans to adopt Mir as default display server. On 23 July 2013, Compiz developer Sam Spilsbury had announced a proof-of-concept port of Kodi to Mir, based on the previous proof-of-concept port of Kodi to Wayland. On the same day Canonical developer Oliver Ries had confirmed that "this is the first native Mir client out in the wild". Among Ubuntu derivatives using a non-Unity environment, Xubuntu developers had announced in early August 2013 that they would evaluate running Xfce via XMir, but three weeks later decided to refrain from adopting it.

Ubuntu In June 2013, Canonical's publicly announced milestones for Mir development were to ship Unity 7 with XMir by default and a pure X11 fallback mode with Ubuntu 13.10, remove the X11 fallback with Ubuntu 14.04 LTS, and Unity 8 running natively on Mir by Ubuntu 14.10. Later, on 1 October 2013, Canonical announced a postponement of their Mir plans for desktop use and not use XMir as default in Ubuntu 13.10. Ubuntu Touch, however is targeted to ship with Mir and a smartphone version of Unity 8. In May 2016, during his traditional video interview with the community held during the Ubuntu Online Summit, Mark Shuttleworth confirmed that "You will be able to get 16.10 with Unity 8, just like you can get 16.04 with MATE, or KDE, or GNOME. It'll be there, it'll be an option, and the team that's working on that is committed to making that a first-class option." On 5 April 2017, Canonical announced that with the release of Ubuntu 18.04 LTS, the Unity 8 interface would be abandoned in favor of GNOME. When asked if the decision would also mean the end of Mir development, Canonical's Michael Hall said that given the divergent development paths taken by Mir and its competitor, Wayland, "Using Mir simply isn't an option we have." However, Mark Shuttleworth clarified on 8 April 2017 that development would continue for Mir's use in Internet of Things (IoT) applications, stating: "we have lots of IoT projects using Mir as a compositor so that code continues to receive investment."

Toolkits SDL supported both Mir and Wayland starting with SDL 2.0.2 but it was disabled by default. Wayland and Mir support was enabled by default starting with SDL 2.0.4. With the release of 2.0.10, Mir support was dropped in favor of Wayland. GTK 3.16 included an experimental Mir backend, but was removed in GTK 4. Qt5 is the official and supported toolkit for Unity8 and Ubuntu Touch, included in the Ubuntu SDK.

Criticism

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Mir (software)

Start with the simplest possible case. Write down what Mir (software) 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 Mir (software) 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 Mir (software) 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 Mir (software)

In research
Mir (software) 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 Mir (software) 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
Mir (software) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Canonical (company), Display servers, Free software programmed in C++, so understanding it makes those chapters shorter.
In everyday life
Look for Mir (software) 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 “Mir (software)” →

How to study Mir (software) in 20 minutes

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

Frequently asked questions

What is Mir (software) in simple terms?

Mir is a Wayland compositor for the Linux operating system that is under development by Canonical Ltd. Until 2017, it was developed as a display server and it was planned to replace the X Window System for Ubuntu; however, the plan changed and Mutter was adopted as part of GNOME Shell.

Why does Mir (software) 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 Mir (software)?

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 Mir (software).

Tags

  • Canonical (company)
  • Display servers
  • Free software programmed in C++
  • Software using the GNU General Public License
  • Ubuntu

Keep exploring