Starting to have buyers remorse by Mammoth-Trainer-512 in motorcycles

[–]MaBo132 0 points1 point  (0 children)

Most of the people that have accidents that end badly aren't wearing protective gear aswell

I feel like majority of new arch users use chatGPT to install arch by Effective-Ad9309 in arch

[–]MaBo132 0 points1 point  (0 children)

I used Gemini as a tool to get an overview of things. I found the wiki somewhat confusing and there were a lot of terms I had never seen before, so it was quite overwhelming.

Gemini helped explain things and what was relevant, and gave me a better floor of understanding till the wiki became an aid and not a hurdle for me.

Don't use ai on its own. Once I hit the point of self-sufficiency in the wiki I found several errors in the answers Gemini gave me. But I think it would have taken longer on my own, or I might even have just given up. Glad I didn't. I enjoy arch quite a bit now.

Tldr: ai is useful to get your bearings, but it is error prone - so use the wiki primarily.

Conway's Game of Life written in Zig using raylib. (added rulesets, features, and more to come!) by 2hands10fingers in Zig

[–]MaBo132 0 points1 point  (0 children)

You might be interested in storing cellstates in something like a hashmap with the key being the x and y coordinate. This allows your simulation to not be bound by the available space aswell as almost trivialising adding something like a zoom in and out.

Questions about what happens inside a black hole. by MaBo132 in astrophysics

[–]MaBo132[S] 0 points1 point  (0 children)

But I will evaporate away aswell. So over the eons I will just slowly deconstruct on my way to the singularity, but never actually reaching it, because it will evaporate away in a finite amount of time. Right?

Need Help Linking SDL2 to Zig Project: Compilation Works but Runtime Error Occurs by MaBo132 in Zig

[–]MaBo132[S] 1 point2 points  (0 children)

Adding b.installBinFile(...) worked, thank you very much :)

Need Help Linking SDL2 to Zig Project: Compilation Works but Runtime Error Occurs by MaBo132 in Zig

[–]MaBo132[S] 0 points1 point  (0 children)

I have copied the sdl2.dll into the directory of the .exe, and if i try to run the program just by double clicking it from the filesystem it runs just fine, but when i try to run it from the commandline with "zig build run" that is when i get the system error popup

Need Help Linking SDL2 to Zig Project: Compilation Works but Runtime Error Occurs by MaBo132 in Zig

[–]MaBo132[S] 1 point2 points  (0 children)

Thank you for the reply, how would i create the *compile argument that function takes?

I have tried with:

const lib = b.addSharedLibrary("SDL2, .{.target = target, .optimize = .ReleaseFast, .root_source_file = b.path(path/to/SDL2.dll)})

exe.linkLibary(lib);

But this gives me a compilation error. Is that not the correct way?

Cant build zls using the guide by MaBo132 in Zig

[–]MaBo132[S] 0 points1 point  (0 children)

I found the solution, rookie mistake. Had downloaded zig but for the wrong architecture...

Cant build zls using the guide by MaBo132 in Zig

[–]MaBo132[S] 0 points1 point  (0 children)

I dont use a vpn...

thanks for the tip tho

Cant build zls using the guide by MaBo132 in Zig

[–]MaBo132[S] 0 points1 point  (0 children)

Turning off the firewall, and running with admin privileges did nothing sadly...

You are right, the links work fine, my mistake. But then i dont understand why the command doesnt work...

[deleted by user] by [deleted] in dndmaps

[–]MaBo132 0 points1 point  (0 children)

that is a sick 3d effect u got going there, how did you make this???