HNHacker News
TopNewBestAskShowJobs

CodeArtisan

817 karma · joined March 15, 2018

A code artisan is a programmer relying completely or in part on his own handcrafted tools.
submissionscomments
CodeArtisan··on Anthropic logged net loss of over $80B in first half of 2026
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.

CodeArtisan··on Everything in C is undefined behavior
C23 removed the whole stuff about indeterminate value and trap representation. Underflow/overflow being silent or not is implementation defined.
CodeArtisan··on Hyperpolyglot Lisp: Common Lisp, Racket, Clojure, Emacs Lisp
Shouldn't it be (+ a (apply + b))
CodeArtisan··on Crystals found inside wreckage from the first nuclear bomb test
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...

CodeArtisan··on Leaving GitHub for Forgejo
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

CodeArtisan··on Mojo 1.0 Beta
Hack came after. Noduerme is referring to https://en.wikipedia.org/wiki/HipHop_for_PHP
CodeArtisan··on A network smuggling Starlink tech into Iran to beat internet blackout
>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...

CodeArtisan··on Unsigned sizes: A five year mistake
>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

CodeArtisan··on The X-Files has made me nostalgic for a time I never experienced
Geocities had a ton of xfiles fansites https://geocities.restorativland.org/

(beware, has auto-playing audio!) https://geocities.restorativland.org/Area51/5795/

https://geocities.restorativland.org/Area51/8406/main.htm

https://geocities.restorativland.org/Area51/6601/

https://geocities.restorativland.org/Area51/8616/

https://geocities.restorativland.org/Area51/2133/

https://geocities.restorativland.org/Area51/2442/

and many more.

CodeArtisan··on Consequences of passing too few register parameters to a C function
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) )

CodeArtisan··on Do you want the US to "win" AI?
Belgium could be in the top5 in the next report chart due to Google alone.

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

CodeArtisan··on Turtle WoW classic server announces shutdown after Blizzard wins injunction
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...

CodeArtisan··on Ada, its design, and the language that built the languages
Toolchain: https://ada-lang.io/

IDE: https://github.com/AdaCore/gnatstudio

CodeArtisan··on Mark Zuckerberg is reportedly building an AI clone to replace him in meetings
The games he made for programming competitions like ludum dare were decent. I especially enjoyed Prelude to the chambered.

https://web.archive.org/web/20191221082346/http://ludumdare....

https://web.archive.org/web/20210722173354/https://www.youtu...

https://www.youtube.com/playlist?list=PLgAujBKarXXoMxJDyi1Am...

CodeArtisan··on Man shot and killed by federal agents in south Minneapolis this morning
Wikipedia has a page already: https://en.wikipedia.org/wiki/Killing_of_Alex_Pretti
CodeArtisan··on You can't fool the optimizer
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··on GNOME 50 completes the migration to Wayland, dropping X11 backend code
Stats from Debian and Archlinux. i can't tell how reliable they are.

https://qa.debian.org/popcon-graph.php?packages=x11-common+g...

https://pkgstats.archlinux.de/compare/packages#packages=gnom...

CodeArtisan··on The 'Toy Story' You Remember
Final Fantasy Tactics on Game Boy Advance had a color mode for television.

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

CodeArtisan··on Scientists say X has lost its professional edge and Bluesky is taking its place
Dorsey left may 2024: https://www.theguardian.com/technology/article/2024/may/07/j...
CodeArtisan··on John Carmack's arguments against building a custom XR OS at Meta
29 Millions according to https://www.phoronix.com/news/Linux-6.16-AMDGPU-Driver-Size

5 Millions alone for the AMD graphic driver.

CodeArtisan··on 4chan will refuse to pay daily online safety fines, lawyer tells BBC
Brave browser launched a blockchain based domains registry IIRC.
CodeArtisan··on Most people who buy games on Steam never play them
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··on Red Hat Linux in 1998 (2009)
maybe this https://en.wikipedia.org/wiki/Rocks%27n%27Diamonds
CodeArtisan··on Valve takes another step toward making SteamOS a true Windows competitor
Until valve find a solution to the anti cheat problem, gamers will stay on Windows.
CodeArtisan··on Valve releases Team Fortress 2 code
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/

CodeArtisan··on The XOR Texture (2004)
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
CodeArtisan··on Flappy Bird in 1000 lines of C
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).
CodeArtisan··on RollerCoaster Tycoon was the last of its kind [video]
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...

CodeArtisan··on Intel announces retirement of Pat Gelsinger
Steam hardware survey: https://store.steampowered.com/hwsurvey/processormfg/

Windows:

Intel: 64.23%

AMD: 35.71%

Linux:

Intel: 30.15%

AMD: 69.85%

CodeArtisan··on Starlink Direct to Cell
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...

Page 1 of 10Next →