EUVIMEDEUVIMED entdecken
Crossref

Adapting the MVVM pattern to C++ frontends and Agda-based backends

Viktor Csimma

Journal of Functional Programming · 13.08.2026 · Volume 36 (Tools and Applications)

DOI: 10.46298/jfp.17822 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Functional Programming, online erschienen am 13.08.2026. Verfasst von Viktor Csimma.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Using agda2hs and ad-hoc Haskell FFI bindings, writing Qt applications in C++ with Agda- or Haskell-based backends (possibly including correctness proofs) is already possible. However, there was no repeatable methodology to do so, nor to use arbitrary Haskell built-in libraries in Agda code. We present a well-documented, general methodology to address this, applying the ideas of the Model-View-ViewModel architecture to models implemented in functional languages. This is augmented by a software development kit providing easy installation and automated compilation. For obstacles arising, we provide solutions and ideas that are novel contributions by themselves. We describe and compare solutions for using arbitrary Haskell built-ins in Agda code, highlighting their advantages and disadvantages. Also, for user interruption, we present a new Haskell future design that, to the best of our knowledge, is the first to provide for arbitrary interruption and the first to provide for interruption via direct FFI calls from C and C++. Finally, we prove with benchmarks that the agda2hs compiler at the base of our methodology is viable when compared to other solutions, specifically to the OCaml extraction feature of Rocq and the default MAlonzo backend of Agda.

Zitieren

APA

Csimma, V. (2026). Adapting the MVVM pattern to C++ frontends and Agda-based backends. Journal of Functional Programming, Volume 36(Tools and Applications). https://doi.org/10.46298/jfp.17822

Vancouver

Csimma V. Adapting the MVVM pattern to C++ frontends and Agda-based backends. Journal of Functional Programming. 2026;Volume 36(Tools and Applications). doi:10.46298/jfp.17822

BibTeX
@article{Csimma2026,
  author = {Csimma, Viktor},
  title = {Adapting the MVVM pattern to C++ frontends and Agda-based backends},
  journal = {Journal of Functional Programming},
  year = {2026},
  volume = {Volume 36},
  number = {Tools and Applications},
  doi = {10.46298/jfp.17822}
}
Kostenlos starten →