Tbf its not a given they don’t also do this.
- 1 Post
- 111 Comments
why couldn’t you compute p/q < r/s by checking ps < rq?
That’s what I meant by scaling the fractions. Tbh I kind of forgot that was an option and when I remembered I had allready written the part about comparing floats so I just left it in. But yeah, encoding lengh might be a killer there.
You could also avoid reducing fractions the same way. Like I don’t neecessairly need my fractions to be reduced, if I am just doing a few equality comparisons per fraction. Of course I would have to reduce them at some point to avoid exceding the encoding lentgh in the enumerator and denominator when there is a representation with a short enough encoding available.
I think the bigger problem might be the missing usecases. As another user mentioned, this would still only encode rationals perfectly (assuming no limit on encoding lengh). But I cannot see many usecases where having rationals encoded percisely, but irrationals still with an error is that usefull. Especially considering the cost.
maybe we could solve this by prohibiting the end user from adding or multiplying numbers
I genuently chuckled, thanks :).
I’ assume its because implemenring comparisons can’t be done efficiently.
You’d either have to reduce a fraction every time you perform an operation. That would essentially require computing at least one prime decomposition (and the try to divide rhe other number by each prime factor) but thats just fucking expensive. And even that would just give you a quick equality check. For comparing numbers wrt </> you’d then have to actually compute the floating point number with enough percesion or scale the fractions which could easily lead to owerflows (comparing intmax/1 and 1/intmax would amount to comparing intmax^2/intmax to 1/intmax. The emcodinglengh required to store intmax^2 would be twice that of a normal int… Plus you’d have to perform that huge multiplication). But what do you consider enough? For two numbers which are essentially the same except a small epsilon you’d need infinite percision to determine their order. So would that standard then say they are equal even though they aren’t exectly? If so what would be the minimal percision (that makes sense for every concievable case? If not, would you accept the comparison function having an essentially unbounded running time (wrt to a fixed encoding lengh)? Or would you allow a number to be neither smaller, nor bigger, nor equal to another number?
Edit: apparently some languages still have it: https://pkg.go.dev/math/big#Rat
FinalFinalProject_2(new)(final).doc
needanke@feddit.orgto Selfhosted@lemmy.world•Compact, low-power NAS on a €500 budget - Advice needed!English1·5 months agoI googled around a bit and it seems the main concern is being seperate sowftware-wise, not mainly location wise (although thats a nice side effect). So mainly avoiding fun stuff like https://m.slashdot.org/story/112253.
needanke@feddit.orgto Selfhosted@lemmy.world•Compact, low-power NAS on a €500 budget - Advice needed!English3·5 months agoI am just repeating a commonly used phrase with that tbh.
I would Imagine it comes from the fact that a backup also safeguards agains other failures by creating more distance between the Copies. If you are hit by a ransomware attack Raid wont be much good. If your PSU sufers a failure, it might cause an overcurrent/voltage in both hdds. If you accidentally delete something it will be deleted on both drives, etc.
needanke@feddit.orgto Selfhosted@lemmy.world•Compact, low-power NAS on a €500 budget - Advice needed!English2·5 months agoIf you go that route I’d want to make sure the cpu is at least somwewhat recent.
My first server was an old office PC I bought used as well, but I had real problems with it, because the CPU was lacking some X86 instructions which is why I could not run a specific service I wanted to as it used those. (And if you want to run jellyfin in the near future you should make sure to buuy a cpu that can also do some hardware encoding/decoding as doing that in software on a low end CPU can make the experience somewhat sluggish.
needanke@feddit.orgto Selfhosted@lemmy.world•Compact, low-power NAS on a €500 budget - Advice needed!English9·5 months agoI don’t think ssds would be viable with a total budget of 500€ and the need for >=8Tb of storage.
needanke@feddit.orgto Selfhosted@lemmy.world•Compact, low-power NAS on a €500 budget - Advice needed!English2·5 months agoNo need for virtualization (so no Proxmox, TrueNAS, or Unraid) Run lightweight containers for web services like Immich, Paperless-ngx, Pi-hole, and custom services I’ve developed
Do you not consider containers virtulizations? Or do you plan to run your webservices in the same context? Because I would really suggest against doing the latter.
However, I’m unsure if I really need RAID since I’ll perform regular backups.
Raid is not a backup anyhow ;).
If you don’t need the capacity or redundancy of raid I would suggest you buy a single >=8Tb drive. It should be a bit cheaper (For example, I recently payed ~270€ for 16 Tb, which I’d reccomend over paying 240€ for 8Tb in total. There are probably also 8/12 Tb drives for less then 240€.). It will also use half the power as that does not really scale with capacity.
Edit: there are a bunch of 8tb drives at 180€ here for example.
needanke@feddit.orgto Asklemmy@lemmy.ml•How do you feel about the level of censorship in your current instance ?1·6 months agoI am very happy with feddit.org . I have not seen an issue with overmoderation, but I have also not seen a problem with spam or trolling. I believe hexbear is (rightfully so) defederated but other then that i did not notice any defederations.
The do not allow pornography which I support as you would essentially be hosting it yourself when it is federated which can become icky quickly. But I think this is a bit of a difference to other instances.
The instance also has a nice little community which is active enough to not be boring but small enough to feel like a community (might also be because of having a common language)
Where do they live? A little village, in the city?
That might be a nice context to draw them in.
needanke@feddit.orgto Technology@lemmy.world•Asus bombards Windows 11 with christmas.exe malware-like Christmas wreath bannerEnglish2·6 months agoThe what?
needanke@feddit.orgto Asklemmy@lemmy.ml•What opinions about the tech industry do you feel comfortable expressing here, but not in public/at work?151·6 months ago- If you use chatgpt et al. I’ll look down on you from a technical competence level
Eh, I have to say I find it quite usefull sometimes for brainstorming solutions. It is esentially a rubber duck that answers and sometimes gives good ideas.
Of course the answers are often bullshit, but they can sometimes point you in the right direction/to the right words to google.
(All of this ignoring the enviromental problems ofc.)
I did an exchange year in MN and my host family there told me not to, always bought bottled water and never drank it themselves. And when I did try it it tasted very chlorinated.
Then what are those for compared to just a sink?
I thought their whole point was that they filter the water because you can’t drink the tap water in the US?
Anytime I see memes like that, I am thankful I live in a country where I can just drink tap water.
What kind of stuff have you been buying that you couldn’t find elsewhere (at a competitive price)?
I buy a moderate amount of my stuff online and was able to almost entirely avoid Amazon this year. The only exception was a phone display where Amazon had a LCD-variant for ~30€ while all others only had an OLED for ~90€.
They probably assume people just stuff their shit into the trunk so I guess the weight limit usually also includes a safeguard for weight distribution limits.
I think shegorath meant official support from Google.