Please use this identifier to cite or link to this item:
http://hdl.handle.net/10071/35697| Author(s): | Santos, A. L. Caniço, A. B. |
| Date: | 2025 |
| Title: | Modeling structured programming with Strudel: A simulation runtime for programming education tools |
| Journal title: | Software and Systems Modeling |
| Volume: | N/A |
| Reference: | Santos, A. L., & Caniço, A. B. (2025). Modeling structured programming with Strudel: A simulation runtime for programming education tools. Software and Systems Modeling. https://doi.org/10.1007/s10270-025-01337-7 |
| ISSN: | 1619-1366 |
| DOI (Digital Object Identifier): | 10.1007/s10270-025-01337-7 |
| Keywords: | Programming education Modeling Simulation Meta-programming |
| Abstract: | Structured programming embraces fundamental concepts represented in most general-purpose languages: sequence, selection, repetition, assignment, procedures, and recursion. We present Strudel, an executable modeling language for structured programming designed with the needs of educational tools in mind. Instead of relying on generated source-level metadata (language-specific, as in debuggers) or program instrumentation (that transforms executables or ASTs), models of programs are retained at runtime. A model drives a simulation of program execution with direct access to its elements without abstracting details—which are useful for fine-grained error reporting and inspection. We materialized the approach in a meta-programming library where a stack-based execution of programs is simulated in an embeddable virtual machine. By programming against the virtual machine API and the meta-model, third parties can observe a wide range of execution events in detail, such as errors, reachability, state changes, loop iterations, call stack, or memory allocation, to synthesize information about program properties. We developed an educational platform for Java that translates code into Strudel models and uses Strudel’s virtual machine as the runtime environment. The platform is in production as courseware, standing as a proof of viability, and features inspection of program traces to assist experimentation and debugging (probes), white-box tests for verifying algorithmic properties, and generation of questions about code to assess comprehension. |
| Peerreviewed: | yes |
| Access type: | Embargoed Access |
| Appears in Collections: | ISTAR-RI - Artigos em revistas científicas internacionais com arbitragem científica |
Files in This Item:
| File | Size | Format | |
|---|---|---|---|
| article_113925.pdf Restricted Access | 705,44 kB | Adobe PDF | View/Open Request a copy |
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.












