• 1 Post
  • 144 Comments
Joined 1 year ago
cake
Cake day: July 10th, 2023

help-circle


  • Great to hear this story of success. That plus

    $266.99 per probe for the original proprietary one

    Reminds me of Schneider’s stupid proprietary dongle for programming their PLCs. It’s just a CH341 in a funny shaped case that fits into the funny shaped slot on the PLC, where it plugs onto an ordinary 0.1" pin header to talk logic level serial.

    Plus it has a custom USB ID of course. Probably costs $2 to manufacture, sells for almost $300 as well.







  • I feel the OOP debate got a bit out of hand. I hate OOP as well, as a paradigm.

    But I love objects. An object is just a struct that can perform operations on itself. It’s super useful. So many problems lend themselves to the use of objects.

    I’ve been writing a mix of C and C++ for so long I don’t even know where the line is supposed to be. It’s “C with objects”. I probably use only 1% of the functionality of C++, but that 1% is a huge upgrade from bare C IMO.


  • I was more referring to the fact that everything is immutable by default. As someone who’s just starting to get old (40) and literally grew up with C, it’s just ingrained in me that a variable is… Variable.

    If I want a variable to be immutable I would declare it const, and I’m just not used to the opposite. So when playing with Rust, the tutorial said that “most people find themselves fighting with the borrow checker” and sure enough, that’s what I ended up doing!

    I like the concepts behind it, it really encourages writing safe code, and I feel like it’s not just going to be a fad language but will likely end up underlying secure systems of the future. Linux kernel rewrite in Rust when?

    It’s just that personally I don’t have the flow of writing code like I would in C/++, just not used to it. The scoping, the way you pass variables and can sort of “use up a reference” so it’s not available anymore just feels cumbersome compared to just passing &memory_location and getting on with it, lol


  • Rust is heresy. Everything should be mutable, the way that God intended it to be!

    Seriously though as someone who has mainly done embedded work for decades and got used to constrained environments, the everything is immutable paradigm seems clunky and inelegant. I don’t want to copy everything all the time.

    Now if you’ll excuse me, these null pointers aren’t going to dereference themselves


  • evranch@lemmy.catolinuxmemes@lemmy.worldIndeed
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    Interesting, I’ve installed it on quite a few machines now, all with widely varying hardware. Aside from my development/gaming rig I’ve got a shop laptop which is used by various goons to view shop drawings and look up parts, one the ex-wife still hasn’t managed to break, one is my 9 year old daughter’s and another is a potato that runs my 3d printer (to be fair this one is fossilized and doesn’t get updates).

    All are working great with no setup effort and no maintenance so I guess it’s a classic case of YMMV. I wouldn’t have used Arch for any of those use cases except maybe the 3d printer.



  • Used to for one package - stupid tax filing software that won’t run under Wine, likely because it’s shitty garbage that was written in VB. The forms don’t reflow properly.

    I had enough of the two systems trying to clobber each other’s bootloaders and this year am running Tiny10 in a VM instead. The forms STILL don’t reflow properly in anything except for VMWare. Don’t ask me why, it’s financial software and it always comes out broken and is patched just in time to file before the deadline.

    Steam’s Proton and modern AMD drivers have been super effective in allowing me to do all my gaming on Linux now, and all my dev work always was. Don’t see much reason for Windows these days.


  • evranch@lemmy.catolinuxmemes@lemmy.worldIndeed
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    6 months ago

    This is why I run Manjaro, which I never hear any love for here for some reason. It’s the rolling releases and cutting edge updates of Arch, but with the ease of use and reliability of Debian. Insert a bootable USB and have a fully functional system in a couple minutes.

    Manjaro just works, from gaming to development, and I’ve never been forced to play games to install a hardware driver or newer library that isn’t part of the release like with Debian or Ubuntu.

    Been using Linux for over 20 years and never seen a distro so trouble free.






  • These microplastics are digestible by your immune system, though, which makes them ultimately harmless. PLA is used for drug delivery for this reason.

    Being concerned about incomplete PLA degradation is like being concerned about a piece of wood breaking down into micro-woods. Yet even if you get a dangerous shard of micro-wood embedded in your skin, your body can deal with this cellose polymer just fine.

    Ultimately it will break down completely someday and in the meantime, nothing will be harmed.