🌘 實作 Bitfields 過程宏 [RUST] - 《LearnixOS 手冊》
➤ 深入淺出:解構 Rust 編譯期的程式碼生成魔法
https://www.learnix-os.com/ch02-03-implementing-the-bitfields-proc-macro.html
本文介紹了 Rust 過程宏(Proc-Macros)的核心概念與運作機制。作者說明瞭宏如何將原始碼作為輸入並輸出新的原始碼,並詳述了 `TokenStream` 如何作為編譯階段處理程式碼的基礎單元。透過與傳統函數的對比,文章解釋了宏如何在編譯期操作原始碼結構,從而實現普通函數無法達成的邏輯注入(如 `break` 控制流),為後續實作 `bitfields` 宏奠定了理論基礎。
+ 這篇文章對宏與函數的本質區別解釋得非常清晰,特別是關於 `TokenStream` 的調試輸出,讓人一眼就能看懂編譯器眼中看到的程式碼結構。
+ 終於理解為什麼 `unwrap_or_break` 這種邏輯不能用函數寫
#Rust 程式語言 #過程宏 (Procedural Macros) #系統程式設計
Implementing the Bitfields Proc-Macro [RUST] - The LearnixOS Book

Implementing the Bitfields Proc-Macro [RUST] - The LearnixOS Book

Implementing the Bitfields Proc-Macro [RUST] - The LearnixOS Book

I made a game prototype with Godot and Rust. Since I got interested in #Rust, I decided to try building a simple game using #Bevy Engine.

https://github.com/abc3dz/flappy_bird_3d

If you really like Paperback and Fedra's updater sequence, I made a standalone Rust crate for this functionality. It fetches assets from GitHub, lets you check for development or latest stable releases, shows the markdown release notes in a nice text field, replaces the running binary in both portable and installer modes, etc. Currently Windows only, but that'll change. This is a small part of my broader goal, to make a collection of crates someone can just pick up and start making accessible desktop apps in Rust. https://crates.io/crates/ship-shape #rust #rustlang #wxdragon
crates.io: Rust Package Registry

crates.io serves as a central registry for sharing crates, which are packages or libraries written in Rust that you can use to enhance your projects

🌘 給 Python 開發者的 Rust 入門指南
➤ 從 Python 優雅轉身:打造高效能的 Rust 系統開發思維
https://microsoft.github.io/RustTraining/python-book/
本書專為擁有 Python 經驗的開發者量身打造,旨在引導讀者平滑過渡至 Rust。全書將 Rust 的學習過程拆解為三個階段,由淺入深地探討從動態型別、垃圾回收機制轉換至靜態型別與記憶體安全系統語言的核心差異。透過清晰的學習路徑、循序漸進的練習以及實作專案,幫助開發者掌握 Rust 的記憶體管理、所有權機制(Ownership)及併發處理等核心概念,並提供 Python 與 Rust 的語法對照,縮短學習曲線,提升系統級程式開發能力。
+ 這份學習地圖非常實用!對於習慣了 Python 這種動態語言的人來說,Rust 的所有權(Ownership)確實是最大的門檻,將章節區分為難易度並附上實作目標,讓人更有方向感。
+ 終於有針對 Python 背景設計的教材了。特別喜歡關於 PyO3 的章節,
#程式設計 #Rust 語言 #開發者教學 #技術轉型
Introduction - Rust for Python Programmers

🐍↔️🦀 A "comprehensive" #guide for #Pythonistas #to become #Rustaceans, because who doesn't love switching from an easy, garbage-collected wonderland to a world of #compile-time headaches? 📚✨ Let's take those dynamic types and throw in some compile-time memory #safety for extra complexity—it's like trading your cozy slippers for a suit of armor. 🛡️😂
https://microsoft.github.io/RustTraining/python-book/ #Python #Rust #programming #humor #HackerNews #ngated
Introduction - Rust for Python Programmers

Introduction - Rust for Python Programmers

Introduction - Rust for Python Programmers