thompsondt, to rust
@thompsondt@mastodon.social avatar

@diyelectromusic, since you're into embedded tech and microcontrollers, you may appreciate this one.

It's a Real-time Operating System kernel I wrote in C and Assembly for AVR chips. My intent was to learn about how operating systems interface with hardware.

I'd like to rewrite it with #Rust and finish the task scheduler.

https://gitlab.com/thompsondt/simplicity

#rustlang #Atmel #arduino #maker #embedded

mackuba, to ruby
@mackuba@martianbase.net avatar

Hmm… I guess I could probably write a blog post about how my quest to speed up regexp matching in a #ruby Rake task led me eventually to #rustlang and how it worked in the end… 💎🦀🤔

epage, to rust
@epage@hachyderm.io avatar
jhpratt, to rust
@jhpratt@mastodon.social avatar

So now that -Zcheck-cfg is stabilized and enabled by default, there's no way to tell the compiler about custom cfgs other than a build script?

I routinely use a custom cfg for rustdoc so that I can use nightly features when publishing (both with docs.rs and CI). #[cfg(coverage)] is also used in some places.

Apparently spurious warnings are extremely wide-spread, so I'm not clear on why this was stabilized with such a glaring hole in it.

hds, to rust
@hds@hachyderm.io avatar

I came across this article the other day, titled “Why Rust cannot replace C++”.

I feel that the author completely fails to understand the opposing argument. The article claims that with “new” C++ features like smart pointers, you can write safe code in C++, therefore Rust is unnecessary.

But I don’t want a language where I can write safe code, I want a language where I must write safe code.

https://medium.com/@pepitoscrespo/why-rust-cannot-replace-c-but-quite-the-contrary-5577e1f5af0a

hds,
@hds@hachyderm.io avatar

Sure, it’s much easier to pass pointers (*, &, or shared_ptr) around, but now I have the “cognitive overhead” of ensuring that it’s only accessed from one thread at a time. Or not used after it’s been freed in the former cases.

When I’m working with the borrow checker that is something that I don’t have to think about. It’s less “cognitive overhead”.

2/3

hds,
@hds@hachyderm.io avatar

There’s this common statement that “the cognitive overhead of working with the borrow checker just isn’t worth the security benefits when you can write safe code in other languages”.

But the comparison is always to the “cognitive overhead” of writing something in some other language. When the comparison should be to writing something correctly in some other language.

1/3

epage, to rust
@epage@hachyderm.io avatar

Call for Testing for MSRV-aware resolver: https://github.com/rust-lang/cargo/issues/13873

Getting feedback on these is important to make sure features are ready and meeting the right need.

hywan, to rust
@hywan@fosstodon.org avatar

Tasks are the wrong abstraction, https://blog.yoshuawuyts.com/tasks-are-the-wrong-abstraction/.

Another excellent article by @yosh. I still need to digest it; I reckon it contains many (great) ideas I agree with.

philipp, to rust
@philipp@social.lol avatar

Chapter 3 of my 2024 revision to build your own text editor with is now live: https://flenker.blog/hecto-chapter-3/

alexband, to rust
@alexband@hachyderm.io avatar

A packed room at . The @rustnl organizers chose an amazing venue in Delft.

image/jpeg

mackuba, to rust
@mackuba@martianbase.net avatar

Rust references and borrowing rules: 😵‍💫
Rust references and borrowing rules for closures where there are different types of closures based on what/how they borrow and give back: 😵‍💫😵‍💫😵‍💫

gak, to bevy
@gak@zoot.fun avatar

Hitting some floating point accuracy limitations. Cool effect! https://www.youtube.com/watch?v=A1usxaWq0ng

mackuba, to rust
@mackuba@martianbase.net avatar

I love this little guy… look at him, he's so cute 🥺 #🦀

kellogh, to rust
@kellogh@hachyderm.io avatar

ooo promising new #rust #htmx framework. Check out the ad! 😂 https://youtu.be/YpHFthVa7nU?si=QCJHyg7_dEmBeGTu #rustlang

rusticorn, to gamedev
@rusticorn@fosstodon.org avatar

Happy to share another important API available to @bevy devs: iOS GameCenter (Gamekit) with Leaderboards, Cloud-Save and Achievements: https://github.com/rustunit/bevy_ios_gamecenter 🦀🎮

video/mp4

chrisbiscardi, to rust
@chrisbiscardi@hachyderm.io avatar

This week in Bevy we've got some project changes relating to contributing, PR review, and the formalization of working groups, new color grading and state-management features, as well as some exciting experiments and demos.

Particularly interesting on the experimental side of things is a new crate and some experimentation with Bevy/Vello integration.

https://thisweekinbevy.com/issue/2024-05-06-vello-steamdecks-and-procedural-generation

TehPenguin, to rust
@TehPenguin@hachyderm.io avatar

I've begun the process of switch Rust's Windows CI to Server 2022, starting with the mingw builders: https://github.com/rust-lang/rust/pull/124562

This was tried a couple of years ago, but there some issues with mingw - so kudos to the folks that investigated and fixed those (sorry that I don't have links)!

Next step, the MSVC builders, which will require bumping the version of Clang that's used to build LLVM first...

hds, to rust
@hds@hachyderm.io avatar

The next Rust for Lunch will be next Tuesday, 14 May! Announcement about speaker and talk to come soon.

https://lunch.rs/meetups/2024-05-14/

faassen, to rust
@faassen@fosstodon.org avatar

In the last year and a half I have written a lot of Rust code, only some of which is open source at the moment: Xot, the capable XML tree library.

I have also most of a XPath 3.1 implementation and part of an XSLT 3.0 implementation. And a structural human readable diffing library for XML documents.

I happen to have a (revived) background in established tech like XML and I can write Rust, which makes for an interesting combination.

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

Meet oct-git, a new signing and verification tool for use with the distributed version control system:

https://crates.io/crates/openpgp-card-tool-git 🦀

oct-git focuses exclusively on ergonomic use with OpenPGP card-based signing keys

It is designed to be easy to set up, standalone (no long running processes), and entirely hands-off to use (no repeated PIN entry required, by default). It comes with desktop notifications for touch confirmation (if required)

dvzrv,
@dvzrv@chaos.social avatar
khalidabuhakmeh, (edited ) to rust
@khalidabuhakmeh@mastodon.social avatar

This is a neat feature toggle. It allows you to turn on and off features from the IDE.

Update: The checkboxes are also available in your cargo.toml so you can add them and toggle them there.

mizah, to rust
@mizah@macrofurs.social avatar

I legit am kinda blown away by how much functionality I'm getting from Rust-Analyser.

I always thought I needed a full-blown IDE to get autocompletion, code actions, adding import/use statements, function extraction, inlining, etc...

How long have I been missing out on this?

#rust #rustlang #rustanalyzer #HelixEditor #lsp

rustnl, to rust
@rustnl@fosstodon.org avatar

RustNL 2024 starts tomorrow! Still figuring out logistics? ⬇️

There will be dedicated boats from Delft central station to the venue: https://2024.rustnl.org/boat/

Other travel directions: https://2024.rustnl.org/directions/

See you tomorrow! 🦀

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