• 1 Post
  • 16 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle





  • I started in C and switch to C++. It’s easy to think that the latter sort of picked up where the former left off, and that since the advent of C++11, it’s unfathomably further ahead. But C continues to develop and occasionally gets some new feature of its own. One example I can think of is the restrict key word that allows for certain optimizations. Afaik it’s not included in the C++ standard to date, though most compilers support it some non-standard way because of its usefulness. (With Rust, the language design itself obviates the need for such a key word, which is pretty cool.)

    Another feature added to C was the ability to initialize a struct with something like FooBar fb = {.foo=1, .bar=2};. I’ve seen modern C code that gives you something close to key word args like in Python using structs. As of C++20, they sort of added this but with the restriction that the named fields have to come in the same order as they were originally defined in the struct, which is a bit annoying.

    Over all though, C++ is way ahead of C in almost every respect.

    If you want to see something really trippy, though, have a look at all the crazy stuff that’s happened to FORTRAN. Yes, it’s still around and had a major revision in 2018.


  • Many renewables are stuck in the “interconnection queue,” a long line of projects waiting to get connected to the grid. According to Lawrence Berkeley National Laboratory, more than 1,500 gigawatts of power, mostly renewables, are waiting for approval to connect. (That’s more than one-third of all the power produced in the United States.)

    That is really unfortunate. I’m in Canada, but it wouldn’t surprise me if we are in the same boat. Where I live, there is a lot of wind and solar going in, but my understanding is that this is in part because it’s one of the rare areas with an under-capacity grid that is not too far from several major urban centres.

    And you can see how important the grid layout is in that solar farms are popping up mostly along large transmission corridors, presumably to allow for easier connection. This is less evident with wind, since geography plays a bigger role in where you want to put a wind farm for optimal results.

    It makes me speculate that renewables like wind and hydroelectric (including pumped hydro storage) which are less negotiable in terms of location compared to solar are more likely to be waiting a long time on this interconnection queue? I don’t know if that is actually the case though.



  • If I were chronically sad in the evenings, I would actually bring it up with the doctor. I wouldn’t make a special appointment for it necessarily unless its progressing towards suicidal thoughts or something, but during a regular visit I would bring it up. I’m no stranger to mood disorders, and frankly, I wish I had approached a professional sooner about it. Would have saved a lot of grief not just for me but for family members who also suffered through my episodes.

    For something that seems too minor for a doctor visit, I would suggest speaking to a pharmacist. They are readily available without appointment or long waits, and have an encyclopedic knowledge of all sorts of over-the-counter remedies that are backed up by an advanced degree in medicine. Definitely an underutilized resource. Of course they may well suggest you talk to a doctor, but in my experience at least, they give thoughtful consideration to what you have to say and make such a recommendation not out of some lazy buck-passing but rather a genuine concern for your condition. So you would do well to heed their advice, whatever it might be.



  • Great read! That explains a lot.

    I’ve been deep diving a bit myself and found this article that explains another thing that’s puzzled me over the years. Some birds have crazy vibrant coloration that almost glistens, like pearemoved feathers. Outside of the zoo, I’ve noticed it a bit in common grackles. They look black on first glance, but when you study them closely, they have this kind of purple sheen around their heads. Apparently, it’s still melanin at work here, but it’s structured in a very special way.