• 1 Post
  • 54 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle


  • I’m in the US, and I can assure you the amount of effort that would go into breaking that system would be 1000+ fold.

    Here’s the thing… your computer/phone, just to run programs, is sitting on somewhere around 40-50 million lines of code in the operating system. It’s got another 20-30 million for all the supporting user space libraries. People want to vote from any device, and operating systems have become walled gardens. Now we need to interact with browsers. That’s another 30 million lines. You know how many bugs I need to find to compromise a system? 1. It’s not necessarily a skill issue. It’s an attack surface issue.

    And this is assuming the bug was an accident. There are much more insidious vulnerabilities out there (see the recent exploit found in xz). Along that same vein, there could be exploit generators in the compilers (that’s 15 million lines) that build all these systems.

    We won’t have online voting until we fundamentally change how we compute. I don’t see that happening any time in the near future. None of these corporations are going to be breaking down their walls anytime soon.





  • jas0n@lemmy.world
    cake
    toProgrammer Humor@programming.devC++
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    20 days ago

    Just watched this. Thank you. I think I’d agree with most of what he says there. I like trying languages, and I did try rust. I didn’t like fighting with the compiler, but once I was done fighting the compiler, I was somehow 98% done with the project. It kind of felt like magic in that way. There are lots of great ideas in there, but I didn’t stick with it. A little too much for me in the end. One of my favorite parts C is how simple it is. Like you would never be able to show me a line of C I couldn’t understand.

    That said, I’ve fallen in love a language called Odin. Odin has a unique take on allocators in general. It actually gives you even more control than C while providing language support for the more basic containers like dynamic arrays and maps.



  • jas0n@lemmy.world
    cake
    toProgrammer Humor@programming.devC++
    link
    fedilink
    arrow-up
    2
    ·
    21 days ago

    Hahaha. I knew I was wrong about the polymorphism there. You used big words and I’m a grug c programmer =]

    We use those generic containers in c as well. Just, that we roll our own.

    Move semantics in the general idea of ownership I can see more of a use for.

    I would just emphasize that manual memory management really isn’t nearly as scary as it’s made out to be. So, it’s frustrating to see the ridiculous lengths people go to to avoid it at the expense of everything else.


  • jas0n@lemmy.world
    cake
    toProgrammer Humor@programming.devC++
    link
    fedilink
    arrow-up
    1
    ·
    22 days ago

    Maybe I’m wrong, but aren’t move semantics mostly to aid with smart pointers and move constructors an optimization to avoid copy constructors? Neither of which exist in c.

    I’m not sure what collection type you’re referring to, but most c programmers would probably agree that polymorphism isn’t a good thing.



  • jas0n@lemmy.world
    cake
    toProgrammer Humor@programming.devC++
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    23 days ago

    Preach brother, I don’t think that’s a hot take at all. I’ve become almost twice as productive since moving from c++ to c. I think I made the change when I was looking into virtual destructors and I was thinking, “at what point am I solving a problem the language is creating?” Another good example of this is move semantics. It’s only a solution to a problem the language invented.

    My hot take: The general fear of pointers needs to die.









  • Your point is that he sounds like an asshole? Because you badgered him for an explanation to a joke you obviously understood and he didn’t give it to you nice enough?

    Preemptively deciding you won’t agree doesn’t make him right. He preemptively decided you wouldn’t be happy with his answer … and he was correct.

    By the way, I thought it was funny. I sent it to my wife and she thought it was funny and sent it to her mom. (No one asked for an explanation).