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.

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.

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


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.

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/

kellogh, to random
@kellogh@hachyderm.io avatar

the news is cool, but now i want to see an embedding model that i can use with a streaming interruptible conversation

kellogh,
@kellogh@hachyderm.io avatar

also, now with , latency is going to be critical if you’re doing streaming audio/video, so may start looking less appealing. what’s the new language? ? ? ? ?

hgrsd, to rust
@hgrsd@hachyderm.io avatar

Which IDE do you use for Rust development?

I've been moving between neovim, helix (can't get over the slightly different mental model compared to vim), vscode, rustrover... Curious what others use.

lily, to rust
@lily@glaceon.social avatar

here's an interesting way of expressing logic in a rust program:

match statements where the patterns are produced by a local macro.

one of the main problems with rust pattern matching imo is just how large the match statements often are, and local macros fix that.

it's much nicer to write key!('q') instead of Event::Key(KeyEvent{ code: KeyCode::Char($code), .. }

TehPenguin, to random
@TehPenguin@hachyderm.io avatar

I've been helping to investigate a few LLVM and Rust bugs recently, and I keep running into pet peeves with how these bugs are reported, so I'm going to put together some

I don't want to discourage anyone from filing a bug, please do! But... be aware with how you represent the issue that you're seeing.

I also know that there are folks on here who are vastly more knowledgeable than I am, so feel free to suggest corrections, perhaps by filing some sort of report...

TehPenguin,
@TehPenguin@hachyderm.io avatar

If you're going to claim something is a security issue, please explain what the attacker has gained by exploiting the bug. That is, what they can now do they couldn't before.

If you can't explain what the attacker has gained, then that's not a security bug, that's just sparkling MS07-052 (https://web.archive.org/web/20100930203109/http://blogs.msdn.com/b/oldnewthing/archive/2007/08/07/4268706.aspx#4282521)

TehPenguin,
@TehPenguin@hachyderm.io avatar

If the feature has docs, then please explain how the actual behavior doesn't match the docs.

If you don't like how the feature works, that's not a bug, but you can still ask for the feature to be changed.

If there are no docs, or there's a gap, then please help to fill that gap (adding your own observations in the bug report are a good start).

TehPenguin,
@TehPenguin@hachyderm.io avatar

The more specific you can be on when a regression occurred, the better. A range of versions is good, a single version is great, a single commit is amazing.

Tools like git bisect are really helpful for this.

Providing a standalone example that reproduces the issue so that someone else can do that work is also great, with the bonus that it can be added to the regression tests.

dgoosens, to rust French
@dgoosens@phpc.social avatar

This looks interesting

Hurl is a command line tool that runs HTTP requests defined in a simple plain text format.

It can chain requests, capture values and evaluate queries on headers and body response. Hurl is very versatile: it can be used for both fetching data and testing HTTP sessions.

Hurl makes it easy to work with HTML content, / SOAP / GraphQL APIs, or any other XML / JSON based APIs.

(Built with powered by )

https://hurl.dev/

chrisbiscardi, to rust
@chrisbiscardi@hachyderm.io avatar

This Week in Bevy: ClearCoat, new examples, and game updates

This week there are a bunch of new examples added to the repo, new additions to the StandardMaterial, and more.

Out in the wider ecosystem, we'll see 400,000 entities on a flowfield in the showcases as well as crates for networking, ui, and signals.

On top of that there are game updates from past Bevy jams, card games and more.

https://thisweekinbevy.com/issue/2024-05-13-clearcoat-new-examples-and-game-updates

lily, to rust
@lily@glaceon.social avatar

the rust "impl" keywork is kinda weird.

usually, it is used to define methods, but in function arguments, it serves as syntactic sugar so you don't have to name generic types... but in a return type, it has a meaning that is slightly different, and actually expresses a semantic not even vanilla haskell can represent!

basically, instead of being able to return any type implementing a trait, it states that it can return at least one type that implements a trait.

in haskell terminology, specifying a generic type parameter is "forall a", while returning an "impl" is "exists a".

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