Skip to content

Commit

Permalink
add sudo to rust in bg appendix
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC authored Sep 27, 2023
1 parent d8e039b commit 81b8f6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/appendix/appendix-iv-rust-in-the-background.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

As with any (new) language, there's no point in replacing every existing technology written before, with a new implementation written in Rust. While at times there are benefits such as with [ripgrep](https://github.com/BurntSushi/ripgrep) instead of grep, this is not a generally useful strategy not a desired one.

Starting new projects inspired by classic/foundational tooling is however an opportunity to use Rust, even if your users do not need to know or care about it. A great example of that is just,a modern alternative to Makefiles, as much as love as we have for it. You can find it at <https://github.com/casey/just>, basically 'Make' with variables + more.
In case you have good reasons, such as security and being able to start with a clean slate for the most common use cases, it might however make sense to write critical software in a safe language if it was previously written in a so called unsafe language. This should be done with the greatest consideration and only if worth the costs it brings with it. Our Dutch colleagues working for "de Tweede Golf" are deeply invested in Rust and have now a version of `sudo` written in Rust. You can read about it at <https://tweedegolf.nl/en/blog/91/reimplementing-sudo-in-rust>.

Of course, starting new projects inspired by classic/foundational tooling is however an opportunity to use Rust, even if your users do not need to know or care about it. A great example of that is just,a modern alternative to Makefiles, as much as love as we have for it. You can find it at <https://github.com/casey/just>, basically 'Make' with variables + more.

- In [Appendix II.](/appendix/appendix-ii-webassembly-wasm.md) we already saw that Rust can be compiled to WASM, and as such you can build an entire WebApp in Rust. However instead of replacing your entire WebApp, it is also just as well possible that you only replace the components of your App where it makes sense, e.g. where you need to do a lot of computations;
- In [Appendix III.](/appendix/appendix-iii-native-apps.md) we learned about Tauri to build native apps with Rust, and also here noted that it can be done while at the same time building your core frontend logic in the frameworks you are used to;
Expand Down

0 comments on commit 81b8f6b

Please sign in to comment.