ekuber, to rust Sometimes I wish that rustc had a database of small breaking changes that affect only a handful of crates, so that we could on the fly patch them going forward. Things like "we now correctly check for lifetimes in assoc types" can technically be a breaking change that affects a handful of crates, but I want to ensure that building a project from today in 15 years doesn't require a compiler tool chain from today.
I guess this is the windows backwards compatibility approach.
#rust #rustlang
ekuber, to rust "#Rust development is going too fast (because they are stabilizing features I don't care about) and going too slow (because they are not stabilizing features I care about!"
There are only so many #RustLang contributors, hours in a day, days in a year to get to everything now, and some features are reliant on other, less flashy work that needs to happen before they can be even attempted.
But people are putting in a lot of work, the codebase changes so quickly that it is hard to keep up.
manpacket, @ekuber but yea, checkboxes are very slow...
ekuber, @manpacket yes.
Feel free to send me the link to the RFC and I'll take a look at it.
happyborg, (edited ) to rust It's hard to find #cargo add-ons. crates.io has very poor search options.
For example, I recall one which I think began with 'b' which sits in the terminal running the build and shows errors in order, unlike cargo build where they scoll off screen and out of view. [EDIT: from replies it is called 'bacon']
But I can't list search results by name, only things like newest etc.
#RustLang
Dr_Emann, @happyborg I think your thinking of bacon:
happyborg, @Dr_Emann
That's the fella! 🥳Thanks you so much.
rustnl, to rust Looking back at a wonderful conference: 10 cool things at RustNL 2024!
Part 1 of 10: @Mara and Niko had a booth gathering input (problems!) from the community.
wezm, to rust Faster linking times on nightly on Linux using
rust-lld
https://blog.rust-lang.org/2024/05/17/enabling-rust-lld-on-linux.html #Rust #RustLang
jhpratt, to rust Hit an edge case in the #Rust compiler that appears to be quadratic at best and potentially exponential. Trivial to make happen with real-world code. Investigating...
ekuber, @jhpratt looking forward to the repro and either finding out that it is a 2 line fix or requires a complete reimplementation of 2 stages of the compiler.
predrag,
dekirisu, to rust 🦌 added item type 'ground'
🐸 ..which modifies the ground in front of the player(infinite uses, until I implement item stacks) 🐢
chrisbiscardi, to rust drag-and-drop user-driven custom levels with bevy_ecs_ldtk.
nrc, to rust I'll be talking at Rustconf this year, about Rustfmt and code formatting. A little more detail on the blog: https://www.ncameron.org/blog/eternal-sunshine-of-the-rustfmted-mind/
jhpratt, to rust Now that it's public, I can say that I will be speaking (again) at #RustConf in Montréal! Catch me there or online in September.
faassen, to rust Porting a significant codebase (an xpath compliant regex engine) from Java to Rust was fascinating. Here are some observations:
Java is pretty readable even for someone who never wrote a line of Java in his life
Editor dev tooling to follow references is super handy during this work
Java classes melt away into enums. In this codebase dynamic dispatch was unnecessary and inheritance was used only a little. OO is overrated
swallez, to rust "cargo-buttplug: ensuring positive reinforcement during long, tiring code sessions". Yup, you guessed it right: 10 seconds of vibration if Rust compilation is successful 😅 Be careful: as you become fluent with the language compilation succeeds more often 🤣 #RustLang https://github.com/vmfunc/cargo-buttplug
thisweekinrust, to rust
hywan, to rust
cargo mutants
, https://mutants.rs/A useful tool to do mutation-based testing on Rust projects.
Reminder: mutants aim at testing your test suites —whether they catch all your code details—, not your code itself.
hywan, Nice, it has found a flaw in my test suite. Thanks
cargo mutants
.
dekirisu, to rust 🦉 added an action bar, placed items can be used via number keys
🦊 added item type 'spell' (no individual cooldowns yet)
🦐 made spell items out of the dash and past projectile attacks
rusticorn, to rust I am happy to present to you the first speaker of our upcoming virtual @bevy Meetup on Friday May 24th: Bevy Maintainer
@FrancoisMockers with "Catching Rendering Regressions on all Platforms" - don't miss it and join us here: https://meetup.com/bevy-game-development/events/300919821/ #rustlang #gamedev 🦀🎮
gabrielesvelto, (edited ) to rust If you're doing a lot of work in C/C++/Rust consider using sccache to cache compilations. It's easy to set up and will save you a lot of time and a huge amount of power.
https://github.com/mozilla/sccache
As an example this is just a couple of hours of work on Firefox, it saved me from re-running the compiler almost 90% of the time.
shram86, @gabrielesvelto this is terrible advice unless you are actively working on Mozilla.
Why would I use a tool explicitly developed by them for their own internal software with my extremely delicate low level, hardware optimized code?
Yuck.
gabrielesvelto, @shram86 this is a generic tool that works with all mainstream compilers and requires just a few lines of global configuration. After that it works completely transparently
orhun, to rust Do you use Jira? Sorry to hear that.
At least there is a TUI for it! 🔥🔧 jirust: Jira terminal UI.
🚀 Supports listing projects, moving tickets and more!
👀 Demo: https://youtu.be/gRgz1M30q9I🦀 Written in Rust & built with @ratatui_rs
⭐ GitHub: https://github.com/Code-Militia/jirust
andybalaam, to rust Good stuff
https://without.boats/blog/references-are-like-jumps/
"Unfortunately, most people seem to have taken the wrong lesson from Rust. They see all of this business with lifetimes and ownership as a dirty mess that Rust has had to adopt because it wanted to avoid garbage collection. But this is completely backwards! Rust adopted rules around shared mutable state and this enabled it to avoid garbage collection. These rules are a good idea regardless."
dekirisu, to rust 🦊 chests can be modified simultaneously
(duplicating/losing items due to parallel access is impossibru)
kubikpixel, (edited ) to rust Is today the day of the crab and is that a good thing? Yes, it means that the chainring is now number one! 🦀🎉
⚙️ Announcing Rust 1.0
https://blog.rust-lang.org/2015/05/15/Rust-1.0.html—
#rust #rustlang #coding #code #crap #numberone #cearwheel #cheanring
tjunge, @kubikpixel What's "the cear wheel"?
kubikpixel, @tjunge sorry for my bad ENG then I let it translate online:
"cear wheel" == ⚙️
secana, to rust https://nexte.st/ is awesome. The expression language to filter for tests or simply display a list of available test made is "must-have" for me. #rustlang #rust
argv_minus_one, to rust I wonder if anyone has ever written an embedded #RDBMS in which there is no run-time #SQL interpreter, and all SQL queries are translated into machine code at compile time.
Kinda like #Rust sqlx, except queries are fully compiled at compile time, not just checked for correct syntax and types.
I'm guessing this would be extremely specific to one #programming language, and outright impossible in most programming languages.
mizah, to rust