Gian::Lu﹤🦀﹥
banner
fusillicode.bsky.social
Gian::Lu﹤🦀﹥
@fusillicode.bsky.social
Awkward, señor software engineer @Prima_Eng, communities supporter @Prima_Eng & @Mikamai #rustlang #rustlang #rustlang #rustlang #rustlang #rustlang http://cheats.rs
Reposted by Gian::Lu﹤🦀﹥
🦀 I've improved the implementation behind all the string formatting macros in Rust: println, panic, format, write, log::info, etc. (Everything using format_args!().) They will compile a bit faster, use a bit less memory while compiling, result in smaller binaries, and produce more efficient code! 🎉
November 13, 2025 at 1:31 PM
Reposted by Gian::Lu﹤🦀﹥
does your tool spawn processes? then LOOK UP the absolute path of the process you're running first. if that fails, log that in great detail. if it succeeds, log the absolute path of the path you found. if the process fails, in the failure log, include the absolute path of the process that failed.
November 14, 2025 at 1:37 PM
Reposted by Gian::Lu﹤🦀﹥
⚙️ Coherence rules getting in your way?
Soares Chen introduces Context-Generic Programming — a paradigm to write truly generic trait impls without breaking Rust’s rules.
🕐 12:15 | 📍 Deep Ocean
#RustLab2025 @maybevoid.com
November 3, 2025 at 11:00 AM
Reposted by Gian::Lu﹤🦀﹥
Why do they call it "fun size"? There's nothing fun about less candy. This is the real fun size
October 31, 2025 at 11:21 PM
Reposted by Gian::Lu﹤🦀﹥
The rustaceans are gathering, #Florence is buzzing! 🌟
Tomorrow #RustLab2025 kicks off three days of pure Rust magic!
Double-check your schedule, charge your devices, and get ready to be inspired. 🤩
See you all tomorrow, can't wait! 🦀 ✨
👉 rustlab.it
#RustLang
RustLab | The International Conference on Rust in Florence
RustLab is a conference for developers made by developers
rustlab.it
November 1, 2025 at 1:02 PM
We just merged the initial trait solver migration PR into rust-analyzer 🎉 Thanks a ton to Jack for their tremendous work!

We'll pause our (stable) releases for a bit in case of major usability regressions but please give the pre-release a spin on your projects!

github.com/rust-lang/ru...
Switch from Chalk to the next trait solver by jackh726 · Pull Request #20329 · rust-lang/rust-analyzer
At this point, opening up for general review, though I don't think this is fully ready to merge. Some checklist (non-exhaustive) of things to do before/after merge (feel free to edit): Before: ...
github.com
August 14, 2025 at 3:54 PM
Reposted by Gian::Lu﹤🦀﹥
Whenever I notice LLMs being "not great" at Rust, it's because they're trying to write, JS or Go, but in Rust. Which is.. the same reason why a lot of humans are having a bad time with Rust 🙃 — writing types first, then stub functions, then tests, then implementation, that's a happier way.
June 13, 2025 at 2:54 PM
Reposted by Gian::Lu﹤🦀﹥
✨ Flattening Rust's Learning Curve

This is the most important part:

>Treat the Borrow Checker as a co-author, not an adversary

> Forget what you think you knew about programming and really start to listen to what the compiler

corrode.dev/blog/flatten...

#rustlang #programming
May 6, 2025 at 4:22 AM
Reposted by Gian::Lu﹤🦀﹥
looking at mtimes and CARGO_LOG=cargo::core::compiler::fingerprint=trace, it looks like cargo was making the right decision. But then the issue is with the mtimes. Not sure why -- my build directory lives on f2fs, maybe something there?
May 5, 2025 at 10:31 PM
Reposted by Gian::Lu﹤🦀﹥
Making CLIs that look good can be quite difficult -- you only have a limited set of elements to work with, and all of the usual considerations around visual media still apply. Things like visual weight can be make-or-break. Compare these three screenshots:

0.9.94
an earlier prototype
0.9.95-rc.2
April 29, 2025 at 11:44 PM
Reposted by Gian::Lu﹤🦀﹥
🍻 cargo-spellcheck 🍻

Checks rust documentation for spelling and grammar mistakes

🔗 https://github.com/drahnr/cargo-spellcheck

#homebrew #newpkg #macos #linux #formula
April 24, 2025 at 12:48 PM
Reposted by Gian::Lu﹤🦀﹥
pgdog is a sharder, connection pooler and load balancer for PostgreSQL.

Written in Rust, scales databases horizontally without requiring changes to application code.
GitHub - pgdogdev/pgdog: Horizontal scaling for PostgreSQL with automatic sharding.
Horizontal scaling for PostgreSQL with automatic sharding. - pgdogdev/pgdog
github.com
April 24, 2025 at 12:56 PM
Reposted by Gian::Lu﹤🦀﹥
So many ideas that I'm excited about in the issue tracker github.com/facet-rs/fac... — I know the public-facing documentation is lagging behind but better underpromise and overdeliver I suppose.
Issues · facet-rs/facet
Rust const and no_std reflection — the last derive you'll ever need - Issues · facet-rs/facet
github.com
April 20, 2025 at 5:26 PM
Reposted by Gian::Lu﹤🦀﹥
That’s why Ruby’s `select` is a better name.
April 21, 2025 at 2:27 PM
Reposted by Gian::Lu﹤🦀﹥
TIL you can track Rust releases from this website!

🦀 Visit: releases.rs

⭐ GitHub: github.com/releases-rs/...

#rustlang #releases #rust #changelog #stable #nightly
April 15, 2025 at 8:16 AM
Reposted by Gian::Lu﹤🦀﹥
PSA insta 1.43 (not out yet) is free of syn: github.com/mitsuhiko/in...
GitHub - mitsuhiko/insta: A snapshot testing library for rust
A snapshot testing library for rust. Contribute to mitsuhiko/insta development by creating an account on GitHub.
github.com
April 15, 2025 at 3:28 PM
Reposted by Gian::Lu﹤🦀﹥
probably not its final form but I kinda like this reporting
April 15, 2025 at 3:32 PM
Reposted by Gian::Lu﹤🦀﹥
🧩 A Visual Journey Through Async Rust

github.com/alexpusch/ru...

#rustlang #programming
April 14, 2025 at 1:53 PM
Reposted by Gian::Lu﹤🦀﹥
Atuin v18.5.0 is out now! Ty to everyone who helped out + contributed <3

forum.atuin.sh/t/release-v1...
Release v18.5.0
Another release 🥳 Thank you so much to everyone who contributed to this one! I’m not posting the changelog on the blog this time. I’d rather keep them here, and post more interesting things there! F...
forum.atuin.sh
April 9, 2025 at 1:59 PM
Reposted by Gian::Lu﹤🦀﹥
April 8, 2025 at 5:56 AM
Reposted by Gian::Lu﹤🦀﹥
Yeah, rewrites for easily-testable CLI tools are relatively low risk. For complex distributed systems it's hard, but maybe don't build complex distributed systems unless absolutely necessary!
March 20, 2025 at 6:31 PM
Reposted by Gian::Lu﹤🦀﹥
Threw together a quick tool to restore timestamps between CI builds so cargo won't do unnecessary rebuilds — I haven't tested it in my CI yet but I figure it's more reliable & faster than a bunch of bash or node.js

github.com/fasterthanli...
GitHub - fasterthanlime/timelord: Save/restore timestamps when building Rust code in CI (to allow fresh checkouts but taking advantage of incremental builds)
Save/restore timestamps when building Rust code in CI (to allow fresh checkouts but taking advantage of incremental builds) - fasterthanlime/timelord
github.com
March 21, 2025 at 12:04 PM
Reposted by Gian::Lu﹤🦀﹥
It's probably also how our brains work too. Which is why I don't trust it to do complex calculations by itself!
December 17, 2024 at 6:59 AM
Reposted by Gian::Lu﹤🦀﹥
Looking forward to it
December 17, 2024 at 5:59 AM
Reposted by Gian::Lu﹤🦀﹥
Wrote up some notes on Limbo, the newly announced rewrite-it-in-Rust fork of SQLite simonwillison.net/2024/Dec/10/...
Introducing Limbo: A complete rewrite of SQLite in Rust
This looks absurdly ambitious: > Our goal is to build a reimplementation of SQLite from scratch, fully compatible at the language and file format level, with the same or higher …
simonwillison.net
December 10, 2024 at 7:35 PM