Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
necrotic
Aug 2, 2005
I owe my brother big time for this!
They tried that with a $5/mo (I think) subscription for double click. Abandoned pretty quick if I'm remembering right. And you still got ads from other networks.

Adbot
ADBOT LOVES YOU

Vanadium
Jan 8, 2005

One of the things that stuck with me from a previous job, which involved a business management/order tracking/accounting kinda application, is that they used doubles for all quantities and monetary amounts, and used a custom rounding function that involved calling the built-in ToString method on the doubles. Somehow they seemed to get away with it, idk.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

Carbon dioxide posted:

As far as I know, for certain things they actually use integers to represent something like one hundredth of a cent. For stock interests and stuff those amounts might add up and be relevant.

There's an infamous and most probably fake story about that, claiming that someone once hacked a bank so that for every of the billions of transactions happening each day, a sub-cent amount was taken out of the transaction and transferred from the sender to the hacker's bank account instead of to the recipient and because none of the normal bank computer views showed those precise amounts it took the bank ages to discover this.

They did this in Superman III.

Volte
Oct 4, 2004

woosh woosh

Suspicious Dish posted:

They did this in Superman III.
And Office Space (citing Superman III)

The Fool
Oct 16, 2003


It's also the plot of some office movie that I can't remember the name of, I think it had Kevin Spacey in it.



fe: I think hackers did this too

JawnV6
Jul 4, 2004

So hot ...

Carbon dioxide posted:

There's an infamous and most probably fake story about that, claiming that someone once hacked a bank so that for every of the billions of transactions happening each day, a sub-cent amount was taken out of the transaction and transferred from the sender to the hacker's bank account instead of to the recipient and because none of the normal bank computer views showed those precise amounts it took the bank ages to discover this.

Salami Slicing is the general term. Before the S3/Office Space, there was the Cash song "One piece at a time"

MrMoo
Sep 14, 2000

Ola posted:

I don't remember how I heard this, maybe I dreamed it up myself, but is it true that banks etc do calculation and storage using integers only as cents? So $100.07 is stored as 10007 cents and only converted into dollars and cents in the presentation layer.

Here’s an example with Reuters, so you have a base integer and a hint value indicating a fixed transform as either an exponent or fraction for pre-decimalization type junk (US government bonds still I think).

https://github.com/Refinitiv/Elektron-SDK/blob/master/Cpp-C/Eta/Include/Codec/rtr/rsslReal.h

Only for the network wire format. Most code I have seen will just convert to a double for convenience for internal usage.

Space Whale
Nov 6, 2014
So why do banks not just use bignum or arbitrary precision already?

Volguus
Mar 3, 2009

Ola posted:

Thanks, kind of hoping I made it up myself now so I actually came up with a good idea even if it was half a century late. And ad pricing reminds me of another one, I should just be able to pay Google $25 per year for an ad free internet.

Luckily you can't. They control a lot of it, but not that much. Also luckily you don't have to. Install an adblocker on your browser, pihole on your network and you should be mostly fine.

1337JiveTurkey
Feb 17, 2005

Space Whale posted:

So why do banks not just use bignum or arbitrary precision already?

PICTURE IS "$ZZZ,ZZZ,ZZZV99" has always done that.

Linear Zoetrope
Nov 28, 2011

A hero must cook
nm

Ola
Jul 19, 2004

Space Whale posted:

So why do banks not just use bignum or arbitrary precision already?

They're not working with very big numbers, mathematically speaking. You could probably store the sum of all the money in the world in one long. And they don't have very peculiar demands for precision in the numeric sense, but correctness in the accounting sense. I know currency trading uses fractions of cents, probably some other stuff does as well, but actually settling the trading accounts is probably done in regular money. And perhaps most importantly, many banks run very old systems which they are reluctant to replace.

If I built a bank today, I'd probably go the integer route. Why not? It's probably way faster as well. I'm sure I'd get plenty of head scratching edge cases with currency exchange and percentage calculation from interest rates, but that would only make the work day fun.

Volguus posted:

Luckily you can't. They control a lot of it, but not that much. Also luckily you don't have to. Install an adblocker on your browser, pihole on your network and you should be mostly fine.

Oh I ad block, believe me. Sometimes when I need to use a different browser or something, I catch a glimpse of the un-adblocked internet and my response is the flinch of looking at a welding arc and the deep sadness of looking at animal cruelty.

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer

Space Whale posted:

So why do banks not just use bignum or arbitrary precision already?

Like I said in my first response, a lot of banks' backend are ancient mainframes running in languages that don't have those data types and it's not worth the hassle to bodge it in.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Space Whale posted:

So why do banks not just use bignum or arbitrary precision already?


I have no inside knowledge of the banking industry, but my assumption just from reading this thread is that they're extremely conservative (rightfully so I guess?) about changing their software.

Bruegels Fuckbooks
Sep 14, 2004

Now, listen - I know the two of you are very different from each other in a lot of ways, but you have to understand that as far as Grandpa's concerned, you're both pieces of shit! Yeah. I can prove it mathematically.

Space Whale posted:

So why do banks not just use bignum or arbitrary precision already?

every account you own and cent you've ever made is probably stored in some oracle database in a column with a data type of varchar(255).

Ola
Jul 19, 2004

Bruegels Fuckbooks posted:

every account you own and cent you've ever made is probably stored in some oracle database in a column with a data type of varchar(255).

Haha I love the comedic timing of sensible response, sensible response... boom darkness.

Doc Hawkins
Jun 15, 2010

Dashing? But I'm not even moving!


when i worked in payments we used strings, but we almost never did math on the values

OddObserver
Apr 3, 2009

jit bull transpile posted:

Like I said in my first response, a lot of banks' backend are ancient mainframes running in languages that don't have those data types and it's not worth the hassle to bodge it in.

Some of those probably have proper decimal types, too. (Side note: IBM wanted decimal floating point in JavaScript at one point).

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.

Doc Hawkins posted:

almost never

Adhemar
Jan 21, 2004

Kellner, da ist ein scheussliches Biest in meiner Suppe.

MrMoo posted:

Here’s an example with Reuters, so you have a base integer and a hint value indicating a fixed transform as either an exponent or fraction for pre-decimalization type junk (US government bonds still I think).

Interest rate (bond) and agricultural futures still use fractional pricing, possibly others. I had a lot of fun dealing with that in my previous job. Exchanges have really efficient ways of sending that data though, and avoiding precision issues. They just express the smallest possible change in the price (tick size) as a property of the instrument (using base and exponent for example), and the real-time price feed just gives you the number of ticks. Basically the same idea as using pennies instead of partial dollars, but generalized. Works for decimal or fractional pricing.

Dylan16807
May 12, 2010

Beef posted:

If you know what you are doing, and set the right compiler options (no fast floats, no vectorization) flops can be deterministic on the same machine or architecture, it's designed that way. You do have some operations that are not commutative, so parallelization needs to be strictly controlled as well.

That said, dear lord avoid floats if you need deterministic simulations across architectures. Game devs famously prefer to write their own fixpoint library than do deal with float determinism https://www.youtube.com/watch?v=wwLW6CjswxM.

I hear coding horror stories of national labs that whenever they make changes to their thermoniclear simulation software or hardware, they need to produce binary compatible float outputs. For some reason they cannot re-validate their simulations on real world data.

From what I understand, with a bit of experience in the area, getting reproducible floating point arithmetic isn't too hard. Don't use any native transcendental functions and force everything onto the correct precision and it becomes feasible.

Dylan16807
May 12, 2010

Ola posted:

Thanks, kind of hoping I made it up myself now so I actually came up with a good idea even if it was half a century late. And ad pricing reminds me of another one, I should just be able to pay Google $25 per year for an ad free internet.

necrotic posted:

They tried that with a $5/mo (I think) subscription for double click. Abandoned pretty quick if I'm remembering right. And you still got ads from other networks.

Pff, I wish. What they actually set up was a way for you to put up any amount of money you wanted and it would bid against other google ads. There was no particular rate, and there was no guarantee it would actually remove all the google ads. And it had the anti-feature of giving more money to sites that spammed more ads.

Then they discontinued it and replaced it with an even more useless thing where you subscribe to individual sites (with support being very rare) and then you pay a fixed number of pennies per page view.

If they copied what they do with youtube premium, they'd be most of the way to a good solution already. But they clearly don't want to offer that kind of product.

If google or anyone else ever does set something up that distributes money in a reasonable way I'll happily sign up for it. Maybe some day...

Volmarias
Dec 31, 2002

EMAIL... THE INTERNET... SEARCH ENGINES...

Dylan16807 posted:

Pff, I wish. What they actually set up was a way for you to put up any amount of money you wanted and it would bid against other google ads. There was no particular rate, and there was no guarantee it would actually remove all the google ads. And it had the anti-feature of giving more money to sites that spammed more ads.

Then they discontinued it and replaced it with an even more useless thing where you subscribe to individual sites (with support being very rare) and then you pay a fixed number of pennies per page view.

If they copied what they do with youtube premium, they'd be most of the way to a good solution already. But they clearly don't want to offer that kind of product.

If google or anyone else ever does set something up that distributes money in a reasonable way I'll happily sign up for it. Maybe some day...

I'm still extremely salty that this got discontinued. It very nicely solved the micro payments problem and I got to inline pictures of cats in bathtubs.

Arsenic Lupin
Apr 12, 2012

This particularly rapid💨 unintelligible 😖patter💁 isn't generally heard🧏‍♂️, and if it is🤔, it doesn't matter💁.


Lord have mercy.

quote:

Much like the rockets and spacecraft of sister company SpaceX, Tesla’s vehicles are powered by Linux running on what’s essentially off-the-shelf computing hardware. Until 2018 the Model S and X were running the open source operating system on a NVIDIA Tegra 3, at which point they switched the Media Control Unit (MCU) over to an Intel Atom solution. In either event, the Linux system is stored on an embedded Multi-Media Controller (eMMC) flash chip instead of a removable storage device as you might expect.

Now under normal circumstances, this wouldn’t be an issue. There are literally billions of devices running Linux from an eMMC chip. But any competent embedded Linux developer would take the steps necessary to make sure the operating system’s various log files are not being written to a non-replaceable storage device soldered onto the board. (Italics mine.)
...
Unfortunately for Tesla, it seems that the eMMC chips on the Tegra modules are simply too small to hold the latest release of the firmware while still leaving enough free blocks on the chip to enable effective wear leveling. With only a small section of the eMMC left available, the system has no choice but to reuse the same blocks over and over.
Best part? The repair isn't under warranty and costs "several thousand dollars".

Tei
Feb 19, 2011

Arsenic Lupin posted:

Lord have mercy.

Best part? The repair isn't under warranty and costs "several thousand dollars".

I for one, wellcome this brave world we live, where a car can have I/O ERROR and the driver spout "UNRECOVERABLE BAD SECTORS" in a tiny media screen.

Munkeymon
Aug 14, 2003

Motherfucker's got an
armor-piercing crowbar! Rigoddamndicu𝜆ous.



Tei posted:

I for one, wellcome this brave world we live, where a car can have I/O ERROR and the driver spout "UNRECOVERABLE BAD SECTORS" in a tiny media screen.

It's a big ol' tablet and controls everything other than steering, actually.

Now I wonder if SpaceX audio communications systems go through Linux's famously "working" audio subsystems.

Doc Hawkins
Jun 15, 2010

Dashing? But I'm not even moving!



yeah, most of our business was in keeping the numbers unchanged as we sent them to other services. occasionally we'd add them up for reports.

you can do math on integers stored as strings. addition might be the easiest operation to do.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Tei posted:

I for one, wellcome this brave world we live, where a car can have I/O ERROR and the driver spout "UNRECOVERABLE BAD SECTORS" in a tiny media screen.

That might be better than a check engine light that flashes at you for every possible reason from the minor to the major. Maybe?

csammis
Aug 26, 2003

Mental Institution

Thermopyle posted:

That might be better than a check engine light that flashes at you for every possible reason from the minor to the major. Maybe?

It’s not like a message about BAD SECTORS is more actionable to the driver than a check engine light, or even more understandable to most people.

Ola
Jul 19, 2004

csammis posted:

It’s not like a message about BAD SECTORS is more actionable to the driver than a check engine light, or even more understandable to most people.

"I told you this neighborhood was rough, even the car is complaining about it!"

Arsenic Lupin
Apr 12, 2012

This particularly rapid💨 unintelligible 😖patter💁 isn't generally heard🧏‍♂️, and if it is🤔, it doesn't matter💁.


"Owners on Tesla forums are reporting that their MCUs are crashing and leaving the expensive vehicles in “Limp Home Mode”, which allows the car to remain drivable but unable to charge. " That's ... quite a failure mode.

Spatial
Nov 15, 2007

Wait till you find out the failure modes of the doors.

Happy Thread
Jul 10, 2005

by Fluffdaddy
Plaster Town Cop
If this is the first design horror you've heard of regarding Tesla, head on over to the Tesla threads. For yesterday's discussion topic, on the most common Tesla model, there is no mechanical release for the rear doors. They used a loophole about child safety locks (and lack of regulation enforcement in general) and just.... didn't add those, because Musk didn't feel like it.

So now there have been fiery deaths from people trapped in the backseat after collisions that left the car with no electrical power. Other stories of rescuers unable to open even the front doors from the outside either due to the stupid extending handles requiring power. Just helpless to watch the occupants burn.

The rear door handles could easily connect directly to the door latch, but instead they just connect to a mechanical sensor for no reason, and the latch only connects to an electric motor too. People actually drive their kids around the backseat of these and are convinced that it's safer than normal because Musk and his followers claim a six star national safety rating (the rating system only goes up to five).

The far more expensive SUV model Tesla does have a mechanical way to open the rear doors when the battery tray under the car becomes unpowered during a crash, but in order to actuate it, you are instructed by the manual to *carefully* disassemble the rear speaker assembly on the door and then find a hidden pull-cable inside the machinery. All while under immense pressure while doing an emergency escape. For this vastly improved feature and other similarly dumb inexplicable ones that come with the SUV version, the base price goes up by about $100,000 after all the complex bait and switch financial shenanigans of a purchase are over.

Happy Thread fucked around with this message at 20:02 on Oct 18, 2019

Arsenic Lupin
Apr 12, 2012

This particularly rapid💨 unintelligible 😖patter💁 isn't generally heard🧏‍♂️, and if it is🤔, it doesn't matter💁.


Oh, this isn't the first horror story I'd heard. I was passing this one on as a seriously bad firmware decision, and thus relevant to the thread. I hadn't heard about the death fires, though; the only fires I'd heard about, people safely escaped and then posted cranky Instagrams.

Happy Thread
Jul 10, 2005

by Fluffdaddy
Plaster Town Cop
That's ok, that was just for anyone for whom an insane design like that from Tesla comes as a surprise. In case anyone still thinks it seems like an inexplicable logging fuckup that bricks cars must be the biggest Tesla scandal, or even in the ballpark.

Arsenic Lupin
Apr 12, 2012

This particularly rapid💨 unintelligible 😖patter💁 isn't generally heard🧏‍♂️, and if it is🤔, it doesn't matter💁.


Where are the Tesla threads? I walked back awhile in AI and didn't see any.

Ola
Jul 19, 2004

Link to one or more deaths caused by not being able to open the rear door? I do agree that the design is stupid, but hadn't heard about any actual deaths. You can DIY a mechanical release of the rear doors on the Model 3.

e: The EV thread in AI contains the Tesla-chat there, but there are some "lol Elon"-threads as well elsewhere.

Ola fucked around with this message at 18:52 on Oct 18, 2019

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed
There's a tesla thread in yospos.

Happy Thread
Jul 10, 2005

by Fluffdaddy
Plaster Town Cop
The yospos thread on Tesla already linked is the best collection of Musk-related design horrors and occasionally coding horrors.

For general social outrage related to Musk, see the CSPAM thread on Tesla. Many bits of news are cross-posted to both. The CSPAM one is more focused on funny drama (like Musk's attempted threesome with Azaelia Banks that almost collapsed the entire company), and it's also about eagerly watching for any signs of collapse.

The GBS thread on Musk is pretty slow and the posters seem less informed about goings on.

The AI thread on electric vehicles contains a few true believers and I would stay out of there.

Adbot
ADBOT LOVES YOU

return0
Apr 11, 2007

Carbon dioxide posted:

As far as I know, for certain things they actually use integers to represent something like one hundredth of a cent. For stock interests and stuff those amounts might add up and be relevant.

There's an infamous and most probably fake story about that, claiming that someone once hacked a bank so that for every of the billions of transactions happening each day, a sub-cent amount was taken out of the transaction and transferred from the sender to the hacker's bank account instead of to the recipient and because none of the normal bank computer views showed those precise amounts it took the bank ages to discover this.

This was in Hackers, a film starring Jonny Lee Miller and Angelina Jolie.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply