Masthash

#rustlang

Rust Weekly
48 minutes ago

runa - a wayland compositor toolbox in Rust looking for collaborators

https://github.com/yshui/runa

Discussions: https://discu.eu/q/https://github.com/yshui/runa

#linux #programming #rustlang #unix

Jan :rust: :ferris:
1 hour ago

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

Thomas Manthey
1 hour ago

Hey rustaceans! Is there a framework like cobra-cli for #rustlang? I came across clap while looking around - is that the way to go?

Ain Tohvri
2 hours ago

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

Adam Cook
2 hours ago

@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

https://github.com/GuillaumeGomez/tuto-rust-fr

#rust #rustlang

Rust Weekly
5 hours ago
Cameron Hart
5 hours ago

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.

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=103f856c727697acb59d0aa3502d6dc8

#RustLang

Astra Kernel :verified:
7 hours ago

✨ Programming languages used in twitter algorithms (From GitHub)

Where is Go?

#rustlang #python #scala #java #cpp #programming #golang

Programming language in twitter algorithm

Scala 53.8%
 
Java
29.7%
 
Starlark
6.3%
 
Python
4.7%
 
C++
2.4%
 
Rust
1.5%
 
Other
1.6%
Astra Kernel :verified:
7 hours ago

unsafe fn main( )😏

#rustlang #rust #cpp #programming

In rustjerk reddit, person asked how to use unsafe fn main( ). This is just for fun

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.

What a dramatic dependency bump tho lol #rust #rustlang

oh boy, this syn@2 thing is gonna be a little adventure, isn't it?

Aren't you glad that Cargo can link multiple semver-majors at a time?

#rust #rustlang

Ariel Richtman
10 hours ago

PHAT DANCE JAMS
*sounds of Rust code being compiled direct to a speaker*

#RustLang #Rust

Rust Weekly
13 hours ago

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

#programming #rustlang

Jesus ☑
13 hours ago

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.

#gamedev #rustlang #screenshotsaturday

path_c tech prototype 1
Gonçalo Ribeiro
15 hours ago

Any #rustlang #HTTP library you recommend?

Looking for something simple just to perform some API requests. Heard of #hyper but never used it.

https://www.arewewebyet.org/topics/http-clients/

c-x-b :verified: :verified:
16 hours ago

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?

\x1b orhun 👾
16 hours ago

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

jbr
17 hours ago

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

Owen Nelson
17 hours ago

When you've got doc comments and attributes on a thing in #rustlang do y'all do docs THEN attributes, or attributes THEN docs?

Johan Helsing
17 hours ago

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 :)

#rustlang #gamedev #bevyengine #ggrs

https://johanhelsing.studio/posts/extreme-bevy

Johan Helsing
17 hours ago

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

#rustlang #wasm #gamedev #bevyengine

https://johanhelsing.studio/posts/matchbox-0-6

Felipe Coury 🦀
17 hours ago

Doesn’t seem like much, but this is what you one week worth of working on my MSX emulator looks like.

#rustlang #msx #emulators

Astra Kernel :verified:
18 hours ago

🦀 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

#nannou #rustlang #rust

🎉 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!

#weekendvibes #Rustlab2023 #RustLab #rustlang

The Old C Dog
19 hours ago

Iterators and ranges in various languages including: C++, C#, D, Java, Python, and Rust.

https://youtu.be/d3qY4dZ2r4w

Enlightening to see the trade-offs.

#cpp #cplusplus #rustlang #rust

Astra Kernel :verified:
20 hours ago

♟️ A Chess Engine written in Rust that runs natively and on the web!

https://github.com/ParthPant/chess-rs

#rustlang #rust

\x1b orhun 👾
22 hours ago

Moved my #rustlang TUI template repository to the "ratatui" organization:
https://github.com/tui-rs-revival/rust-tui-template

\x1b orhun 👾
23 hours ago

Is there any http://helix-editor.com users around who wanna share their config? 👉👈

#rustlang 🦀

ozkriff🦀
1 day ago

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

#RustLang #GameDev #Programming

A screenshot from one of the Ambient engine demos: a postapocalyptic scene with abandoned buildings, rusty cars, etc.
Ariel Richtman
1 day ago

Interesting project to define easy and powerful patterns for Rust web applications.

https://rust-on-nails.com/docs/ide-setup/introduction/

#RustLang #Rust

Rust Weekly
1 day ago

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

#programming #rustlang

Filip
1 day ago

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

Gilles Fabio
1 day ago

Development Setup (Neovim, Tmux, Alacritty & other Rust-based Tools):

https://youtu.be/stCXFxC4OH0

#rustlang #neovim #devsetup

Nariod
1 day ago

@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

Astra Kernel :verified:
1 day ago

🦀 "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?

Article:
https://towardsdev.com/why-the-rust-community-should-be-worried-about-the-new-carbon-language-3a0ab07d6ce5

#rustlang #rust #cpp #carbon

Astra Kernel :verified:
1 day ago

🦀 The moment you understand the borrow checker

#rustlang #rust

Rust Weekly
2 days ago

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

#programming #rustlang

Chris Biscardi
2 days ago

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

https://www.youtube.com/watch?v=CQIxvTg7zNk

#verse #uefn #unrealengine

PredragGruevski
2 days ago

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?

#trustfall #rustlang

Editor screenshot showing a Rust trait named VertexInfo in the Trustfall "query all data sources" project.

The trait contains methods for inspecting a query's intended operations at a given vertex: for example, whether it will apply a type coercion (`coerced_to_type()`) or expand edges (`edges_with_name()`).
Dan Gohman
3 days ago

Mustang is now complete enough to run Web servers, built on tokio or async-std, completely in Rust with no libc!

https://github.com/sunfishcode/mustang

#rustlang #SideProject

Astra Kernel :verified:
3 days ago

Has anyone else felt like this?

#rustlang #rust

Astra Kernel :verified:
3 days ago

🐍+🦀 => Making Python 100x faster with less than 100 lines of Rust

https://ohadravid.github.io/posts/2023-03-rusty-python/

#rustlang #rust #python #programming

Ryosuke
3 days ago

giving me 1997 winamp vibes #egui #rustlang #uidesign

a native desktop app rendered by egui.  a side panel displays a list of color pickers representing the egui theme colors. and the right side is a preview of various egui components. as the video progresses the colors are selected, a color picker modal pops up, and the color is changed. as the color changes in the color picker it's reflected in the entire app's theme.
Ryosuke
3 days ago

#egui theme editor 🤔🎨 #rustlang

a native desktop app rendered by egui.  a side panel displays a list of color pickers representing the egui theme colors. and the right side is a preview of various egui components. as the video progresses the colors are selected, a color picker modal pops up, and the color is changed. as the color changes in the color picker it's reflected in the entire app's theme.
ozkriff🦀
3 days ago

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

#Programming #OpenSource #RustLang

An opened compiler explorer with many sub-windows: original code sample, its final asm form, long list of LLVM passes with one opened to see the diff
Mara
3 days ago

📕 What's the most exciting thing you learned from Rust Atomics and Locks?

#rustlang
https://marabos.nl/atomics/

Bastian Gruber 🦀
3 days ago

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

Ed Page
3 days ago

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

#rustlang

Mara
3 days ago

🆕🆕🆕🦀 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

https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html

Leon Qadirie
3 days ago

@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’?

Hayden Stainsby
3 days ago

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!

Tim McNamara
3 days ago

Is there anything you want to know about #rustlang? How is your learning experience going?

InfoQ
3 days ago

✅ 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

#SoftwareArchitecture

Ed Page
4 days ago

clap v4.2.0, with user-styled help descriptions, is now out!

https://epage.github.io/blog/2023/03/clap-v4-2/

#rustlang

Rust Weekly
4 days ago

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

#programming #rustlang

Chris Biscardi
4 days ago

How I made the shielded ferris using the new depth buffer prepass in #bevyengine 0.10

#rustlang

https://youtu.be/3OHaEVHahIg

ірина
4 days ago

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

#compilers #rustlang #graphql

Astra Kernel :verified:
4 days ago

🦀 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

#rustlang #rust #infosec #appsec #cpp #programming

"Rust has an ownership model that guarantees both memory safety and thread safety, at compile-time, without requiring a garbage collector. This allows users to write high-performance code while eliminating many bug classes. Though Rust does have an unsafe mode, its use is explicit, and only a narrow scope of actions is allowed. (14 Mar 2023)"
Stefan Baumgartner
5 days ago

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.

#rustlang

https://steveklabnik.com/writing/rusts-golden-rule

ozkriff🦀
5 days ago

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.

https://intellij-rust.github.io/2023/03/27/changelog-191

#RustLang #OpenSource #Programming #JetBrains

LLDB debug session, the content of the vector is shown even for pointers or references to it.
jbr
5 days ago

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