• 3 Posts
  • 1.06K Comments
Joined 3 years ago
cake
Cake day: June 18th, 2023

help-circle

  • mkwt@lemmy.worldtoProgrammer Humor@programming.dev< :-( >
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    2 hours ago

    In C and C++, the source character set is implementation defined. This means that each compiler sets its own rules about what characters are accepted. For example compilers could choose to accept ASCII or EBCDIC or Unicode, or some combination, etc.

    So the ISO standard will say that ; character is the end of statement punctuation. But it is up to the compiler to say which character(s) or code point(s) represent the ISO ;.

    The ISO standards also require compilers to define a separate execution character set to specify values that can be stored in char and used with the string library functions. The execution character set doesn’t have to be the same as the source character set.

    Edit: I should also mention that the rules for this stuff are changing a lot in ISO C23 and C++23. (Which standards I haven’t yet personally adopted.) Basically the ISO 23 standards mandate compilers to support UTF-8 source files, and they map every source character in the ISO standard to its corresponding Unicode character.









  • In this case, John Roberts and company decided to issue the judgement immediately over the objection of the losing party. This move seemingly facilitates Louisiana’s effort to switch maps even after voting has already started.

    Meanwhile, just 2-3 years ago, Roberts said that Alabama had to continue using illegal maps because we couldn’t disrupt an election cycle that was less than 6 months away. Just a few months ago, this court said that Texas can’t be forced to change maps 4 months before election.

    The only real distinguishing principle that you could use to predict these decisions is which political party benefits from the decision.

    Even if the VRA decision had some principled reasoning on the merits, all of this posturing on the timelines is clearly nakedly partisan.


  • There is no reason to have 50 separate curriculums. The ONLY reason that exists is so MAGA states can use the schools to indoctrinate American schoolchildren

    That’s not the only reason. There are in fact principles of federalism, and there’s the 10th amendment to the constitution. Educating the public is not one of the 17 enumerated powers granted to Congress in article I. Under the 10th, powers that are not granted to the national government are reserved to the states or to the people.

    This is why the national government’s regulation of education is based around carrots in the form of block grants that states apply for. Not enforcement sticks.





  • A spinning circle requires just two threads, one to do the work and one to spin the circle. And they don’t have to talk to each other.

    A progress bar is the same thing, but now the work thread has to periodically communicate the progress to the bar thread, and inter-thread synchronization has to be setup. And how do you know how much progress a single file transfer represents? Or how many progress points is a registry edit versus a file transfer? It’s hard to figure out in advance, which is why so many progress bars are shitty estimates of progress.





  • The fifth circuit court of appeals has been described as “a collection of 4chan posts wearing robes.” It has a reputation for very conservative decisions that are poorly reasoned. And in fact I think it is currently the most overturned circuit at the Supreme Court.

    The 5th circuit covers the geographic territory of Louisiana, Mississippi, and Texas. In the US appellate system, the decisions of each circuit are binding precedent within their territory. So the interpretation of the law can literally change if you move to a different part of the country. The Supreme Court is supposed to step in when these “circuit splits” occur, but sometimes it’s slow to do so.

    In this case, the effect is nationwide because it’s an APA case. The court is ordering the FDA to reverse one of its regulatory policies. And the FDA can be sued in any of the 50 states because they operate in all of them.

    Edit: I’m just assuming that OP is talking about the mifepristone decision that just came out. But they could be talking about the Louisiana Callais decision on redistricting instead.