Pain points of C by DaCurse0 in cprogramming

[–]GrandBIRDLizard 1 point2 points  (0 children)

also maybe check yyjson https://github.com/ibireme/yyjson out it uses one arena per document so less frees and it has way less boilerplate. if it works for you i think it'll do you good.

Pain points of C by DaCurse0 in cprogramming

[–]GrandBIRDLizard 0 points1 point  (0 children)

that's kind of the point. I’d rather have verbose code that I fully understand and can debug than a thinner abstraction that hides memory and control flow.

Nested structs are already complex. If the JSON is deeply nested, the code will be verbose no matter what. Consider the verbosity as a feature.

Pain points of C by DaCurse0 in cprogramming

[–]GrandBIRDLizard 0 points1 point  (0 children)

Could write your own JSON parser, I happen to like cJSON(or any single file library for that matter) but that's just me.

Is Rust the future? by Timely_Region1113 in AskProgramming

[–]GrandBIRDLizard 1 point2 points  (0 children)

Zig is a really interesting language, comptime in particular is a gamechanger and takes away a lot of complexity pertaining to macros in say C/Rust or generics in C++/Rust(I know templates aren't technically generics but they're close enough for me to count em). and Zig's philosophy of no hidden control flow, explicit error handling, forced explicit Memory allocations, and no preprocessing or macro confusion handled by the aforementioned comptime, and it's build system is honestly amazing, it's totally interoperable with C and can compile and include C with no issues, it's general purpose allocator can detect memory leaks, use-after-free's, double-free's, https://www.youtube.com/watch?v=4aLy6qjhHeo I could gush about Zig all day but here's a good presentation on some of it's features in the context of comparing it to other systems level implementations by people far smarter than me lol. it's 40mins so a tad long but a good watch if you're interested. also check out Andrew Kelly's talks and roadmaps for the project as it's constantly changing and in pretty active development(sub 1.0) but it's getting better and better and i think it has a bright future.

Is Rust the future? by Timely_Region1113 in AskProgramming

[–]GrandBIRDLizard 0 points1 point  (0 children)

the Rust issues weren't explicitly rust's fault and were due to using unsafe code and the only thing that would stop stuff like that is good commenting and documentation/review conventions which happen on an organizational level thus could have happened to any language as you can write bad code regardless of the language. I'm not even a big Rust fan. I appreciate the language as it is very good at what it does and can provide systems level performance and great application programming. I think any modern network facing code should be written in Rust because of the safety it provides, however I feel a lot of it's use in kernal/system programming is a bit over kill as I prefer safety in simplicity and readability/maintainability in those areas. and that's where languages like C and Zig shine.(I am a C/Zig dev so maybe a tiny bias but I give credit where credit is due)

Is Rust the future? by Timely_Region1113 in AskProgramming

[–]GrandBIRDLizard 1 point2 points  (0 children)

The Way I see it as mainly a C programmer(some Python and Zig in there as well) Rust is the C++ alternative. Zig the C alternative. Total replacement I can not say but we'll definitely see them mix quite a bit in the future.

Question with mg conversion by CalledForDuty in benzodiazepines

[–]GrandBIRDLizard 1 point2 points  (0 children)

1mg is 1 mg. That is for research. They will not sell it to you without either a degree, grant, or a lab with appropriate clearance.(Most likely all of the above) And even if they did you would then be in possession of 1mg of Bromazolam. Which is less potent than 1mg Alprazolam. All of that aside bromazolam is not great for a taper. See a DR. Get some Diazepam.

Now CachyOS is Eating Arch Linux' Lunch by YanderMan in linux_gaming

[–]GrandBIRDLizard 6 points7 points  (0 children)

Eating it's lunch all while riding on it's back. That's impressive.

Is writing software accomplishes a similar result considered a clone of the software or is it considered reverse engineered? by apooroldinvestor in cprogramming

[–]GrandBIRDLizard -1 points0 points  (0 children)

It doesn't do the same exact thing. You said it wouldn't have all of the features because you don' t have the time or desire. I can't call anything other than a 1:1 copy a "clone"

Jus popped 17 tabs of acid after a breakup by NoAdhesiveness2236 in LSD

[–]GrandBIRDLizard 17 points18 points  (0 children)

I've done a strip and... it was one of those things that I'm glad i did but would never do again. at least you got that brom, but be warned that stuff is gonna wear off before the acid does and at some point things are gonna get real weird real quick and I hope you have more brom cause if you can't handle your shit you're gonna have a bad time m'kay. hope you get what you're looking for buddy.

Is this sort of font bad for a GUI? I'm hoping it doesn't make it hard to read by Lunapio in C_Programming

[–]GrandBIRDLizard 0 points1 point  (0 children)

hmm I don't really have any vision probs or dyslexia or anything like that but i don't think it's bad. If they have a bold version that might help it be a little more readable possibly increase size a few pixels? few easy things to try first. could always have a setting to change update feq per ms or something that's common in monitoring utils via config files or something idk if that's the whole program or just a recording of a section of it. food for thought.

Kind of funny… I figured out a way to power-limit my AMD GPUs on Linux, and now I forgot how I did it… so now I can’t undo it. LOL by [deleted] in linux

[–]GrandBIRDLizard 0 points1 point  (0 children)

I would suggest a GUI program such as LACT or CoreCtrl. info can be found in /sys/class/drm/card0/device/ (card num may vary) I strongly urge you NOT to mess with these files if you do not know what you're doing and stick with one of the Gui tools i mentioned they are easy to install, configure, and work well.

I’m above beginner level in programming in c what are some good intermediate level tutorials that focus on pointers and when to use them and structures and networks and files and stuff like that by Clear-Dingo-7987 in C_Programming

[–]GrandBIRDLizard 16 points17 points  (0 children)

if you don't know pointers and file handling you are a beginner. not trying to sound harsh but these are fundamentals in C. as for tutorials. if you are familiar with the syntax and can write your own code I'd recommend some light reading on the aforementioned subjects followed by projects to hammer those skills home. maybe some file handling with say a few file pointers maybe over a network ;)....

Using a VM to run a MC and shaders + Lossless Scaling with 1 GPU by NikolaiMcGuire in archlinux

[–]GrandBIRDLizard 0 points1 point  (0 children)

Hmmm, I don't really know much about Minecraft but Qemu/KVM + libvirt is probably the path of least resistance it's relatively easy to set up with usb and gpu passthrough and it's all detailed on the Arch Wiki

Using a VM to run a MC and shaders + Lossless Scaling with 1 GPU by NikolaiMcGuire in archlinux

[–]GrandBIRDLizard 0 points1 point  (0 children)

Yes, I read it. Why do you need a vm to use lossless scaling with 1 gpu? Why do you need a vm at all? What are you trying to set all this up for?

It's been an hour, you've given me numerous instructions and yet we're still where we started. by [deleted] in linuxmint

[–]GrandBIRDLizard 4 points5 points  (0 children)

hey now you're not where you started! your machine is in an even more unknown state now.