happyborg, to random
@happyborg@fosstodon.org avatar

There's a Tui for that" is a coming phrase.

#Ratatui + #RustLang = #TUI

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

> Here are more details from the ripgrep example mentioned above: linking is reduced 7x, resulting in a 40% reduction in end-to-end compilation times

tl;dr: Rust now packages a rust-lld linker (it’s LLVM’s lld), and uses it on Linux by default on nightly, which increases compilation time greatly.

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

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.

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.

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.

MevLyshkin, to gamedev
@MevLyshkin@mastodon.gamedev.place avatar

I've made the bevy iteration of my card prototype source available: https://github.com/Leinnan/slavic_castles

It can be played in browser at: https://leinnan.github.io/slavic_castles/

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

seanmonstar, to rust
@seanmonstar@masto.ai avatar

h2 v0.4.5 is out now!

Bug fixes for hung connections, and CONNECT/OPTIONS requests.

https://github.com/hyperium/h2/releases/tag/v0.4.5

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

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...

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
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

#bevyengine #rustlang #gamedev #indiegame

video/mp4

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.

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

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."

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.

dekirisu, to rust
@dekirisu@mastodon.social avatar

🦊 chests can be modified simultaneously

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

video/mp4

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.

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