243 private links
This might be one of the unavoidable side quests if you are trying to tenaciously make a living from working on (and only on) open source. More than a year ago I wrote a blog post detailing my motivation for the things I have been doing and having a "grindset".
sharing, engaging with the community, enjoy programming again
A rust web app framework similar to Rails
A partial lisp-implementation in Rust.
I’m a bit biased, but IMHO writing a minimal lisp interpreter is a great project to learn a great variety of features of any programming language.
Since Rust 1.65:
let Some(user) = get_user() else {
return Err("No user".into());
};
The option can also be handled with .ok_or()
if it's recoverable.
The last solution is to use the match
statement.
Rust is the first language in a long tome being able to compete with C or C++.
Rust also built a market around it. Orner languages of the same category did not.
Here’s the pitch: a motivated group of talented Rust OS developers could build a Linux-compatible kernel, from scratch, very quickly, with no need to engage in LKML politics. You would be astonished by how quickly you can make meaningful gains in this kind of environment; I think if the amount of effort being put into Rust-for-Linux were applied to a new Linux-compatible OS we could have something production ready for some use-cases within a few years.
Tips and guideline about writing your own API in rust.
Welcome to the Rust Forge! Rust Forge serves as a repository of supplementary documentation useful for members of The Rust Programming Language. If you find any mistakes, typos, or want to add to the Rust Forge, feel free to file an issue or PR on the Rust Forge GitHub.
Everything should be written in #Rust
, but not everything deserves it.And that’s when I reach for #Go
And in the end I get paid to write #JavaScript
and #PHP
Rust biggest weakness: it needs a strong ecosystem of libraries. This ecosystem is fragmenting over time.
Sylvain recommends however four use cases for Rust:
- rewriting from C/C++ to Rust
- optimizing and securing the icome if the development can take two
- passionate that are already Rust experts and who are not counting their hours
- while starting a compagny that will vertically integarte a lot of different systems, from embedded devices to web services, i.e. https://oxide.computer/
That being said, if Rust may not be the best choice to build servers, Rust shines every time you would have picked C if it didn't exist such as crafting shellcodes and building other security tools.
Also called german strings. This is a great data structure that explains how handling strings can be diverse.
Interesting debate here
Serde with validation
When you live by the C,
juggling pointers, like razor blades,
while memory bleeds,
and comprehension fades,
you know what you need -
implement it, you must!
All your codebase
are turn to Rust!
- parse a phone number
- normalize a phone number to E164 from local phone number or international codes
- detect if the phone number is valid
- get the country code from a phone number
Called "impl Trait type"
an arena is a way to store your data somewhere without directly going through the system allocator. If you have a lot of small objects which you don’t mind to deallocate together instead of individually, this can be a lot faster. You could use a Vec for this. However, if you store data in a vec its address might change all the time.