@JafarUruc It was surprisingly straightforward to translate the entire codebase from C++ to Rust, perhaps because OpenAI Astra is so capable. I believe it would have been much harder if we'd tried this six months ago.
mold in Rust has landed in The code doesn't look too bad; it looks like conventional Rust. But I'm still new to the language, so let me know if you find anything that could be improved!
I've resurrected mold Mach-O (macOS) port with help from AI. It's still very experimental, but it seems to link large real-world programs like iTerm2 faster than Apple's ld-prime. If all goes well, we may consider merging it into the main mold repo.
I don't understand the negativity toward AI coding. Used properly, it's extremely useful. We've spent decades trying to write better code faster, and this is the single biggest improvement I've seen in my lifetime.
We are rewriting the mold linker in Rust and adding linker script support so that mold can link essentially anything GNU ld can, including kernels and embedded programs. This will be mold 3.0. We started this effort to get Linux distros to replace their default linker with mold.