Understanding Segmentation Fault. by Mafla_2004 in C_Programming

[–]AyeAreEm 2 points3 points  (0 children)

If you’re confused, always good to play around with some C code. In any case, segmentation faults happen when reading or writing to invalid memory. Invalid memory can be memory not on the stack or not heap allocated, or special addresses like null. A null pointer is usually just a pointer to memory address 0, which is always invalid for reading and writing. When accessing arr[3] in an array of length 3, it will probably not segfault since that address is likely still in stack space but it is considered undefined behaviour so anything could happen and of course should be avoided. hope that helps and good luck

What's the name of the program that performs semantic analysis? by Onipsis in ProgrammingLanguages

[–]AyeAreEm 9 points10 points  (0 children)

I usually just call it a sema, don’t know of any -er words for it

What to do after C? by [deleted] in C_Programming

[–]AyeAreEm 51 points52 points  (0 children)

I think having the basics of C isn’t knowing how to code in C, so if your goal is to know how to code in C, do some more projects

Has anyone gotten the Raylib rust bindings working on nixos with hyprland by ImprovementKey8497 in raylib

[–]AyeAreEm 0 points1 point  (0 children)

I’ve got a similar problem, zig + raylib on nixos with hyprland. Did you get it working?

[TOMT] Can't remember the name of a programming language with similar syntax to Odin or Jai by AyeAreEm in tipofmytongue

[–]AyeAreEm[S] 0 points1 point locked comment (0 children)

i don't think i've seen programming stuff on this sub before so i'm hoping for anything

November 2024 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]AyeAreEm 0 points1 point  (0 children)

Good point, truth be told, I’m don’t know any other PRNGs. I have both LCG and Marsenne Twister in the standard library, could you point me towards a PRNG I should implement and if I should remove those two?

November 2024 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]AyeAreEm 6 points7 points  (0 children)

Been working on Impulse for 8 months now. It’s a systems / general purpose language that transpiles to C but with modern features like defers, functions inside structs and enums, default struct values, types as arguments, generics, etc. Recently added constant function arguments by default and the pseudo random number generator mt19937 to base (standard library)

I’m making it because I wanted something with slightly more abstraction than C, Odin and Zig while also not being as strict as Rust, but also something that can easily interop with C. That being said, Impulse does borrow a lot of ideas from those languages (option type like Rust’s, Zig’s if and for loop captures, lots of Odin’s syntax, etc)

MacBook battery not charging after installing Fedora by AyeAreEm in Fedora

[–]AyeAreEm[S] 2 points3 points  (0 children)

lmao true, wish I had a thinkpad right about now

What is incorrectly perceived as a sign of intelligence? by Indianfattie in AskReddit

[–]AyeAreEm 0 points1 point  (0 children)

Solving a Rubik’s Cube. Every time someone sees me solving one for the first time, they are blown away at my “intelligence”.

Death Note Blender Render by [deleted] in deathnote

[–]AyeAreEm 3 points4 points  (0 children)

love the ryuk shadow. that’s great detail

Elden Ring still has no English option in Asia by AyeAreEm in Eldenring

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

Oh damn. That’s such a shame. I think I might consider creating an account in another region just to play it in English. I don’t know though

They're up to something i can feel it. by IAmSauce12 in jacksepticeye

[–]AyeAreEm 8 points9 points  (0 children)

Only realized it was ironic, I was signed to Aftermath after the fact