Hacker Newsnew | past | comments | ask | show | jobs | submit | CodeArtisan's commentslogin

>I can't think of a single example where foreign inteference (or war) has had the citizenry welcome foreign powers as liberators or otherwise increased freedoms or conditions in a country for those citizens.

When Japan occupied the Netherlands East Indies in the early weeks of 1942, many Indonesians celebrated, seeing the Japanese army as the fulfillment of a prophecy attributed to Jayabaya. He had foretold a time when white men would establish their rule over Java and oppress the people for many years, only to be driven out by "yellow men from the north." According to Jayabaya, these "yellow dwarves" would remain for one crop cycle (interpreted as 3 1/2 years, corresponding to the duration of Japanese occupation), after which Java would be free from foreign domination. To most Javanese, Japan was seen as a liberator, as the prophecy appeared to be fulfilled.

https://en.wikipedia.org/wiki/Jayabaya

(To One Piece readers) I remembered this from this post https://www.reddit.com/r/OnePiece/comments/xb3lx/spoilers_jo...


>That's why array indexing is signed in C

C23 updated the definition of the [] operator to disallow negative subscripts with array type. I think you have to explicitly convert the array to a pointer type now.

    int a[2];
    a[-1]; // not ok
    (&a[0])[-1] // ok
C23: https://cstd.eisie.net/c2y.html#6.5.3.2

C11: https://port70.net/~nsz/c/c11/n1570.html#6.5.2.1



Until C23, you could declare a pointer to a procedure that takes an unspecified amount of any type arguments like this

    void foo( int (*f)() )
    {
        f(1);
        f(1, "2" , 3.0);
    }
https://godbolt.org/z/s6e5rnqv9

If you compile with -std=c23, both gcc and clang will throw an error ( (*f)() is now the same as (*f)(void) )


You do not need the pointer at all. f() not specifying the arguments has been the case since forever. "Prototypes" (90s) are newer than C.

Belgium could be in the top5 in the next report chart due to Google alone.

https://blog.google/innovation-and-ai/infrastructure-and-clo...


Counter-strike was definitively a mod, you had to install it in the same folder as Half-Life and start it with 'hl.exe -game cstrike'. It became a standalone game later with the retail release.

edit:

https://developer.valvesoftware.com/wiki/Counter-Strike#Vers...


Are we getting so old that people are forgetting cs was a mod.





Man, I hate that they "both sides" this. "DHS says he approached with a handgun, NYT says the video shows a phone" makes it seem like just an unlucky misunderstanding. But the DHS quote clearly is a straight up lie based on video evidence, and this doesn't convey how it was a straight up execution and that all the escalation was done by the officers.


It's a current event, so things will change fast.

At the same time, the Wikipedia page for ICE itself sounds a lot like a propaganda piece, with criticism as a footnote.


From my reading of the evidence so far it seems there was a misunderstanding. Looks like one of the ICE guys said he has a gun, took the gun but the others didn't realise the gun had been taken.


Nah, "he has a gun" doesn't mean he poses a threat, especially not when maced, with 4 guys on top and hands placed on the ground. And it definitely doesn't explain why they kept firing at him even when laying dead on the ground.

The thugs created the situation, escalated the situation, and then showed their true colors. Nothing in this can be explained away by a mere misunderstanding.

And I recommend watching the videos, not just "reading the evidence". The statements made are blatant lies and you should put no stock in them.


Recursive Popcount:

    unsigned int popcount(unsigned int n) 
    {
        return (n &= n - 1u) ? (1u  + popcount(n)) : 0u;
    }
Clang 21.1 x64:

    popcount:
            mov     eax, -1
    .LBB0_1:
            lea     ecx, [rdi - 1]
            inc     eax
            and     ecx, edi
            mov     edi, ecx
            jne     .LBB0_1
            ret
GCC 15.2:

    popcount:
            blsr    edi, edi
            popcnt  eax, edi
            ret
Both compiled with -O3 -march=znver5


Because the function is not quite correct. It should be

    return n ? (1u  + popcount(n & n - 1u)) : 0u;
which both Clang and GCC promptly optimize to a single popcnt.


There should be testsuites, which are based on testing which compilation passes the compiler chose.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: