regionaltantrums's Avatar

regionaltantrums

@regionaltantrums

A systems-software guy, who builds software for embedded or bare-metal systems, cryptographic hardware and has an interest in high-performance computing. Uses: rust for (pretty much) everything .. ๐Ÿฆ€

21
Followers
7
Following
38
Posts
07.12.2024
Joined
Posts Following

Latest posts by regionaltantrums @regionaltantrums

#rustlang #gpu #spirv #compiler #rustgpu #programming #opensource

15.06.2025 13:06 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

@rust-lang.org @vulkan.org @rusttrending.bsky.social

15.06.2025 13:06 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Can we get pure Rust running on GPUs? Mapping Rust to SPIR-V
Can we get pure Rust running on GPUs? Mapping Rust to SPIR-V YouTube video by regionaltantrums

โ€ข ๐Ÿงฉ How simple Rust shaders map to SPIR-V ops
โ€ข ๐Ÿ”Ž What storage classes, decorations & types mean in SPIR-V
โ€ข ๐Ÿงฌ A tour of the rust-gpu source โ€” how it handles types & functions
โ€ข ๐Ÿง  Closing thoughts on optimizations and the SPIR-T effort

youtu.be/BWWQoVHSByQ?...

15.06.2025 13:04 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

๐Ÿš€ Part 2 is here! โ€“ Can we get pure Rust running on GPUs?

Picking up from where we left off, this stream dives deeper into how Rust gets compiled down to SPIR-V โ€” and what the rust-gpu backend is really doing under the hood ๐Ÿงต๐Ÿฆ€โš™๏ธ

๐Ÿง  Whatโ€™s Inside:

15.06.2025 13:03 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

@rusttrending.bsky.social @compiler.news

28.03.2025 04:53 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Rust(ing) the Future of Compilers: Pliron as the MLIR Alternative (No C/C++) โ€“ 1
Rust(ing) the Future of Compilers: Pliron as the MLIR Alternative (No C/C++) โ€“ 1 YouTube video by regionaltantrums

If you havenโ€™t watched Part 1, check that out first for the foundation - youtu.be/rRgYGBAhKQ0

Curious about where Rust in compiler engineering is headed? Letโ€™s discuss! ๐Ÿ’ฌ

28.03.2025 04:51 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Rust(ing) the Future of Compilers: Implementing a Custom IR in Pliron (Cranelift to Pliron-CLIF) โ€“ 2
Rust(ing) the Future of Compilers: Implementing a Custom IR in Pliron (Cranelift to Pliron-CLIF) โ€“ 2 YouTube video by regionaltantrums

3/3

Pliron is shaping up to be a powerful, all-Rust alternative to MLIR and could play a key role in the future of ๐—ต๐—ฒ๐˜๐—ฒ๐—ฟ๐—ผ๐—ด๐—ฒ๐—ป๐—ฒ๐—ผ๐˜‚๐˜€ ๐—ต๐—ฎ๐—ฟ๐—ฑ๐˜„๐—ฎ๐—ฟ๐—ฒ, ๐—š๐—ฃ๐—จ, ๐—ฎ๐—ป๐—ฑ ๐—”๐—œ ๐—ฐ๐—ผ๐—บ๐—ฝ๐—ถ๐—น๐—ฒ๐—ฟ๐˜€.

youtu.be/d__XhSbFNCM

28.03.2025 04:50 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

2/3

๐—ช๐—ต๐—ฎ๐˜โ€™๐˜€ ๐—œ๐—ป๐˜€๐—ถ๐—ฑ๐—ฒ?
๐Ÿ› ๏ธ Defining a custom IR dialect in Pliron
๐Ÿ’ก Plironโ€™s interfaces vs. Type-State Programming
โœ… Op verification, IR parsing, and printing
๐Ÿ“œ Cranelift IR โ†’ Pliron IR: Step-by-step walkthrough

28.03.2025 04:50 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

1/3

๐Ÿš€ ๐—ก๐—ฒ๐˜„ ๐—ฉ๐—ถ๐—ฑ๐—ฒ๐—ผ ๐——๐—ฟ๐—ผ๐—ฝ! ๐Ÿš€

In Part 1, we explored ๐—ฃ๐—น๐—ถ๐—ฟ๐—ผ๐—ป, an all-Rust, MLIR-inspired compiler framework.

Now, in Part 2, letโ€™s get hands-on and implement a custom dialect, using Cranelift IR as an example!

28.03.2025 04:49 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

#apple #metal #nvidia @vulkan.org @rusttrending.bsky.social @theembeddedrust.bsky.social

11.02.2025 04:30 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Talking to your GPU with the Vulkan API and Rust: (Ep 3)
Talking to your GPU with the Vulkan API and Rust: (Ep 3) YouTube video by regionaltantrums

This episode has quite a few insights into GPU debugging, profiling, and performance tuningโ€”all essential skills for graphics and compute programmers.

youtu.be/2rWaAmhnkYw

11.02.2025 04:28 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

โšก ๐‚๐”๐ƒ๐€ ๐ฏ๐ฌ. ๐•๐ฎ๐ฅ๐ค๐š๐ง โ€“ ๐Ÿ’ญ Key differences in philosophy, flexibility, and performance.
๐Ÿ ๐ƒ๐ž๐›๐ฎ๐ ๐ ๐ข๐ง๐  ๐•๐ฎ๐ฅ๐ค๐š๐ง ๐จ๐ง ๐ฆ๐š๐œ๐Ž๐’ โ€“ ๐Ÿ” Using MoltenVK to bypass Appleโ€™s lack of native Vulkan support.
๐Ÿ“Š ๐†๐๐” ๐ฉ๐ซ๐จ๐Ÿ๐ข๐ฅ๐ข๐ง๐  โ€“ ๐Ÿง Inspect .gputrace files to analyze workloads.
๐ŸŽฏ ๐„๐ฑ๐ž๐œ๐ฎ๐ญ๐ข๐ง๐  ๐œ๐จ๐ฆ๐ฉ๐ฎ๐ญ๐ž ๐œ๐จ๐ฆ๐ฆ๐š๐ง๐๐ฌ โ€“ ๐Ÿš€ How GPUs process work.

11.02.2025 04:27 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

If you caught Episode 2, we talked about how GPUs process commands and how Vulkan structures communication between the CPU and GPU. Now, weโ€™re shifting gears to:

11.02.2025 04:25 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

1/4

๐ŸŽฅ ๐Ÿ”ด ๐„๐ฉ๐ข๐ฌ๐จ๐๐ž 3 ๐ข๐ฌ ๐ก๐ž๐ซ๐ž!

Building on our journey into Vulkan and GPU programming, this episode takes a deeper look at how Vulkan compares to CUDA (and by extension, ROCm and HIP) and explores GPU debugging workflows across platforms.

11.02.2025 04:24 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
Vulkan Ecosystem and SDK Survey - February 2025 Take this survey powered by surveymonkey.com. Create your own surveys for free.

Help shape the future of the Vulkan developer ecosystem! The 2025 LunarG Ecosystem Survey is now live. A few minutes of your time will help us chart the course and set priorities for the upcoming year. Survey closes on February 19, 2025.

www.surveymonkey.com/r/89LW2R8

04.02.2025 17:29 ๐Ÿ‘ 8 ๐Ÿ” 4 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Rust(ing) the Future of Compilers: Pliron as the MLIR Alternative (No C/C++)
Rust(ing) the Future of Compilers: Pliron as the MLIR Alternative (No C/C++) YouTube video by regionaltantrums

3/3

Pliron is still early-stage, but itโ€™s a bold step toward pure Rust compiler frameworks. Check it out to see how Rust + Pliron can redefine compiler engineering!

@rusttrending.bsky.social @theembeddedrust.bsky.social @foundation.rust-lang.org.web.brid.gy

youtu.be/rRgYGBAhKQ0

04.02.2025 03:09 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

2/3

Whatโ€™s Inside?
- MLIRโ€™s role in modern compilers
- How Pliron brings MLIRโ€™s concepts to Rustโ€”no C/C++ required
- A brief hands-on look at Plironโ€™s core data structures, ops, types, and interfaces
- Why Rust macros make Pliron a very interesting framework.

04.02.2025 03:06 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

1/3

๐Ÿš€ ๐๐ž๐ฐ ๐•๐ข๐๐ž๐จ ๐ƒ๐ซ๐จ๐ฉ! ๐Ÿš€

This time, weโ€™re diving into ๐๐ฅ๐ข๐ซ๐จ๐ง, an all @rustlang
extensible compiler framework inspired by MLIR! If youโ€™re into compilers, Rust, GPU/AI/HPC, or hardware acceleration, this oneโ€™s for you.

04.02.2025 03:06 ๐Ÿ‘ 6 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

@vulkan.org @rusttrending.bsky.social

28.01.2025 07:21 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Talking to your GPU with the Vulkan API and Rust: (Ep 2)
Talking to your GPU with the Vulkan API and Rust: (Ep 2) YouTube video by regionaltantrums

This episode peels back the layers to show how CPUs command and control GPUs behind the scenes. If youโ€™re curious about GPU programming or love exploring the inner workings of modern hardware, this one is for you!

#rust #gpu #programming #vulkan #compute #hardware #performance

youtu.be/m8XDoYkSJOU

28.01.2025 06:53 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Contd

- ๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐ช๐ฎ๐ž๐ฎ๐ž๐ฌ: How GPUs manage tasks with ring buffers.
- ๐ƒ๐ž๐ฆ๐จ: Sending a transfer command to fill a GPU buffer and debug output.

28.01.2025 06:52 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Hereโ€™s a tiny preview:

- ๐Š๐ž๐ฒ ๐œ๐จ๐ฆ๐ฉ๐จ๐ง๐ž๐ง๐ญ๐ฌ: Application, Vulkan runtime, drivers, command queue.
- ๐†๐๐” ๐ฉ๐ซ๐จ๐œ๐ž๐ฌ๐ฌ๐ž๐ฌ: Command processing, decoding, dispatching, scheduling.
- ๐‚๐๐”-๐†๐๐” ๐ฌ๐ฒ๐ง๐œ: Efficient communication and coordination.

28.01.2025 06:51 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

If you missed Episode 1, I introduced Vulkanโ€™s modular architecture, walked through setting up Ash (Rust bindings for Vulkanโ€™s C API), and demonstrated how to check Vulkanโ€™s terminal output.

In Episode 2, we explore the software pipeline for GPU communication.

28.01.2025 06:51 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

1/4

๐ŸŽฅ ๐Ÿ”ด ๐•๐ข๐๐ž๐จ ๐ƒ๐ซ๐จ๐ฉ: A new year, a new series

In Part 2 of my new series on GPU programming with Vulkan and Rust, we dive deeper into how applications communicate with GPUs and why Vulkan shines as a modern GPU API.

28.01.2025 06:50 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Talking to Your GPU with the Vulkan API and Rust (Ep 1)
Talking to Your GPU with the Vulkan API and Rust (Ep 1) YouTube video by regionaltantrums

3/3

In Episode 1, Iโ€™ll walk you through Vulkanโ€™s modular architecture, show you how to set up Ash with some code, and wrap up with a demo on checking Vulkanโ€™s terminal output.

@vulkan.org #rust #gpu #programming #api

youtu.be/TCoFGO2Lb4g

20.01.2025 09:01 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

2/3

Weโ€™ll dive into why GPU programming is about so much more than just writing shader code (i.e., code that runs on the GPU), explore what Vulkan is, how it stands out from other GPU APIs, and introduce Ash, the Rust bindings for Vulkanโ€™s C API.

20.01.2025 09:00 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

๐ŸŽฅ ๐Ÿ”ด ๐•๐ข๐๐ž๐จ ๐ƒ๐ซ๐จ๐ฉ: A new year, a new series

Iโ€™m kicking off a brand-new series on GPU programming with Vulkan and Rustโ€”this is gonna be fun!

20.01.2025 08:59 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

Exposing pointer provenance APIs can address many of the concerns associated with this process, making it safer and more predictable.

09.01.2025 17:42 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

In the context of embedded systems, programming MCUs often requires (unsafely) casting integers to pointers and back, especially as part of the initial boot sequence.

09.01.2025 17:42 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
Announcing Rust 1.84.0 | Rust Blog Empowering everyone to build reliable and efficient software.

Rust 1.84 is out!

This release includes a feature Iโ€™ve personally been waiting for:

- Strict Pointer Provenance APIs

blog.rust-lang.org/2025/01/09/R...

09.01.2025 17:41 ๐Ÿ‘ 4 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0