• 0 Posts
  • 40 Comments
Joined 1 year ago
cake
Cake day: July 10th, 2023

help-circle
  • For the readers that don’t realize exactly how old school, Sam & Fuzzy has been around since the dialup era.

    It’s been through just about every phase a comic can go through, he used to write decade-long story arcs, lately he seems to be enjoying drawing simple cute dog comics. I suppose a guy needs a break sometimes from a career like that!












  • I love the term “write-only code”, it’s perfect. I used to love Perl as it felt like it flowed straight from my brain into the keyboard. What a free and magical language.

    So it turned out I had ADHD. Took meds, went back to C/++ with renewed appreciation, haven’t touched Perl since as it horrifies me to look at it. What a nightmare of dangling references and questionable typing. Any language that allows you to cast a string to a function and call it really needs to sit down and think about what it’s doing.


  • True survivalist/libertarian types have always loved solar power.

    I don’t know how solar lost its space age coolness, though, aside from active lobbying from the fossil fuel industry to try to kill it. For awhile solar was undoubtedly the power source of the future, the same thing that was on our space probes and satellites.

    I have old oil-crisis era books and magazines on my shelf which absolutely loved solar power and billed it as the cheap energy solution for the common man. Somewhere we went wrong, and I think it was Reagan (in many ways…)



  • A million tiny decisions can be just as damaging. In my limited experience with several different local and cloud models you have to review basically all output as it can confidently introduce small errors. Often code will compile and run, but it has small errors that can cause output to drift, or the aforementioned long-run overflow type errors.

    Those are the errors that junior or lazy coders will never notice and walk away from, causing hard to diagnose failure down the road. And the code “looks fine” so reviewers would need to really go over it with a fine toothed comb, which only happens in critical industries.

    I will only use AI to write comments and documentation blocks and to get jumping off points for algorithms I don’t keep in my head. (“Write a function to sort this array”) It’s better than stack exchange for that IMO.


  • I tried using AI tools to do some cleanup and refactoring of some legacy embedded C code and was curious if it could do any optimization or knew any clever algorithms.

    It’s pretty good at figuring out the function of the code and adding comments, it did some decent refactoring of some sections to make them more readable.

    It has no clue about how to work in a resource constrained environment or about the main concepts that separate embedded from everything else. Namely that it has to be able to run “forever”, operate in realtime on a constant flow of sensor data, and that nobody else is taking care of your memory management.

    It even explained to me that we could do input filtering by using big arrays to do simple averaging on a device with only 1kB RAM, or use a long long for a never-reset accumulator without worrying about what will happen because “it will be years before it overflows”.

    AI buddy, some of these units have run for decades without a power cycle. If lazy coders start dumping AI output into embedded systems the whole world is going to get a lot more glitchy.




  • That’s not just a German thing, here in Canada or the USA it’s strongly frowned on to bring your own food or drink to a restaurant or bar. And “no public toilet” snuck in to a lot of places at Covid time and never left.

    Fast food is different and definitely not enforced but it’s still poor etiquette to eat anything other than small snacks or water there unless you’re part of a group. Like a bunch of guys stop at McDonald’s but one guy is like nah, I packed a sandwich, I’m gonna eat that.

    Still it’s kind of expected that guy would buy a coffee or something. This is what I would do in OP’s situation, have a coffee or a diet Coke if you’re hanging out there for awhile. I wouldn’t complain about “pricy consumables”, it’s like $2.