downgrade, to rust Russian
@downgrade@fosstodon.org avatar

👋 Hello, Mastodon! recently I had to update my website and decided to create a Mastodon account to share my thoughts to the world.

The idea of a decentralized, federated social network looks comfortable to me.

for now I have plans to just write something about my projects, sometimes , UI/UX , and maybe

mo8it, to rust
@mo8it@fosstodon.org avatar

Announcing axum-ctx: Axum error handling library inspired by anyhow :ferris:

Documentation with examples 📚️
https://docs.rs/axum-ctx

The first screenshot shows the code without axum-ctx, the second one with it ✨

It lets you write concise "one-liners". Any chaining fans here? ⛓️🤩

I will write a blog post about it. But first, I would like to get some feedback here 🥰

With axum-ctx

timClicks, to rust
@timClicks@mastodon.nz avatar

Fun (?) 4 min watch for developers https://youtu.be/dJiL9gHNgKU

thisweekinrust, to rust
@thisweekinrust@mastodon.social avatar
nrc, to rust
@nrc@hachyderm.io avatar

How has Rust changed since it's 1.0 release (9 years ago!)? I made a list of the big changes: https://www.ncameron.org/blog/rust-through-the-ages/ It's a good list.

claras_universe, to chess
@claras_universe@ieji.de avatar

I did the first board render with my chess engine :o I'm really happy with how it turned out. And it also shows that the white kingside castling worked xD (Assets from itch.io)

rusticorn, to iOS
@rusticorn@fosstodon.org avatar

Zoolitaire 🐼 finally released all 100 premium levels! Happy jumpy animals! https://apps.apple.com/de/app/zoolitaire/id6479218498 - made with @bevy for #iOS #rustlang #gamedev 🦀🎮

video/mp4

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

Finally, some progress on my card game! I was able to finally reach a point when it is more feature complete than previous iteration written a few years ago with different framework (quicksilver, it's dead now) 😅
#gamedev #indiedev #rustlang #bevy #bevyengine

video/mp4

ekuber, to rust
@ekuber@hachyderm.io avatar

Proc macros in are objectively bad in a number of ways (limited to only dealing with tokens/no type system access, hard for newcomers to grasp and write, force a lot of attributes to be written to annotate specific items, etc.) but they exemplify "worse is better" perfectly. They are incredibly powerful and allow people to build amazing abstractions that are in some cases best in class. We want to have something better, but there isn't a pressing need now to rush a replacement.

ekuber,
@ekuber@hachyderm.io avatar

I'm glad that is now at a stage where there aren't any major missing pieces, almost anything you want to do can be represented, just in round about ways and sharp corners that we can chip away in time. Better than the situation years ago where most people used nightly exclusively because there was missing functionality in stable. We still need a way to have "stable early access" for features close to completion, though.

heaths,
@heaths@fosstodon.org avatar

@ekuber They are far better than C macros that have no restrictions on input or output. That’s not to say things can’t be better, but how could this even work? So much type information isn’t available without expanding macros recursively already, then you need to resolve dependencies and compile. You have a chicken or the egg problem then.

My biggest gripe is that proc-macros2 is still necessary and knowing when I have to convert types between that or the extern’d proc_macro types.

nlnetlabs, to rust
@nlnetlabs@fosstodon.org avatar

As part of our ‘domain' library project, we are including diagnostics tooling. Instead of simply reimplementing ‘dig' in , we wanted to rethink what operators would want from such a command line tool. Today, we're happy to release version 0.1.0 of ‘dnsi’. https://crates.io/crates/dnsi

alexband,
@alexband@hachyderm.io avatar

@nlnetlabs “DNS Investigation" begs for release names. “Next up, on DNSI Miami…”

kubikpixel, to rust
@kubikpixel@chaos.social avatar

Do any of you developers know what the Server @stalwartlabs uses for an solution – Is it or even Sequoia--PGP? 🤔

I would like to use @sequoiapgp on the basis of personal arguments and this E-Mail 🔐📧

nlnetlabs, to rust
@nlnetlabs@fosstodon.org avatar

We love contributing to the #Rust community! For day 2 of @rustnl 2024, @alexband passed the hosting baton to the newest member of our #OpenSource dev team, @terts. 💚🦀 #rustlang

arendjr, to rust
@arendjr@mstdn.social avatar

@sophiajt just introduced : an systems language that is easier to use and learn, possibly quite interesting for application development. Will supposedly have interoperability. Very interesting!

An example of a circular linked list
Lots of roads ahead: Continue building reference compiler, better abstractions, Rust interop and more exploration of easy-to-use safety mechanisms

alexband, to rust
@alexband@hachyderm.io avatar

Do you think interacting with the Domain Name System is hard in ? @nlnetlabs is working on making this easier with 'domain', our toolkit with building blocks for application developers. Come talk to @partim, @terts, Philip and me at @rustnl to learn more. https://blog.nlnetlabs.nl/domain-dns-building-blocks-for-rust-application-developers/

chrisbiscardi, to rust
@chrisbiscardi@hachyderm.io avatar

blender -> sprites -> bevy

for 8-way directional movement

a character running

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 and finish the task scheduler.

https://gitlab.com/thompsondt/simplicity

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 Rake task led me eventually to 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

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

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

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