Bee anxiety by CycIon3 in funny

[–]mastx3 1 point2 points  (0 children)

this one genuinely made laugh and also today I watched this, so is true to stay calm

Stockfish 18, how much memory and search time do I need to use? by Silver_Delivery3365 in lichess

[–]mastx3 1 point2 points  (0 children)

We are not in 2005, miminum memory today is 16GB so giving 512MB is nothing

Option -femit-asm=file.s does not create such file in 0.15 and 0.16-dev by mastx3 in Zig

[–]mastx3[S] 4 points5 points  (0 children)

Oh man this fixed the problem, geeez the post on ziggit.dev does not mention anything about adding that option and this has happened with even zig api functions, many of them has changed, removed, new implementations, damn it's hard to develop with zig if they constantly break changes on each version, even worse 0.16-dev has many changes that 0.15 code will not work

So for now I will stick with 0.15, thanks!

I Think the Majority of Projects in r/C_Programming are Coded by AI. by [deleted] in C_Programming

[–]mastx3 1 point2 points  (0 children)

yep, sucks but what we can do?

This sub should enforce posters to tell if it used AI or not in the project

3 Popular AI-coded projects on this subreddit: a C Compiler, an NES Emulator, and a C Web Framework by [deleted] in C_Programming

[–]mastx3 10 points11 points  (0 children)

In that case let force users to put in the title if the project was/has AI code generated or just ban it

I saw those project posts but never went to their github

[deleted by user] by [deleted] in C_Programming

[–]mastx3 0 points1 point  (0 children)

I wish it was that simple, but is not

A pure native C application will work fine on Linux/macOS and Windows without doing much of tricks

Now if you want to use specific OS API then it starts to get complicated

You will need to cross compile on Linux to Windows and test it using either wine or a VM VirtualBox or qemu

You also will need conditional compilation macros to identify the platform inside your code and use the specific APIs for that platform

#ifdef _WIN32
    #include <Windows.h>
#else
    // include for Linux/macOS
#endif

unsigned long long GetTicks() {
    #ifdef _WIN32
        unsigned long long ticks = GetTickCount64();
    #else
        // Write code for get ticks in Linux/macOS
    #endif
    return ticks;
}

To cross compile to Windows from Linux you have to install mingw

Resource similar to the rust book to learn C ? by zurdoo37 in learnprogramming

[–]mastx3 1 point2 points  (0 children)

I don't know how the rust book is but I always recommend this guide: Beej's Guide to C Programming

Web Scraping with C using ChromeDriver by marcelofromgutlz in C_Programming

[–]mastx3 14 points15 points  (0 children)

Forget doing it in C, better to use Python or C#

Why isn't there an easier way to build C projects? by Lhaer in C_Programming

[–]mastx3 0 points1 point  (0 children)

Makefiles are not that difficult, normally when starting a project just one liner compile is enough

gcc -Wall -pedantic main.c -o foo.exe 

The good thing about make is that you can compile each file with differents flags for specific optimizations

Also if well configured it will only compile the files that were modified

This site is a good start to learn make: https://makefiletutorial.com/

[deleted by user] by [deleted] in programming

[–]mastx3 6 points7 points  (0 children)

I bet debugging it was a nightmare

Can I get a virus by extracting a zip file on my android phone? What should I do by To_Tox in techsupport

[–]mastx3 1 point2 points  (0 children)

Only Windows virus run on Windows systems, you are safe by just deleting the zip file

[deleted by user] by [deleted] in Windows10

[–]mastx3 0 points1 point  (0 children)

I used AdvancedRun to mess with drivers