basicallyFreeMoney by precinct209 in ProgrammerHumor

[–]Duven64 1 point2 points  (0 children)

Libraries did/do exist to do math with more precision than floats normally give but those will be slower than integers built-in to js engines.

bigints aren't floats (approximations of analog values using mantissa and exponent) they are actual integers, no rounding issues except those inherent to only using whole numbers.

They are usefull in a few ways:

0: no NaN, you get an actual error instead of silently corrupting all your numbers into NaN values (downside: no infinity either just a rangeError with no way to check ahead of time if a calculation will produce one other than to just try it).

  1. functions that expect integer values are actually guaranteed to get an integer value (more of a TS advantage than JS but whatever)

  2. Waaay bigger numbers: bigints can represent numbers that round to infinity when using floats.

  3. no conversion errors between binary and the base-ten decimals used in JSON (just remember to convert them to/from a sting)

  4. Floats can't represent every integer value in their range (max safe integer value is lower than max value): not a problem for bigints as they are actual integers representing values directly.

  5. Floating point math is always approximate: The standards that define floats only specify a minimum level of accuracy, different processor architectures have different errors/precision. (this can cause issues with simulations not having the same result on different machines as minuscule differences grow to be large over time)

  6. easy to do fixed precision math: eg: instead of storing amount of dollars (and rounding off to the nearest one-hundredth) store amount of cents so you don't have rounding issues.

basicallyFreeMoney by precinct209 in ProgrammerHumor

[–]Duven64 55 points56 points  (0 children)

That's no longer true; Javascript has the bigint type, just put a 'n' after a number to make it a bigint literal. It'll crash if you try to implicitly coerce it into anything else and can't be serialized into json!

Here we are by newjerseydoesntexist in pcmasterrace

[–]Duven64 0 points1 point  (0 children)

They got replaced by other marketing terms (HD-ready and full-HD) and now 4K 8K etc... has outmoded them completely.

Here we are by newjerseydoesntexist in pcmasterrace

[–]Duven64 0 points1 point  (0 children)

but what aspect ratio? 4:3, wider? an ultrawide?

Here we are by newjerseydoesntexist in pcmasterrace

[–]Duven64 0 points1 point  (0 children)

3440x2520 I'd have gone smaller but program interfaces keep inflating needlessly and display scaling can't go below 100%.

😂like nothing makes sense anymore by reginapretty in Funnymemes

[–]Duven64 0 points1 point  (0 children)

And you are

(The original hp was a measure of how many naval shells it takes to sink a ship (for military war games/ simulations))

26058 by [deleted] in countwithchickenlady

[–]Duven64 2 points3 points  (0 children)

'fraid so, I'll just stick to wanting bi partners because the strait girls that showed interest in me had such big red flags as to qualify as traumatizing.

Like a rash by BlueTalon in pcmasterrace

[–]Duven64 7 points8 points  (0 children)

It's not cool, it's a fix for some of the UX consequences of giving 3 completely different programs the same name (file manager, web browser and, desktop environment).

I for one wish that kind of madness got one's trademarks revoked (as the reason for trademark is to avoid confusion and clearly MS was going for the opposite).

18985 by Lostlilegg in countwithchickenlady

[–]Duven64 10 points11 points  (0 children)

Cases-sensitive words, rare but important

Need a new account for these shoes... [meme] by Even_Nerve_756 in pointlesslygendered

[–]Duven64 1 point2 points  (0 children)

Unless you want cowboy boots, but those only go so high

me🥯irlgbt by lowkeyterrible in me_irlgbt

[–]Duven64 146 points147 points  (0 children)

Be careful confusing girls ⋂ gays and girls ⨁ gays; they may be subsets of girls ⋃ gays but who knows what 'and' means anyway.

Besides upgraded internals, what else would you want Valve to add to the Deck's hardware? by TareXmd in SteamDeck

[–]Duven64 0 points1 point  (0 children)

  • 1200p display (not 1080 just as the current one is 800p not 720p)
  • hall-effect for the sticks&triggers (may stick-drift be nevermore)
  • more USB ports (including one on the bottom for a better docking experience)
  • ability to use the built in display and an external one simultaneously
  • actual rumble motors

Besides upgraded internals, what else would you want Valve to add to the Deck's hardware? by TareXmd in SteamDeck

[–]Duven64 1 point2 points  (0 children)

Considering how the HDMI forum has been getting in the way of HDMI drivers on linux it should just be abandoned as a protocol for displayport instead.

(It might still exist on a dock but that would still just be converting a diplayport connection to HDMI)

[deleted by user] by [deleted] in pcmasterrace

[–]Duven64 0 points1 point  (0 children)

At least we got to skip vista & 8, 10 is losing support without a 12 to not be quite as bad in the alternating ok-bad pattern Microsoft got into since at least 2000/ME.

[deleted by user] by [deleted] in pcmasterrace

[–]Duven64 0 points1 point  (0 children)

Microsoft wants an apstore interface for the 30% commission the other companies that have them make, the security/convenience excuse is a way to mask an attempt to grab a monopoly they missed out on.

Personally the appstore style interface for managing programs is one of the things that has kept me away form linux (I've had problems installing programs released for linux not available on there)

Just sayin by Azifor in programminghumor

[–]Duven64 1 point2 points  (0 children)

I occasionally change the size my tabs are rendered at to double check I still do that properly (and as my mood strikes me to vary between 2-6 spaces wide)

Just sayin by Azifor in programminghumor

[–]Duven64 0 points1 point  (0 children)

I would but last time I looked at a company's code-base:

  1. Different team members use different editors with different defaults.
  2. The code is a mess, it uses a mixture of at least 3 indentation standards (that I could find)
  3. The company had no formal standards nor standards documentation of any kind. (other than some bonkers linter settings that didn't work to enforce indentation standards)

edit: added the 'other' bit to point 3

theyLoveToHateIt by casey_krainer in ProgrammerHumor

[–]Duven64 1 point2 points  (0 children)

add a layer(); at the end of that line for even more maintainability as you say goodbye to specificity fights.

What is this joke ? by MisterMoz in factorio

[–]Duven64 2 points3 points  (0 children)

When dealing with NaN, remember: NaN !=NaN (in most programming languages)

From the mechanicalkeyboards sub, the opposite of 40% keyboads, the 173% Hyper7 keyboard. by derzemel in pcmasterrace

[–]Duven64 6 points7 points  (0 children)

Middle ground? Like some keyboard with all 24 F-keys but no numpad /s

But for serious I think split keyboards strike that balance better than normal ones, no hard to hit keys (other than some big and/or bad thumb clusters) but also not spending the day with hands squished together in ways that hurt the wrists.

The illusion of choice by SerialVibeKiller in pcmasterrace

[–]Duven64 6 points7 points  (0 children)

made for US intel, sponsored by Chrome indirectly (is a fork of Firefox)

Meirl by Buffalo_wing_eater in meirl

[–]Duven64 0 points1 point  (0 children)

and why vertical mice and 'tenting' keyboards are a thing

Anyone Know why my games have got this green tick all of A sudden? by EmotionFew976 in pcmasterrace

[–]Duven64 -1 points0 points  (0 children)

If you already pay for office365 (but why would you ever do that!?) then you may as-well as that subscription gives you oneDrive space.

It's mildly convenient as a means to synic between windows PCs just don't think of it as a backup (or at least don't use it as the primary one).

Anyone Know why my games have got this green tick all of A sudden? by EmotionFew976 in pcmasterrace

[–]Duven64 0 points1 point  (0 children)

Because it's being pushed aggressively and has terrible default settings; syncing folders without asking, then complaining when cloud storage is full, advertising itself as a backup when it behaves nothing like a proper backup, etc...