[–] 4 points 1 month ago

Also, who wants inefficient cars with oil prices where they are?

Oil execs, aka Trump's friends. US people have been complaining about how hard it is to find a car they actually want for ages. Their dealership model seems to be geared for extracting money from them, and worse mileage at higher prices would be just more of the same.

  • source
  • parent
  • context
  • [–] 5 points 1 month ago (3 children)

    I didn't have previous exposure to that exact syntax either, but:

    • Python and plenty other languages have assignment variations with an operator like +
    • | in plenty of languages means logical OR
      • possibly bitwise, but that seems unlikely in Python
    • Dicts are sorta complex siblings of sets
    • In terms of sets, OR is equivalent to a union

    Hence, a |=b should have the same meaning as a = a | b or a = a.union(b)

    and then the quiz is about basically implementation details and what the actual semantics winds up being in a language like python, where stuff is mutable by default and references are implicit (even though the zen of python states a preference for being explicit)

  • source
  • parent
  • context
  • [–] 9 points 1 month ago (3 children)

    People absolutely stop by coffee shops to get something to go in an urban context too. But the queueing that happens inside one of them, maybe even spilling out of the premises, still requires very little area and is pretty benign in an urban context. Especially if you wind up having a little chat with someone.

  • source
  • parent
  • context
  • [–] 3 points 1 month ago

    Something similar to the tiling model also dominates on small screens, like phones.

    And while I've used tiling WMs on Linux for well over a decade (probably nearing two), it does seem that plenty of people will prefer the familiar over trying something new, c.f. Win8's reception (I've never used it myself)

  • source
  • parent
  • context
  • [–] 21 points 1 month ago (3 children)

    You might want to have a glance at the OpenSSF compiler hardening guide, and maybe try out ASAN (-fsanitize=address).

    E.g. I get

    [nobody@bb14e99a9c8e cldr]$ ./build/cldr --update --language C.
    caution: filename not matched:  ethical-tldr/pages.C./*/*.md
    
    =================================================================
    ==454==ERROR: LeakSanitizer: detected memory leaks
    
    Direct leak of 4 byte(s) in 1 object(s) allocated from:
        #0 0x7fa48a32c0c1 in malloc (/usr/lib/libasan.so.8+0x12c0c1) (BuildId: b8a4241051a1621937fdc46e867ba7ecb56d96ea)
        #1 0x7fa489e8be0f  (/usr/lib/libc.so.6+0x8be0f) (BuildId: 503200d7fda94a5dc6058d7e0694e5d1dcb2e372)
        #2 0x7fa48a2f2761 in vasprintf (/usr/lib/libasan.so.8+0xf2761) (BuildId: b8a4241051a1621937fdc46e867ba7ecb56d96ea)
        #3 0x561d84213d8c in strfmt (/home/nobody/cldr/build/cldr+0x6d8c) (BuildId: 2a0f13efc2c9b12a67e7dd810a2cbdfd1866e53d)
    
    SUMMARY: AddressSanitizer: 4 byte(s) leaked in 1 allocation(s).
    
  • source
  • [–] 3 points 1 month ago

    Yes, complete decarbonisation of industry is a longer canvas to bleach, but there's also a significant difference between the market decarbonising completely, and renewables and heat pumps (and induction, I guess) doing enough to drop off demand. Drilling for oil & gas in the sea hasn't been the cheapest source, and Norwegians will talk about the oil crisis of 2014-2016, where the problem was that it got so cheap that production here was halted.

    Drive down demand for fossil fuels, and Norwegian exploitation of the arctic fossil fuels will likely just be priced out.

  • source
  • parent
  • context
  • [–] 4 points 1 month ago (2 children)

    So-called oil fields also extract a lot of gas, and that is used for electricity generation.

    Traditionally we call it the oil and gas sector in Norway, but these days it might be more accurate to call it the gas and oil sector.

  • source
  • parent
  • context
  • view more: next ›