"This article will highlight the ways we are ensuring correctness in the #Wasmtime #WebAssembly runtime and in its compiler, #cranelift "

#wasm

https://bytecodealliance.org/articles/security-and-correctness-in-wasmtime

Security and Correctness in Wasmtime

The essence of software engineering is making trade-offs, and sometimesengineers even trade away security for other priorities. When it comes torunning untrusted code from unknown sources, however, exceptionally strongsecurity is simply ...

Bytecode Alliance
The acyclic e-graph: Cranelift's mid-end optimizer

A dramatic black-and-white view of a multi-story building under construction, with scaffolding, safety railings, and a crane lifting a structural element. The dark, overcast sky enhances the industrial tension and scale of the scene.
#ConstructionPhotography #BlackAndWhitePhoto #UrbanDevelopment #IndustrialAesthetics
#CraneLift #DocumentaryImage #ArchitectureInProgress #MonochromeMood
#StructuralEngineering #BuildingSite

A Function Inliner for Wasmtime and Cranelift, https://fitzgen.com/2025/11/19/inliner.html.

A great article about the new function inliner inside Cranelift. The article mentions a nice algorithm to partially keep parallelism during the compilation time for the inliner (that’s the most interesting part).

#compiler #cranelift #WebAssembly

A Function Inliner for Wasmtime and Cranelift

Note: I cross-posted this to the Bytecode Allianceblog.

Profiled my JIT Rust aarch64 emulator:

- Around 7-8% of time is spent executing translated guest code
- #cranelift codegen takes 45.7% of time
- its register allocator, regalloc, takes an additional 19%
- Basic runtime logic such as MMU virtual address translation takes only 2% (with TLB caching)

This results in taking almost 40 seconds to boot to Linux prompt. QEMU takes a few seconds.

Replacing the JIT is tempting...

#Rust #arm #arm64 #aarch64 #emulation #emulator #simulans

I'm making a #livecoding modular synth in Rust, scripted in Rhai and JIT-compiled with Cranelift!
Still missing state persistence across hot-reloads, and feedback loops, but it's already pretty fun to play with :)
#algorave #rust #rhai #cranelift
📅 In an absolutely riveting journey through the Go compiler's underbelly, one brave soul dares to wade through the treacherous swamps of *source code* to reveal that—surprise—documentation is apparently optional in 2024 🧐. Meanwhile, #LLVM and #Cranelift sip tea as they bask in their luxurious piles of clear, accessible #documentation 📜💁‍♂️.
https://vnmakarov.github.io/2024/09/24/register-allocation-in-the-go-compiler.html #GoCompiler #SourceCode #HackerNews #ngated
Register allocation in the Go compiler

As a maintainer of the GCC register allocator (RA), I naturally have a keen interest in the register allocators used in various industrial compilers. For some compilers, like LLVM and Cranelift, there is sufficient documentation, including papers and presentations, to gain a deep understanding of their register allocators (RAs).

Vladimir Makarov

Exception handling in the Rust compiler: a blog post by @bjorn3 on support for unwinding on panics in the Cranelift backend.
A walkthrough of the implementation: https://tweedegolf.nl/en/blog/157/exception-handling-in-rustc-codegen-cranelift

#rustlang #cranelift

Exception handling in rustc_codegen_cranelift - Blog - Tweede golf

Panics in Rust by default unwind to run Drop implementations for all values on the stack. Rust's stack unwinding is implemented using the same mechanism as C++ exceptions on most platforms. Recent ...

Roto is written in Rust, has Rust-style syntax, and plugs straight into Rust apps.

Terts will be showing how it works, how to use it, and why they built it in the first place. Catch him at #EuroRust25 ➡️ https://eurorust.eu/talks/roto-scripting-language/?utm_source=mastodon&utm_medium=social&utm_campaign=25-06-27-speaker-terts-diepraam

#RustLang #Cranelift #Scripting

🧵2/3

EuroRust 2025 – October 9 & 10, Paris & online

EuroRust is a 2 day conference for the European Rust community – October 9 & 10, 2025 – in Paris & online

EuroRust