• 0 Posts
  • 2.29K Comments
Joined 3 years ago
cake
Cake day: June 10th, 2023

help-circle





  • I don’t think there are more languages being created now than before. There are tons of languages that have been created over the years, but you get the survivors bias effect where the ones that are actually useful in some context start being used in that context, and the ones that are less useful stop being used.

    When you were learning python was already established, but I remember having long discussions trying to convince people to use it instead of Java because it was a much higher level with much better in many aspects at some cost performance, and if you’re not willing to pay that cost you should revert to C++ which is much better than Java anyways.

    And that’s sort of what’s happening here. C++ is good for things that need to be fast, but it requires careful consideration to avoid several issues, if you don’t need the speed, python gives you a much better experience in several aspects. For other specific things there are specific languages that fit better, if you’re developing for web JS is already in most browsers so that’s an easy choice, and if you want to make a game maybe you learn C# to use in Unity. But for general stuff C++ and Python have been the de facto standards as they cover most use cases very comfortably, so there hasn’t been any real competition for them.

    Enter Rust, Go, Zig, etc. Even if something is a standard it doesn’t mean it’s the best thing, Assembly, Cobol, Fortran, C have all been standards, but C++ can do 99% of what those other languages did and makes things easier, so slowly it became the default language. Of those “new” languages the only one I know enough is Rust, so let’s talk about what Rust brings to the table that’s not available on C++ or python, and why people are so excited for it.

    Rust is fast, we’re talking C level fast, this means that Rust beats almost every other language (including C++). Rust is safe, it’s purposefully designed not to allow you to miss use it accidentally, this includes memory safety which is the most talked about, but it’s a whole thing in Rust, with enums you need to match all cases, result types that includes error responses, and optional objects that force you to acknowledge the None. Rust has a great package support, better than python because it’s standardized. Besides all that Rust is able to be used almost everywhere, whereas C/C++ does work in many places, but libraries for it don’t.

    So, why new languages? Because there are things to improve.


  • I have at no point compared black people to dogs, or even mentioned anything related to race beyond a comparison of statistical facts to showcase how ridiculous the argument is. You’re creating a Straw man to attack and deflecting my question, so we’ll keep going in circles forever, because answering a straight yes or no would compromise you.

    Read everything that I posted so far and you will realize the entire time what I’m saying is “a small subgroup causing the most fatalities, therefore subgroup aggressive” is a bad argument. That is the whole of what I’m saying, and you haven’t replied whether you think that is a good or a bad argument. The reason why you haven’t done so is simple:

    • If you say it’s a bad argument you’re agreeing with me, therefore no reply is needed.

    • If you say it’s a good argument then you’re agreeing with any racist asshole who uses the same argument applied to people, and you should take a long hard look at yourself to see whether that’s the kind of peraon you want to be. And honestly, I don’t want to keep talking to anyone who thinks like this as they have been so brainwashed they won’t get convinced by a random person online.

    In reality I’m fairly confident you want the argument to apply to dogs but not to people, and that’s just not how logic works. Facts are facts, you can’t disagree with them, the conclusion from those facts is logic, and that can be flawed (as is for the case of the proof of aggressive behavior). So when confronted with the fact that you’re defending a logic argument that can be made about people, instead of thinking “huh, I guess it’s a bad argument” you go “I’m not racist, you’re racist”, that is called deflection. So you attack a Straw man argument that I’m comparing people to dogs so that you don’t have to admit that your prejudice against pitbulls made you agree with an undefendable racist argument. Still the conclusion is the same, there’s no reason to reply to someone who’s being fallacious at best and making bad faith arguments at worst. If you honestly expect any answer from me your reply should clearly state whether you consider the “X is a small subgroup yet causes the majority of fatalities, therefore X is dangerous” a good argument.



  • Yeah, I can see that. But I don’t think that knowing Ansible will teach you that difference. OP seems to know enough about Linux to be comfortable so I would expect him to be able to distinguish between those.

    I agree that Nix has a steep learning curve and it’s not for everyone, but OP specifically asked for a way to declare their system, and Ansible doesn’t work for something you’ll setup now to use in 6 months when you decide to reinstall the system, because the best case scenario is you get your system as it was 6 months ago, but more realistically it doesn’t work and you have to spend time fixing it or doing it manually.

    Don’t get me wrong, Ansible is great, I manage my home server with it, but if I go a while without running the pipeline when I do it rolls back several changes I made manually to test and forgot to consolidate. Nix is annoying because it forces you to declare everything every time, but you’re guaranteed to get the same result you have now, which is very important for the case OP asked about.




  • You should have a look at NixOS. It’s a Linux distro where you declare the whole system in configuration like files, in a language called Nix (hence NixOS), then you run a command and that gets resolved into your system.

    It takes a long time to setup the first time, but it’s a breeze when you need to reinstall, and you will never need to reinstall as every boot is a fresh copy of the system you declared.

    There’s also a thing called home-manager which uses the Nix language to declare your home configuration. That part can be used in any other Linux by installing the home-manager package.

    You can declare your OS in a way that the home part is portable for machines running other systems. I do that, then my machines are very easy to declare, and with some groups for things like Base (Terminal, prompt, some things I expect to have on every system like Python, nvim fully configured, etc), Gaming (Steam mostly), UI (Sway, many GUI things I use like browser with extensions, etc) I can add configs for a new machine in instants depending on what I expected for it, and if I ever want to convert my “Steam machine” into a desktop it’s just a couple line changes, regenerate the config and it’s exactly the same as my laptop.

    Honestly I don’t think Nix is for everyone, but it’s a very niche thing that works extremely well for what it sets up to do, and if you’re in the target audience it’s a game changer.


  • I do, I find the wooden one to be the most comfortable one, but haven’t found a wood one since I started using a split board, so I 3d printed one… But ran out of resin midway through, then I realized resin is not great to have in contact with the skin so I painted it… Then I realized that sweaty palms might end up removing the paint and I also wasn’t sure that the paint was good for skin contact, so I glued some rubber feet on top… I still don’t fully trust it so I put some paper napkins on top… Yeah, I should really try to find some wooden split wrist rests…


  • It’s 6 extra cases in one year, that is a statistically insignificant number compared to the population of scooter users. I hate when people use percentages to mask small values, it’s like the old “Would you like to join our church? It’s the fastest growing church currently, we’ve tripled our numbers in the past 24 hours alone! (It was just me yesterday, and now my two flatmates joined me)”…

    And now people will reply saying I don’t take kids accident seriously because I’m comparing them to fake churches…





  • Water analogy still applies for that. If the pipes are already full of water if you inject water on one end it almost immediately comes out of the other, even if the water is only being injected at a slow speed. It’s not immediate because the moment you inject water the water in the pipes first compress and that compression travel like a wave much faster than the water.

    The moment the water analogy falls apart is when you depend on magnetism, because electrons moving cause a magnetic field around, but water moving doesn’t generate any field around it, so it can’t imitate an electromagnet or a transformer.