6 and finale
[phd-thesis.git] / top / finale.tex
index bdcba96..767457c 100644 (file)
@@ -21,7 +21,7 @@
 \section{Finale}
 Traditionally, \gls{IOT} has been programmed using layered, or tiered, architectures.
 Every layer has its own software and hardware characteristics, resulting in semantic friction.
-\Gls{TOP} is a declarative programming paradigm designed to describe multi-tiered interactive systems.
+\Gls{TOP} is a declarative programming paradigm designed to describe multi-tiered interactive systems from a single source.
 However, it is not straightforward to run \gls{TOP} systems on resource-constrained devices such as edge devices.
 
 The \gls{MTASK} system bridges this gap by providing a \gls{TOP} programming language for edge devices.
@@ -30,111 +30,15 @@ Besides the usual \gls{FP} constructs, it contains basic tasks, task combinators
 It integrates seamlessly in \gls{ITASK}, a \gls{TOP} system for interactive web applications.
 Hence, all layers of an \gls{IOT} system can be programmed from a single declarative specification.
 In \gls{ITASK}, abstraction are available for the gritty details of interactive web applications such as program distribution, web applications, data storage, and user management.
-The engine of \gls{MTASK} abstracts away of all technicalities specific to edge devices such as communication, abstractions for sensors and actuators, interrupts and (multi) task scheduling.
+The \gls{MTASK} system abstracts away of all technicalities specific to edge devices such as communication, abstractions for sensors and actuators, interrupts and (multi) task scheduling.
 
 Any device equipped with the \gls{MTASK} \gls{RTS} can be used in the system and dynamically receive tasks for execution.
-This domain-specific \gls{OS} only needs to be programmed once, hence saving precious write cycles on the program memory.
+This domain-specific \gls{OS} only needs to be uploaded once, hence saving precious write cycles on the program memory.
 The \gls{MTASK} devices are connected to the \gls{ITASK} system at run time using a single function that takes care of all the communication and error handling.
 Once connected to a device, tasks written in the \gls{MTASK} \gls{DSL} can be lifted to \gls{ITASK} tasks.
 The tasks are specified and compiled at run time, i.e.\ \gls{CLEAN} can be used as a macro language for constructing \gls{MTASK} tasks, tailor making them for the current work requirements.
 When lifted, other tasks in the system can interact with the task through the usual means.
 Furthermore, \gls{ITASK} \glspl{SDS} can be \emph{lowered} to \gls{MTASK} tasks as well, allowing for bidirectional automatic data sharing between \gls{MTASK} tasks and the \gls{ITASK} system irrespective of task relations.
-\todo{Uit\-brei\-den?}
-
-\section{Future work}
-\todo[inline]{De grens tussen future en related work is soms vaag maar ik heb het zo goed als mogelijk proberen te scheiden. Mis ik hier nog iets?}
-There are many ways of extending the research on the \gls{MTASK} system that also concerns \gls{TOP} for resource constrained devices in general.
-Some obvious routes would be to add features, support more platforms, 
-\todo[inline]{meer type level dingen. Interrupts, pinmodes, \etc.}
-
-\subsection{Security}
-\Gls{IOT} has reached the news many times regarding security and it is a big concern \citep{alhirabi_security_2021}.
-The fact that the devices are embedded in the fabric, are hard to reach and thus to update, and can only run limited cryptographic algorithms due to their constrained resources makes it difficult.
-The security of \gls{MTASK} and the used protocols are deliberately overlooked at the moment
-Though, because \gls{MTASK} is modular, for example, the communication channels are communication method agnostic, it should be fairly easy to apply standard security measures to them by replacing communication methods and applying standard authentication and encryption to the protocol.
-\Citet{de_boer_secure_2020} did preliminary research on securing the communication channels, which proved to be possible without many changes in the protocol.
-Nonetheless, this deserves much more attention.
-The future and related work for the security of \gls{MTASK} and tierless systems is more thoroughly presented in \cref{ssec_t4t:security}.
-
-\subsection{Advanced edge devices techniques}
-Edge devices may produce a lot of data and it is not always effective to send this data to the server for processing.
-Leaving the produced data and computations on the edge device is called \emph{edge computing} \citep{shi_edge_2016}.
-The \gls{MTASK} exhibits many properties of edge computing because it is possible to run entire workflows on the device.
-However, it would be interesting to see how far this can be extended.
-The \gls{MTASK} language is a high-level \gls{DSL} so it would be obvious to introduce abstractions for edge computations.
-For example, add \gls{TOP} support for machine learning on the edge device using TinyML \citep{sanchez-iborra_tinyml-enabled_2020}.
-
-Another recent advance in \gls{IOT} programming is battery-less or even battery-free computing.
-Instead of equipping the edge device with a battery, a capacitor is used in conjunction with some energy harvesting systems such as a solar panel.
-With the use of intermittent computing, resuming the computation after a, possibly unexpected, power loss, operation can still be achieved \citep{hester_batteries_2019}.
-After a reset, the program state is resumed from a checkpoint that was stored in some non-volatile memory.
-Many intermittent computing solutions rely on annotations from the programmer to divide the program into atomic blocks, sometimes called \emph{tasks} as well.
-These blocks are marked as such because in the case of an reset of the system, the work must be done again.
-Examples of such blocks are \gls{I2C} transmissions or calculations that rely on recent sensor data.
-In \gls{MTASK}, all work expressed by tasks is already split up in atomic pieces of work.
-Furthermore, creating checkpoints should be fairly straightforward as \gls{MTASK} tasks do not rely on any global state---all information required to execute a task is stored in the task tree.
-It would be interesting to see what \gls{TOP} abstraction could be useful for intermittent computing and what solutions are required to make this work.
-
-Mesh networks allow for communication not only to-and-fro the device and server but also between devices.
-The \gls{ITASK} system already contains primitives for distributed operation.
-For example, it is possible to run tasks or share data with \glspl{SDS} on a different machine.
-It would be interesting to investigate how this networking technique can be utilised in \gls{MTASK}.
-
-Finally, \glspl{FPGA} have been becoming cheaper and faster recently, allowing for purely functional code to be translated to \glspl{FPGA} code efficiently \citep{baaij_digital_2015}.
-It would be interested to see how and whether (parts of) \gls{TOP} programs or the functionality of the \gls{MTASK} \gls{OS} could be translated to \gls{FPGA} specifications.
-
-\subsection{Formal semantics}
-Semantics allow reasoning about the language and programs in order do (symbolic) simulation, termination checking, task equivalence, or otherwise.
-For \gls{ITASK} there have been two attempts to formally specify the language.
-First \citet{koopman_executable_2011} defined a semantics used for property based testing based on a minimal version of \gls{ITASK}.
-Then \citet{plasmeijer_task-oriented_2012} formalised \gls{ITASK} by providing an executable semantics for the language.
-Both semantics are not suitable for formal reasoning due to the complexity.
-Later, \citet{steenvoorden_tophat_2019} created \gls{TOPHAT}, a \gls{TOP} language with a complete formal specification with similar features to \gls{MTASK} \citep{steenvoorden_tophat_2019}.
-\Citet{antonova_mtask_2022} compared parts of \gls{MTASK} to the semantics of \gls{TOPHAT} semantics and created a preliminary semantics for a subset of \gls{MTASK}.
-Future research into extending the formal semantics of \gls{MTASK} is useful to give more guarantees on \gls{MTASK} programs.
-
-\subsection{\texorpdfstring{\Glsxtrlong{TOP}}{Task-oriented programming}}
-In order to keep the resource constraints low, the \gls{MTASK} language contains only a minimal set of simple task combinators.
-From these simple combinators, complex collaboration patterns can be described.
-The \gls{ITASK} language is designed exactly the opposite.
-From just a few super combinators, all other combinators are derived.
-However, this approach requires a very powerful host language in which task combinators can be defined in terms of the host language.
-It would be fruitful to investigate which workflows cannot be specified with the limited set of combinators available in \gls{MTASK}.
-Furthermore, it is unclear whether all derived combinators from \gls{ITASK} can be expressed in terms of \gls{MTASK} combinators.
-\Citet{van_der_aalst_workflow_2003} defines a benchmark set of workflow patterns.
-It would be interesting to see which patterns can be implemented with \gls{MTASK}, and what additional combinators would be needed.
-Moreover, editors are a crucial part of \gls{TOP}.
-In \gls{MTASK}, sensors can be seen as read-only shared editors that are updated by the system.
-It would be interesting to investigate how actual interactive editors would fit in \gls{MTASK}.
-For example, many smartwatches contain touch sensitive screens that could be used to interact with the user in this way.
-
-\Glspl{SDS} in \gls{ITASK} have a rich set of combinators to transform and combine the \glspl{SDS} into new \gls{SDS}.
-In \gls{MTASK}, \glspl{SDS} are just typed global variables that may or may not proxy an \gls{ITASK} \gls{SDS}.
-It would be interesting to port the \gls{SDS} combinators to \gls{MTASK} as well, allowing them to be transformed and combined also.
-
-\subsection{Usability}
-The promise of \glspl{DSL} has often been that a domain expert could program with little technical knowledge of the host programming language.
-Some even propose that a \gls{DSL} is a \gls{UI} for domain experts to computation platforms \citep{management_association_evaluating_2014}.
-In practise this is not always the case due to crippling syntax and convoluted error messages.
-Recent approaches in interactive editors for programming language source code such as dynamic editors \citep{koopman_dynamic_2021} or typed tree editors such as Hazelnut \citep{omar_hazelnut_2017} could prove useful for supporting the \gls{DSL} programmer in using \gls{MTASK}.
-If the editor produces correct \gls{MTASK} code by construction, much of the problems could be avoided.
-In the same respect, as \gls{MTASK} is a tagless-final \gls{EDSL} and uses \gls{HOAS}, the error messages are complex and larded with host language features.
-Much research has gone into simplifying these error messages by translating them to the \gls{DSL} domain, see for example \citep{serrano_type_2018}.
-A future directions could be to apply the \gls{EDSL} error message techniques on \gls{MTASK} as well.
-
-The serialisation and deserialisation of data types is automated both on the server and the \gls{MTASK} device using generic programming.
-Using the structural information of the data type, the code responsible for the functionality is automatically generated.
-Peripherals are not yet fully integrated in such a way.
-When a peripheral is added, the programmer has to define the correct byte code, implement the instructions in the interpreter, add task tree nodes, and implement them in the rewrite system.
-It would be interesting to investigate whether this can be automated or centralised in a way.
-
-\subsection{Scheduling}
-The scheduling in \gls{MTASK} works quite well but it is not real time.
-There is a variant of \gls{FRP} called \gls{PFRP} that allows for real-time operation \citep{belwal_variable_2013}.
-Furthermore, an alternative to reducing the energy consumption by going to sleep is stepping down the processor frequency.
-So called \gls{DVFS} is a scheduling technique that slows down the processor in order to reach the goals as late as possible, reducing the power consumption.
-\Citet{belwal_variable_2013} use \gls{PFRP} with \gls{DVFS} to reduce the energy consumption.
-It would be interesting to investigate the possibilities for \gls{DVFS} in \gls{MTASK} and \gls{TOP} in general.
 
 \section{Related work}
 The novelties of the \gls{MTASK} system can be compared to existing systems in several categories.
@@ -144,12 +48,13 @@ It is a interpreted (\cref{sec:related_int}) \gls{TOP} (\cref{sec:related_top})
 \subsection{Interpretation}\label{sec:related_int}
 There are a myriad of interpreted programming languages available for some of the bigger more powerful edge devices.
 For example, for the popular ESP8266 chip there are ports of \gls{MICROPYTHON}, LUA, Basic, JavaScript and Lisp.
-All of these languages, except the Lisp dialect uLisp (see \cref{sec:related_fp}), are imperative and do not support multiasking out of the box.
+All of these languages, except the Lisp dialect uLisp (see \cref{sec:related_fp}), are imperative and do not support multitasking out of the box.
 They lay pretty hefty constraints on the memory and as a result do not work on smaller microcontrollers.
 Another interpretation solution for the tiniest devices is Firmata, a protocol for remotely controlling the microcontroller and using a server as the interpreter host \citep{steiner_firmata:_2009}.
 \citet{grebe_haskino:_2016} wrapped this in a remote monad for integration with \gls{HASKELL} that allowed imperative code to be interpreted on the microprocessors.
 Later this system was extended to support multithreading as well, stepping away from Firmata as the basis and using their own \gls{RTS} \citep{grebe_threading_2019}.
 It differs from our approach because continuation points need to be defined by hand there is no automatic safe data communication.
+
 \Citet{baccelli_reprogramming_2018} provide a single language \gls{IOT} system based on the RIOT \gls{OS} that allows runtime deployment of code snippets called containers.
 Both client and server are written in JavaScript.
 However, there is no integration between the client and the server other than that they are programmed from a single source.
@@ -186,13 +91,14 @@ A \gls{TOP} or \gls{FRP} based language benefits even more because the programme
 Regular preemptive multithreading is too memory intensive for smaller microcontrollers and therefore not suitable.
 Manual interleaving of imperative code can be automated to certain extents.
 Solutions often require an \gls{RTOS}, have a high memory requirement, do not support local variables, no thread-safe shared memory, no composition or no events as described in \cref{tbl:multithreadingcompare}.
-The table compares the solutions in the relevant categories with \gls{MTASK}.
+This table extends a comparison table with various solutions to multitasking to \gls{MTASK} in the relevant categories.
+\todo[inline]{Uitleg over de talen geven}
 
-\begin{table}[ht]
+\begin{table}
        \begin{threeparttable}
                \caption{%
                        An overview of imperative multithreading solutions for tiny computers with their relevant characteristics.
-                       The characteristics are: sequential execution, local variable support, parallel composition, deterministic execution, bounded execution and safe shared memory (adapted from \citet[p.\ 12]{santanna_safe_2013}).
+                       The characteristics are: sequential computing, local variable support, parallel composition, deterministic execution, bounded execution and safe shared memory (adapted from \citet[p.\ 12]{santanna_safe_2013}).
                }\label{tbl:multithreadingcompare}
 %              \begin{tabular}{lc>{\columncolor[gray]{0.95}}cc>{\columncolor[gray]{0.95}}cc>{\columncolor[gray]{0.95}}cc}
                \begingroup
@@ -225,14 +131,16 @@ The table compares the solutions in the relevant categories with \gls{MTASK}.
 \end{table}
 
 \subsection{\texorpdfstring{\Glsxtrlong{FRP}}{Functional reactive programming}}\label{sec:related_frp}
-The \gls{TOP} paradigm is often compared to \gls{FRP} and while they appear to be similar---they are both event driven---in fact they are very different.
+The \gls{TOP} paradigm is often compared to \gls{FRP} and they appear to be similar.
 \Gls{FRP} was introduced by \citet{elliott_functional_1997}.
 The paradigm strives to make modelling systems safer, more efficient, composable.
 The core concepts are behaviours and events.
 A behaviour is a value that varies over time.
 Events are happenings in the real world and can trigger behaviours.
 Events and behaviours may be combined using combinators.
-\Gls{TOP} allows for more complex collaboration patterns than \gls{FRP} \citep{wang_maintaining_2018}, and in consequence is unable to provide the strong guarantees on memory usage available in a restricted variant of \gls{FRP} such as arrowized \gls{FRP} \citep{nilsson_functional_2002}.
+Tasks in \gls{TOP} are also event driven and can be combined with combinators.
+\Gls{TOP} allows for more complex collaboration patterns than \gls{FRP} \citep{wang_maintaining_2018}.
+In consequence is unable to provide the strong guarantees on memory usage available in a restricted variant of \gls{FRP} such as arrowised \gls{FRP} \citep{nilsson_functional_2002}.
 
 The way \gls{FRP}, and for that matter \gls{TOP}, systems are programmed stays close to the design when the domain matches suits the paradigm.
 The \gls{IOT} domain seems to suit this style of programming very well in just the device layer but also for entire \gls{IOT} systems.
@@ -244,7 +152,7 @@ The emfrp language compiles a \gls{FRP} specification for a microcontroller to \
 The \gls{IO} part, the bodies of some functions, still need to be implemented.
 These \gls{IO} functions can then be used as signals and combined as in any \gls{FRP} language.
 Due to the compilation to \gls{C} it is possible to run emfrp programs on tiny computers.
-However, the tasks are not interpreted and there is no communication with a server.
+However, in contrast to in \gls{MTASK}, the tasks are not interpreted and there is no automated communication with a server.
 
 Other examples are CFRP \citep{suzuki_cfrp_2017}, XFRP \citep{10.1145/3281366.3281370}, Juniper \citep{helbling_juniper:_2016}, Hailstorm \citep{sarkar_hailstorm_2020}, Haski \citep{valliappan_towards_2020}, arduino-copilot \citep{hess_arduino-copilot_2020}.
 
@@ -258,11 +166,114 @@ It is a non-distributed \gls{TOP} \gls{EDSL} hosted in \gls{HASKELL} designed fo
 They showed that applications tend to be able to cope well with interruptions and be more maintainable.
 However, the hardware requirements for running the standard \gls{HASKELL} system are high.
 
+\section{Future work}
+There are many ways of extending the research on the \gls{MTASK} system that also concerns \gls{TOP} for resource constrained devices in general.
+Some obvious routes is to add features, support more platforms, 
+
+\subsection{Security}
+\Gls{IOT} has reached the news many times regarding security and it is a big concern \citep{alhirabi_security_2021}.
+The fact that the devices are embedded in the fabric, are hard to reach and thus to update, and can only run limited cryptographic algorithms due to their constrained resources makes security difficult.
+The security of \gls{MTASK} and the used protocols are deliberately overlooked at the moment
+The \gls{MTASK} language and \gls{RTS} are modular.
+For example, the communication channels are communication method agnostic and operate through a simple duplex channel interface.
+It should therefore be fairly easy to apply standard security measures to them by replacing communication methods and applying off-the-shelve authentication and encryption to the protocol.
+\Citet{de_boer_secure_2020} did preliminary research on securing the communication channels, which proved to be possible without many changes in the protocol.
+Nonetheless, this deserves much more attention.
+The future and related work for the security of \gls{MTASK} and tierless systems is more thoroughly presented in \cref{ssec_t4t:security}.
+
+\subsection{Advanced edge devices techniques}
+Edge devices may produce a lot of data and it is not always effective to send this data to the server for processing.
+Leaving the produced data and computations on the edge device is called \emph{edge computing} \citep{shi_edge_2016}.
+The \gls{MTASK} exhibits many properties of edge computing because it is possible to run entire workflows on the device.
+However, it is interesting to see how far this can be extended.
+The \gls{MTASK} language is a high-level \gls{DSL}, so it is obvious to introduce abstractions for edge computations.
+For example, add \gls{TOP} support for machine learning on the edge device using TinyML \citep{sanchez-iborra_tinyml-enabled_2020}.
+
+Another recent advance in \gls{IOT} programming is battery-less or even battery-free computing.
+Instead of equipping the edge device with a battery, a capacitor is used in conjunction with some energy harvesting systems such as a solar panel.
+With the use of intermittent computing, resuming the computation after a, possibly unexpected, power loss, operation can still be achieved \citep{hester_batteries_2019}.
+After a reset, the program state is resumed from a checkpoint that was stored in some non-volatile memory.
+Many intermittent computing solutions rely on annotations from the programmer to divide the program into atomic blocks, sometimes called \emph{tasks} as well.
+These blocks are marked as such because in the case of an reset of the system, the work must be done again.
+Examples of such blocks are \gls{I2C} transmissions or calculations that rely on recent sensor data.
+In \gls{MTASK}, all work expressed by tasks is already split up in atomic pieces of work, i.e.\ the work is a side effect of rewriting.
+Furthermore, creating checkpoints should be fairly straightforward as \gls{MTASK} tasks do not rely on any global state---all information required to execute a task is stored in the task tree.
+It is interesting to see what \gls{TOP} abstraction could be useful for intermittent computing and what solutions are required to make this work.
+
+Mesh networks allow for communication not only to-and-fro the device and server but also between devices.
+The \gls{ITASK} system already contains primitives for distributed operation.
+For example, it is possible to run tasks or share data with \glspl{SDS} on a different machine.
+It is interesting to investigate how this networking technique can be utilised in \gls{MTASK}.
+
+Finally, \glspl{FPGA} have been becoming cheaper and faster recently, allowing for purely functional code to be translated to \glspl{FPGA} code efficiently \citep{baaij_digital_2015}.
+It would be interesting to see how and whether (parts of) \gls{TOP} programs or the functionality of the \gls{MTASK} \gls{OS} could be translated to \gls{FPGA} specifications.
+
+\subsection{Formal semantics}
+Semantics allow reasoning about the language and programs in order do (symbolic) simulation, termination checking, task equivalence, or otherwise.
+For \gls{ITASK} there have been two attempts to formally specify the language.
+First \citet{koopman_executable_2011} defined a semantics used for property based testing based on a minimal version of \gls{ITASK}.
+Then \citet{plasmeijer_task-oriented_2012} formalised \gls{ITASK} by providing an executable semantics for the language.
+Both semantics are not suitable for formal reasoning due to the complexity.
+Later, \citet{steenvoorden_tophat_2019} created \gls{TOPHAT}, a \gls{TOP} language with a complete formal specification with similar features to \gls{MTASK} \citep{steenvoorden_tophat_2019}.
+\Citet{antonova_mtask_2022} compared parts of \gls{MTASK} to the semantics of \gls{TOPHAT} semantics and created a preliminary semantics for a subset of \gls{MTASK}.
+Future research into extending the formal semantics of \gls{MTASK} is useful to give more guarantees on \gls{MTASK} programs.
+
+\subsection{\texorpdfstring{\Glsxtrlong{TOP}}{Task-oriented programming}}
+In order to keep the resource constraints low, the \gls{MTASK} language contains only a minimal set of simple task combinators.
+From these simple combinators, complex collaboration patterns can be described.
+The \gls{ITASK} language is designed exactly the opposite.
+From just a few super combinators, all other combinators are derived.
+However, this approach requires a very powerful host language in which task combinators can be defined in terms of the host language.
+It could be fruitful to investigate which workflows cannot be specified with the limited set of combinators available in \gls{MTASK}.
+Furthermore, it is unclear whether all derived combinators from \gls{ITASK} can be expressed in terms of \gls{MTASK} combinators.
+\Citet{van_der_aalst_workflow_2003} defines a benchmark set of workflow patterns.
+It is interesting to see which patterns can be implemented with \gls{MTASK}, and what additional combinators are needed.
+Moreover, editors are a crucial part of \gls{TOP}.
+In \gls{MTASK}, sensors can be seen as read-only shared editors that are updated by the system.
+It is interesting to investigate how actual interactive editors would fit in \gls{MTASK}.
+For example, many smartwatches contain touch sensitive screens that could be used to interact with the user in this way.
+Alternatively, sufficiently powerful edge devices can probably run simple web interfaces as well.
+
+\Glspl{SDS} in \gls{ITASK} have a rich set of combinators to transform and combine the \glspl{SDS} into new \gls{SDS}.
+In \gls{MTASK}, \glspl{SDS} are typed global variables that may or may not proxy an \gls{ITASK} \gls{SDS}.
+It could be interesting to port the \gls{SDS} combinators to \gls{MTASK} as well, allowing them to be transformed and combined also.
+
+\subsection{Usability}
+The promise of \glspl{DSL} has often been that a domain expert could program with little technical knowledge of the host programming language.
+Some even propose that a \gls{DSL} is a \gls{UI} for domain experts to computation platforms \citep{management_association_evaluating_2014}.
+In practise this is not always the case due to crippling syntax and convoluted error messages.
+Recent approaches in interactive editors for programming language source code such as dynamic editors \citep{koopman_dynamic_2021} or typed tree editors such as Hazelnut \citep{omar_hazelnut_2017} could prove useful for supporting the \gls{DSL} programmer in using \gls{MTASK}.
+If the editor produces correct \gls{MTASK} code by construction, much of the problems could be avoided.
+In the same respect, as \gls{MTASK} is a tagless-final \gls{EDSL} and uses \gls{HOAS}, the error messages are complex and larded with host language features.
+Much research has gone into simplifying these error messages by translating them to the \gls{DSL} domain, see for example \citep{serrano_type_2018}.
+De Roos briefly investigated these methods in their research internship.
+A future directions could be to extend these findings and apply more \gls{EDSL} error message techniques on \gls{MTASK} as well.
+
+The serialisation and deserialisation of data types is automated both on the server and the \gls{MTASK} device using generic programming.
+Using the structural information of the data type, the code responsible for the functionality is automatically generated.
+Peripherals are not yet fully integrated in such a way.
+When a peripheral is added, the programmer has to define the correct byte code, implement the instructions in the interpreter, add task tree nodes, and implement them in the rewrite system.
+It would be interesting to investigate whether this can be automated or centralised in a way.
+
+More elaborate features in the type systems of modern functional programming languages allow for more type safety.
+The \gls{MTASK} language relies a lot on these features such as (multi-parameter) type classes and existential data types with class constraints.
+However, it should be possible to make abstractions over more stuff to make it safer.
+For example, the pin mode could be made a type parameter of the \gls{GPIO} pins, or interrupt handling could be made safer by incorporating the capabilities of the devices.
+
+\subsection{Scheduling}
+The scheduling in \gls{MTASK} works quite well but it is not real time.
+There is a variant of \gls{FRP} called \gls{PFRP} that allows for real-time operation \citep{belwal_variable_2013}.
+Furthermore, an alternative to reducing the energy consumption by going to sleep is stepping down the processor frequency.
+So called \gls{DVFS} is a scheduling technique that slows down the processor in order to reach the goals as late as possible, reducing the power consumption.
+\Citet{belwal_variable_2013} use \gls{PFRP} with \gls{DVFS} to reduce the energy consumption.
+It is interesting to investigate the possibilities for \gls{DVFS} in \gls{MTASK} and \gls{TOP} in general.
+
 \section{History of \texorpdfstring{\gls{MTASK}}{mTask}}
 The development of \gls{MTASK} or its predecessors has been going on for almost seven years now though it really set off during my master's thesis.
+Many colleagues and students have worked on aspects of the \gls{MTASK} system in collaborations, internships and Bachelor and Master's theses.
 This section provides an exhaustive overview of the work on \gls{MTASK} and its predecessors.
 
-\subsection{Generating \texorpdfstring{\ccpp{}}{\ccpp{}} code}
+\subsection{Generating \ccpp{} code}
 A first throw at a class-based shallowly \gls{EDSL} for microcontrollers was made by \citet{plasmeijer_shallow_2016}.
 The language was called \gls{ARDSL} and offered a type safe interface to \gls{ARDUINO} \gls{CPP} dialect.
 A \gls{CPP} code generation backend was available together with an \gls{ITASK} simulation backend.
@@ -290,7 +301,7 @@ In 2019, the \gls{CEFP}\slash\gls{3COWS} summer school in Budapest, Hungary host
 \subsection{\texorpdfstring{\Glsxtrlong{TOP}}{Task-oriented programming}}
 In 2022, the SusTrainable summer school in Rijeka, Croatia hosted a course on developing greener \gls{IOT} applications using \gls{MTASK} as well \citep{lubbers_green_2022}.
 Several students worked on extending \gls{MTASK} with many useful features:
-\Citet{van_der_veen_mutable_2020} did preliminary work on a green computing analysis, built a simulator, and explored the possibilities for adding bounded datatypes; \citet{de_boer_secure_2020} investigated the possibilities for secure communication channels; \citeauthor{crooijmans_reducing_2021} \citeyearpar{crooijmans_reducing_2021,crooijmans_reducing_2022} added abstractions for low-power operation to \gls{MTASK} such as hardware interrupts and power efficient scheduling; and \citet{antonova_mtask_2022} defined a preliminary formal semantics for a subset of \gls{MTASK}.
+\Citet{van_der_veen_mutable_2020} did preliminary work on a green computing analysis, built a simulator, and explored the possibilities for adding bounded datatypes; de Roos explored beautifying error messages; \citet{de_boer_secure_2020} investigated the possibilities for secure communication channels; \citeauthor{crooijmans_reducing_2021} \citeyearpar{crooijmans_reducing_2021,crooijmans_reducing_2022} added abstractions for low-power operation to \gls{MTASK} such as hardware interrupts and power efficient scheduling; and \citet{antonova_mtask_2022} defined a preliminary formal semantics for a subset of \gls{MTASK}.
 In 2023, the SusTrainable summer school in Coimbra, Portugal will host a course on \gls{MTASK} as well.
 
 \subsection{\texorpdfstring{\gls{MTASK}}{mTask} in practise}