Learning rust is like getting a verbose solution working only to find out somewhere along the line people got tired of that and someone added `Option::fine_but_what_about()` to avoid it
Learning rust is like getting a verbose solution working only to find out somewhere along the line people got tired of that and someone added `Option::fine_but_what_about()` to avoid it
Rust Under the Hood hardcover edition is now available!
Dive deep into Rust internals through x86-64 assembly, exploring memory management, compiler optimizations, async state machines, and more.
Get your copy today: https://www.amazon.com/dp/B0DS9M8S13
Learn how enums, structs, Vtables, SIMD, and async executors work at any level.
12 Common Pitfalls to Avoid When Learning Rust: A Newcomer's Guide
Diving into Rust can be daunting, but avoiding common mistakes can make the journey smoother. From understanding compiler errors to leveraging Rust's unique features, this guide highlights pitfalls th...
https://news.lavx.hu/article/12-common-pitfalls-to-avoid-when-learning-rust-a-newcomer-s-guide
That’s it, our short tour of my favorite resources for #LearningRust is finished… It’s now time to start your own project or pick up an open source project you like and contribute to it!
Stay tuned to the @hnsec blog for the third installment of our #OffensiveRust series, in which I’ll explore how to use #Rust for vulnerability research and present my humble contributions to @binarly_io idalib bindings, enabling the development in idiomatic Rust of standalone tools based on Hex-Rays’s IDA Pro.
Happy new year!
If you have followed my previous advice while #LearningRust, you should be ready for one of my favorite learning resources.
“Learn Rust With Entirely Too Many Linked Lists” is a fun and entertaining read on the intricacies of #Rust (and linked lists) by the same author of the eldritch Rustonomicon. You’re welcome!
Now that you have learned the basics of the language and have set up your IDE, you’re ready to tackle some practical exercises as the next step in #LearningRust.
I especially recommend Rustlings, a collection of small exercises to get you used to reading and writing #Rust code.
https://github.com/rust-lang/rustlings/
If you need more, 100 Exercises To Learn Rust is another excellent resource for some additional guided practice. Then, you also have Exercism, Advent of Code, and similar challenges to further hone your skills.
If you aren’t familiar with how computers work under the hood, I recommend to start #LearningRust with Rust in Action, a perfect book for beginners.
It’s a hands-on guide that introduces the #Rust programming language by exploring systems programming concepts and techniques. It goes beyond language syntax to showcase what Rust has to offer in real-world use cases, such as dealing with persistent storage, memory, networking, CPU instructions, and more.
Let’s get our journey started with the best book for #LearningRust dedicated to beginners that I’ve found out there.
Programming Rust 2nd Edition is, in my opinion, even better than the official Rust Book. It covers all you need to know (and then some) to get familiar with the #Rust programming language, in a very readable style from start to finish.
https://www.oreilly.com/library/view/programming-rust-2nd/9781492052586/
2025 is just around the corner. If #LearningRust is among your New Year’s resolutions, I’ve got you.
Following my ongoing #Rust series on the @hnsec blog (https://security.humanativaspa.it/tag/rust/) and adding something along the way, in the next days I’ll recommend the learning resources that worked for me.
Stay tuned!
Understanding string slicing in #RustLang :
Remember: slices are based on bytes, not characters! Slicing an ASCII string is different from slicing a multibyte Unicode string. If you slice incorrectly, Rust will panic at runtime.
let multibyte_string = "España";
let slice_multibyte = &multibyte_string[..5]; // This will panic!
Ensure your slices align with valid UTF-8 character boundaries.
@smallcircles I am #LearningRust so it is useful to see such work
Nachdem das erste Drittel der #Rustlings-Aufgaben sehr schnell abgeschlossen war, haben sich gerade die letzten Aufgaben doch sehr gezogen.
Zu den Themen Threads, SmartPointers, Lifetimes und Conversions muss ich noch einiges Lernen, damit ich es gut anwenden kann.
Wie würdet ihr die Themen vertiefen? Doku lesen? Eigenes Beispielprojekt beginnen? Ein bestehendes Projekt verstehen und anpassen? Habt ihr einen Tipp für mich? (:boostok: Wie in Mastodon scheint es hier nicht zu geben. Was wählt man stattdessen?) #Rust #LearningRust #Sabbatical
Ich komme gerade aus dem Staunen nicht heraus (und ich werde noch einige Zeit brauchen, bis ich verstehe, wann ich es einsetzen kann).
Mit collect() lassen sich Daten zusammenfassen. Das Resultat ist abhängig vom Rückgabewert der Methode. Ich möchte nicht zu viel spoilern, aber in den #Rustlings-Aufgaben kommt das durchaus vor und ich war sehr beeindruckt, wie einfach der Code ausschaut. Das Verständnis kommt dann hoffentlich mit der Übung. #Rust #LearningRust #Sabbatical
Now that's a strange syntax for calling a method on a generic type, I guess Or is it?
@Wortmensch@troet.cafe Ich hoffe, dass mir ein Projekt aus dem Bereich freie Software zusagt und ich mich ein bisschen einbringen kann. Ich habe von Mai bis einschließlich Oktober Zeit, mich damit zu beschäftigen.
Ich habe zuvor Backend-Anwendungen für Webseiten geschrieben und meiner Meinung nach spricht nichts dagegen, dass ich das auch später mit #Rust machen könnte.
Es steht also noch gar nichts fest. #LearningRust
@deadparrot@mastodon.social, vielen Dank für deinen Beitrag bei der JUG Augsburg. https://invidious.flokinet.to/watch?v=VDv57gqVwH8 #LearningRust #RustLang #SoftwareDevelopment
Nun treibe ich mich schon seit zwei Wochen hier herum und sage mal, dass ich #neuhier bin.
Ich bin schon lange vom #Fediverse begeistert und habe mich für einen Misskey-Account entschieden, um mal etwas Neues kennen zu lernen. Bisher gefällt es mir ganz gut. Geöffnete Bilder würde ich gerne per "Esc"-Taste schließen und mit ein paar Kleinigkeiten tue ich mich noch etwas schwer, aber das wird
Ich lerne gerade #Rust und hoffe, dass ich die ein oder andere Inspiration bekomme.
Boost: #LearningRust #RustLang #SoftwareDevelopment
#Rust kennt keine "NULL"-Werte. Werde ich sie vermissen? Ich denke nicht
Java-Code wäre einfach nicht dasselbe, wenn man nicht immer wieder auf null prüfen müsste oder einem eine NullPointerException um die Ohren fliegt, weil man den Check vergessen hat. Ja, Java kann auch seit einiger Zeit mit Optionals umgehen, aber leider wird das noch nicht so konsequent genutzt.
Rust ohne null ist eine schöne Design-Entscheidung. #SoftwareDevelopment #LearningRust #RustLang
Rust's range syntax seems intuitive, as I like the visual differentiation between exclusive and inclusive ranges.