• 0 Posts
  • 88 Comments
Joined 2 years ago
cake
Cake day: August 3rd, 2023

help-circle
  • The basic problem is that identifiers can be either types or variables, and without a keyword letting you know what kind of statement you’re dealing with, there’s no way of knowing without a complete identifier table. For example, what does this mean:

    foo * bar;
    

    If foo is a type, that is a pointer declaration. But if it’s a variable, that’s a multiplication expression. Here’s another simple one:

    foo(bar);
    

    Depending on how foo is defined, that could be a function call or a declaration of a variable bar of type foo, with some meaningless parentheses thrown in.

    When you mix things together it gets even more crazy. Check this example from this article:

    foo(*bar)();
    
    

    Is bar a pointer to a function returning foo, or is foo a function that takes a bar and returns a function pointer?

    let and fn keywords solve a lot of these ambiguity problems because they let the parser know what kind of statement it’s looking at, so it can know whether identifiers in certain positions refer to types or variables. That makes parsing easier to write and helps give nicer error messages.







  • Another big factor is that every plant is effectively a completely custom design. Because of how few nuclear plants are constructed, every new one tends to incorporate technological advancements to enhance safety or efficiency. The design also has to be adapted to the local climate and land layout. This makes every single plant effectively one of a kind.

    It also tends to be built by different contractors, involving different vendors and electric utilities every time. Other countries have done better here (e.g. China and France) mostly due to comprehensive government planning: plopping down lots of reactors of the same design, done by the same engineers. Although these countries are not fully escaping cost increases either.

    You are completely correct that regulation is also a big factor. Quality assurance and documentation requirements are enormously onerous. This article does a pretty decent job explaining the difficulties.


  • I did not come away from this article with a very positive opinion on Clarkson. He strikes me as the type of guy who is incapable of recognising a problem that he himself is not personally facing. Climate change wasn’t real until he tried his hand at farming. Driving electric vehicles won’t solve the climate problem, science will (did science not develop the battery technology needed to move away from gasoline cars?). Farmers are struggling and will be forced to sell to millionaires and capitalists (is he himself not the capitalist that bought a hobby farm from a struggling farmer?).

    I don’t think he’s seeing his own hypocrisy here. Farmers have been facing these problems for years and no one paid attention. He calls up his buddy in Westminster, immediately gets a full cabinet meeting, and as if by magic the government starts moving in his favour (taking away power from local government, I might add).

    This isn’t a black and white issue and there is merit to Clarkson’s point that local government can get captured and corrupted by personal conflicts and interests. But I don’t agree with the image he appears to project as a defender of the common man and poor farmer. He’s a millionaire who has never given a single shit about farmers until he personally owned a farm.


  • A system I work with gives all keys a string value of “Not_set” when the key is intended to be unset. The team decided to put this in because of a connection with a different, legacy system, whose developers (somehow) could not distinguish between a key being missing or being present but with a null value. So now every team that integrates with this system has to deal with these unset values.

    Of course, it’s up to individual developers to never forget to set a key to “Not_Set”. Also, they forgot to standardise capitalisation and such so there are all sorts of variations “NOT_SET”, “Not_set”, “NotSet”, etc. floating around the API responses. Also null is still a possible value you need to handle as well, though what it means is context dependent (usually it means someone fucked up).




  • VAT is a universal tax on goods. A tariff is basically a tax that applies only to imported goods. So a tariff distorts the market, making imports from a region more expensive relative to other regions, or domestic goods.

    Note that basically any tax is bad from an economic perspective. However for the government to function revenues must be raised. It is considered better for market efficiency to raise revenues in such a way as to least distort the market. Tariffs are a very distorting instrument, VAT is generally considered less distorting because it affects all parts of the market equally.


  • No magnetic confinement fusion reactor in existence has ever generated a positive output. The current record belongs to JET, with a Q factor of 0.67. This record was set in 1997.

    The biggest reason we haven’t had a record break for a long time is money. The most favourable reaction for fusion is generally a D-T (Deuterium-Tritium) reaction. However, Tritium is incredibly expensive. So, most reactors run the much cheaper D-D reaction, which generates lower output. This is okay because current research reactors are mostly doing research on specific components of an eventual commercial reactor, and are not aiming for highest possible power output.

    The main purpose of WEST is to do research on diverter components for ITER. ITER itself is expected to reach Q ≥ 10, but won’t have any energy harvesting components. The goal is to add that to its successor, DEMO.

    Inertial confinement fusion (using lasers) has produced higher records, but they generally exclude the energy used to produce the laser from the calculation. NIF has generated 3.15MJ of fusion output by delivering 2.05MJ of energy to it with a laser, nominally a Q = 1.54. however, creating the laser that delivered the power took about 300MJ.




  • So the right is against self-service now? wtf

    You may want to look into Grover Norquist and his organisation Americans for Tax Reform. It is one of the most influential political lobbying groups in the United States, and it has the support of essentially the entire republican party. They essentially consider tax to be evil on principle and ask every politician to sign a pledge opposing any tax hike.

    ATR is strongly against automatic filing, as they want to keep taxes difficult and complicated to stoke anti-tax sentiment. That is to say, they fear that if filing tax is easier, citizens would be less likely to fight taxes in the way that the ATR wants (mostly they like a low flat tax, because it’s simple and good for rich people).


  • They are emissions credits. Every company receives some amount of “CO2 emission credits” from the government. These allow you to emit a certain amount of carbon dioxide. If you don’t emit all the CO2 that your credits allow, you can sell those credits to other companies that need more than the government gives them.

    The idea is to put a total limit on the amount of emissions in the country, while letting the market figure out where it makes most sense economically to invest in emission reduction.

    Tesla makes only EV cars and so it doesn’t need all the credits a typical gasoline car company would receive. So they sell them.


  • I was curious what the official supposed purpose of these tokens was, since i have a hard time believing anyone would seriously see themselves buying anything with these at any point. The official website is hilarious. They’re not claiming any purpose at all, you’re just buying an “official meme”:

    Trump Memes are intended to function as an expression of support for, and engagement with, the ideals and beliefs embodied by the symbol “$TRUMP” and the associated artwork, and are not intended to be, or to be the subject of, an investment opportunity, investment contract, or security of any type. GetTrumpMemes.com is not political and has nothing to do with any political campaign or any political office or governmental agency. See Terms & Conditions Here, See Card Allocation Here

    The grift is fully out in the open I guess.


  • sushibowl@feddit.nltoWorld News@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    5
    ·
    6 months ago

    Are we painting Stalin as a good guy here? He only fought Germany because they tried to invade. Before that he repeatedly made attempts to court Nazi Germany. He signed a nonaggression pact, made an agreement to secretly divide Eastern Europe together, and continued trading. Stalin didn’t really give a shit about the fascism part, he only cared once his own territory and sphere of influence were threatened. Same as all the other major allies, btw. Everyone tried appeasement first, nobody really cared about the fascism.

    “Saving Europe from Hitler” paints it as a selfless act of heroism when really everyone was mostly concerned with maintaining their own power.