Metraipolis › archive › dc_4f0863079bd8

The Invisible Scheduler: Dragging a Sprite Can Change What a Scratch Program Does — arXiv:2609.36147

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.36147
License (as archived)
CC0-1.0
Archived
2026-10-07T17:58:57.791Z
SHA-256 of the archived text
f761ee5e1ffe5f3b534a07ec6d46b1a942cc9646e39e6a4f333612204428fb3a
Stable URL of this page
https://metraipolis.com/documento/dc_4f0863079bd8

How to cite

The Invisible Scheduler: Dragging a Sprite Can Change What a Scratch Program Does — arXiv:2609.36147 — arXiv (en), https://arxiv.org/abs/2609.36147 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_4f0863079bd8 (Metraipolis archive dc_4f0863079bd8, sha256 f761ee5e1ffe5f3b534a07ec6d46b1a942cc9646e39e6a4f333612204428fb3a)
BibTeX
@misc{dc4f0863079bd8,
  title = {The Invisible Scheduler: Dragging a Sprite Can Change What a Scratch Program Does — arXiv:2609.36147},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.36147},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_4f0863079bd8; sha256 f761ee5e1ffe5f3b534a07ec6d46b1a942cc9646e39e6a4f333612204428fb3a},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.36147. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Tens of millions of children program in Scratch, whose programs are concurrent: when the green flag is clicked, every sprite's scripts start together and share the project's state. Which script starts first is decided by the sprites' front-to-back stacking order, which no block reads. Dragging a sprite brings it to the front, and the order is saved with the project. Hence, a program can work on the author's screen and fail on the teacher's, with the same blocks. Our key observation is that, with the rest of the file fixed, rearranging the sprites that start scripts among their positions produces exactly the permutations of their initial stacking order. Under a fixed input and seed the unmodified virtual machine reproduces every one of them. StackSwap runs a project under these orders, all of them for up to five sprites, one per class of a conflict graph beyond, and a sample where neither is feasible, and compares the runs under four observation lenses. It returns a two-run witness naming an adjacent pair of sprites whose swap changes the outcome, with the resources they share as candidate causes; otherwise an exhaustive or graph-conditional robustness certificate, or an unresolved verdict. On 767 real programs from a course, an online judge, and a random public sample, 26.4% (course) and 18.2% (public) of those with a scheduling choice behave differently under some stacking order. Among the sensitive programs whose every order ran, the saved order's outcome recurs under a median 17% (course) and 50% (public) of the orders. Under scripted play, a predicate written from a stated requirement holds under one order and fails under another for 5 of 427 student submissions with a scheduling choice. For half of the sensitive programs the random stream is the racing pair's highest-priority shared resource. We close with recommendations for learners, graders, and the Scratch platform.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-30 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.36147 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T17:31:51.986Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-30?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).