QRscript: Embedding a Programming Language in QR codes to support Decision and Management

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Scanzio, Stefano, Cena, Gianluca, Valenzano, Adriano
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909163144085504
author Scanzio, Stefano
Cena, Gianluca
Valenzano, Adriano
author_facet Scanzio, Stefano
Cena, Gianluca
Valenzano, Adriano
contents Embedding a programming language in a QR code is a new and extremely promising opportunity, as it makes devices and objects smarter without necessarily requiring an Internet connection. In this paper, all the steps needed to translate a program written in a high-level programming language to its binary representation encoded in a QR code, and the opposite process that, starting from the QR code, executes it by means of a virtual machine, have been carefully detailed. The proposed programming language was named QRscript, and can be easily extended so as to integrate new features. One of the main design goals was to produce a very compact target binary code. In particular, in this work we propose a specific sub-language (a dialect) that is aimed at encoding decision trees. Besides industrial scenarios, this is useful in many other application fields. The reported example, related to the configuration of an industrial networked device, highlights the potential of the proposed technology, and permits to better understand all the translation steps.
format Preprint
id arxiv_https___arxiv_org_abs_2404_05073
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle QRscript: Embedding a Programming Language in QR codes to support Decision and Management
Scanzio, Stefano
Cena, Gianluca
Valenzano, Adriano
Networking and Internet Architecture
Computation and Language
Embedding a programming language in a QR code is a new and extremely promising opportunity, as it makes devices and objects smarter without necessarily requiring an Internet connection. In this paper, all the steps needed to translate a program written in a high-level programming language to its binary representation encoded in a QR code, and the opposite process that, starting from the QR code, executes it by means of a virtual machine, have been carefully detailed. The proposed programming language was named QRscript, and can be easily extended so as to integrate new features. One of the main design goals was to produce a very compact target binary code. In particular, in this work we propose a specific sub-language (a dialect) that is aimed at encoding decision trees. Besides industrial scenarios, this is useful in many other application fields. The reported example, related to the configuration of an industrial networked device, highlights the potential of the proposed technology, and permits to better understand all the translation steps.
title QRscript: Embedding a Programming Language in QR codes to support Decision and Management
topic Networking and Internet Architecture
Computation and Language
url https://arxiv.org/abs/2404.05073