[–] 2 points 2 weeks ago

Yep all of that is super interesting, and I've seen some people on YouTube make it that interesting but I rarely saw any examples like that in all my time in uni. When I first learned calculus the professor drew the speed of the car on a graph, and said how far did it travel in this time? Well it's the area under the curve. Instantly connects it to something tangible and useful, rather than saying "the derivative is the slope of the line at this point." I learned what a binary tree was and sort of how to make it, but I essentially had to relearn it anyway when I actually came across a situation where I needed it.

  • source
  • parent
  • context
  • [–] 3 points 2 weeks ago

    Ah yeah, segfault is a good point. And if you get more than that, it's still often just an exit code and some generic print statement. 🫠

    And well, with C/C++ programs being difficult to compile, I was referencing that installing libraries is typically left as an exercise for the user.
    If you're on a similar distro as the dev, it's usually documented what you need to do. But if not, you get to guess what the library package might be called. Or if it's available in a compatible version. Or at all.
    You just need to hope you get lucky, which should not be a factor in whether software compiles...

  • source
  • parent
  • context
  • [–] 2 points 2 weeks ago

    There are little easter eggs everywhere.

    I found one when using -v for verbose debug and manpages said use -vv or -vvv for more detailed output. So I figured what happens if i do -vvvv. The CLI response was "my, you are a curious fellow".

    Lol.

    It could have been the samba tools, I forget which thing I was needing to view detailed info about.

  • source
  • [–] 36 points 2 weeks ago

    The NSA also does a lot of work with regards to computer security

    SElinux/MAC are fantastic tools that can be used to lock down a system. Android largely hasn't been impacted by many of the severe Linux vulnerabilities due to SElinux

  • source
  • [–] 58 points 2 weeks ago (2 children)

    They designed it because they wanted it to secure their own systems. Think about that. If you aren't using selinux full out the NSA and their counter-parts in other countries can get into your shit. Probably

  • source
  • [–] 104 points 2 weeks ago (1 child)

    It was trivial to review and match the setup imposed by security enhanced Linux as it was open source and for its time, well documented.

    no conspiracy other than it guided otherwise ignorant folks on what hardening a system could look like.

  • source
  • [–] 3 points 2 weeks ago*

    The borrow checker is a feature in the compiler. It only ensures that the source code doesn't violate its rules at compile time, and if it does, stops the compilation and shows an error message. If the borrow checker is disabled, the code will be compiled even if borrowing rules are violated (as long as the source code is otherwise valid).

    In short: removing the borrow checker turns Rust into C.

  • source
  • parent
  • context
  • [–] 3 points 2 weeks ago (1 child)

    I know you said those are caricatures, but with C or C++, programs usually do have a make or cmake script to be built in 1-3 commands explained in the repo.

    I'd have mentioned that their more typical execution error message is "segfault". Where? Fuck you, that's where.

  • source
  • parent
  • context
  • People rewriting common software in Rust is a good thing, regardless how good the original and its code was, it's a fun exercise in coding if nothing else, and if it ends up worse than the original, that's fine! That's how you practice and learn, and it should be encouraged.

    Fuck corporations using Rust rewrites to replace GPL-licenced software with Expat-licenced ones.

  • source
  • parent
  • context
  • view more: β€Ή prev next β€Ί