Rust Programming
!rust@lemmy.ml
help-circle
rss

Some tips to get me motivated build with Rust
Hi all, I started learning rust a few months ago on my free time. I went through the most difficult already like borrow checker and I used the Learning Rust book from Jim Blandy as reference especially for its first chapters. This is not my first time learning a language I already have experience with Python, Go, JS, C, Lua ... but with Rust it feels different. Everytime I learned a new lang there was always a milestone I crossed that made me feel comfortable using the language, that milestone was always some side project or program I needed anyway. I am trying to do the same with Rust but the slowness of learning and looking up the docs coupled with the verbosity of the language is not very motivating. Don't get me wrong, I really want to use Rust and learn it as it looks very elegant and clean, I already learned a lot more about lower level details of programming. The documentation is probably the most elaborate one I ever used for a programming language. To keep me going I am practicing Rustlings while a procrastinate to work on the side project I chose as first project. I am just curious how others passed that milestone with Rust.
fedilink


I just released fine-ill-do-it-myself, a library that keeps track of a directory’s total size using filesystem events
I made this so I can prevent my web server from exceeding a disk usage quota that is enforced by deleting the home directory
fedilink

How Much Memory Do You Need to Run 1 Million Concurrent Tasks?
*Rust **tokio** remained unbeatable*
fedilink

*11% plan to start using Rust lang in the next 12 months*
fedilink

The conference will be in November in Florence, CfP will close in a few weeks!
fedilink


GCC 13 and the state of gccrs
[r/linux](https://libreddit.mha.fi/r/linux/comments/12yknsq/gcc_13_and_the_state_of_gccrs/)
fedilink

A community fork of a language named after a plant fungus. All of the memory-safe features you love, now with 100% less bureaucracy!
fedilink
12

[Trademark Policy: Review and Survey](https://foundation.rust-lang.org/news/2022-08-09-trademark-policy-review-and-survey) [Rust Trademark Policy Draft Revision – Next Steps](https://foundation.rust-lang.org/news/rust-trademark-policy-draft-revision-next-steps/)
fedilink

Don’t call it Rust: Community complains about draft trademark policy restricting use of ‘word marks’
[Trademark Policy: Review and Survey](https://foundation.rust-lang.org/news/2022-08-09-trademark-policy-review-and-survey) [Rust Trademark Policy Draft Revision – Next Steps](https://foundation.rust-lang.org/news/rust-trademark-policy-draft-revision-next-steps)
fedilink


Internal Rust file organization?
I would like to know if there are any proposals for internal file organization, like what to put from top to bottom... Example: start with pub use declarations, then use, the mod, enums, traits, etc. I've seen rustfmt has some options like reorder_imports that may impose some partial structure, but I would like a more comprehensive guide/spec... If there's nothing like that. Can we maybe discuss something that makes sense? 🤔
fedilink

[Rust Trademark Overview](https://docs.google.com/document/d/1ErZlwz9bbSI43dNo-rgQdkovm2h5ycuW220mWSOAuok/mobilebasic) Oracle, Is that you?
fedilink




Announcing crate activitypub-federation 0.4.0: Major rewrite with improvements to usability and documentation
I want to announce a new version of the activitypub-federation crate. Over the last weeks I worked on major improvements to the usability and documentation. It now includes an extensive guide on getting started to implement federation from scratch, and also an example project which can directly be deployed to a server and federate with projects like Mastodon. The library takes care of basic functionality like HTTP Signatures, activity sending, and fetching data from other servers. Application developers can focus on the main logic, and treat federation as another form of API. There is no restriction to the content being federated: you can implement a microblogging platform, link aggregator, video hosting site or any other type of social media. The goal is to encapsulate all basic functionality, so that developers can easily implement federation without any prior knowledge. Using this library can help to share core Activitypub logic between different projects, so that the same code doesn’t have to be implemented and maintained separately by each project. This way improvements can benefit everyone. It also encourages the use of effective patterns to make Rust and Activitypub work together. All of this has been proven to work in Lemmy which uses this library and is the biggest Activitypub project written in Rust. https://docs.rs/activitypub_federation
fedilink

Seems really neat, basically the next.js but for rust. Based on sycamore, a web-ui library for rust. Looks like it does well in the framework benchmarks too. https://krausest.github.io/js-framework-benchmark/2023/table_chrome_110.0.5481.77.html
fedilink






Nightly builds of all official rust mdbooks in the EPUB format, The Rust eBookshelf
> This project aims at providing nightly builds of all official rust mdbooks in epub format. It is born out of the difficulty I encountered when starting my rust apprenticeship to find recent ebook versions of the official documentation. > > If you encounter any issue, have any suggestion or would like to improve this site and/or its content, please go to https://github.com/dieterplex/rust-ebookshelf/ and file an issue or create a pull request.
fedilink





[Announcement on NixOS Discourse](https://discourse.nixos.org/t/nix-init-generate-nix-packages-from-urls-with-hash-prefetching-dependency-inference-license-detection-and-more) ![](https://user-images.githubusercontent.com/40620903/215294082-81f7c171-c39a-47c3-8a28-0956fd7b9fa9.gif) ### Features - Hash prefetching powered by [nurl] - Dependency inference for Rust packages using the [Riff](https://github.com/DeterminateSystems/riff) registry and python projects - Interactive prompts with fuzzy tab completions - License detection - Supported builders - `stdenv.mkDerivation` - `buildRustPackage` - `buildPythonApplication` and `buildPythonPackage` - `buildGoModule` - Supported fetchers - `fetchCrate` - `fetchFromGitHub` - `fetchFromGitLab` - `fetchFromGitea` - `fetchPypi` - All other fetchers supported by [nurl] are also supported, you just have to specify the tags manually ### Usage ``` Usage: nix-init [OPTIONS] <OUTPUT> Arguments: <OUTPUT> The path to output the generated file to Options: -u, --url <URL> Specify the URL -c, --config <CONFIG> Specify the config file -h, --help Print help -V, --version Print version ``` [nurl]: https://github.com/nix-community/nurl
fedilink

cross-posted from: https://group.lt/post/44860 > Developers across government and industry should commit to using memory safe languages for new products and tools, and identify the most critical libraries and packages to shift to memory safe languages, according to a study from Consumer Reports. > >The US nonprofit, which is known for testing consumer products, **asked what steps can be taken to help usher in "memory safe" languages, like Rust**, over options such as C and C++. Consumer Reports said it wanted to address "industry-wide threats that cannot be solved through user behavior or even consumer choice" and it identified "memory unsafety" as one such issue.  > >The [report](https://advocacy.consumerreports.org/research/report-future-of-memory-safety/), Future of Memory Safety, looks at range of issues, including challenges in building memory safe language adoption within universities, levels of distrust for memory safe languages, introducing memory safe languages to code bases written in other languages, and also incentives and public accountability. More information: - https://advocacy.consumerreports.org/research/report-future-of-memory-safety/ - https://advocacy.consumerreports.org/wp-content/uploads/2023/01/Memory-Safety-Convening-Report.pdf
fedilink


Using {Blocks} in Rust & Go for Fun & Profit
Did you know you can just whip out curly-braces all over the place in Rust and Go? But why on Earth would you even want to do this?
fedilink

> While the memory safety and security features of the Rust programming language can be effective in many situations, Rust’s compiler is very particular on what constitutes good software design practices. Whenever design assumptions disagree with real-world data and assumptions, there is the possibility of security vulnerabilities–and malicious software that can take advantage of those vulnerabilities. In this post, we will focus on users of Rust programs, rather than Rust developers. We will explore some tools for understanding vulnerabilities whether the original source code is available or not. These tools are important for understanding malicious software where source code is often unavailable, as well as commenting on possible directions in which tools and automated code analysis can improve. We also comment on the maturity of the Rust software ecosystem as a whole and how that might impact future security responses, including via the coordinated vulnerability disclosure methods advocated by the SEI’s CERT Coordination Center (CERT/CC). ![Programming Languages Maturity](https://group.lt/pictrs/image/1b49ce7d-ea9f-43e1-a956-6924b9816017.png)
fedilink

> Rust is a programming language that is growing in popularity. While its user base remains small, it is widely regarded as a cool language. According to the Stack Overflow Developer Survey 2022, Rust has been the most-loved language for seven straight years. Rust boasts a unique security model, which promises memory safety and concurrency safety, while providing the performance of C/C++. Being a young language, it has not been subjected to the widespread scrutiny afforded to older languages, such as Java. Consequently, in this blog post, we would like to assess Rust’s security promises. ![Rust Protection in Context, table](https://group.lt/pictrs/image/13ba6ce2-e8cd-4228-aa7a-37cab1cd10cb.png)
fedilink



[Plume](https://joinplu.me/) and [Lemmy](https://join-lemmy.org/) got a shout out on an official Rust site!
fedilink


Rust Programming
!rust@lemmy.ml
    Create a post
    • 0 users online
    • 1 user / day
    • 11 users / week
    • 13 users / month
    • 42 users / 6 months
    • 1 subscriber
    • 208 Posts
    • 231 Comments
    • Modlog
    Lemmy
    A community of privacy and FOSS enthusiasts, run by Lemmy’s developers

    What is Lemmy.ml

    Rules

    1. No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Code of Conduct.
    2. Be respectful. Everyone should feel welcome here.
    3. No porn.
    4. No Ads / Spamming.

    Feel free to ask questions over in: