this post was submitted on 28 Aug 2024
517 points (97.4% liked)

Technology

59577 readers
4617 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BeMoreCareful@lemmy.world 13 points 2 months ago (3 children)

Makes you wonder about ice cars too.

[–] AmbiguousProps@lemmy.today 20 points 2 months ago* (last edited 2 months ago) (1 children)

Absolutely, in that the more software in a vehicle, the more likely it is to brick once a company folds. ICE cars are less likely since they don't have most of the software, but there are some that are computers on wheels still (and I'm sure the amount will continue to increase).

[–] UsernameHere@lemmy.world 13 points 2 months ago (1 children)

ICE vehicles have more software because they have more components. They have a transmission control module and an engine control module both of which have a lot of sensors to read and outputs to control. Much more than a simple EV would have.

[–] Aceticon@lemmy.world 1 points 2 months ago (1 children)

In my experience (mostly as a hobbyist and not in cars), embedded systems software (i.e. running in microcontrollers) is way smaller than the kind of stuff running in entertainment systems which require the power of microprocessors.

It's pretty much an entirelly different class of software and even the libraries used are done with entirelly different primary objectives (generally small size is more important than just about everything else in the embedded system world).

ICE cars will have more microcontrollers (all communicating with each other via CAN), but the sofware within most of them is something that fits a few tens of KB of memory, whilst the software managing the used interface even if the screen is only 1024x768 (which looks like crap even compared to the cheapest of smartphones), will be tens of hundreds of megas worth of code + data.

[–] UsernameHere@lemmy.world 0 points 2 months ago (1 children)

Right but both EVs and ICE vehicles have infotainment systems. ICE vehicles have more components that require software in addition to that.

[–] Aceticon@lemmy.world 1 points 2 months ago* (last edited 2 months ago) (1 children)

My point is that vehicle control software that ends up in centralized systems tends to be bigger because the philosophy of making software for embedded systems (not just the core program but also libraries) is very different than that for systems with microprocessors: embedded systems with microcontrollers tend to have a few tends of KB of program memory per computing node and hence don't even have an OS most of the time and the programs have to be coded to fit there as do the libraries, whilst the same functionality implemented in a centralized system alongside with that for things like UI touch controls, route navigation, audio system control, interfacing with smartphones and so on (doesn't even need to include infotainment), tends to have more lines of code to do the same thing and use big libraries simply because there is no real memory size pressure on coders to make the programs ultra small and use tiny libraries.

So the paradox is that if you add more processing nodes to a system (such as in a car) in the form of microcontrollers and move some functionality to run there rather instead of in the central more powerful computing node, you will probably end up with fewer lines of code purelly because the software design philosophy for microcontrollers emphasises smaller size and less overhead (hence why they don't usually have an OS), whilst that for systems with actual microprocessors does not hence the software tends to be a lot more bloated.

(The complaint from older software programmers that software nowadays is much more bloated is true. However microcontrollers are like the microprocessors of 30 years ago - say 4KB RAM, 64KB storage flash memory and a 40MHz clock - so the code for those is till forced to be done lean and mean, otherwise it wont fit or perform)

So if you measure "amount of software" by "code size", then ICEs will have less software because they tend to use a distributed system design with lots of small computing nodes, for historical reasons (they existed back in the days when electronics was moving to using software running in microcontrollers instead of discrete logic in hardware or PLAs) and possible also because some of the things they have to do which are not required for EVs (such as injection control) have very tight time constraints and the best way to make sure your software reliably works with ms or sub-ms margins is to not even have an OS and coding that software to be small with very tightly controlled code execution in something like C and even with ASM for more critical stuff.

However if you measure "amount of software" by "number of individual functionalities it covers" (so, roughly, the number of programs in the whole system), then your are correct that all else being the same ICEs have more software because more functions have to be covered to control an ICE system.

[–] UsernameHere@lemmy.world 0 points 2 months ago (1 children)

Right, the centralized control systems that get bloated with software are not unique to EVs. Like I said. And those centralized control systems have more inputs and outputs to interact with on an ICE than on an EV because an ICE has more components.

I’m not a hobbyist. I was a master automotive mechanic for over 20 years and I am now a software developer. I feel the need to say this because you are restating the same points I already address in a more verbose way as if you are hoping to make it sound too complicated for the average person to refute.

[–] Aceticon@lemmy.world 0 points 2 months ago (1 children)

You misinterpreted my intention - that's how I normally present things from my domain of expertise and I was actually making an effort to simplify it and not use too much domain specific slang.

Since you've pulled the expertise card out, I'm a Technical Architect with 30 years experience in software engineering, having working all the way up from a software developers, in several countries, several domains of software engineering and even for several industries, and amongst other things that includes Android, iOS, Linux-based and Windows-based systems, both frontend and backend, which is applicable for modern centralized user control systems for cars as well as infotainment systems, and those are just a fraction of the kind of areas in software design and developement I worked in.

I only said I was a hobbyist very specifically in embedded systems software because even though I have an EE degree and have 3 decades of professional experience in other software development domains, I only ever did software for embedded systems for fun - though I have some years of it - not for work, and I was hardly going to claim I was a bloody professional in a specific domain of software engineering were I did not work as a professional.

So yeah, if there's something I know about is how the number of inputs and outputs influences the size of the code (very little, as that's not were the complexity lies) and how software running in weaker computing units is way smaller and much more optimized than software running in powerful computing units because the very software developers themselves (at all levels, including OS and libraries) learn from experience very different lessons about how much time they should spend making their code small and tight when they are working with weaker processing units versus working with powerful processing units.

[–] UsernameHere@lemmy.world 0 points 2 months ago

That’s nice but it doesn’t change the facts:

The software that you are stating “gets bloated” is in all vehicles, not just EVs.

Combistion vehicles have more inputs and outputs to incorporate in the bloated software than EVs.

[–] NarrativeBear@lemmy.world 10 points 2 months ago (2 children)

Maybe just in terms of their electronics, such as updates and extended services.

I do wonder if things like heated seat subscription in EV's and ICE car's will keep functioning after the company disappears.

[–] ThePantser@lemmy.world 14 points 2 months ago (1 children)

Seems like that is ripe for a class action. If a piece of hardware ceases to function if you don't pay a fee but then the ability to pay is denied or removed the hardware should default to functioning. Come on EU, this is right up your alley, let's get some laws made over there so us lowly Americans can benefit!

[–] bizarroland@fedia.io 11 points 2 months ago (2 children)

It's not even a difficult law to pass, "if a cloud service goes out of business, its software becomes public domain. If the company is acquired, the sale must include a promise to keep the services operational for the full lifetime of the product unless the software is public domained"

[–] can@sh.itjust.works 9 points 2 months ago

The difficulty is in explaining what any of that means to the people who make the laws.

[–] AA5B@lemmy.world 2 points 2 months ago (1 children)

The difficulty would be enforcing this when the entity legally no longer exists

[–] JJROKCZ@lemmy.world 2 points 2 months ago (1 children)

Go after the owners of the company, stop letting people hide behind these companies they can start with $100 and 20 minutes online when they commit crimes

[–] AA5B@lemmy.world 1 points 2 months ago* (last edited 2 months ago)

I think it’s kind of the opposite direction. Picture a company that exists and is profitable, say a gas station. Eventually they realize how much groundwater they’ve contaminated and that they can’t pay it, so go out of business. They no longer exist. Certainly any bond posted for cleanup will be seized but that’s never enough. Then there’s nothing of value left to seize, nor are their affairs held long enough to determine the scope of the problem. Then by the basic rules of corporations, there’s no one left to sue, to recover from

Sure, if it were a sham company you may be able to legally go around that, but the point is that many legit companies will go out of business, leaving a mess for taxpayers

[–] Jrockwar@feddit.uk 10 points 2 months ago

Probably not. But that's what happens when you buy Things as a Service.

[–] ShepherdPie@midwest.social 3 points 2 months ago

Yeah they'll likely end up melting once global temperatures rise high enough.