Readit News logoReadit News
CodeArtisan commented on You can't fool the optimizer   xania.org/202512/03-more-... · Posted by u/HeliumHydride
CodeArtisan · 3 months ago
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

CodeArtisan commented on GNOME 50 completes the migration to Wayland, dropping X11 backend code   linuxiac.com/gnome-50-end... · Posted by u/upofadown
saturn_vk · 4 months ago
Do you have a source for that statistic?
CodeArtisan commented on The 'Toy Story' You Remember   animationobsessive.substa... · Posted by u/ani_obsessive
cbolton · 4 months ago
There's a similar issue with retro video games and emulators: the screens on the original devices often had low color saturation, so the RGB data in those games were very saturated to compensate. Then people took the ROMs to use in emulators with modern screens, and the colors are over-saturated or just off. That's why you often see screenshots of retro games with ridiculously bright colors. Thankfully now many emulators implement filters to reproduce colors closer to the original look.

Some examples:

https://www.reddit.com/r/Gameboy/comments/bvqaec/why_and_how...

https://www.youtube.com/watch?v=yA-aQMUXKPM

CodeArtisan · 4 months ago
Final Fantasy Tactics on Game Boy Advance had a color mode for television.

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

CodeArtisan commented on Scientists say X has lost its professional edge and Bluesky is taking its place   psypost.org/scientists-sa... · Posted by u/CharlesW
Larrikin · 6 months ago
Why does anyone need to invest at all? Why can't Jack Dorsey just run it instead of needing it be a hockey stick start up?
CodeArtisan commented on John Carmack's arguments against building a custom XR OS at Meta   twitter.com/ID_AA_Carmack... · Posted by u/OlympicMarmoto
saulpw · 6 months ago
Yeah, the Linux kernel has ~12m lines of code. <1m are the core, the rest are drivers.
CodeArtisan · 6 months ago
29 Millions according to https://www.phoronix.com/news/Linux-6.16-AMDGPU-Driver-Size

5 Millions alone for the AMD graphic driver.

CodeArtisan commented on 4chan will refuse to pay daily online safety fines, lawyer tells BBC   bbc.co.uk/news/articles/c... · Posted by u/donpott
M95D · 7 months ago
We need a DNS server with a history database, not just a cache, preferably with a distributed history database.

Visit a website and it was blocked by the "official" DNS? Declare the IP invalid in the webUI (or the browser plugin) of the local DNS and it will get you the previous IP from the database.

CodeArtisan · 7 months ago
Brave browser launched a blockchain based domains registry IIRC.
CodeArtisan commented on Most people who buy games on Steam never play them   howtomarketagame.com/2025... · Posted by u/3Samourai
bombcar · 8 months ago
The real reason cracktorio can do no sale is the same reason Minecrack can be basically no sale (same price forever) - it’s an evergreen game people will always buy at a low roar.

Most games are like DVDs or books, they frontload 90% of their total revenue in the first few months, and so sales are a way to squeeze a bit more juice out later.

CodeArtisan · 8 months ago
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.
CodeArtisan commented on GNOME and Red Hat Linux eleven years ago (2009)   linuxgazette.net/165/layc... · Posted by u/marcodiego
boredemployee · 9 months ago
It looks like Lode Runner, but even more simple as I remember. Not sure if it came together with KDE. So long ago.
CodeArtisan commented on Valve takes another step toward making SteamOS a true Windows competitor   arstechnica.com/gaming/20... · Posted by u/austinallegro
CodeArtisan · 10 months ago
Until valve find a solution to the anti cheat problem, gamers will stay on Windows.

u/CodeArtisan

KarmaCake day791March 15, 2018
About
A code artisan is a programmer relying completely or in part on his own handcrafted tools.
View Original