Rustlang

erlend,
@erlend@writing.exchange avatar

https://blog.commune.sh/weird-happenings/

After two months of development, a LOT has happened in the Weird project.

Weird is a web application built to increase the agency of internet users. We are building three interconnected pillars as our foundation:

  • Independent social sign-in rooted in the OIDC standard as keymaster
  • A personal web space creator
  • An actually-social network of shared purpose

In two weeks we're starting our pilot with the Norwegian Buddhist Foundation!

saul,
@saul@social.coop avatar

@erlend Looks exciting! I haven't been following any of this... but have been wanting a way to send my friends digital letters through some kind of web interface that would ideally be e2e encrypted. Is that the kind of thing that could be built with this stuff?

erlend,
@erlend@writing.exchange avatar

@saul we’re more of a facilitator for that kind of thing. Weird can help make the initial connection, but the message transmission would be left to any of a number of E2EE messengers we’d defer to (by integration), like , , , etc.

orhun,
@orhun@fosstodon.org avatar

Can't believe this is now possible in the terminal! 🤯

🌀 bevy_ratatui_render: A Bevy plugin for rendering a Bevy app to the terminal using Ratatui.

🦀 Written in Rust | Built with @ratatui_rs & @bevy

⭐ GitHub: https://github.com/cxreiff/bevy_ratatui_render

video/mp4

hko,
@hko@fosstodon.org avatar

@orhun that looks unreal O_o

alice_i_cecile,
@alice_i_cecile@mastodon.gamedev.place avatar

Straw-people love to say that #rustlang is terrible for quick-and-dirty scripting tasks: just write Python or Perl!

My experience with it has been great though: CLIs are so smooth to write, there's great crates for all the dumb little things you want to do, and path + string processing is super easy. And then you can actually read / modify the script in the future. We've been working on a generate-release script for @bevy with multiple contributors over the last month; it's been lovely.

alice_i_cecile,
@alice_i_cecile@mastodon.gamedev.place avatar

@tottinge @bevy Neat! It's been a while since I wrote Python in earnest so it's good to hear about new tools.

Yeah, that was a joke/observation about perl (and things like bash scripts). Throwaway scripts have a nasty habit of not being thrown away...

alice_i_cecile,
@alice_i_cecile@mastodon.gamedev.place avatar

@weberc2 @bevy Yeah, that makes a lot of sense :) In this case, the tool is run on developer machines only, so it's less of a factor, but for most other applications that's a massive factor.

teajaygrey,
@teajaygrey@rap.social avatar

In yet another example of things which do not inspire confidence in Rust, nor things written in Rust:

"This port has been deleted. This page will exist till another port with the name 'rust' comes into existence."

o.O

bk1e,
@bk1e@mastodon.social avatar

@teajaygrey There’s a Trac ticket saying it’s not really deleted and at least one other package has the same problem: https://trac.macports.org/ticket/70131

hko,
@hko@fosstodon.org avatar

I'm excited to announce the release of oct v0.11.0 🚀️

oct is a tool for inspecting, configuring and using cards 🔒 (https://crates.io/crates/openpgp-card-tools)

oct can now set up cards in mode, the text output format was improved for readability, and some minor bugs were fixed.

Finally, version 0.11.0 uses , a pure OpenPGP library 🦀.
As a result, the binary on links to four fewer dynamic libraries, while at the same time being 10% smaller.

Larvitz,
@Larvitz@burningboard.net avatar

@hko awesome. I use the openpgp-card-agent on 5 machines already and it made my life so much easier. And oct is also an amazing tool when having to deal with opnepgp cards. Thank you so much for that awesome projects 😊

hko,
@hko@fosstodon.org avatar

@Larvitz :blobcatheart:

chrisbiscardi,
@chrisbiscardi@hachyderm.io avatar

This week in the Bevy ecosystem we see Tiny Glade ship a Steam demo, live VJ sets powered by Bevy, screen space reflections in the deferred renderer and more.

We've also got the usual showcases and a couple really interesting crate release for 2d lighting systems and gpu particles.

https://thisweekinbevy.com/issue/2024-06-03-tiny-glade-vj-performances-and-2d-lighting

#rustlang #bevyengine #gamedev

litchipi,
@litchipi@fosstodon.org avatar

I just had a 23% speed increase on my project by disabling "panic = abort" in the release profile...

And I can consistently slow it back down when adding it again

Is there something there I'm missing ? Seams really odd

litchipi,
@litchipi@fosstodon.org avatar

@kornel but panic="abort" doesn't make the code panic more frequently, just that when it does, it just aborts (no call stack)

So I don't see how just aborting on panic prevent some code optimizations

kornel, (edited )
@kornel@mastodon.social avatar

@litchipi the other way around - panic=unwind is slowest, because it needs to preserve state for unwinding. panic=abort is less bad, because panic won't return, and panic=immediate_abort (unstable) is fastest, because it doesn't need any state preserved, and using return instead of panic is ideal because then llvm knows what they are and can move and coalesce returns.

ekuber,
@ekuber@hachyderm.io avatar

Niko Matsakis, as usual, with insightful ideas about how to evolve Rust's lifetimes to make them both more powerful and easier to use.
https://smallcultfollowing.com/babysteps/blog/2024/06/02/the-borrow-checker-within/

Alonely0,
@Alonely0@mastodon.social avatar

@ekuber @mcc that was mara with super let iirc.

mcc,
@mcc@mastodon.social avatar

@Alonely0 @ekuber i would pay an extra five dollars per month for access to "premium" let statements

lily,
@lily@glaceon.social avatar

i never considered doing a pub use on enum variants...

ray_gay,
@ray_gay@hachyderm.io avatar

@lily isn't that also how "Ok", " Err", "Some" and "None" are just available?

LGUG2Z,
@LGUG2Z@hachyderm.io avatar
LGUG2Z,
@LGUG2Z@hachyderm.io avatar

@khalidabuhakmeh do you know if any folks working for JetBrains are using komorebi? 😅

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@LGUG2Z I can ask :)

thunderbird,
@thunderbird@mastodon.online avatar

✅ Custom Account Colors
✅ Linux System Tray Support
✅ Rust-Enabled Builds

And that's only half of the good news! This month's Thunderbird Development Digest from @alecaddd has some great updates as we step closer to the next ESR.

https://blog.thunderbird.net/2024/05/thunderbird-monthly-development-digest-may-2024/

Hieronymus,
@Hieronymus@mastodon.online avatar

@thunderbird @alecaddd

Nice outlook, nice update!
So, is there any progress on sync between different devices? Like Firefox browser sync.

morganist,
@morganist@mastodon.online avatar

@thunderbird @alecaddd hopefully the tray icons won't be hardcoded. this would allow them to be themed on linux desktops if the user chooses!

seanmonstar,
@seanmonstar@masto.ai avatar

There's now a hyper guide using the new graceful shutdown utility: https://hyper.rs/guides/1/server/graceful-shutdown/

kubikpixel, German
@kubikpixel@chaos.social avatar

Ja und Nein, denn Rust ist im grunde sicherer aber auch das kommt darauf an wie mensch es umsetzt. Ich vertraue Rust mehr als anderes Coding, ich schau mir die Libs-Daten an.

»Speichersicherheit – Fast 20 Prozent aller Rust-Pakete sind potenziell unsicher:
Nach Angaben der Rust Foundation verwendet etwa jedes fünfte Rust-Paket das Unsafe-Keyword. Meistens werden dadurch Code oder Bibliotheken von Drittanbietern aufgerufen.«

🦀 https://www.golem.de/news/speichersicherheit-fast-20-prozent-aller-rust-pakete-sind-potenziell-unsicher-2405-185452.html


kubikpixel,
@kubikpixel@chaos.social avatar

@Denian ja auch meine Meinung und auch deswegen gepostet – Technik innerhalb von "Sekunden" neu zu erfinden ist einfach eine falsche Illusion 🤷‍♂️

Denian,
@Denian@chaos.social avatar

@kubikpixel Sehr schade finde ich, dass der Artikel nicht darauf eingeht, dass viele der "unsicheren" Pakete tatsächlich nur Wrapper sind, die explizit diese eine Fremdbibliothek einbinden und evtl. abstrahieren - also tatsächlich eine zusätzliche Sicherheitsschicht, um diese Bibliotheken möglichst einfach aktualisieren oder auswechseln zu können.

Soblow,
@Soblow@eldritch.cafe avatar

Is there a way in Rust to use standard lib traits (Ord, Eq, Into/From...) with async functions?
Perhaps a crate or something?
Or must it be a separate function implemented for the structs?

kornel,
@kornel@mastodon.social avatar

@Soblow It's not possible. These traits require returning result immediately, and this is their guarantee that cannot be changed. You need to create your own methods for this, or preload data ahead of time.

chrisbiscardi,
@chrisbiscardi@hachyderm.io avatar

controller support plus 32-angles of sprite rendered out for each animation. Makes it feel much more "3d"-y even though its all 2d sprites.

isometric projection is now also being applied to the directional input and the raycasts, etc.

video/mp4

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