rust Hot

ekuber, to rust
@ekuber@hachyderm.io avatar

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.

kornel,
@kornel@mastodon.social avatar

@ekuber Can this be in Cargo instead, and force-upgrade known-broken crates?
And yeah, that requires releasing fixed versions of the broken crates.

ekuber,
@ekuber@hachyderm.io avatar

@kornel you would want to make patch releases for pretty much every affected dot release, but that would likely be the best option.

ekuber, to rust
@ekuber@hachyderm.io avatar

" 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 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,
@manpacket@functional.cafe avatar

@ekuber but yea, checkboxes are very slow...

ekuber,
@ekuber@hachyderm.io avatar

@manpacket yes.

Feel free to send me the link to the RFC and I'll take a look at it.

happyborg, (edited ) to rust
@happyborg@fosstodon.org avatar

It's hard to find 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.

Dr_Emann,
@Dr_Emann@hachyderm.io avatar

@happyborg I think your thinking of bacon:

https://dystroy.org/bacon/

happyborg,
@happyborg@fosstodon.org avatar

@Dr_Emann
That's the fella! 🥳

Thanks you so much.

rustnl, to rust
@rustnl@fosstodon.org avatar

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.

image/jpeg

whynothugo,
@whynothugo@fosstodon.org avatar

@rustnl @Mara Can we add a lack of compile time reflection to that list, please?

wezm, to rust
@wezm@mastodon.decentralised.social avatar

Faster linking times on nightly on Linux using rust-lld https://blog.rust-lang.org/2024/05/17/enabling-rust-lld-on-linux.html

jhpratt, to rust
@jhpratt@mastodon.social avatar

Hit an edge case in the compiler that appears to be quadratic at best and potentially exponential. Trivial to make happen with real-world code. Investigating...

ekuber,
@ekuber@hachyderm.io avatar

@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,
@predrag@hachyderm.io avatar

@ekuber @jhpratt ah yes, the two bug flavors...

Hoping it's the first one! 🤞

dekirisu, to rust
@dekirisu@mastodon.social avatar

🦌 added item type 'ground'
🐸 ..which modifies the ground in front of the player

(infinite uses, until I implement item stacks) 🐢

video/mp4

chrisbiscardi, to rust
@chrisbiscardi@hachyderm.io avatar
nrc, to rust
@nrc@hachyderm.io avatar

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
@jhpratt@mastodon.social avatar

Now that it's public, I can say that I will be speaking (again) at in Montréal! Catch me there or online in September.

faassen, to rust
@faassen@fosstodon.org avatar

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

1/n

swallez, to rust
@swallez@mastodon.tetaneutral.net avatar

"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 🤣 https://github.com/vmfunc/cargo-buttplug

thisweekinrust, to rust
@thisweekinrust@mastodon.social avatar
hywan, to rust
@hywan@fosstodon.org avatar

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,
@hywan@fosstodon.org avatar

Nice, it has found a flaw in my test suite. Thanks cargo mutants.

dekirisu, to rust
@dekirisu@mastodon.social avatar

🦉 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

video/mp4

rusticorn, to rust
@rusticorn@fosstodon.org avatar

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/ 🦀🎮

gabrielesvelto, (edited ) to rust
@gabrielesvelto@fosstodon.org avatar

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,
@shram86@mastodon.gamedev.place avatar

@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,
@gabrielesvelto@fosstodon.org avatar

@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
@orhun@fosstodon.org avatar

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

video/mp4

andybalaam, to rust
@andybalaam@mastodon.social avatar

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
@dekirisu@mastodon.social avatar

🦊 chests can be modified simultaneously

(duplicating/losing items due to parallel access is impossibru)

video/mp4

kubikpixel, (edited ) to rust
@kubikpixel@chaos.social avatar

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


tjunge,
@tjunge@twit.social avatar

@kubikpixel What's "the cear wheel"?

kubikpixel,
@kubikpixel@chaos.social avatar

@tjunge sorry for my bad ENG then I let it translate online:

"cear wheel" == ⚙️

secana, to rust
@secana@mastodon.social avatar

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.

argv_minus_one, to rust
@argv_minus_one@mstdn.party avatar

I wonder if anyone has ever written an embedded in which there is no run-time interpreter, and all SQL queries are translated into machine code at compile time.

Kinda like 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 language, and outright impossible in most programming languages.

mizah, to rust
@mizah@macrofurs.social avatar

It continues to surprise me how, with just kinda works once it compiles...

Yeah, not a 100% success rate, but... It's still surprisingly good at forcing you to put the square pegs into the square holes.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • thenastyranch
  • magazineikmin
  • ngwrru68w68
  • mdbf
  • rosin
  • Youngstown
  • vwfavf
  • slotface
  • modclub
  • khanakhh
  • cubers
  • kavyap
  • DreamBathrooms
  • cisconetworking
  • PowerRangers
  • everett
  • Durango
  • InstantRegret
  • osvaldo12
  • tester
  • normalnudes
  • tacticalgear
  • ethstaker
  • GTA5RPClips
  • anitta
  • Leos
  • megavids
  • All magazines