#RustLang
@Jdreben @guardiarris @maegul Yes, at least #Leptos takes the #SolidJS approach of using signals to update only the minimal amount of DOM that actually changes.
Regarding JS: you don't need to touch it explicitly in those frameworks, BUT: it is still used to manipulate the #DOM.
For this to work, a lib called wasm-bindgen is used (awesome piece of technology!), which basically bridges #Rust <-> #JS:
https://rustwasm.github.io/docs/wasm-bindgen/
leptos_dom depends on it:
https://github.com/leptos-rs/leptos/blob/4ade062cd8cdbe9128aa7a2c8169c17c9d3e874c/leptos_dom/Cargo.toml#L28
🔍 The paper selection process for #RustLab2023 is in full swing! Our team is reviewing all the submissions. It's very hard but we're happy! 😅
Stay tuned. Exciting things are coming your way! 🦀
👉 https://rustlab.it/
#RustLab #RustLang

egui_overlay - A transparent Overlay window where you can only click the "egui parts"
https://github.com/coderedart/egui_overlay
Discussions: https://discu.eu/q/https://github.com/coderedart/egui_overlay
Diese Anleitung vom schlechten Beispiel zum funktionierenden Code war recht interessant. http://dtrace.org/blogs/ahl/2015/06/22/first-rust-program-pain/
Falls ihr Übungsaufgaben in #RustLang kennt, bei denen man zum Beispiel einzelne Fehler finden und beheben muss, würde ich mich gerne mal daran versuchen. #Rust #LearningRust #Sabbatical
Join us in our commitment to promoting #inclusion and #diversity in tech! 🏳️🌈
RustLab's Sponsorship program allows us to provide free conference tickets to underrepresented individuals. Support our mission! Sponsor #RustLab2023 today.
👉 https://rustlab.it/sponsors
#RustLang

Just published the 8.3.0 version of the geos crate.
It prevents the compute_voronoi function to panic by adding new variants in the geos::Error enum.
The Rust I Wanted Had No Future
https://graydon2.dreamwidth.org/307291.html
Discussions: https://discu.eu/q/https://graydon2.dreamwidth.org/307291.html
The Rust I Wanted Had No Future
Great blog post by @graydon about what would have happened in the alternate universe, where Graydon is BDFL of Rust.
"If I'd stayed in charge (...) the result would have been, I think, fairly unpopular. The Rust I Wanted probably had no future, or at least not one anywhere near as good as The Rust We Got. The fact that there was *any* path that achieved the level of success the language has seen so far is frankly miraculous."
#RustyGameJam 3 has concluded!
🥇Find Ferris
🥈Tug of Orb
🥉 The Veiled Path
This jam had few but high-quality and awesome games! We wish all the participants good luck in their future endeavors!
You can find the submissions here: https://itch.io/jam/rusty-jam-3/results
Introducing posh: Type-Safe Graphics Programming in Rust
https://leod.github.io/rust/gamedev/posh/2023/06/04/posh.html
Discussions: https://discu.eu/q/https://leod.github.io/rust/gamedev/posh/2023/06/04/posh.html
"Effective Rust" Book by David Drysdale
https://www.lurklurk.org/effective-rust/
Discussions: https://discu.eu/q/https://www.lurklurk.org/effective-rust/
Just wrote a piece on Yew, a Rust framework. If you're intrigued by #Rust or #WebAssembly, this might be right up your alley! Give it a read: https://ugvx.dev/article/exploring-yew #Yew #rustlang
Learning Rust Until I Can Walk Again
Discussions: https://discu.eu/q/https://fourteenscrews.com/
If you’re in the early days of learning #rustlang and nothing is going right, you should know that the last statement in a function is auto returned by that function, unless it has a semicolon at the end.
Which I found unintuitive.
"Experimental Patches For Rust-Written Linux Network Drivers" by Phoronix (mirror bot at @phoronix ) - #Linux Kernel infrastructure introduced to support #Rust🦀 network drivers. https://www.phoronix.com/news/Linux-Rust-Network-Patches #RustLang #networking #OpenSource #software #engineering #tech
There are some exciting changes in the new release of "uutils coreutils"!
🦀 Cross-platform #Rustlang rewrite of the #GNU coreutils.
⭐️ GitHub: https://github.com/uutils/coreutils
🚀 Changelog: https://github.com/uutils/coreutils/releases/tag/0.0.19

Writing universal libraries using C++ and consuming it in Rust (WASI)
scoped_tasks_prototype: A quick-and-dirty attempt to get scoped tasks in Rust.
https://github.com/PoignardAzur/scoped_tasks_prototype
Discussions: https://discu.eu/q/https://github.com/PoignardAzur/scoped_tasks_prototype
With latest commits, the functionality of the #rustlang based code is almost equivalent to the the #typescript prototype.
https://github.com/bdarcus/csln/commit/3b36cf5cb596e8379c7a122d325659667304aed6
It renders references with basic templates into a properly-sorted JSON AST, and I've implemented basic disambiguation (such as Doe, 2020c).
And it seems roughly 10x faster than the typescript code.
Wow! I'm absolutely in love with the learning environment of #rust / #rustlang and #rustlings and #rustbyexample. What an incredible combo.
I wish I had a similar environment to learn #python or #julialang in.
For those who are unfamiliar, Rustlings is an interactive learn-by-fixing program you run in your terminal. It correlates directly with Rust's official guide (The Book). They even link together and to the docs. So cool!
It's here! 🎉
Announcing match-commutative | A #Rust macro that helps matching on patterns commutatively, reducing the use of duplicated patterns. ✨
This can be useful, if you need to match on `(operant1, op, operant2)`, where `op` builds a commutative relation between `operant1` and `operant2`.
Please see the docs for the actual use case and an example:
https://docs.rs/match-commutative
Tagging @rjacobson and @tuck, because they've been interested in this. 😉
"#Rust developers usually are not just looking for "less buggy".
They are addicted to the clicky sound of legos." - by @Amirography in this thread:
https://floss.social/@Amirography@fosstodon.org/110486392843897963
Urgh, this quote is so 100% true!😄
Thank you @Amirography for expressing this!
#GoLab is gladly remembered also for its Social Events, where the features of Italian taste we're best known for (enjoying life, leisure, food and drinks) find their home ground. 🍷🪩
Please come back to check what we've planned for this edition!

[Problem Solving Rust Video] We Built a WASM Video Conferencing System in Rust capable of handling 1000 users per call
https://www.youtube.com/watch?ab_channel=SecurityUnion&t=242s&v=LWwOSZJwEJI
Discussions: https://discu.eu/q/https://www.youtube.com/watch?ab_channel=SecurityUnion&t=242s&v=LWwOSZJwEJI
Pure Rust implementation of a minimal Generative Pretrained Transformer
https://github.com/keyvank/femtoGPT
Discussions: https://discu.eu/q/https://github.com/keyvank/femtoGPT
Get started with #Typst #rustlang typesetting system.
(#Vim - #windows )
https://youtu.be/z9LvNWR-uN0
(blog post) Rust's cfg Attribute
https://blog.parker-codes.dev/posts/rusts-cfg-attribute
Discussions: https://discu.eu/q/https://blog.parker-codes.dev/posts/rusts-cfg-attribute
How Rust solves memory management without a garbage collector
https://mbinjamil.dev/writings/rust-memory-management/
Discussions: https://discu.eu/q/https://mbinjamil.dev/writings/rust-memory-management/
I've noticed that in #RustLang during an "introduce module" refactor I'll copy and paste using blocks and sometimes seeing what you can delete from either "side" of those copies is very satisfying.
EBPFGuard: a Rust Library Mitigation of Threats Using LSM Hooks
https://www.deepfence.io/blog/ebpfguard-a-library-for-inline-mitigation-of-threats
Discussions: https://discu.eu/q/https://www.deepfence.io/blog/ebpfguard-a-library-for-inline-mitigation-of-threats
Ok so what if I have this type `struct Foo<const CAP: usize> { }` and I want to use it non-generically, what are my options?
Ideally I'd want something like this:
`fn use_foo(foo: Box<Foo<dyn>>)`
But that syntax doesn't exist of course.
Paired benchmarking. How to measure performance
https://www.bazhenov.me/posts/paired-benchmarking/
Discussions: https://discu.eu/q/https://www.bazhenov.me/posts/paired-benchmarking/
#rustlang 1.7.0 disponível.
🦀 Announcing Rust 1.70.0
➥ Rust Blog
"You should see substantially improved performance when fetching information from the crates.io index. Users behind a restrictive firewall will need to ensure that access to https://index.crates.io is available. If for some reason you need to stay with the previous default of using the git index hosted by GitHub, the registries.crates-io.protocol config setting can be used to change the default."
#Rust #RustLang
https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html
It’s not wrong that "🤦🏼♂️".length == 7 (2019)
https://hsivonen.fi/string-length/
Discussions: https://discu.eu/q/https://hsivonen.fi/string-length/
How to Learn Rust - a FREE Rust course by the one-and-only Tim McNamara!
https://learning.accelerant.dev/how-to-learn-rust
Discussions: https://discu.eu/q/https://learning.accelerant.dev/how-to-learn-rust
Sniffnet, the Rust-based network monitoring tool, has now an official website
Discussions: https://discu.eu/q/https://www.sniffnet.net
Excellent blog post by Adam Chalmers to understand what Pin types are in Rust and why they are needed



The #relm4 project silently released version 0.6.0 without announcement. relm4 is a #RustLang UI library based on #gtk and inspired by #elm. I've been using the 0.6.0 beta for some time now and absolutely enjoy it. https://relm4.org/ https://github.com/Relm4/relm4
Typst: Compose papers faster
Discussions: https://discu.eu/q/https://typst.app/
I am starting a new project that is intended to be designed as a (#p2p) protocol eventually with implementations in multiple languages. I know #Python well, but I have been learning #Rust and think I'll need to write at least some of the perf-sensitive components in Rust. Do I prototype it in Python and then rewrite in Rust later, or try and power through and write it in Rust now?
#RustLang
edit: added hashtags fwiw
A Proposal for an asynchronous Rust GUI framework
https://notgull.github.io/async-gui/
Discussions: https://discu.eu/q/https://notgull.github.io/async-gui/
I never really feel happy with the aesthetics of my #rustlang code and I’m not quite sure why.
In my 4 years of #RustLang, I've never written any macros, because I didn't felt the need to learn them and I honestly felt a little intimidated by them. 😳
But holy cow have I missed out on this feature! #Rust's (Declarative) Macros can be _really_ useful!
I might put the one I'm currently implementing up on crates.io in the next few days. 🤞 The macro is able to simplify pattern matching in certain scenarios.
Stay tuned! :ferris:
My #rustlang 1.70 release train video is up. Including a bonus mention for cargo script!
Another crucial aspect in this matter of #AI rewriting your code:
You should make your tools reusable, so that others can benefit from it as well. This is not possible with #LLMs. Sure you can share the prompt, but the output is all wishy-washy.
Use a proper tool for this kind of task, e.g. ast-grep - ⚡ A fast and polyglot tool for code searching, linting, rewriting at large scale. Written in #Rust:
Rio, https://raphamorim.io/rio/.
A hardware-accelerated GPU terminal emulator powered by WebGPU, focusing to run in desktops and browsers.
Written in Rust, it’s still under heavy development, but it looks neat.
RTIC, https://github.com/rtic-rs/rtic.
Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers:
> A common question is whether RTIC is an RTOS or not, and depending on your background the answer may vary. From RTIC's developers point of view; RTIC is a hardware accelerated RTOS that utilizes the hardware such as the NVIC on Cortex-M MCUs, CLIC on RISC-V etc. to perform scheduling, rather than the more classical software kernel.
The RustConf Keynote Fiasco, explained, https://fasterthanli.me/articles/the-rustconf-keynote-fiasco-explained.
From Stacks to Trees: A new aliasing model for Rust
https://www.ralfj.de/blog/2023/06/02/tree-borrows.html
Discussions: https://discu.eu/q/https://www.ralfj.de/blog/2023/06/02/tree-borrows.html
Be careful when updating to Rust 1.70, it has many goodies, including the new cargo sparse protocol being enabled by default (wow, it's much faster!). Unfortunately, updating will incur toil on your side if you don't want to leave a few gigabytes of cache in your home directory. See the release notes:
Once you have fully committed to using the sparse protocol, you may want to clear out the old $CARGO_HOME/registry//github.com- paths.
On one of my machines, that's ~2GB of cache that will not be deleted automatically :
> du -h --max-depth=0 .cargo/registry/*/github.com-*
118M .cargo/registry/cache/github.com-1ecc6299db9ec823
926M .cargo/registry/index/github.com-1ecc6299db9ec823
1010M .cargo/registry/src/github.com-1ecc6299db9ec823
(there was a proposal to make this cache cleanup part of cargo clean but it was deemed surprising that cargo clean would work outside a workspace (?!))
May as well do a #introduction post
Hi! I'm Skye, who used to be @exokai@meow.social
Some quick facts about me:
- I'm transfem
- I have autism
- My sona, also called Skye, is a transfem shark
- I live in the UK (aka TERF Island :/ )
My hobbies:
- I do a lot of programming in languages such as #c++ , #rustlang , #kotlin and #pythonlang
- I know a decent amount about HPC programming (I've used #cuda , #opencl , #hiplang and #vulkan compute)
- I own an FPGA that I want to do something useful with
- I really love old computers, esp ones to do with the history of HPC, such as SGI machines - sadly I do not own any of these computers as of writing this :(
- I've participated in the homebrew scenes for the Original Xbox, and the PS3
- On the note of consoles, I own: an Xbox One S, a PS3, an Original Xbox, a Wii, and a GameCube
- Other than programming aligned interests, I really like:
- Trains (expect me to post a lot of train photos/videos when I go on them lol)
- Cosplay - sadly I've never actually owned a cosplay or made one, however, I've been to quite a few comiccons around the UK, and one day, when I have the money, I'd love to make/buy a cosplay (I might make a cosplan post at somepoint?)
- I'm also into Mountain Biking, and when I do it I may upload videos of cool shit I do lol
Shows I've watched and loved (and where my cosplans mostly come from lol - also, these are in no particular order):
- The Dragon Prince
- She-Ra (2018)
- Yakitori
- The Owl House
- Avatar: The Last Airbender
- The Legend of Korra
- Arcane
- Brand New Animal
- Voltron
Links:
- My GitHub profile: https://github.com/ExoSkye
- My Transistor Cafe site: https://transistorcafe.net/~exoskye/
- Discord - ask me personally for my tag if you want it
- My Email: exoskye@duck.com
Also, if anyone wants to donate some money to me (i have none rn lol), then you can do so via my PayPal which you can get by communicating with me directly in a DM
Anyway, thanks for checking out my profile!
This seems like a great learning resource for #Rust #RustLang if you want to understand the lower level behavior of the language's high level constructs
https://eventhelix.com/rust/
👆 Rustaceans will like this!
> This is what a crab looks like, and apparently what _peak performance_ might look like [...]
> When a _trait_ appears [...]
> Their diversity makes it tricky to _pin_ down [...]
Why is #RustLang so "punnable" (is that a word?)?😅
Sorry, @laurahelmuth if you have no idea of what I'm talking about. It's a joke in the #Rust programming language community.
#Rust🦀 1.70.0 released by Rust Language Release Team - sparse by default for crates-dot-io, OnceCell & OnceLock stabilized, is_terminal on fds, named levels of debug info, enforced stability in test CLI https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html #RustLang #OpenSource #cybersecurity #software #engineering #tech

Celebrating Rust 1.70, @togglebit and I meet to discuss seemingly everything except our game. https://wayofthecrab.com/episodes/005/ #RustLang #Podcast
Interesting discussion about editors for Rust code: https://www.reddit.com/r/rust/comments/13xe2ao/thoughts_about_zed_editor/
#Rust #RustLang
iamb, https://github.com/ulyssa/iamb.
A Matrix client, in the terminal, for Vim addicts.
It's even written in Rust. And it's even using the Matrix Rust SDK (https://github.com/matrix-org/matrix-rust-sdk).

I'll be available starting July, so if you know someone that is hiring full-remote Rust freelances/contractors and is not scared away by me working a 4-day week, let's get in touch 🙌
More info on my LinkedIn post: https://www.linkedin.com/feed/update/urn:li:activity:7069959518486417409/
You don't hate async #rustlang, you just hate capitalism
@thomasfuchs True, true... but can we please stop using C++ for all new projects?
It's been fun, but let's avoid null from now on.
(This toot is sponsored by #rustlang gang 🦀)
Announcing WASIX - the Superset of WASI
https://wasmer.io/posts/announcing-wasix
Discussions: https://discu.eu/q/https://wasmer.io/posts/announcing-wasix
Graydon Hoare: Batten Down Fix Later
https://graydon2.dreamwidth.org/307105.html
Discussions: https://discu.eu/q/https://graydon2.dreamwidth.org/307105.html
I might have just started my #rustlang journey during a random wednesday night. Time will tell if this was a wise decision.
Cargo is cool!
Update - both Josh Triplett and Josh Gould have come out with personal statements about being responsible:
Josh Triplett's statement: https://hackmd.io/p3VG_bK9TXOvtgh1oA2yZQ?view
Josh Gould's statement: https://twitter.com/_joshgould/status/1663594940197228544
(#rustlang for visibility)
Statement from Josh Triplett on the events that lead to the RustConf Keynote change, and next steps
https://hackmd.io/p3VG_bK9TXOvtgh1oA2yZQ?view
#Rust #RustLang
On the RustConf keynote | Rust Blog
https://blog.rust-lang.org/2023/05/29/RustConf.html
Discussions: https://discu.eu/q/https://blog.rust-lang.org/2023/05/29/RustConf.html
There's an official statement from #rustlang leadership on @thephd 's keynote:
https://blog.rust-lang.org/2023/05/29/RustConf.html
No personal accountability, yet, though the post alludes that individuals may come forward? It does mention the individuals have stepped back from governance positions.