• 6 Posts
  • 553 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle

  • I suppose it depends on the language? For the most part I think you’re right. Exceptions are only used (if at all) in situations where a program diverges unexpectedly from its normal flow. But take a language like Python. They’re just everywhere. Even your plain old for loop ends on an exception, and that’s just business as usual.







  • I tried one of those surveys before the last election, and it concluded that I was most closely aligned with the Green Party. Alas, they don’t have a chance in Hell where I am. They are so far off the radar I wasn’t even aware they were fielding a candidate in my district. But it does make me wonder though. If such surveys actually informed how people vote, would the balance of power shift? I think it would help if our voting system (I’m in Canada) changed to something other than first-past-the-post?


  • Oh wow thank you so much!

    I got super busy today and only just got back on now to see the idea seems to have some traction. I will try to post/comment there to get ball rolling.

    I was thinking actually, you could have posts that, like I suggested, describe a strange situation and invite people to speculate on how it came about. But you could also give some sort of narrative that describes the circumstances instead and leads up to a point where you go “…and you’ll never guess what happened next!” or something to that effect.







  • I’ve been playing around with the disabled GIL build and though I use threads fairly extensively in my projects, it’s been smooth sailing so far. I feel like my GUI scripts might be a bit more responsive now? (I tend to farm out user events to dedicated threads, so this is entirely possible.)

    But overall, everything is stable and awesome! I’m so excited! This has been a long time coming for Python.


  • Yeah it’s kind of an arm’s race with people feeling they need to be the biggest thing on the road to feel safe. I’ve driven a few larger vehicles as airport rentals when they had nothing else in stock, and I’ve noticed they also tend to have a lot more blind spots than what I’m used to.

    I remember when I was taking lessons, my instructor said I should think of the airbag as being a spring-loaded spike that will impale you if you screw up. I guess he was trying to impress on me that it’s not good to feel safe and smug when you’re driving? And actually, I’ve read since that air bags can be pretty violent when they go off, so he may not have been as far from the truth as I thought?


  • Totally agree. Some people seem to think it shows moral fortitude to stick to your guns and never admit fault, but these are really the weak-willed people in society.

    Another lesson of adulthood it has taken me an embarrassingly long time to learn is that when you are enjoying something and see someone—particularly a younger person—looking interested, bring them in on it. If it’s something you bought for yourself, let them have a go. This may entail a small amount of sacrifice if you let them borrow it for a time, but the joy it brings will make it worth it, and the world needs more of that today. I think about people who have done this for me in the past, and I have mad respect for all of them.



  • Take it easy for about half an hour or so after eating and then do some kind of physical activity. I learned that this has the best effect for lowering blood sugar in battling type 2 diabetes, but I think it’s generally good advice for anyone? It doesn’t have to be a heavy workout or anything. Even just getting up on your feet and walking around a bit makes a difference.


  • I wish there were more regulation on the size of private vehicles, particularly in North America. It’s pretty clear at this point that what is contributing to higher pedestrian/cyclist fatalities despite better urban infrastructure is the increasing curb weight and ground clearance of automobiles. We can hope that collision-avoidance tech in newer models may reduce human-error type accidents, but at the end of the day, kinetic energy is a bitch.

    I wonder how the EV transition will affect things? On the one hand, an EV would weigh more than an ICE of the same class since batteries are heavy. On the other hand, batteries are also the most expensive component by far and you need more in a larger vehicle, so from a dealer’s perspective, the margins may not necessarily grow the bigger you go like with an ICE. The sweet spot might actually be something smaller. (In fact, for me, it’s actually ebikes.)


  • This is sadly par for the course in green tech articles. Journalists who flunked high school sciences should not be reporting on this stuff, or at least consult with someone who has even a passing knowledge of physics.

    Now regarding actual storage amounts, I have noticed utilities seem to target around 4 hours of capacity at full discharge. That seems to be the sweet spot for lithium ion at least. So by that measure, 1 GW would translate to 4 GWh…ish.

    These battery farms are more about dealing with spikes in power demand than bulk energy storage. This is still a valuable role in that they can replace peaker plants which are often low-efficiency diesel monstrosities, but we still need something else for the latter application. Mechanical storage schemes like pumped hydro come up a lot in that discussion, though it’s possible something like flow batteries might be a better fit for this than lithium ion if you want to go the battery route?

    I’m not an expert on any of this though, so feel free to correct me.