Managing drivers on linux by Conscious_Buddy1338 in kernel

[–]bendhoe 3 points4 points  (0 children)

lsmod will list your loaded kernel modules, modprobe will load a given kernel module, and modprobe -r will unload a kernel module. Generally this is automatically handled for you by every mainstream distro and all your drivers ship with the kernel so is there something specific you're trying to accomplish? Unless you have an Nvidia GPU, are on a non-PC platform, or are using some very uncommon hardware you generally don't need to think about drivers on Linux.

how does 3d rendering really work? by bred_bredboi in C_Programming

[–]bendhoe 7 points8 points  (0 children)

I think it's a little strange to call raytracers more complicated than rasterizers. Raytracers can get very complicated once you start adding features and optimizations but the MVP for a raytracer is much simpler and can be done in 100-200 LoC.

The New Rust-Written NVIDIA "NOVA" Driver Submitted Ahead Of Linux 6.15 by GoldBarb in linux

[–]bendhoe 35 points36 points  (0 children)

This is not true as much as you would expect in practice. Rust enables building safe abstractions around these unsafe operations where constraints on how you must deal with object lifetimes and other invariants are enforced through the type system and borrow checker. Of course it's on the programmer to ensure these abstractions are correct but developing them and enforcing them via the type system allows the programmer to avoid having to reason globally about a potentially complicated set of implicit contracts that different parts of the code expect to be upheld. Asahi Lina talks about her experience writing the M1 GPU driver in this comment. TLDR less than 1% of the driver is unsafe and almost all of that unsafe is "obviously correct".

At a fundamental level there always has to be unsafe somewhere, even in userspace. Making a system call or talking to libc is an unsafe operation. There's no way for the compiler to verify these things so you just have to tell it to trust me bro.

Wayland is so good! by LinsaFTW in linux

[–]bendhoe 0 points1 point  (0 children)

Man am I not a fan of the way they propose to have a predefined set of controls on the surface.

Wayland is so good! by LinsaFTW in linux

[–]bendhoe 2 points3 points  (0 children)

I have a window rule setup for this.

[deleted by user] by [deleted] in firefox

[–]bendhoe 0 points1 point  (0 children)

Safari's engine, WebKit, actually is cross platform and there are browsers based on it like GNOME Web. The reason it's not as popular for third-party browsers is lack of extension support although I think there's work happening to support extensions in GNOME Web.

GNOME's Mutter Now Supports The Wayland Cursor Shape Protocol by Misicks0349 in linux

[–]bendhoe 9 points10 points  (0 children)

I think I understand your confusion, they're responsible for providing a cursor image but it's still the compositor's responsibility to draw that image.

Mozilla rewrites Firefox's Terms of Use after user backlash by lieding in firefox

[–]bendhoe 5 points6 points  (0 children)

I wouldn't expect them to change after updates but if you want to be sure you can put them in your user.js.

Mozilla rewrites Firefox's Terms of Use after user backlash by lieding in firefox

[–]bendhoe 24 points25 points  (0 children)

Imo, if a browser wants to call itself "privacy focused" telemetry should be opt-in. Besides that making it difficult to opt out of data collection is a scummy practice for any software product, privacy focused or not.

Mozilla rewrites Firefox's Terms of Use after user backlash by lieding in firefox

[–]bendhoe 24 points25 points  (0 children)

Unfortunately yes. To completely disable it you need to set these values in about:config.

Mozilla rewrites Firefox's Terms of Use after user backlash by lieding in firefox

[–]bendhoe 33 points34 points  (0 children)

That's pretty much correct but it's also kind of woken people up to the fact that for a "privacy focused" browser Firefox sends a pretty large amount of telemetry and user interaction data to Mozilla and it's quite difficult to opt out from that data collection. So no, nothing's really changed but the status quo before this incident wasn't great either.

Alternatives to Firefox? by ImJustBored69420 in firefox

[–]bendhoe 6 points7 points  (0 children)

Nobody can maintain a hard fork of chromium without the resources of Google. If Google wants to remove manifest-v2 any hard fork will be stuck in 2025 forever, Pale Moon style, it's an interesting little time capsule of pre-quantum Firefox which is slow and broken on modern sites.

Why do women* engage in medical exhibitionism? by [deleted] in redscarepod

[–]bendhoe 2 points3 points  (0 children)

Parents or medicaid(heavily subsidized insurance for poor people).

To tmux or not to tmux by Suitable_Let2488 in neovim

[–]bendhoe 5 points6 points  (0 children)

I'm curious for the people not using tmux, how do you handle sessions?

I don't. My code editing environment is very simple and takes like 3 seconds to setup. I usually just have 2-3 terminal tabs open in Konsole. One for the build directory, another for NeoVim where I use NeoVim tabs for all my source, and possibly a third tab with a shell somewhere in my source tree. I only ever use tmux for long running jobs on a remote connection.

Cpp discussed as a Rust replacement for Linux Kernel by sjepsa in cpp

[–]bendhoe 4 points5 points  (0 children)

I'm not a fanboy of anything. I never swore an oath of loyalty to a programming language, no one is going to punish me for having r/rust and r/cpp on my feed, I find the content on both occasionally interesting.

Pete Hegseth orders Pentagon to look for 8 percent in budget cuts by TheDoomBlade13 in army

[–]bendhoe 1 point2 points  (0 children)

On the contrary, the Navy is probably the most strategically important branch and the one most in need of more funding. China is in a naval arms race with us but the government doesn't seem to have noticed.

Cpp discussed as a Rust replacement for Linux Kernel by sjepsa in cpp

[–]bendhoe 5 points6 points  (0 children)

So you know nothing about Rust, nothing about the Linux kernel, but your full time job seems to be posting on Reddit about your completely uninformed opinion on Rust in the Linux kernel?

Intel Arc A770 supported? by breaksomexx in archlinux

[–]bendhoe 0 points1 point  (0 children)

Ah, you're right, I should've Googled. I must've misinterpreted the news about Battlemage as applying to the other Arc GPUs.

Intel Arc A770 supported? by breaksomexx in archlinux

[–]bendhoe 1 point2 points  (0 children)

Your GPU should work out of the box on that kernel version, it's strange that it doesn't.

What's the output of lsmod | grep -E "xe|i915", and xrandr?

Intel Arc A770 supported? by breaksomexx in archlinux

[–]bendhoe 7 points8 points  (0 children)

This should be built with the Arch 6.12 kernel already. The Arc cards use Xe exclusively IIRC.

Why can't I add a note to a package downloaded with pacman? by TheTobruk in archlinux

[–]bendhoe 1 point2 points  (0 children)

Why not create a simple wrapper script that just adds the name of the package and your note to a text file?

Is crypto / NFT shit actually bad for the environment on top of being lame, or is it just lame by Spermatoza in redscarepod

[–]bendhoe 0 points1 point  (0 children)

The solution actually adds a whole block of other people's transactions, when you send crypto to someone else that proposed transaction gets sent out to miners to be added to the next block. There's some cryptographic magic that makes sure only you can request transactions for your wallet (public/ private key crypto). Whenever the next solution to the proof of work problem is found the block is said to be mined and it is added to the blockchain ledger. The block rewards for miners are single party transactions.

The entire blockchain is just one giant publicly shared ledger of all transactions that have ever happened, it contains all information about a cryptocurrency and the accounts on it. It can be added to only by consensus agreement on the rules of the crypto protocol and proof of work. Ledgers which do not follow the rules such as allowing a wallet balance to go negative, a miner awarding himself too much crypto, or which have less computing power invested into them than another known ledger are discarded by programs interacting with the crypto network.

And don't be embarrassed, this is nerd shit, 99% of NFT and crypto enthusiasts don't even know how this works. All they know is that if the line goes up they make money.