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

help-circle
  • Never in the history of time has a minute contained only 59 seconds. Even in Africa. And it has been decided that from 2035 onwards, we need to alter time itself in order to eradicate this irregular minute.

    We can only hope that before that time, we get to experience one of these magical short minutes. It may happen yet.


  • 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.











  • https://greglewisinfo.com/2020/04/18/the-b-17-saved-by-a-miracle/

    The ultimate source appears to be a guy’s memoirs:

    I came across this story in Elmer Bendiner’s marvellous 1980 memoir, The Fall of the Fortresses, while researching the lives of USAAF crews flying out of England during WW2.

    I’m still very sceptical. This guy is not even the primary source actually:

    Bohn said the shells had been sent to the armorers to be defused but had then been rushed away by an intelligence officer.

    Bohn had tracked down the officer and had hounded him until eventually he had told Bohn the full story – before swearing him to secrecy.

    Now, sabotage like this undoubtedly happened, although the scale is impossible to verify. However I think this specific story has just way too flimsy a chain of evidence to put any faith in. Good story though.



  • I think holding more helium in a smaller space is the opposite of what you want. The lifting force is equal to the weight of the air being displaced, so you want as little stuff as possible in as big a volume as possible.

    Maybe if you went the other way round and compressed the atmosphere?



  • 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).





  • Can you elaborate where your confusion lies? It’s a digital good, there is no marginal cost. So they can pretty much price a game however they want. So pricing is mostly about maximising revenue, i.e. get as many sales as you can at the highest possible price.

    A sale is a relatively straightforward strategy where you first sell the game at a high price to all the people who are fine with paying a lot, then you lower the price to sell more copies to the people who weren’t willing to pay the higher price. The result is more total profit. There is a time limit too to create a sense of urgency (“I better buy now so I don’t miss the opportunity”).