News for hackers. Stuff that matters.

CodeArtisan

This is from the article by the wall street journal:

https://imgur.com/a/XRPOXLa

Total loss is about 96 billions, they deduced the top (~16 billions) from the bottom to get the net loss (~80 billions). What is "Other Expenses" here? The article says nothing about that. I am not sure to get this right.

Re:Everything in C is undefined behavior on Wednesday May 20, 2026 @07:03AM (#48205835)
C23 removed the whole stuff about indeterminate value and trap representation. Underflow/overflow being silent or not is implementation defined.
Shouldn't it be (+ a (apply + b))
The video game S.T.A.L.K.E.R is happening in the Chernobyl Exclusion Zone, an area filled with super natural anomalies and artifacts due to the radiation. A legend/rumor says that there is a special crystal granting any wish at the center of the zone, inside the power plant's sarcophagus. The existence of the crystal can't be verified because a cultist faction, The monolith, is preventing anyone to reach the center.

https://en.wikipedia.org/wiki/S.T.A.L.K.E.R.:_Shadow_of_Cher...

Re:Why I'm leaving GitHub for Forgejo on Thursday May 14, 2026 @05:06AM (#48132841)
I have been using Framagit for a few years now. it has been online since 2016, it's the public Gitlab instance of Framasoft, a french non profit organization. RocketGit has been online since 2015 and relies on its own software, i have never used it but i have heard about it regularly.

https://framagit.org/

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

https://rocketgit.com

Re:Mojo 1.0 Beta on Friday May 08, 2026 @03:19PM (#48067504)
Hack came after. Noduerme is referring to https://en.wikipedia.org/wiki/HipHop_for_PHP
>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...

Re:Unsigned Sizes: A Five Year Mistake on Sunday May 03, 2026 @05:19AM (#47995073)
>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) )

Re:Do you want the US to "win" AI? on Thursday April 23, 2026 @11:43AM (#47877123)
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...

Re:You Can't Fool the Optimizer on Wednesday December 03, 2025 @12:01PM (#46136928)
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
Re:The 'Toy Story' You Remember on Tuesday November 11, 2025 @07:55AM (#45886754)
Final Fantasy Tactics on Game Boy Advance had a color mode for television.

https://www.youtube.com/shorts/F29nlIz_tWo

29 Millions according to https://www.phoronix.com/news/Linux-6.16-AMDGPU-Driver-Size

5 Millions alone for the AMD graphic driver.

Brave browser launched a blockchain based domains registry IIRC.
Re:Most people who buy games on Steam never play them on Sunday July 13, 2025 @08:07PM (#44555001)
While the price of Minecraft stays the same, the game never stopped evolving and getting content updates. For $30 you get a much bigger game now than fifteen years ago.
Until valve find a solution to the anti cheat problem, gamers will stay on Windows.
Re:Valve releases Team Fortress 2 game code on Tuesday February 18, 2025 @04:47PM (#43095537)
30% may be a lot but you get more than a store page;

- anticheat

- voice chat, friend list, ...

- matchmaking

- marketplace for mods, maps, skins, ...

- clips and videos

- forums/ discussion board

- cloud saves

- rankings

An indie would have to implement and host those by itself or rely on third party services.

https://partner.steamgames.com/doc/features/

Re:The XOR Texture on Wednesday December 18, 2024 @06:53AM (#42449760)
You may modify the pattern by simply adding a bitmask

    pixels[x][y] := (x OP y) BITWISE_AND mask
for example, multiply with different bit masks : https://files.catbox.moe/vhfd9x.mp4
Re:Flappy Bird in 1000 lines of C on Sunday December 08, 2024 @04:34AM (#42356104)
On Linux, you may mmap /dev/fb0 to access the front buffer like you would have on old computers. Not all kernel configs and GPU devices allow that. You can test if fb0 is usable with cat /dev/random > /dev/fb0 to see if the screen is filled with garbage (you may also need root privilege).
Re:RollerCoaster Tycoon was the last of its kind [video] on Saturday December 07, 2024 @06:21AM (#42349047)
When Jens Bergensten joined Mojang (to work on Scrolls), Minecraft was quite advanced and already had the nether and red stone. Notch did not rely on any store and was using his personal paypal account that got blocked due to an anomalous amount of transactions.

https://minecraft.fandom.com/wiki/Java_Edition_Alpha_v1.2.0

https://blog.omniarchive.uk/post/1096322756/working-on-a-fri...

Re:Intel Announces Retirement of CEO Pat Gelsinger on Tuesday December 03, 2024 @07:35AM (#42305478)
Steam hardware survey: https://store.steampowered.com/hwsurvey/processormfg/

Windows:

Intel: 64.23%

AMD: 35.71%

Linux:

Intel: 30.15%

AMD: 69.85%

Re:Starlink Direct to Cell on Sunday November 24, 2024 @10:02PM (#42232850)
The European Union wants its own satellite network to counter Starlink. It will be build by SpaceRISE, a consortium that include Airbus, Thales, Deutsche Telekom...

https://en.wikipedia.org/wiki/IRIS%C2%B2

https://www.spacerise.eu/

https://defence-industry-space.ec.europa.eu/eu-space/iris2-s...

Older »