Search arXiv⌕ Search

arXiv subjects

Aleksandr Shefer

Publications and source records attributed to Aleksandr Shefer.

2 recordsLinked to original sources

Evaluating Stack Switching in WebAssembly

Compiling control-flow abstractions like light-weight threads, async/await, and generators to WebAssembly typically requires whole-program transformations that complicate compilation and impose runtime and code-size costs. WasmFX extends WebAssembly with native stack switching based on effect handlers, providing a common foundation for these features. We evaluate WasmFX backends for C, Go, Kotlin, and OCaml and implementation trade-offs in the V8, Wasmtime, and Wizard engines. We compare performance against existing compilation strategies when using these engines. On artificial microbenchmarks involving tight context-switching loops, existing techniques sometimes outperform WasmFX. However, as the stack becomes deeper, WasmFX gains a substantial advantage over Asyncify, the transformation used by our C baseline to emulate stack switching. Even with substantial scope for further optimisation, current WasmFX implementations deliver competitive performance on macrobenchmarks without requiring whole-program transformations.

cs.PL↗

Can LLMs Enable Verification in Mainstream Programming?

Although formal methods are capable of producing reliable software, they have seen minimal adoption in everyday programming. Automatic code generation using large language models is becoming increasingly widespread, but it rarely considers producing strong correctness guarantees. In this study, we explore the ability of LLMs to produce verified code in three verification languages (Dafny, Nagini, and Verus). To do so, we use manually curated datasets derived from the state-ofthe-art Python benchmark, HumanEval. We also assess what types of information are sufficient to achieve good-quality results.

cs.SE↗