#rust
https://ohadravid.github.io/posts/2023-03-rusty-python/
"Making Python 100x faster with less than 100 lines of Rust"
I am a horrible developer. I've had no better journey in development than learning #Rust
So I’m trying to test some network code in rust today, I was trying to use a VPS (Ubuntu) but damned if it just wedges somewhere. Futex wait I think? But of course it doesn’t do this on any local Ubuntu environments. Wtf! #Rust #programming #Linux
This Week in Rust # 488 https://this-week-in-rust.org/blog/2023/03/29/this-week-in-rust-488/ #rustlang #rust
@garrowbregenza I'm in a similar situation. I wanted to add a GUI to an existing #Rust cli project, with limited Rust abilities.
The one I've been able to make any headway with is Tauri. I would prefer not to use a js front end, but by keeping the UI layer very thin and doing most of the work on the Tauri/Rust side of the bridge, you can keep it minimal. You can use Rust for the FE, but Tauri doesn't hold your hand as much as with js.
#Dioxus has potential, but I've found it pretty inscrutable
squee. I finally got around to enabling the #rust #cargo sparse protocol and I. am. in. love.
in ~/.cargo/config.toml, put:
[registries.crates-io]
protocol = "sparse"
The speed difference for 'cargo update', particularly on a smaller project, is amazing and delightful.
https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol
I find the #Dioxus website misleading. It's in the nature of open source that much isn't truly ready for user-space programmers, and that's fine. But honesty is always and everywhere a requirement. With its "Feature-packed Examples" (few of which are documented, and only one of which I could get to run), "Start building today, with Dioxus" (surely only possible for superior #Rust developers), the Dioxus web site is borderline deceptive (even given the slack we rightly give open source projects)
We're listening to #vaporwave and hacking on some #Rust, if you're into that sorta thing. https://twitch.tv/mttaggart
Sōzu – HTTP reverse proxy in Rust for immutable infrastructures
Link: https://www.sozu.io/
Discussion: https://news.ycombinator.com/item?id=35360878
I am slowly going back to old idea of card game in Rust. This time using #bevyengine #bevy, and I need to say that right now it is a real pleasure to use it. Even I did write some GitHub Actions, so I have auto upload of new WebGL version. One big thing missing for now is any kind of gameplay 🙈#rust #gamedev #indiedev

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

"New Mexico’s district attorney overseeing the “#Rust” shooting criminal prosecutions of #AlecBaldwin and armorer Hannah Gutierrez Reed has stepped down from the case, in the latest twist in the ongoing legal saga.
On Wednesday, 1st Judicial District Attorney Mary Carmack-Altwies announced that she had handed the prosecution of the high-profile case over to two seasoned New Mexico attorneys, Kari Morrissey and Jason Lewis." #legal
Novel way of handling integer overflow, which actually follows Liskov Substitution Principle (2021) https://blog.polybdenum.com/2021/10/03/implicit-overflow-considered-harmful-and-how-to-fix-it.html #security #rust #plt
Novel way of handling integer overflow, which actually follows Liskov Substitution Principle (2021) https://blog.polybdenum.com/2021/10/03/implicit-overflow-considered-harmful-and-how-to-fix-it.html | https://lobste.rs/s/qyislj #plt #rust #security
My first blog post on my from scratch blog about building a blog in Rust. Enjoy
Embarking on a Rust Web Development Journey in 2023
https://ugvx.dev/article/2023
Putting some time and energy into information visualization for Emergence has really paid off.
Now, you should be able to follow the basic rules of the game:
- structures emit signals based on tasks they need done
- units pick their goals based on the strongest signal in their tile when their current goal is complete
- units follow the signal gradient to pathfind in order to satisfy their goal
#bevy and #rust have been a joy for this sort of systems-heavy #gamedev.

Moar TT munchers! I re-built the tracing crate's `trace!` macro from scratch to learn how it works:
https://dietcode.io/p/tracing-macros
(This is my first intermediate-level Rust post, so I'd appreciate any and all feedback about how easy it is to consume 😇
I had a typo in the extension for the font file I was trying to serve, and the CSS was attempting to ask for a local install of it, which obviously wasn't going to work on most devices. :alicemlem:
Aside from that, I changed the pre-rendered HTML from Dioxus to go into a non-escaped HTML template being rendered through Rocket, using Handlebars. That should be a much better solution than simply manually writing some shitty HTML by paw and then casting the string as RawHtml(). :alicesweat:
In the future, it would be good to separate the Dioxus and Rocket parts into subcrates, so one could run dioxus serve in one, and cargo run in the main one. (something like this)Buuuut... that's for later, I need a break. :aliceweh:
𝗖𝗮𝗿𝗹𝗼 𝗕𝗼𝘀𝘇𝗵𝗮𝗿𝗱 𝗻𝗲𝗲𝗺𝘁 𝗿𝘂𝘀𝘁 𝗻𝗮 𝗲𝗻𝗸𝗲𝗹𝗯𝗹𝗲𝘀𝘀𝘂𝗿𝗲: '𝗠𝗼𝗲𝘁 𝗴𝗼𝗲𝗱 𝗻𝗮𝗮𝗿 𝗺𝗲𝘇𝗲𝗹𝗳 𝗹𝘂𝗶𝘀𝘁𝗲𝗿𝗲𝗻'
Carlo Boszhard moet het rustig aan doen. De presentator is door zijn enkel gegaan en ligt met zijn been omhoog, schrijft Boszhard in zijn column voor Televizier.
https://www.nu.nl/achterklap/6257359/carlo-boszhard-neemt-rust-na-enkelblessure-moet-goed-naar-mezelf-luisteren.html #nieuws #NUnl #CarloBoszhard #enkelblessure #rust
Effing-mad, an effect library for Rust
Link: https://github.com/rosefromthedead/effing-mad
Discussion: https://news.ycombinator.com/item?id=35358336
Today's waypoint on my #Rust journey: a new crate, implementing #SSDP client and server, which depends on my other crate. For instance, this is what you want if you're implementing #upnp, which I might have a go at later on https://github.com/pdh11/cotton/tree/main/cotton-ssdp
"Rustscape in Green and Orange"
#rustscape #rust #decayv #AbstractPhotography #StreetPhotography #ArtPhoto

Here's another fun interview about the Zed editor (written in #rust) this time with co-founder/developer Antonio Scandurra: https://rustacean-station.org/episode/antonio-scandurra/
It was interesting to hear a teensy bit about his prior work on CRDTs and how that factored into the design of how collaboration works: https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type
New #rustlang 1.68.2 is out, patches GitHub's compromised RSA key bundled in Cargo. Upgrade! https://blog.rust-lang.org/2023/03/28/Rust-1.68.2.html #Rust #Programming #Security
question: is there a way to be one-time notified of library releases? I’ve had this problem in #Python, #Ruby, and #Rust. A dependency breaks, so I send a pull request, but then use my own fork of the project until the PR gets released in an official release. How do you get notified when a library releases?
From what I see, #sshfs is getting some love from the community since it was archived in 2022-05-26. There is a fork that is focused on fixing bugs and merging PR (maintaining the current software), and there is also an effort to port the software in #Rust. I think these people can get some extra help from the community, especially the Rust fork which has came a long way.
The Rust fork:
https://github.com/neunenak/sshfs/tree/rust
The maintenance fork:
https://github.com/deadbeefsociety/sshfs
Shoutout to @h4sh and friends
https://opensource.com/article/23/3/python-loves-rust?fbclid=IwAR32bV-TMbu5bwjzBQEr2PjuudjViFpVC2VhDeM5ej9un1kkst2VyNsgTPU #rust with #python . A lot of powerful Python libs is wrappers around #c libs . We could do a #rust development with Python wrappers that make it available to wide Python community
@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’?
NIST nimmt Rust in die Liste der sichereren Programmiersprachen auf
Das National Institute for Standards and Technology (NIST) nimmt Rust wegen seines Ownership-Konzepts in die Liste der sichereren Programmiersprachen auf.
#NIST #Programmiersprachen #Rust #Security #Softwareentwicklung #news

Rust Identified as Safer Coding Tool by NIST https://foundation.rust-lang.org/news/rust-identified-as-safer-coding-tool-by-nist/ | https://lobste.rs/s/8zlltk #rust #security
Rust Identified as Safer Coding Tool by NIST https://foundation.rust-lang.org/news/rust-identified-as-safer-coding-tool-by-nist/ #security #rust
So,if Rust takes a steep learning curve and it takes some effort to create quality code with the complex language, what makes that better than learning to avoid the pitfalls in C with the same effort while using the much less complex language?
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!
Rust is NOT a low level programming language

Rust Releases! #Rust 1.68.2
Learn @bevy 0.10 Beginner Tutorial - EP10 - Bevy UI is out now! https://youtu.be/iW19V3a96tY #bevy #bevyengine #rust #rustlang #gamedev #gamedevelopment #ecs
Okay, so like... I have the site working, and I'm realizing that I absolutely can't get the site to be served with static assets alone. I would absolutely need to use some kind of other framework or write html to a file if I want static assets. That's fine, but it requires more work as well. Oh well, time to check out #rocket
Another option would be to have the SSR only output the HTML if I'm building for release, then I can just serve those assets alone with something like nginx. :alicesideeye:
But then that requires using nginx for things like routing and I'm not really about that. :aliceweh:

new blog up! I share tips and tricks for getting started with #egui I discovered while making a 3D animation GUI in #rust
https://whoisryosuke.com/blog/2023/getting-started-with-egui-in-rust/
Rust Is a Scalable Language https://matklad.github.io/2023/03/28/rust-is-a-scalable-language.html | https://lobste.rs/s/oesjmx #rust
runa: a wayland compositor toolbox in Rust looking for collaborators https://github.com/yshui/runa | https://lobste.rs/s/nyaja2 #linux #rust
🦀🐧Writing a Linux executable from scratch with x86_64-unknown-none and Rust
https://vulns.xyz/2023/03/linux-executable-from-scratch-with-x86_64-unknown-none-rust/

Staring at a #Rust build that includes both "openssl" and "rustls", trying hard not to care.
Writing a Linux executable from scratch with x86_64-unknown-none and Rust https://vulns.xyz/2023/03/linux-executable-from-scratch-with-x86_64-unknown-none-rust/ | https://lobste.rs/s/yzso5q #linux #rust

samply: Command-line sampling profiler for macOS and Linux https://github.com/mstange/samply | https://lobste.rs/s/h4isxj #rust
Quoting burntsushi from this reddit post: https://www.reddit.com/r/rust/comments/123wh4r/comment/jdy1p1d/
So the question was "What is your number one rust tool?". They answered:
rustdoc/cargo doc. By far. It was absolutely one of the things that drew me to the language, and it is one of things I miss the most in almost every other language. Most popular languages do of course have a similar tool, but rustdoc is best in class IMO, and it isn't even close. (I haven't tried literally every documentation tool out there, but I've tried/used at least the following: Doxygen, Sphinx, epydoc, pydoc, pdoc (duh), godoc, haddock, javadoc and probably some more that I'm forgetting.)
I'm super happy to see our work is appreciated. :)
My fix for intra-doc links on "intermediate re-exports" was just merged: https://github.com/rust-lang/rust/pull/109330. Code example:
mod m {
pub enum ValueEnum {}
}
mod m2 {
/// [`ValueEnum`]
pub use crate::m::ValueEnum;
}
pub use m2::ValueEnum;
The problem was that when rewriting a re-export attribute, the parent was not correctly set, messing up with the intra-doc link resolution.
Things happening wrt/ #Rust on #Fedora (just yesterday and today):
1. submitted a PR to fix a bug in the glib-macros, gtk3-macros, and gtk4-macros crates, and updated the Fedora packages to match (fixing failing builds).
2. updated the pyo3 crates to the latest version (v0.18.2)
3. updated the openssl and openssl-sys crates to the latest versions (addressing RUSTSEC-2023-0022, RUSTSEC-2023-0023, and RUSTSEC-2023-0024) - rebuilds of dependent packages are still pending
@janriemer @ozamidas I don't really understand what it means but building a quick mobile app isn't really doable with Tauri the way it is now. (I found out after fighting the thing for an entire afternoon.) #Rust
Super interesting read about Rust using WASM for extensions
https://blog.cloudflare.com/big-pineapple-intro/
#RustLang #Rust #WASM #DNS #SoftwareArchitecture #SoftwareEngineering #CloudFlare
🦀Your first hello world program in Rust:
> cargo new hello_world
> cd hello_world
> cargo run
After a lot of fighting with the linker in Retro68 I rebuilt my temperature converter application in #Rust. As with the Nim version, the C code is currently dealing with the toolbox calls and Rust handles parsing the strings, doing the calculation, stringifying the result, and writing it back out.
The Rust version is a bit better than the Nim one as it avoids allocation of intermediate strings and some copying of data.
Code is on GitHub: https://github.com/wezm/classic-mac-rust

🦀 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


It's taken a while, but we're finally stabilizing raw-dylib for #rust https://github.com/rust-lang/rust/pull/109677
#Rust slowly beating bad callback habits out of me from #JavaScript.
#TIL it's better to use a for loop instead of a `for_each()` if you need access to variables outside it's scope.

#Design #Development #Tools
Ruffle · Flash is back on the web – with a Rust-based Flash Player https://ilo.im/11x2bw
_____
#Ruffle #FlashEmulator #FlashPlayer #Rust #WebDesign #WebDevelopment #WebDev #OpenSource
Spent some time this weekend to configure my terminal, since I've started using it more and more recently. Quite pleased with the results:
- Terminal is #alacritty
- Shell is #nushell
- Multiplexer is @zellij
- Editor is #HelixEditor
- Background is a wallpaper by @davidrevoy

What's interesting about this write-up by Ferrous Systems of creating a real life visual demo with embedded #Rust is that the technology looks increasingly accessible.
https://ferrous-systems.com/blog/how-we-built-our-embedded-world-demo-on-rust-for-qnx/
Good day #Hachyderm.
My update is that it was a very busy week at work, but today I am lucky enough to carve out just a few hours of time to work on my passion projects.
Today will be hanging out live, enjoying #Sunday and hacking on #Rust, #Aurae, #Linux, and maybe even poking around at some AI or similar.
#TheNovaShow live now.
:youtube_logo: https://www.youtube.com/watch?v=2OpDqlaOPcs
:twitch_logo: https://twitch.tv/krisnova
Morning #Rust developers! What is your favorite book/course/tutorial for learning rust?
Hell yeah, that's the book done! :alicemlem:
Gosh, that was quite a journey. I think if I remember correctly, I started this about 2 or 3 weeks ago?.... Unsure! I probably could look back at my posts to find out, but that's not the point. I can do a #Rust program now. :alicehearttrans:
#trans #transbian #transfemme #programmersocks #gay


I’m excited to share with you my latest blog post on how to apply functional programming principles to your #Rust functions. This is something I’ve been learning and practicing for a while. I hope you enjoy reading it as much as I enjoyed writing it. And of course, I’d love to hear your opinions and suggestions on this topic.
#FunctionalProgramming
it'd be really neat if #rust supported list comprehensions by using the last expr of a for loop, sort of like:
let v: Vec<i32> = for foo in bar {
100
}.collect();
If you ever wanted a clean guide on how to make Mastodon in rust from scratch,
https://docs.rs/activitypub_federation/latest/activitypub_federation/
:BoostOK: :ReplyOK:
Why Rust for serverless/cloud native apps? Choose 9/9:
- Cost efficiency
- Low latency
- Memory efficiency
- Memory safety
- Environmental sustainability
- Fewer runtime errors
- Easy deployments
- Developer happiness
- Customer happiness
it's incredibly cool that you can just build 3ds games on your own, using #rust #rustlang https://github.com/rust3ds/cargo-3ds (and for the PSP!)
Un nouveau lecteur d'écran pour #Linux est en train d'être construit. Il est écrit en #Rust.
https://www.reddit.com/r/rust/comments/11y7x1y/odilia_v010_released_a_new_fast_safe_extensible/
#Reddit #Accessibilité #Accessibility #Blind #OpenSource #FLOSS #FreeSoftware #GPL #FOSS #LogicielLibre #Libre
Why was the dishwasher looking at the phone?
Async promised to callback
*ba dum* *tish* 😏
I've made the repository for my #Rust memory profiler public, enjoy! https://github.com/fasterthanlime/mevi
(Also send me cool screenshots of it!)
@surma @lgarron I'm also not sure what's wrong with rollup (vite is using it as well under the hood).
@surma Yeah, I think wasm-bindgen is almost as low-level as you can get in terms of compiling from Rust to WASM (emscripten is lowest level), so it should definitely work, good point! 👆
@lgarron I assume, you've already tried wasm-pack?
https://github.com/rustwasm/wasm-pack
If yes, I'd be interested why it wouldn't work for you.