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.

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.

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

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.

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" == ⚙️

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.

janriemer, to rust

"Can't move a closure into a spawned thread"

https://users.rust-lang.org/t/cant-move-a-closure-into-a-spawned-thread/111332

or phrased differently: "Misunderstandings of what the 'static lifetime in #Rust means".

Kornel's excellent answer:
https://users.rust-lang.org/t/cant-move-a-closure-into-a-spawned-thread/111332/8?u=janriemer

"Note that any lifetime bounds, including 'static, apply only to references and types containing references. They do nothing when applied to self-contained types. This means that String is not 'static, but rather it isn't affected by any lifetime bound."

#RustLang #BorrowChk

hrefna, to Java
@hrefna@hachyderm.io avatar

It's fascinating to me looking at beginning language guides and thinking "what does this say about the culture of the language"

When I was delving into #OCaml it was (with affection) "here's hello world and here's a dense academic paper on implementing event systems in OCaml 5!"

#Java guides used to be centered on the assumption that you were a web programmer looking to do applets, even long after that assumption died.

#RustLang generally seems to assume a background in programming w/ a CLI.

hrefna,
@hrefna@hachyderm.io avatar

I'll certainly have more observations as I dig more into The Rust Book and Rust by Example on , but it is interesting to me to see the baked in assumption that you are pretty comfortable with concepts like package management (I mean Rust By Example talks about creating a library before it talks about using a library and The Rust Book is similar, glossing over nuances here), CLI tools, and build tools.

To be clear, this is all fine, it is just informing me who the target audience is.

hrefna,
@hrefna@hachyderm.io avatar

After a while with my conclusion there is that:

OCaml really is a language for people who are fairly mathy and academic but who still want to get stuff done. The culture felt entirely focused around this question. So you get the dense academic paper not to scare you, but because they think you will be legitimately interested in it (albeit probably not right after hello world, but fairly soon).

OTOH there's a kind of ruthless efficiency: if you need to compromise you compromise.

dekirisu, to rust
@dekirisu@mastodon.social avatar

🦊 added a chest with items, which show on proximity
🐔 ..items can be moved freely between slots

video/mp4

boozook, to rust
@boozook@mastodon.gamedev.place avatar

Tomorrow is a day of oxidized crab 🦀 — Rust programming language birthday 🎉

https://blog.rust-lang.org/2015/05/15/Rust-1.0.html

orhun, to rust
@orhun@fosstodon.org avatar

Today I'm giving a talk at Rust for Lunch! 🥪

🚀 Join us to learn how rendering works in the terminal! (ft. @ratatui_rs)

🦀 Online-only Rust meet-up scheduled to fit into a lunch break.

➡️ Details: https://lunch.rs/meetups/2024-05-14/

aral,
@aral@mastodon.ar.al avatar

@orhun @ratatui_rs Break a (virtual) leg :)

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