Let's go a step further and just iterate through them on the client. I plan on having this phone well past the heat death of the universe, so this is guaranteed to finish on my hardware.
function* uuidIterator() {
const bytes = new Uint8Array(16);
while (true) {
yield formatUUID(bytes);
let carry = 1;
for (let i = 15; i >= 0 && carry; i--) {
const sum = bytes[i] + carry;
bytes[i] = sum & 0xff;
carry = sum > 0xff ? 1 : 0;
}
if (carry) return;
}
}
function formatUUID(b) {
const hex = [...b].map(x => x.toString(16).padStart(2, "0"));
return (
hex.slice(0, 4).join("") + "-" +
hex.slice(4, 6).join("") + "-" +
hex.slice(6, 8).join("") + "-" +
hex.slice(8, 10).join("") + "-" +
hex.slice(10, 16).join("")
);
}
This is free. Feel free to use it in production.If you charged car makers $20m per pedestrian killed by their cars regardless of fault you'd probably see much safer designs.
This is an extremely optimistic view on how companies work
I remember one is Manhattan distance, next is as-the-crow-flies straight line distance, next is if you were a crow on the earth that can also swim in a straight line underwater, and so on
You ask how to do X.
Member M asks why you want to do X.
Because you want to do Y.
Well!? why do you want to do Y??
Because Y is on T and you can't do K so you need a Z
Well! Well! Why do you even use Z?? Clearly J is the way it is now recommended!
Because Z doesn't work on a FIPS environment.
...
Can you help me?
...
I just spent 15 minutes explaining X, Y and Z. Do you have any help?
...(crickets)
...
Well, the pump at the gas station doesn't fit in my car, but they sold me a can with a spout that fits in my car.
...
It's tedious to fill the can a dozen times when I just want to fill up my gas tank. Can you help me or not?
...
I understand, but I already bought the can. I don't need the "perfect" way to fill a gas tank, I just want to go home.
The harder the problem, the less engagement it gets. People who spend hours working on your issue are rewarded with a single upvote. Meanwhile, "how do I concat a string" gets dozens or hundreds of upvotes.
The incentive/reward structure punished experienced folks with challenging/novel questions.
Pair that with the toxic moderation and trigger-happy close-votes, you get a zombie community with little new useful content.
The perception and the marketing are very different. it is small and looks like games console. This is something people will buy instead of a Playstation or a gaming PC. A lot of people buying it will not know what Linux is.
If you look at this page:
https://store.steampowered.com/sale/steammachine
It does not use the word "Linux" at all and only mentions Arch and KDE right at the bottom of the specs.
> Linux has less problems than Windows now.
I agree, and it has been my experience for the last few years. I am not a gamer nor do I use any of the software you mention so its even better for me. I am very glad not to be using Windows 11 from what I hear of it.
I have a Linux desktop and a mental block around playing games on a computer. The computer is supposed to be where I work or write code, etc. If I have leisure time, I "should" do something away from the computer.
Getting a steam deck let me shake some of that. I'd be very tempted by a box that is a Linux computer, but for fun use only.