hko, to rust
@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.

lily, to rust
@lily@glaceon.social avatar

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

dekirisu, to gamedev
@dekirisu@mastodon.social avatar

🦕 added castle themed assets
🐢 lighting changes & sky -> fog
🦜 tile map refactor

funnily enough - after I've changed sky->fog, the N24h race was red-flagged cause of fog and ended after only 8h. 👀

(all 3d assets are made with )

video/mp4

thomastospace, to random
@thomastospace@phpc.social avatar

I just started a plain typescript project, and was too lazy for a docker setup so I just installed Node with apt and went on my way.

I installed Typescript, that went fine, but when trying to use it it gave a vague error.

Quick search fixed it, but... I'm amazed by the cause: Typescript didn't support the version of Node I had installed, which sure.. That's okay. But why didn't NPM tell me this? NPM does not have node version constraints?!?

🤯

lukasrotermund,

@jaapio While composer is useful, it's not always the bee's knees, especially during major updates involving multiple packages.

Some of the error messages are completely useless and I have spent hours trying to find the problem. I have often wished I could switch to another language because I was stuck in composer update hell.

For example, I have fewer problems with Go modules and rust dependencies via rusts cargo. Both update more smoothly.

ekuber, to rust
@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/

oblomov, to programming
@oblomov@sociale.network avatar

I have a question for people with better theoretical background on and especially for developers.

Is the following pattern known and does it have a name?

I have a number of classes (call them C1, C2, etc) that all derive from the same class B. I have a superclass (template, actually) D that derives from C1, C2 etc. To have a single B, the standard solution is to go with virtual inheritance to close the diamond (so far, so good).

1/n

omalley,
@omalley@fosstodon.org avatar

@oblomov most of the newer languages (eg. or ) don’t support inheritance between classes/structs. They only support implementation of traits, which only define interface and not implementation. In general, using inheritance for implementation reuse is brittle and I like to avoid it.

orhun, to rust
@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

chrisbiscardi, to rust
@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

erlend, to rust
@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!

litchipi, to rust
@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

alice_i_cecile, to rust
@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, to opensource
@alice_i_cecile@mastodon.gamedev.place avatar

Hi! It's time for this week's edition of the #bevymergetrain. If this is your first time here, every week a do a round up of the community-reviewed PRs for @bevy, the #opensource #rustlang engine for #gamedev that it's now my full-time job to help maintain!

There's a whopping 20 PRs ready this week; let's check in on and each of them and I'll make the final call:

https://github.com/bevyengine/bevy/pulls?q=is%3Aopen+is%3Apr+label%3AS-Ready-For-Final-Review+-label%3AX-Controversial+-label%3AS-Blocked+-label%3AS-Adopt-Me+

kubikpixel, to rust
@kubikpixel@chaos.social avatar

«Methods Should Be Object Safe»
– by @noracodes

🤔 https://nora.codes/post/methods-should-be-object-safe/


#rust #rustlang #safe #security #coding

RogerBW, to raku
@RogerBW@emacs.ch avatar
msf, to rust
@msf@hachyderm.io avatar

Optimized my implementation for and on my local machine (macbookpro m1), lowered the time from ~24secs to ~14secs.

why is my implementation faster than the one?

any kind soul wants to take a look?

It just goes to show what inexperience does to perf.

https://github.com/msf/1brc/tree/8c7d0da28c72e375c384681fe12d190e769305ad/src/main/rust/msf

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

During our work towards openpgp-card v0.5 (https://fosstodon.org/@hko/112520486266094575), we wondered how to deal with secrets in log files.

It's often good if secrets are redacted in logs: This avoids accidental publication of a user PIN (or decrypted payload) in bug reports.
On the other hand, it can be useful for a developer to have full and verbatim logs (including secrets) for debugging.

We started work on this, but would like to hear from you. What should we do?

chrisbiscardi, to rust
@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

seanmonstar, to rust
@seanmonstar@masto.ai avatar

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

seanmonstar, to rust
@seanmonstar@masto.ai avatar

I spent a few hours on a toy project: a gateway app (reverse proxy) like nginx.

Written using hyper and tower, it was pretty easy to get something powerful already...

magnusmanske, to rust
@magnusmanske@wikis.world avatar

I just updated my crate "tool_interface"
https://crates.io/crates/tools_interface/

Besides new supported tools, it also includes a command-line binary for running tools, such as PetScan, PagePile, and Missing Topics from the shell. Examples:
https://github.com/magnusmanske/tools_interface/blob/main/src/bin/ti.rs

Elendol, to rust
@Elendol@hachyderm.io avatar

Trying to resist the urge to reimplement a badly implemented python library using and a simple python wrapper…

kubikpixel, to rust 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


dpom, to rust
@dpom@fosstodon.org avatar

Expand glob imports is an underrated feature of Rust Analyzer. It’s amazing how the black box melts away when you understand what your framework is bringing into scope.

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

🎆 Bevy Hanabi v0.11.0 is out!

Plenty of changes for that new version. Most notably, 🎆Hanabi now supports (a bit experimentally) trails and ribbons!

Another exciting change is that alpha-masked particles now use the depth buffer, fixing any flickering due to indeterminate Z order.

Migration guide: https://github.com/djeedai/bevy_hanabi/blob/v0.11.0/docs/migration-v0.10-to-v0.11.md, and
CHANGELOG for a full list of changes: https://github.com/djeedai/bevy_hanabi/blob/v0.11.0/CHANGELOG.md

📦https://crates.io/crates/bevy_hanabi/0.11.0
🦀https://github.com/djeedai/bevy_hanabi

#bevyengine #rustlang

Firework particle effect showing sparks fading from white and yellow to red before disappearing. The particles appear bent, thanks to the use of small trails giving some curvature to them, very much like a real world spark trail of a real firework.

jgayfer, to gamedev
@jgayfer@fosstodon.org avatar

I published my first plugin for Bevy! 🎉

🕯️bevy_light_2d is a general purpose 2d lighting crate for Bevy.

It’s designed to be simple to use, yet expressive enough to fit a variety of use cases.

⭐️ GitHub https://github.com/jgayfer/bevy_light_2d

#gamedev #bevy #rustlang #rust

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