I’d also add this reason (in addition to embarrasement): I don’t open source my stuff because I know microsoft will “steal it” to train copilot.
- 0 Posts
- 9 Comments
noddy@beehaw.orgto
Linux@programming.dev•Rust For Linux Kernel Co-Maintainer Formally Steps Down
9·1 year agoIf you’re trying to write C code in Rust for a few hours you haven’t really given it a proper go. You’re just fighting the compiler. Believe me, I’ve been there. It was just the learning curve before I put aside my pride and adjusted how I wrote code.
Reading the comments on the protondb page, a lot of them are using startup options and proton experimental for example. Weird that it has platinum rating if tinkering is necessary though.
I’m usually playing steam games, and I often will find a solution to make it work on protondb if I have issues. Most of my games I can just install and run though. But I understand it being frustrating if your favourite games don’t work or require lots of tinkering. I have played a few older games outside steam as well. I usually use Bottles for that, as it creates a wine prefix for me that’s set up with DXVK, etc out of the box.
What games? Because a lot of games do work fine, maybe even most of them. The problem is that the outliers are often games that a lot of people are playing (see https://areweanticheatyet.com/). Those games are usually not my cup of tea anyways.
Aschhually the most used JS engine is made in C++ (v8)
noddy@beehaw.orgto
Programming Horror@programming.dev•God I wish there was an easier way to do this
1·3 years agoI know an even better way. We can make it run in O(1) by using a lookup table. We only need to store 2^64 booleans in an array first.
noddy@beehaw.orgto
Programming Horror@programming.dev•God I wish there was an easier way to do this
1·3 years agoI know how to fix this!
bool IsEven(int number) { bool even = true; for (int i = 0; i < number; ++i) { if (even == true) { even = false; } else if (even == false) { even = true; } else { throw RuntimeException("Could not determine whether even is true or false."); } } if (even == true) { return even ? true : false; } else if (even == false) { return (!even) ? false : true; } else { throw RuntimeException("Could not determine whether even is true or false."); } }


I know github would probably steal it (I have my own forgejo server). Didn’t know about VS code doing that. You have any source for that? I guess proprietary MS plugins might do so, but surely there would be backlash if the open source version did so. So I hope using Code OSS would be fine. Might switch to vscodium though, which shouldn’t phone home at all.