Fractal Fir
fractalfir.bsky.social
Fractal Fir
@fractalfir.bsky.social
A young Open-Source developers, with a passion for compilers, procedural generation, and Rust.

Currently working on compiling Rust to C(and .NET):
https://github.com/FractalFir/rustc_codegen_clr
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'"
August 29, 2025 at 10:39 PM
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!
Testing the GCC-based Rust compiler(backend)
fractalfir.github.io
July 28, 2025 at 8:14 PM
@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 :)
July 25, 2025 at 12:01 AM
Reposted by Fractal Fir
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
July 8, 2025 at 9:35 AM
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
Building the Rust compiler with GCC
fractalfir.github.io
July 6, 2025 at 8:46 PM
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..
June 24, 2025 at 10:17 PM
Reposted by Fractal Fir
Healthy Data, Rusty Code: Epidemiology Meets Modern Systems Programming
by Caroline Morton at RustWeek 2025!
www.youtube.com/watch?v=gV55...

#rustlang #RustWeek
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 ...
www.youtube.com
June 12, 2025 at 9:30 AM
Reposted by Fractal Fir
My talk is in here: www.youtube.com/watch?v=_sv8...

Enjoy!
June 10, 2025 at 1:15 PM
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...
Corrosive C - Compiling Rust to C to target new platforms - Michał “FractalFir” Kostrubiec
YouTube video by RustNL
youtu.be
June 10, 2025 at 11:03 AM
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!
May 23, 2025 at 7:15 PM
Reposted by Fractal Fir
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-...
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...
blog.nlnetlabs.nl
May 21, 2025 at 10:44 AM
Reposted by Fractal Fir
See how Rust compiler error messages have evolved over time :) kobzol.github.io/rust/rustc/2...
Evolution of Rust compiler errors
Blog about programming stuff.
kobzol.github.io
May 16, 2025 at 9:14 PM
Reposted by Fractal Fir
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
Implementation of Rust panics in the standard library
fractalfir.github.io
April 20, 2025 at 10:20 AM
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...
Corrosive C - Compiling Rust to C to target new platforms - RustWeek 2025
RustWeek 2025, The Netherlands - May 13 - 17 2025
rustweek.org
April 11, 2025 at 8:57 PM
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.
April 1, 2025 at 11:04 PM
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
March 9, 2025 at 9:33 PM
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!
February 5, 2025 at 9:06 PM