KindaABigDyl

joined 2 years ago
[–] [email protected] 9 points 3 hours ago (3 children)

You appear to be afraid of spaces. Everything is cramped together.

Just bc you don't have to put a space after colons or after equals and commas and whatnot doesn't mean you shouldn't

Don't be afraid of spaces.

They make it easier for you to read your code when you come back later

[–] [email protected] 3 points 4 hours ago* (last edited 4 hours ago)

Not if you think of forward as "towards you." It comes from Math. X is right, Y is up, and then when doing 3D, Z is out of the page, bc that's easiest to draw.

[–] [email protected] 2 points 8 hours ago

I can finally learn cobol?!?!?

[–] [email protected] 2 points 21 hours ago

I don't use Ubuntu anymore, and haven't as my main in a long time.

My longest running distro is probably Arch, which I've recently switched back to after a year on Fedora and a year on NixOS

[–] [email protected] 9 points 1 day ago (3 children)

Ubuntu back in 2014. Followed by Elementary not long after

[–] [email protected] 5 points 1 day ago

Will my ability to play games be significantly affected compared to Windows?

Really depends on the games. For the vast majority, probably not. If you play competitive multiplayer games, then it's 50/50.

Check out protondb to see if the games you play the most work well.

Also semi-depends on hardware. Old Nvidia cards may struggle. AMD is def king in the Linux world, but it's getting better for Nvidia

But as you are probably aware, the steam deck has been pretty successful. That wouldn't happen if Linux gaming was all bad.

Can I mod games as freely and as easily as I do on Windows?

Hit or miss. Sometimes the mod tools have to use wine and don't work. Sometimes they use wine and work. Sometimes they don't use wine and work.

I have just done some modding of Monster Hunter Wilds, and it was about 50/50

When it works, it's just as easy as Windows.

If a program has no Linux version, is it unusable, or are there workarounds?

WINE or a Virtual Machine

Can Linux run programs that rely on frameworks like .NET or other Windows-specific libraries?

.NET is cross platform as of several years ago.

How do OS updates work in Linux? Is there a “Linux Update” program like what Windows has?

It depends on the distro. Typically you just run a command in the terminal to "update all packages" or click a button in a store front.

It's way easier than on Windows and is never forced.

Genuinely one of if not the best thing about Linux is how software management works.

How does digital security work on Linux? Is it more vulnerable due to being open source? Is there integrated antivirus software, or will I have to source that myself?

Less vulnerable due to being open source. You have all the security experts in the world, including Microsoft's, able to view and fix any vulnerabilities as soon as they appear. Thousands of people getting their eyes on it.

There's a reason that Linux is the back bone of the internet and nearly every server runs it.

And FYI, you don't use antivirus on Linux.

Are GPU drivers reliable on Linux?

If it works, it will always work.

Whether it works is dependent on your GPU.

Like I said, AMD is basically perfect, Nvidia can have problems, but these days that's less and less true (I use a GTX 3080 w/ out issue).

Mostly if you have an old, less-supported nvidia card (like pre-GTX) you may have issues.

Can Linux (in the case of a misconfiguration or serious failure) potentially damage hardware?

I've never heard of something like that happening.

And also, what distro might be best for me?

For beginners the correct option is almost always Linux Mint

[–] [email protected] 7 points 4 days ago* (last edited 4 days ago) (1 children)

They just seem kinda hacky and overcomplicated rn.

I was on NixOS for a while, which is sort of in this camp since the system build is deterministic an immutable, and I've had to switch away bc it's just annoying. Apps aren't made for immutability in mind, and sometimes when you (read: your OS) try to force them to, the burden falls on you to maintain it, not just the package maintainer. VS Code is a prime example. Some extensions just don't work right. It's not Nix's fault ofc, but that doesn't make it less impractical to use, so after 2 years away from Arch now, I've had to return.

Other immutable distros face similar issues.

On top of that, specific distros have reasons I wouldn't want to use them. I wouldn't use Bazzite, for instance, bc it is based on Fedora, and I won't use Fedora again. I liked Fedora when I used it, and it has things about it I like, but it has a glaring issue: anywhere it can be non-standard it is non-standard. For apps to run on Fedora there always has to have some weird location for a config file or a different way to install a program or some bug that only occurs on Fedora. Fedora be fedorain. That rules out Bazzite, Silverblue, etc. I call it the "RedHat Tax."

I wouldn't say I'm against an immutable distro tho; I just haven't found one for me yet. For now, BTRFS and backups + Arch are enough

[–] [email protected] 6 points 1 week ago

I'm running Linus

Linux without X but with S... ystemd

[–] [email protected] 14 points 1 week ago (1 children)

I would, but I can't get through their captcha (even w/ adblockers, tracking, etc all disabled)

[–] [email protected] 5 points 1 week ago

People who work at Apple: Completely Blank

[–] [email protected] 43 points 2 weeks ago

"I will revise that part to reflect the correct approach."

Proceeds to spit out the exact same output

[–] [email protected] 17 points 2 weeks ago (2 children)

Don't leave out "nano duckduckgo" and "code brave"

 

Not sure if this is a good place to ask for help, but I have scoured the internet and no one has a solution, so hopefully this question helps me as well as others.

I'm trying to get my computer to run at its best when on Hyprland. I have an MSI Raider GE76 which has an Nvidia GTX 3080 Mobile and an Intel Tiger Lake CPU with integrated graphics.

I typically have an external display over display port, an Ultrawide 3440x1440@60Hz, and the internal laptop display is on eDP at 1920x1080@360Hz. Note tho that while I often have the dual screen setup, I do need to be able to go to just the Intel display. The Nvidia GPU drives all outputs (DP, HDMI, Thunderbolt) EXCEPT for the eDP which is connected to the Intel card.

On X11, I could use reverse prime sync to use the Nvidia card for everything and just have the Intel card draw whatever the Nvidia card renders. This worked well. Unfortunately there isn't anything like that for Wayland, and I don't have a hardware switch to put the eDP on the nvidia side of things.

This means that I have to use the default prime modes to run stuff on the nvidia card which makes the second screen incredibly laggy. Now, I can disable the i915 module and the external display becomes buttery smooth, but I can't use my built-in display (which means I also can't use the display when I'm not connected to the external monitor).

How can I get both to work well on Wayland?

Can I run the external display exclusively on Nvidia and the internal on Intel with Prime? That could work, but idk if that's possible.

What's the optimal way to set up an external display on Wayland with and Nvidia hybrid-graphics laptop? Bc right now I'm thinking of just going back to X11 and praying it gets enough support to live until I can get a decent Wayland config.

1
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]
 

I created a little side project over the past few days, a new build system for C and C++: https://github.com/blueOkiris/acbs/

I've seen a lot of discourse over C build tools. None of them really seem solid except for (some) Makefiles (some Makefiles are atrocious; you just can't rely on people these days). Bazel, cmake - they're just not straight forward like a clean Makefile is, basically black magic, but setting up a Makefile from scratch is a skill. Many copy the same one over each time. Wouldn't it be nice if that Makefile didn't even need to be copied over?

Building C should be straight forward. Grab the C files and headers I want, set some flags, include some libraries, build, link. Instead project build systems are way way way overcomplicated! Like have you ever tried building any of Google's C projects? Nearly impossible to figure out and integrate with projects.

So I've designed a simplistic build system for C (also C++) that is basically set up to work like a normal Makefile with gcc but where you don't have to set it up each time. The only thing you are required to provide is the name of the binary (although you can override defaults for your project, and yes, not just binaries are possible but libs as well). It also includes things like delta building without needing to configure.

Now there is one thing I haven't added yet - parallel building. It should be as simple as adding separate threads when building files (right now it's a for loop). I know that's something a lot of people will care about, but it's not there yet. It's also really intended to only work with Linux rn, but it could probably pretty easily be adjusted to work with Windows.

Lay your project out like the minimal example, adjust the project layout, and get building! The project itself is actually bootstrapped and built using whatever the latest release is, so it's its own example haha.

It's dead simple and obvious to the point I would claim that if your project can't work with this, your project is wrong and grossly over-complicated in its design, and you should rework the build system. C is simple, and so should the build system you use with it!

So yeah. Check it out when y'all get a chance

 
 
view more: next ›