rui314

Activity

Stars and mentions · Last 30 days, Oct 6 – Nov 4

GitHub stars314
Mentions14
020406080Oct 6Oct 20Nov 4
UTC days · repositories rui314 owns5 repositories

Top repositories

rui314’s repositories ranked by new forks, as on trending.

Loading

Contributes to

Repositories outside rui314’s account where rui314 opened or reviewed pull requests in the past 365 days.

Who noticed rui314

Everyone who starred or forked rui314’s repositories since the archive began in 2011.

Notable accounts

Ordered by the stars their own repositories have received.

Biggest fans

Accounts that starred the most of these repositories.

Breakout weeks

Each repository’s best week of new stars, with the release published around it.

Mentions

7posts
Nov 50 posts
  1. Rust Toolchain Migration: Supercharging Build Times with LLD on Windows Recently, driven by the need to slash compilation and linking times, I migrated the toolchain for my pet Rust project. Previously, the project relied on the battle-tested stable-x86_64-pc-windows-gnu toolchain using the legacy ld linker—a notorious bottleneck responsible for much of Rust's sluggish build reputation on Windows. While the speed payoff of switching to the lld linker was immediate, the transition exposed a labyrinth of subtle, platform-specific hurdles on Windows. Before diving into the migration details, let’s quickly break down the anatomy of how Rust compiles code. !Image description Under the Hood: The Rust Compilation Pipeline If you trace a Rust file from source text to binary, it moves through several sophisticated stages: AST (Abstract Syntax Tree): rustc parses the source code into an AST, where macros are expanded. HIR (High-Level Intermediate Representation): The AST translates into HIR. This is where Rust’s borrow checker flexes its muscles, enforcing memory safety and ownership rules. MIR (Mid-Level Intermediate Representation): The HIR simplifies into MIR, marking the end of rustc's proprietary heavy lifting. LLVM Optimization: The pipeline hands off to the LLVM infrastructure. MIR is translated into platform-agnostic bitcode, where LLVM applies State-Of-The-Art (SOTA) optimizations. (LLVM’s power is precisely why Apple, Google, and massive Linux/Windows ecosystems rely on it). Code Generation & Linking: LLVM generates machine code for specific target architectures, after which linkers bundle system and third-party libraries into the final executable. The Windows Toolchain Maze: GNU vs. GnuLLVM While Rust packages essential LLVM components out of the box, target-specific concerns—like operating system interfaces, C calling conventions, and ABIs—are bound to external packages. The GNU Target (stable-x86_64-pc-windows-gnu): Simply requires MinGW-W64-builds to complete the toolchain pipeline. The GnuLLVM Target (stable-x86_64-pc-windows-gnullvm): Requires standalone LLVM and llvm-mingw. Navigating llvm-mingw can be jarring due to the sheer volume of overlapping binaries. Essentially, stock LLVM builds provide target-agnostic components that aren't inherently tied to MSVC or GNU C conventions. llvm-mingw bridges this gap, translating raw machine code into standard MinGW-compatible formats that Windows can execute. Lessons Learned from the Trenches Taming Windows toolchains is famously painful. It's the primary reason many developers flee to environments like MSYS2 or Windows Subsystem for Linux (WSL). However, because my pet project is a GUI application, native Windows integration is a must, and WSL's graphical UI maturity still introduces friction for native desktop apps. The Golden Rule: Infrastructure upgrades like compiler toolchains should always be treated with extreme caution. Rigorous staging and testing are non-negotiable—never perform radical toolchain experiments blindly in production environments. Bonus: Alternative Paths to Speed If you want to tap into lld's blazing speed without undergoing a full toolchain migration, you can adopt it simply by changing some settings of your projects. Modern alternatives are pushing the boundaries of link-time performance even further. If you are feeling adventurous, check out these next-gen linkers built by hard-core pioneers: mold — A high-performance, modern linker designed to drastically reduce build times. wild — An experimental, incredibly fast linker written in Rust.

  2. @rui314 Woah, you are doing it ! mold#1412

    3 views
  3. Mold linker hits 3.0 with a complete Rust rewrite. A critical build tool choosing memory safety over C++ signals broader ecosystem shifts in systems software. github.com/rui314/mold/releases/tag/v3.0.0 #opensource #Linux

    1 like
  4. Rust พ่อทุกสถาบันของจริง ตั้งแต่ 2026 มาเริ่มรู้สึกว่าหลายแอพเริ่มเปลี่ยนมาเขียนด้วย Rust เยอะขึ้นมาก มันลื่นอ่ะ ยิ่งอยู่บน macOS คือลื่นเชี่ยๆ rui314/mold

    16 views
  5. mold 3.0 is a full C++ to Rust rewrite and @rui314 built every Gentoo package with it. zero regressions, same link speed. the quiet win: out-of-bounds reads on corrupt .o files are now panics, not segfaults rui314/mold

    3 views
  6. mold 3.0.0 is the first release rewritten in Rust. It's a drop-in replacement for 2.42.1, builds with Cargo (Rust 1.95+) instead of CMake and drops oneTBB. The 3.x goal: close remaining gaps with GNU ld. #Rust #OpenSource #Linker #DevTools github.com/rui314/mold/releases/tag/v3.0.0 t.co

    6 views
  7. hey guys I made mold faster mold#1718 t.co

    18 likes · 1 repost · 473 views

Achievements

Awards earned by the repositories rui314 owns. Select an award to embed its badge.

Gold
01st place finishes
Silver
22nd place finishes
Bronze
13rd place finishes
Awarded repositories
3Owned by rui314 now

Repositories

Ordered by gold, then silver, then bronze.

  1. 8ccBest: 2nd by stars, 560 stars010
  2. moldBest: 2nd by stars, 447 stars010
  3. chibiccBest: 3rd by stars, 565 stars001

Every award

Top-three finishes of these repositories in completed trending days and weeks, newest first.

  1. mold
  2. chibicc
  3. 8cc

A repository earns an award for finishing first, second or third in a completed trending day or week, ranked by new stars, new forks or pull request authors. Awards follow a repository through renames and transfers and count toward its current owner. Weeks run Monday to Sunday, UTC.