232 private links
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.
First, you need to describe the intent of your code and give an overview of how it works both at a macro level (in the README / wiki) and at the micro level, by commenting functions, structures and packages. Document, document, document.
Second, give examples on how to use your code. Snippets that users can quickly copy/paste and "feel it". Even better, add comments with the expected output to your examples.
Three, write simple code.
the goal for rainfrog is to provide a lightweight, terminal-based alternative to pgadmin/dbeaver.
An experiment to build a web browser based on Servo.
EDIT 2024-12-30: it has tabs now https://social.tchncs.de/@Blort/113740179696427117
The "(no)alloc" next to "(no)std" is a feature to disable the heap, and enforce only static allocation.
For a long time (and having a history in embedded) I think: Stack is enough if you have understood what you are about to write and are able to make design decisions aka good software.