Sign in

Fractal Fir

@fractalfir.bsky.social
169 followers 45 following 24 posts

A young Open-Source developers, with a passion for compilers, procedural generation, and Rust. Currently working on compiling Rust to C(and .NET): github.com/FractalFir/rustc_codegen…

PostsRepliesMedia
Fractal Fir @fractalfir.bsky.social · 02/07/2026
I did a thing: github.com/FractalFir/c... (This is the entire rust compiler, converted to C - yes, it is functional).
github.com
GitHub - FractalFir/crustc: Entirety of `rustc`, translated to C.
Entirety of `rustc`, translated to C. . Contribute to FractalFir/crustc development by creating an account on GitHub.
87118
Fractal Fir @fractalfir.bsky.social · 02/07/2026
I love rust: #rust #rustlang
rustc +nightly-2026-06-16 --version
rustc 1.98.0-nightly (01dfd7924 2026-06-15)
130
Fractal Fir @fractalfir.bsky.social · 12/06/2026
My Rust Week talk recording is finally available. Very excited to share it with the world :3! www.youtube.com/watch?v=XnU9... Trying to fit all the GPU cursed-ness into 15 minutes was a bit tight, but I made it WORK(I think. I hope. I pray).
youtube.com
Why Rust's Semantics Don't Fit GPUs (Yet) (Michał Kostrubiec at RustWeek)
YouTube video by RustNL
0112
Fractal Fir @fractalfir.bsky.social · 31/03/2026
You know it is going to be a shit day when `cargo` hangs....
100
Reposted by Fractal Fir
vectorware.com @vectorware.com · 24/03/2026
We are excited to announce that we can successfully use Rust's std::thread on the GPU. This has never been done before. www.vectorware.com/blog/threads... Supporting Rust's std::thread enables existing Rust code to work on the GPU and makes GPU programming more ergonomic.
vectorware.com
Rust threads on the GPU
GPU code can now use Rust's threads. We share the implementation approach and what this unlocks for GPU programming.
013726
Reposted by Fractal Fir
vectorware.com @vectorware.com · 20/01/2026
We are excited to announce that we can successfully use Rust's standard library from the GPU. This has never been done before. www.vectorware.com/blog/rust-st... Supporting Rust's standard library enables existing Rust code to work on the GPU and makes GPU programming feel normal.
vectorware.com
Rust's standard library on the GPU
GPU code can now use Rust's standard library. We share the implementation approach and what this unlocks for GPU programming.
424957
Fractal Fir @fractalfir.bsky.social · 29/08/2025
A cursed C fact of the day: there exists a C compiler out there, for which this assertion will pass: ``` assert(sizeof(float) == sizeof(double)); ``` The Small Device C treats `double` as float: "warning 93: type 'double' not supported assuming 'float'"
060
Fractal Fir @fractalfir.bsky.social · 28/07/2025
I have wrote yet another article about compiling Rust with GCC. fractalfir.github.io/generated_ht... I go over some neat news(running the Rust compiler on M68K CPUs), important topics(eg. how we test `cg_gcc`, or ABI compatiblity), and some fun triva about cursed proc-macros. Hope you enjoy it!
fractalfir.github.io
Testing the GCC-based Rust compiler(backend)
0114
Fractal Fir @fractalfir.bsky.social · 25/07/2025
@gankra.bsky.social Thanks to AI overview, I now know that github.com/Gankra/abi-c... sources it's coffee in a sustainable way from Ethiopia. Good to know that my favourite tools are made in an ethical way :)
An AI overview, mistaking the tool "abi-cafe" for a Finnish coffee shop. 

The message is in polish, and translates to:

ABI cafe is likely the name of a coffee shop that offers Ethiopian coffee sourced directly from farmers. The company in question, Abi Coffee, offers high-quality coffee sourced from four farmers in Ethiopia. The coffee is then roasted at their roastery in Kaarina, Finland. Abi Coffee emphasizes that their business is sustainable because they work directly with farmers, eliminating middlemen and ensuring they receive fair wages.
140
Reposted by Fractal Fir
imperio @imperioworld.bsky.social · 08/07/2025
I implemented the `int_format_into` feature into the Rust `core` library. It allows you to reuse a buffer when converting an integer into a string: ``` let mut buf = NumBuffer::new(); let string_repr = 12u32.format_into(&mut buf); let other_string_repr = 128u32.format_into(&mut buf); ``` 1/2
132
Fractal Fir @fractalfir.bsky.social · 06/07/2025
I have wrote an article about some of my work building the Rust compiler with GCC: fractalfir.github.io/generated_ht... I hope you enjoy :D
fractalfir.github.io
Building the Rust compiler with GCC
1165
Fractal Fir @fractalfir.bsky.social · 24/06/2025
Ah, computers never cease to amaze me. For some reason, my "g" key is not working... but it does if I *also* press shift. Meaning I can only type upper-case "G". Thankfully, if i press both caps-lock and shift, they cancel each other out. So, I can still type "g" using 3 keys. I guess it works..
020
Reposted by Fractal Fir
RustNL @rustnl.bsky.social · 12/06/2025
Healthy Data, Rusty Code: Epidemiology Meets Modern Systems Programming by Caroline Morton at RustWeek 2025! www.youtube.com/watch?v=gV55... #rustlang #RustWeek
youtube.com
Healthy Data, Rusty Code: Epidemiology Meets Modern Systems Programming - Caroline Morton
Epidemiology relies on codelists for health data, but managing them can be error-prone. This talk introduces codelist-tools: open-source Rust libraries with ...
041
Reposted by Fractal Fir
Raph Levien @raphlinus.bsky.social · 10/06/2025
My talk is in here: www.youtube.com/watch?v=_sv8... Enjoy!
youtube.com
Faster, easier 2D vector rendering - Raph Levien
YouTube video by RustNL
0163
Fractal Fir @fractalfir.bsky.social · 10/06/2025
My 2 Rust week talks are out now: youtu.be/4yTZ1PRJ6do?... youtu.be/T-ZUkwNsK-8?... Hope you enjoy them - if you have any questions / comments, feel free to ask! Link to the project the talks are about: github.com/FractalFir/r...
youtu.be
Corrosive C - Compiling Rust to C to target new platforms - Michał “FractalFir” Kostrubiec
YouTube video by RustNL
0113
Fractal Fir @fractalfir.bsky.social · 23/05/2025
The [GCC compiler backend](github.com/rust-lang/ru...) can now fully bootstrap(build) the Rust compiler! This is my Rust GSoC 2025 project, and you can learn more about my progress here: rust-lang.zulipchat.com#narrow/chann... If you have any questions, feel free to ask me!
A screenshot, showing the output of an `readelf` and `diff` command. The readelf command conforms that the Rust compiler was build with the GCC  compiler backend. The diff command shows that the stage 2 and 3 builds are identical, which proves the resulting compiler is working as expected.
0266
Reposted by Fractal Fir
Terts Diepraam @tertsdiepraam.bsky.social · 21/05/2025
Hey look! I've been working on a thing! It's a statically typed, JIT compiled, hot-reloadable, embedded scripting language. blog.nlnetlabs.nl/introducing-...
blog.nlnetlabs.nl
Introducing Roto: A Compiled Scripting Language for Rust
By Terts Diepraam We are working on an embedded scripting language for Rust. This language, called Roto, aims to be a simple yet fast and reliable scripting language for Rust applications. The nee...
0319
Reposted by Fractal Fir
jberanek.bsky.social @jberanek.bsky.social · 16/05/2025
See how Rust compiler error messages have evolved over time :) kobzol.github.io/rust/rustc/2...
kobzol.github.io
Evolution of Rust compiler errors
Blog about programming stuff.
094
Reposted by Fractal Fir
jberanek.bsky.social @jberanek.bsky.social · 23/04/2025
Wrote down some thoughts on how to interpret and use visibility in Rust. kobzol.github.io/rust/2025/04...
kobzol.github.io
Two ways of interpreting visibility in Rust
Last year, while I was browsing through Rust compiler pull requests, I noticed #126013, which added the unreachable_pub lint to several crates of the compiler. This piqued my interest, because I did n...
023
Fractal Fir @fractalfir.bsky.social · 20/04/2025
Have you ever wondered how panicking in Rust works? My newest article describes the ENTIRE panicking process in great detail! I hope you enjoy it, and have a great day :) fractalfir.github.io/generated_ht... #rust #rustlang #programing #cs
fractalfir.github.io
Implementation of Rust panics in the standard library
0102
Fractal Fir @fractalfir.bsky.social · 11/04/2025
I am giving a talk about compiling Rust to C at Rust Week in May. rustweek.org/talks/michal/ Excited to see all the amazing people there! In the meantime, if you want to know more about the progress I made in the last few months, I wrote an article about that :) fractalfir.github.io/generated_ht...
rustweek.org
Corrosive C - Compiling Rust to C to target new platforms - RustWeek 2025
RustWeek 2025, The Netherlands - May 13 - 17 2025
0112
Fractal Fir @fractalfir.bsky.social · 02/04/2025
In the spirit of April Fools, i decided to do something silly. I modified my Rust to C compiler to output Holy C. This allowed me to run a small iterator benchmark on Temple OS - meaning Rust is now one of the 2 languages running on that obscure system. Is this useful? No. Is it real? Yes.
A screen-shot from Temple OS, showcasing a small Rust program running. It prints "Calling fold `n` times", and n is increased tenfold on each line.
0104
Fractal Fir @fractalfir.bsky.social · 09/03/2025
I have been experimenting with realistic renders of 4D space, using ray marching(image attached below, read alt text for an explanation). Usually, visualisations of 4D space use projections or cross-sections of 4D objects. My render shows how 4D light would appear to your 3D eyes. #art #math
An image of two 4D hyperspheres in a 3D room, with an opening in the 4th dimension. 

The right hypersphere is offset in the 4th dimension, allowing the light to bounce into the 4th dimension. In the reflection, you can see a different part of the 4th dimension, with the opening in a wall, and blue tiles on the floor.

This image was rendered using ray marching, and real-world laws of phsysics, extrapolated to the 4th dimension. The image aims to be photoreal, and accurately describe what one would see if they looked at a 4d world.
050
Fractal Fir @fractalfir.bsky.social · 05/02/2025
I got code written in #rustlang running on a Game Boy :D. While it is not the most useful thing, it is a nice way of showing how compiling Rust to C can allow us to target some old hardware. rustc_codegen_clr(a Rust to C compiler) is still a bit from being fully usable, but it is getting there!
Rust code running on a GameBoy. The screen contains the message "Preparing to run fold *n* times", with the number of iterations starting at 1, increasing tenfold each time, and ending at 10000.
050