HackerTrans
TopNewTrendsCommentsPastAskShowJobs

CodeArtisan

no profile record

comments

CodeArtisan
·2 bulan yang lalu·discuss
C23 removed the whole stuff about indeterminate value and trap representation. Underflow/overflow being silent or not is implementation defined.
CodeArtisan
·2 bulan yang lalu·discuss
Shouldn't it be (+ a (apply + b))
CodeArtisan
·2 bulan yang lalu·discuss
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
·2 bulan yang lalu·discuss
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
·2 bulan yang lalu·discuss
Hack came after. Noduerme is referring to https://en.wikipedia.org/wiki/HipHop_for_PHP
CodeArtisan
·2 bulan yang lalu·discuss
>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
·2 bulan yang lalu·discuss
>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
·2 bulan yang lalu·discuss
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
·2 bulan yang lalu·discuss
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
·3 bulan yang lalu·discuss
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
·3 bulan yang lalu·discuss
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
·3 bulan yang lalu·discuss
Toolchain: https://ada-lang.io/

IDE: https://github.com/AdaCore/gnatstudio
CodeArtisan
·3 bulan yang lalu·discuss
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
·6 bulan yang lalu·discuss
Wikipedia has a page already: https://en.wikipedia.org/wiki/Killing_of_Alex_Pretti
CodeArtisan
·7 bulan yang lalu·discuss
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
·8 bulan yang lalu·discuss
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
·8 bulan yang lalu·discuss
Final Fantasy Tactics on Game Boy Advance had a color mode for television.

https://www.youtube.com/shorts/F29nlIz_tWo
CodeArtisan
·10 bulan yang lalu·discuss
Dorsey left may 2024: https://www.theguardian.com/technology/article/2024/may/07/j...
CodeArtisan
·11 bulan yang lalu·discuss
29 Millions according to https://www.phoronix.com/news/Linux-6.16-AMDGPU-Driver-Size

5 Millions alone for the AMD graphic driver.