#rustlang
runa - a wayland compositor toolbox in Rust looking for collaborators
Discussions: https://discu.eu/q/https://github.com/yshui/runa
Announcing Matchbox 0.6 - by Johan Helsing:
https://johanhelsing.studio/posts/matchbox-0-6
"Matchbox is a solution for painless peer-to-peer networking in rust web assembly (and native!). 0.6 is its biggest release yet. We added support for multiple data channels with configurable reliability, support for peer disconnections, a bevy plugin, a new signaling server crate, and fixed quite a few bugs."
#Matchbox #Rust #RustLang #WebRTC #GameDev #Networking #RealTime #Bevy #WebAssembly #WASM
Hey rustaceans! Is there a framework like cobra-cli for #rustlang? I came across clap while looking around - is that the way to go?
Well-reasoned and interesting discussion on the Puma board about the #Ruby (or #Rust) rewrite of the C HTTP parser extension https://github.com/puma/puma/issues/1889 #Programming #RubyOnRails #rustlang
@mo8it That’s true and I did not really consider that… but, at the same time, I sort of feel that Rust adoption has already reached escape velocity, more or less.
So, perhaps the harm is arguably minimal.
I am even seeing #RustLang adoption in some quarters of industrial automation now which is a *very* conservative industry.
My french Rust tutorial just got 100 stars on github, glad to see people are enjoying it! You can read it here: https://blog.guillaume-gomez.fr/Rust
Twitter open sources Navi: High-Performance Machine Learning Serving Server in Rust
https://github.com/twitter/the-algorithm/tree/main/navi/navi
Discussions: https://discu.eu/q/https://github.com/twitter/the-algorithm/tree/main/navi/navi
This seems like an unfortunate ambiguity - If you make a trait with a math method like `sqrt` and impl it for `f32` it is called in some cases and the `std` method is called in others. There's no warning about this behavior.

Declarative UI Programming in Rust for Native Applications
https://medium.com/@limikael/declarative-ui-programming-in-rust-for-native-applications-d93862886545
Anyway, I've released a new #miette with the syn2 + thiserror 1.0.40 upgrade (they need to be done together! Otherwise everything explodes!), and went ahead and did new releases for cacache, ssri, and kdl-rs, too, while I was at it. That should just about cover it.
Blog Post: Enabling low-latency, syntax-aware editing using Tree-sitter
https://zed.dev/blog/syntax-aware-editing
Discussions: https://discu.eu/q/https://zed.dev/blog/syntax-aware-editing
As planned, I'm done with a first tech prototype of the still unnamed game I'm working on.
Features:
- Basic wgpu-based renderer.
- Basic camera.
- Windowing system (using winit).
- Event/input system.
- Immediate mode GUI renderer and component. Built with a custom renderer for egui.
- Initial entity/component framework. Very data oriented, components are intended to be mostly managers of structs of arrays that mass update all managed instances.

Quick, you need to parse some data coming in over the network (that isn't just JSON or something) in #RustLang. What crate do you reach for?
I think I found my favorite CLI find/replace tool 😍 written in #rustlang 🦀
repgrep: https://github.com/acheronfail/repgrep
Also packaged it in AUR: https://aur.archlinux.org/packages/repgrep

Rust's #[test] macro doesn't have a way of doing shared setup/teardown, so I made a little test harness macro that wraps your tests with another function: https://github.com/jbr/test-harness
Any name suggestions before I publish it? Is this useful to anyone else?
#rustlang
Thoughts on async closures by Niko Matsakis
https://smallcultfollowing.com/babysteps/blog/2023/03/29/thoughts-on-async-closures/
Discussions: https://discu.eu/q/https://smallcultfollowing.com/babysteps/blog/2023/03/29/thoughts-on-async-closures/
When you've got doc comments and attributes on a thing in #rustlang do y'all do docs THEN attributes, or attributes THEN docs?
Oh, and I've updated the Extreme Bevy tutorial series (How to make a p2p web game with rust and rollback netcode) to Bevy 0.10, bevy_ggrs 0.12... and it's using the new bevy_matchbox crate :)
Matchbox 0.6 has just been released! Matchbox provides painless peer-to-peer WebRTC networking for rust wasm and native.
A bunch of new stuff in 0.6. Some of the highlights are:
- multiple data channels per socket
- unreliable channels, reliable channels and everything inbetween
- a new bevy_matchbox crate making it simpler to use with bevy
- a new matchbox_signaling crate for building a customized signaling server
Doesn’t seem like much, but this is what you one week worth of working on my MSX emulator looks like.

🦀 Creative coding with Rust
▶️ This mesmerizing animation created by @emportent with help of nannou framework
▶️ Play with the math and see significant changes in the output
https://github.com/altunenes/rusty_art
🎉 Have a wonderful weekend! 🌞
Don't forget to keep following us for the latest updates, as we have exciting news coming your way next week. 🤩
👉Stay tuned!

Iterators and ranges in various languages including: C++, C#, D, Java, Python, and Rust.
Enlightening to see the trade-offs.
NewsFlash, a #Feed reader written in #Rust with #GTK
https://gitlab.com/news-flash/news_flash_gtk
♟️ A Chess Engine written in Rust that runs natively and on the web!

Helix editor 23.03 released!
https://helix-editor.com/news/release-23-03-highlights/
Discussions: https://discu.eu/q/https://helix-editor.com/news/release-23-03-highlights/
"Why I switched from JS to Rust”
https://www.youtube.com/watch?v=Tsb9IQ3e8F8
#RustLang #JavaScript
Moved my #rustlang TUI template repository to the "ratatui" organization:
https://github.com/tui-rs-revival/rust-tui-template
Is there any http://helix-editor.com users around who wanna share their config? 👉👈
https://ambient.run are looking for a full-time Rust game developer:
"In this role you’ll be designing and building moddable multiplayer games and game templates in Rust using Ambient. The games will be used to engage developers and showcase the engine."
See their site for more details:
https://ambient.run/open-roles/senior-game-programmer-rust-modding

Interesting project to define easy and powerful patterns for Rust web applications.
A Chess Engine is written in Rust that runs natively and on the web!
https://github.com/ParthPant/chess-rs
Discussions: https://discu.eu/q/https://github.com/ParthPant/chess-rs
Wanted to let you all know that #Helix just released it's newest version, containing a bunch of flashy updates, besides the usual strong changes they make! :blobcatrainbow: :catjam:
You can read more about it in their release blog: https://helix-editor.com/news/release-23-03-highlights/
Proud to be part of the community and project!
#HelixEditor #Rust #RustLang #Editor #TextEditor #Software #SoftwareDevelopment #FOSS #OpenSource #FreeSoftware
Development Setup (Neovim, Tmux, Alacritty & other Rust-based Tools):
@skyglobe @AstraKernel I can't go back to another way of handling errors. From my point of view, Rust only lacks networking crates.
#rust #rustlang
🦀 "Why the Rust Community Should Be Worried About the New Carbon Language"
👉 should we?
👉 If we some language can do what Rust can do but more simpler, we should be happy to switch but is that the case here?

thiserror, anyhow, or How I Handle Errors in Rust Apps
https://www.shakacode.com/blog/thiserror-anyhow-or-how-i-handle-errors-in-rust-apps/
Discussions: https://discu.eu/q/https://www.shakacode.com/blog/thiserror-anyhow-or-how-i-handle-errors-in-rust-apps/
🦀 Writing a Debugger From Scratch - using Rust
https://www.timdbg.com/posts/writing-a-debugger-from-scratch-part-1/

After years of work and discussion, `once_cell` has been merged into `std` and stabilized
https://github.com/rust-lang/rust/pull/105587
Discussions: https://discu.eu/q/https://github.com/rust-lang/rust/pull/105587
I followed up on #verse, the Unreal Engine for Fortnite language by digging into what makes it different than other languages.
This is a programmer's intro to the language, so makes references to #rustlang, #javascript and other languages to compare against Verse.
structured concurrency, an effect model, and transactional memory are some of what I found most interesting
Trustfall's new query optimizations API is taking shape 🚀
Here's the "how is this vertex being used by this query" portion of the API. Any thoughts? Any better naming ideas?

Mustang is now complete enough to run Web servers, built on tokio or async-std, completely in Rust with no libc!
🐍+🦀 => Making Python 100x faster with less than 100 lines of Rust

Not exactly fresh news but it turns out that @compiler_explorer got an amazing feature last year: ability to step through the individual LLVM optimization passes and see what exact effect it has on your code sample. Cool stuff! 🤯
Example: https://rust.godbolt.org/z/46P8MP3x1

Blog Post: Making Python 100x faster with less than 100 lines of Rust
https://ohadravid.github.io/posts/2023-03-rusty-python/
Discussions: https://discu.eu/q/https://ohadravid.github.io/posts/2023-03-rusty-python/
📕 What's the most exciting thing you learned from Rust Atomics and Locks?
Ever wanted to know more about asynchronous #rustlang?
Design patterns, common pitfalls etc?
I am doing a live series on April 11th, where I cover the basics, and then some, on writing asynchronous Rust.
Register your free spot here:
https://www.amicusjobs.com/events/rust-live-asynchronous-rust
Wanting to contribute to cargo?
The cargo team is going to experiment with mentorship office hours to see if it helps having an open time to talk through contributions of any kind, including triaging, writing up designs, or working on implementations.
For the schedule: https://github.com/rust-lang/cargo/wiki/Office-Hours
🆕🆕🆕🦀 In the last few weeks, #rustlang 1.68.0, 1.68.1 and 1.68.2 have been released!
Here's a thread with some of the highlights of Rust 1.68. 🧵
1/11
@timClicks First, thank you for your contributions to the learning ecosystem. I loved #rustinaction.
Not a #rustlang specific, yet as a relative beginner in programming with only a (deep-ish) generic tech background I currently struggle with the transition from simple programs to designing more complex systems with clean interfaces, as the type system seems to favour well-planned design over rapid prototyping (at my skill-level at least).
So: ‘Pragmatic ways to tackle/balance this in #rust’?
Since the 2021 edition, Cargo manifest files support the rust-version field where you can specify the Minimum Supported Rust Version (yes, that’s what MSRV stands for!) for your crate.
What is even cooler is that #clippy (since 1.64) will read that value and respect it, no lints will be run that require new versions of #rust to fix!
So you can happily run clippy from the latest #rustlang version without worrying about it proposing changes that won’t compile on your oldest supported version!
Is there anything you want to know about #rustlang? How is your learning experience going?
✅ Hear about rewriting a portion of a code in #rustlang.
✅ Learn how to identify the performance hotspots in a project, refactoring that piece of code in Rust, doing cross-language regression testing & performing the benchmarks on the resulting code.
#InfoQ video by Lily Mara: http://bit.ly/3TTF3XX

clap v4.2.0, with user-styled help descriptions, is now out!
NIST added Rust to its list of “Safer Languages” as part of its Software Assurance Metrics and Tool Evaluation
https://www.nist.gov/itl/ssd/software-quality-group/safer-languages
Discussions: https://discu.eu/q/https://www.nist.gov/itl/ssd/software-quality-group/safer-languages
How I made the shielded ferris using the new depth buffer prepass in #bevyengine 0.10
Rust and GraphQL enthusiasts! We just released `apollo-compiler@0.7.0`. A whole bunch of new validations + diagnostics! Multi-file diagnostic support! Lots of new and ergonomic ways of handling extensions!
changelog --> https://github.com/apollographql/apollo-rs/releases/tag/apollo-compiler%400.7.0
🦀 NIST(National Institute of Standards and Technology) added Rust to list of Safer languages list
https://www.nist.gov/itl/ssd/software-quality-group/safer-languages

Loved Steve Klabnick's "Rust's Golden Rule". It's about function signatures, return types, and type inference, and why some small language details are very intentional and have a huge effect on how you perceive your program.
While I see other PL communities bikeshed over whether to annotate return types or not, this was a breath of fresh air that brought some calm and profound details on a small, but important decision.
We've released #IntelliJRust #191 today! Highlights:
- Now the plugin shows parameter and chained method calls hints inside attribute procedural macro calls.
- LLDB debugger backend now shows the contents of references and pointers.
- A bunch of new Rust errors are detected by the plugin: mismatched members in trait impl, underscore expression in wrong place, etc.

fav #rustlang lock-free queue impl? I don’t really feel like benchmarking right now so I’m lazytooting