
Hashtags are needed. 👆
Lots of people boost #getFediHired and #fedihire and others.
Plus specific ones get boosted. #rust #code and lots of eyes see it, and boosts get more instances.
#Tag
Hashtags are needed. 👆
Lots of people boost #getFediHired and #fedihire and others.
Plus specific ones get boosted. #rust #code and lots of eyes see it, and boosts get more instances.
The Rust Foundation is hiring a Rust Infrastructure Engineer!
Help scale & secure the systems that power Rust & support its global community.
If you’re passionate about open source & infrastructure, we’d love to hear from you.
Learn more and apply here by Oct 26: https://app.beapplied.com/apply/wus8snxdbg
Hashtags are needed. 👆
Lots of people boost #getFediHired and #fedihire and others.
Plus specific ones get boosted. #rust #code and lots of eyes see it, and boosts get more instances.
Async Concurrency relates to Multi-threaded Concurrency
the same as
Manual Memory Management relates to Garbage Collection
(at least in systems languages like #Rust)
#SoftwareEngineering #Concurrency #Async #Comparison #RustLang
Ha, someone ported my Node.js SQLite APIs to Deno https://docs.deno.com/api/node/sqlite/~/Session
Progress on my little speech2text/transcription project:
1. You press some hotkeys.
2. You speak into your microphone.
3. You wait for approx. 10 secs. (depending on your hardware)
4. Text starts to magically appear on your screen!
It feels like True Magic™! 🪄 ✨
This is why I love software development! ❤️
#Speech2Text #AI #Whisper #Rust #RustLang #Audio #AudioTranscription
Async Concurrency relates to Multi-threaded Concurrency
the same as
Manual Memory Management relates to Garbage Collection
(at least in systems languages like #Rust)
#SoftwareEngineering #Concurrency #Async #Comparison #RustLang
My Rust crate (mendeleev) is now at the top of the "chemistry" keyword by recent downloads.
https://crates.io/keywords/chemistry
That's nice. Although eventually I should try to publish something more sophisticated than a glorified CSV file. Ideas are welcome.
My Rust crate (mendeleev) is now at the top of the "chemistry" keyword by recent downloads.
https://crates.io/keywords/chemistry
That's nice. Although eventually I should try to publish something more sophisticated than a glorified CSV file. Ideas are welcome.
The following is the third search result when searching for "rust string newline windows"!
Ha, someone ported my Node.js SQLite APIs to Deno https://docs.deno.com/api/node/sqlite/~/Session
Progress on my little speech2text/transcription project:
1. You press some hotkeys.
2. You speak into your microphone.
3. You wait for approx. 10 secs. (depending on your hardware)
4. Text starts to magically appear on your screen!
It feels like True Magic™! 🪄 ✨
This is why I love software development! ❤️
#Speech2Text #AI #Whisper #Rust #RustLang #Audio #AudioTranscription
Destructure as a Reminder - by Dmitrii Aleksandrov
https://home.expurple.me/posts/destructure-as-a-reminder/
This is such a neat trick, if you need to use all fields in a struct for an operation.
Compiler will say "No", if you forget to use one field. 🙂
Destructure as a Reminder - by Dmitrii Aleksandrov
https://home.expurple.me/posts/destructure-as-a-reminder/
This is such a neat trick, if you need to use all fields in a struct for an operation.
Compiler will say "No", if you forget to use one field. 🙂
Async #Rust is actually awesome!
The last few days I've built a prototype(!) of a global "Hotkey" system e.g.:
Press & Hold LCtrl + Space
=> an async stream starts and only finishes if:
- another key is pressed or
- one of the Hotkeys is released
If it is not clear by now: this is a state-machine, which fits perfectly into Rust's #async model!
And the best part: This is actually the first time I've ever touched async #RustLang! Such a pleasant experience!
1/?
Cross-compiling a #Rust project that has custom build scripts that build C/C++ dependencies is an absolute clusterfuck!
I'm trying to cross-compile a Rust project from #Linux -> #Windows (x86_64-pc-windows-gnu) and I get walls of errors!
Some I could already fix by setting env vars to different compilers (gcc, g++, oh my!), but now I'm stuck. Maybe some missing compiler flags to gcc?
Or could it be related to this?
=> https://stackoverflow.com/a/53635241
First, the async runtime:
My advice: If you're new to async Rust, start with a single-threaded-by-default runtime like smol
:
https://docs.rs/smol/latest/smol/
Tokio's multi-threading by default and its frequent recommendation (especially to newcomers) is, IMHO, one of the biggest mistakes the Rust community has made!
Smol has everything you commonly need:
- channel
- Stream adapters
- etc.
3/?
Second: Pinning helpers!
When doing async #Rust, there will be a point, where you'll get the ominous "Doesn't implement Unpin" error and "You need to pin your value".
First, learn about Pinning:
https://doc.rust-lang.org/std/pin/
Like, really learn and understand it:
https://fasterthanli.me/articles/pin-and-suffering
And then use smol's pin! macro and the pin_project
crate:
https://docs.rs/pin-project/latest/pin_project/
I might continue this thread with more insights I gain during this little project - stay tuned! 🙂
4/4?
A space for Bonfire maintainers and contributors to communicate