#devrust

canoodle@nerdpol.ch

Rust Dev Lang - how to view onboard html based documentation (man page) - The Rust Standard Library

# will open [file:///home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/std/index.html](file:///home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/std/index.html) in browser

<span style="color: #00ffff;">rustup doc --std
</span>

which looks like:

of course there is an online version: https://doc.rust-lang.org/std/

#linux #gnu #gnulinux #opensource #administration #sysops #rust #rust-lang #rustlang #devrust #rustdev

Originally posted at: https://dwaves.de/2021/12/27/rust-dev-lang-how-to-view-onboard-html-based-documentation-man-page-the-rust-standard-library/

canoodle@nerdpol.ch

DevC - Linus Torvalds "Nothing better than C"

[video width=”492″ height=”426″ mp4=”https://dwaves.de/wp-content/uploads/2021/08/Linus-Torvalds-Nothing-better-than-C.mp4″\]\[/video\]

what is great about C?

  • - the simplicity of the compiler that just run’s anywhere
    • still THE most resource efficient language
      • with C the user does not have to buy a new computer every 3 years, because of updates slowing down the system so much it become inefficient
    • still THE language that can speak best to hardware
    • the syntax can be called ugly sometimes, but not as ugly as C++ X-D

everyone understands what this does:

cat boolstd.c
#include 
#include 

int main(void) {
    // set to true
    bool b1 = 1;

    // this is correct, it will print
    if(b1)
    {
        printf("Bool b1 is true \n");
    }

    // set to false
    _Bool b2 = 2;

    // this is false, will not print
    if(b2 == false)
    {
        printf("Bool b2 is false \n");
    }

    // requires 
    bool b3 = true;

    // this is correct, it will print
    if(b3 == true)
    {
        printf("Bool b3 is true \n");
    }

    // requires 
    bool b4 = false;

    if(b4 == false)
    {
        printf("Bool b4 is false \n");
    }
}

the problems of C:

  • security problems need to be adressed (all those buffer over- and underruns)

… security/safety plus multi core computing is what RUST tries to adress

RUST the safer C/C++?

https://dwaves.de/2019/08/17/rust-most-loved-programming-language-ever-c-with-safety-new-programming-language-from-mozilla-for-mozilla-and-safety-now-also-with-step-debugging/

#linux #gnu #gnulinux #opensource #administration #sysops #dev #devrust #rust #devc #c #linus

Originally posted at: https://dwaves.de/2021/08/19/devc-linus-torvalds-nothing-better-than-c/