News for hackers. Stuff that matters.
Re:Doom Running on an IKEA Lamp [video] by teekert on Monday June 14, 2021 @03:49AM (#27500319)
We should all take some time to consider that our light bubs have more powerful computers than the first computer many of us once owned.

This perspective makes scifi stuff like "smart dust" seem a lot more feasible. Ubiquitous computing, what will it bring us?

Re:Doom Running on an IKEA Lamp [video] by simias on Monday June 14, 2021 @06:12AM (#27500965)
A problem with this from my point of view is that while hardware engineers did an incredible job increasing the processing power of our thinking rocks, us software devs did a tremendous job of squandering 90% of it away. Of course there also are market incentives for doing so (time to market, dev costs etc...).

Empirically it seems that software simply doesn't scale as well as hardware does. I feel like this overhead would make "smart dust" impractical.

Or I guess I could put it that way: one hand hand you could be impressed that a modern light bulb can run Doom, on the other you could be alarmed that you need a Doom-capable computer to run a modern light bulb.

Re:Doom Running on an IKEA Lamp [video] by candu on Monday June 14, 2021 @09:35AM (#27502326)
I'll choose instead to be amazed that Doom-capable computers are now inexpensive and ubiquitous enough that it makes total financial sense to use one in a light bulb!

More seriously, I see this argument all the time: that we are just squandering our advances in hardware by making comparably more inefficient software! Considering that efficiency used to be thought of on the level of minimizing drum rotations and such: the whole point is that we're now working at a much higher level of abstraction, and so we're able to build things that would not have been possible to build before. I for one am extremely grateful that I don't have to think about the speed of a drum rotating, or build web applications as spiders' nests of CGI scripts.

Are there modern websites and applications that are needlessly bloated, slow, and inefficient? Certainly - but even those would have been impossible to build a few decades ago, and I think we shouldn't lose sight of that.

Re:Doom Running on an IKEA Lamp [video] by Sohcahtoa82 on Monday June 14, 2021 @01:55PM (#27505808)
I dunno...this attitude scares me a bit, that you would just shrug away wasted CPU cycles and accept the low performance.

CPUs are getting faster, and yet paradoxically, performance is worse, especially in the world of web browsers.

The original DOOM ran at 30 fps in 320x200, which meant it rendered 1,920,000 pixels per second with only a 33 Mhz CPU. That's less than 18 clock cycles per pixel, and even that's assuming no CPU time spent on game logic. If DOOM were written today with a software renderer written in C#, Python, or JS, I'd be surprised if it could get anywhere near that level of clocks/pixel.

These days, the basic Windows Calculator consumes more RAM than Windows 98, and that's just inexcusable.

Re:Doom Running on an IKEA Lamp [video] by derefr on Monday June 14, 2021 @02:45PM (#27506549)
What's "low performance"? Humans measure tasks on human timescales. If you ask an embedded computer to do something, and it finishes doing that something in 100ms vs 10ms vs 1us, it literally doesn't matter which one of those timescales it happened on, because those are all below the threshold of human latency-awareness. If it isn't doing the thing a million times in a loop (where we'd start to take notice of the speed at which it's doing it), why would anyone ever optimize anything past that threshold of human awareness?

Also keep in mind that the smaller chips get, the more power-efficient they become; so it can actually cost less in terms of both wall-clock time and watt-hours consumed, to execute a billion instructions on a modern device, than it did to execute a thousand instructions on a 1990s device. No matter how inefficient the software, hardware is just that good.

> These days, the basic Windows Calculator consumes more RAM than Windows 98

The Windows Calculator loads a large framework (UWP) that gets shared by anything else that loads that same framework. That's 99% of its resident size. (One might liken this to DOS applications depending on DOS — you wouldn't consider this to be part of the app's working-set size, would you?)

Also, it supports things Windows 98 didn't (anywhere, not just in its calculator), like runtime-dynamically-switchable numeric-format i18n, theming (dark mode transition!) and DPI (dragging the window from your hi-DPI laptop to a low-DPI external monitor); and extensive accessibility + IME input.

Re:Doom Running on an IKEA Lamp [video] by IncRnd on Monday June 14, 2021 @04:06PM (#27507602)
That's well and good - when your program is the only software running, such as an a dedicated SBC. You can carefully and completely manage the cycles in such a case. Very few people would claim software bloat doesn't otherwise affect people. Heck the software developers of that same embedded software wish their tools were faster.

> No matter how inefficient the software, hardware is just that good.

Hardware is amazing. Yet, software keeps eating all the hardware placed in front of it.

Re:Doom Running on an IKEA Lamp [video] by derefr on Monday June 14, 2021 @05:47PM (#27508740)
I mean, I agree, but the argument here was specifically about whether you're "wasting" a powerful CPU by putting it in the role of an embedded microcontroller, if the powerful CPU is only 'needed' because of software bloat, and you could theoretically get away with a much-less-powerful microcontroller if you wrote lower-level, tighter code.

And my point was that, by every measure, there's no point to worrying about this particular distinction: the more-powerful CPU + the more-bloated code has the same BOM cost, the same wattage, the same latency, etc. as the microcontroller + less-bloated code. (Plus, the platform SDK for the more-powerful CPU is likely a more modern/high-level one, and so has lower CapEx in developer-time required to build it.) So who cares?

Apps running on multitasking OSes should indeed be more optimized — if nothing else, for the sake of being able to run more apps at once. But keep in mind that "embedded software engineer" and "application software engineer" are different disciplines. Being cross that application software engineers should be doing something but aren't, shouldn't translate to a whole-industry condemnation of bloat, when other verticals don't have those same concerns/requirements. It's like demanding the same change of both civil and automotive engineers — there's almost nothing in common between their requirements.

Re:Doom Running on an IKEA Lamp [video] by smoldesu on Monday June 14, 2021 @03:11PM (#27506889)
I think the other comment has a point though: these frameworks are definitely powerful, but they have no right to be as large as they actually are. Nowadays, we're blowing people's minds by showing 10x or 100x speedups in code by rewriting portions in lower-level languages; and we're still not even close to how optimized things used to be.

I think the more amicable solution here is to just have higher standards. I might not have given up on Windows (and UWP) if it didn't have such a big overhead. My Windows PC would idle using 3 or 4 gigs of memory: my Linux box struggles to break 1.

Re:Doom Running on an IKEA Lamp [video] by derefr on Monday June 14, 2021 @03:48PM (#27507388)
Have you tried to load UWP apps on a machine with less memory? I believe that part of what's going on there is framework-level shared, memory-pressure reclaimable caching.

On a machine that doesn't have as much memory, the frameworks don't "use" as much memory. (I would note that Windows IoT Core has a minimum spec of 256MB of RAM, and runs [headless] UWP apps just fine! Which in turn goes up to only 512MB RAM for GUI UWP apps.)

Really, it's better to not think of reclaimable memory as being "in use" at all. It's just like memory that the OS kernel is using for disk-page caching; it's different in kind to "reserved" memory, in that it can all be discarded at a moment's notice if another app actually tries to malloc(2) that memory for its stack/heap.

Re:Doom Running on an IKEA Lamp [video] by selfhoster11 on Tuesday June 15, 2021 @07:55AM (#27513976)
Windows 98 had far more advanced theming than anything out there today. Today's dark mode is a far cry from what used to be possible.
Re:Doom Running on an IKEA Lamp [video] by curtis3389 on Monday June 14, 2021 @12:40PM (#27504752)
I get your point, but putting these 2 thoughts together:

> we are just squandering our advances in hardware by making comparably more inefficient software

> we're able to build things that would not have been possible to build before

We get that not only are we able to build things that weren't possible before, but we can build things that are more inefficient than was possible before.

We can expect in the future to see new levels of inefficiencies as hardware developments give us more to waste.

Without something to balance this out, we should expect to see our text editors get more and more bloated in cool and innovative ways in the future.

It makes me think of fuel efficiency standards in cars.

Re:Doom Running on an IKEA Lamp [video] by simias on Monday June 14, 2021 @01:58PM (#27505868)
I think I would be more willing to embrace this sort of tech if there computing resources were easily accessible to hack on.

If I could easily upload my code to this smart bulb and leverage it either for creative or practical endeavors then I wouldn't necessarily consider it wasted potential.

But here you have this bloated tech that you can't even easily leverage to your advantage.

I do agree with the general point that the progress we've made over the past few decades is mind blowing, and we shouldn't forget how lucky we are to experience it first hand. We're at a key moment of the evolution of humankind, for better or worse.

Re:Doom Running on an IKEA Lamp [video] by pwagland on Monday June 14, 2021 @06:28AM (#27501037)
Well, yes and no… as always!

The trick is that you probably don't need all, or even most, of that power to run the light. Sure the Zigbee protocol is _probably_ being done via software, and not a dedicated chip, but even then. The big thing is that this chip is most likely so cheap, especially in bulk, that it doesn't make sense to get the "cheaper" variant, even if that was still available. This is kind of supported by the "new" Trådfri having an updated chip, even though the Trådfri line never changed it's capabilities, it was probably cheaper to get the new more powerful chip and/or they could no longer get the old one with a five year supply guarantee.

Re:Doom Running on an IKEA Lamp [video] by a10c on Monday June 14, 2021 @07:42AM (#27501436)
In a similar vein, from memory the i3, i5 & i7 chip is absolutely identical in every physical way from a manufacturing point of view, except that the less powerful chips have cores / features disabled.
Re:Doom Running on an IKEA Lamp [video] by sly010 on Monday June 14, 2021 @10:47AM (#27503206)
No manufacturing process is perfect, so you just sort, label and price the output accordingly. This is fairly normal practice. LEDs, vegetables, even eggs...
Re:Doom Running on an IKEA Lamp [video] by pc86 on Monday June 14, 2021 @07:46AM (#27501459)
I have to wonder why this is done. I know it must make sense or it wouldn't be done, I just don't understand it.

If you're intentionally disabling functionality in order to sell at a lower cost, you're not actually saving any money because you still have to manufacture the thing. It also (I assume) opens up a risk to someone finding out how to "jailbreak" the extra cores and now you can buy an i7 for the price of an i3. Is the cost of having three different manufacturing processes so large that it's not worth switching? Is the extra revenue from having three different versions of the same physical chip enough to justify the jailbreak risk?

Re:Doom Running on an IKEA Lamp [video] by MontyCarloHall on Monday June 14, 2021 @07:52AM (#27501495)
This is done with cores/memory banks that didn’t pass QC. For example, a 6 core CPU and an 8 core CPU might have the same die as a 12 core CPU, but 6/4 cores, respectively, were defective, so they get disabled. I don’t think they’re crippling fully functional hardware.

See here: http://isca09.cs.columbia.edu/pres/09.pdf

Also here: https://www.anandtech.com/show/2721

“When AMD produces a Phenom II die if part of the L3 is bad, it gets disabled and is sold as an 800 series chip. If one of the cores is bad, it gets disabled and is sold as a 700 series chip. If everything is in working order, then we've got a 900.”

Re:Doom Running on an IKEA Lamp [video] by flyinghamster on Monday June 14, 2021 @09:16AM (#27502137)
Specifically regarding Phenom II, I have a 550 Black Edition still plugging away, serving different roles over the years, and I was able to successfully unlock and run the two locked-out cores (via a BIOS option). It's never skipped a beat at stock clock. It could be that there was an oversupply of quad-cores, or perhaps (since it was a Black Edition part marketed to overclockers) the extra cores failed when overclocked. I know I wasn't able to have both overclock and four cores, but I considered the extra cores more important, since it was already a reasonably fast chip for its day.
Re:Doom Running on an IKEA Lamp [video] by SAI_Peregrinus on Monday June 14, 2021 @10:57AM (#27503351)
It's likely the latter (that it couldn't work when overclocked with all cores). The market for those is to allow overclocking, so if it can't do any overclocking with all cores AMD likely wouldn't want to sell it as a 4-core Black Edition, since it'd probably just get returned.
Re:Doom Running on an IKEA Lamp [video] by gurkendoktor on Monday June 14, 2021 @09:22AM (#27502197)
> ...but 6/4 cores, respectively, were defective, so they get disabled. I don’t think they’re crippling fully functional hardware.

Hmm, but what if 3 cores are defective? If that can happen(?), then it seems one extra functional core is disabled to get to an even core number.

Apple's M1 GPUs are the first where I've seen the choice between 7 and 8 cores (as opposed to 6/8 or 4/8).

Re:Doom Running on an IKEA Lamp [video] by simondotau on Monday June 14, 2021 @10:54AM (#27503313)
I imagine there is some trade off to be made between increasingly surgical disabling of components and avoiding a menagerie of franken-SKUs. Presumably the fault rate is low enough that tolerating a single GPU core drop takes care of enough imperfect parts.

Perhaps there is fault tolerance hidden elsewhere, e.g. the neural engine might have 17 physical cores and one is always disabled. Although this seems unlikely as it would probably waste more silicon than it would save.

Re:Doom Running on an IKEA Lamp [video] by geoduck14 on Monday June 14, 2021 @09:33AM (#27502303)
> Hmm, but what if 3 cores are defective?

It gets sold as a coaster

Re:Doom Running on an IKEA Lamp [video] by Sohcahtoa82 on Monday June 14, 2021 @02:05PM (#27505987)
Re:Doom Running on an IKEA Lamp [video] by edgyquant on Monday June 14, 2021 @11:54PM (#27511088)
Kind of funny that Amazon recommends it be bought with thermal paste
Re:Doom Running on an IKEA Lamp [video] by islon on Monday June 14, 2021 @10:10AM (#27502703)
A coaster that allows you to play Doom.
Re:Doom Running on an IKEA Lamp [video] by rickdeckard on Monday June 14, 2021 @08:02AM (#27501573)
This is done because your production yield is not 100%. So instead of throwing away every produced component which doesn't achieve the target of your 100%-product, you "soft-lock" the components with 80~99% performance into a 80%-product category, and the ones with 60~80% into a 60%-product. This way you increase the total yield-rate, and produce less waste. The counter-intuitive waste happens when the demand for the 60%-product is exceeding your "natural" supply of 60%-output, so you have to start to "soft-lock" some of your "80%-product" production to the 60%-grade to fulfill demand...
Re:Doom Running on an IKEA Lamp [video] by HeavyStorm on Monday June 14, 2021 @09:20AM (#27502173)
Are you guys sure? I think manufacturing has nothing to do with it.

The real reason IMHO, is to have a larger range of product prices so you can cater for specific audiences.

It seems people are confusing cost with price. Those two things are orthogonal.

Re:Doom Running on an IKEA Lamp [video] by Arrath on Monday June 14, 2021 @09:47AM (#27502463)
This tends to be the case later on in a product's production run, as the manufacturer has fine tuned the process and worked out most of the kinks, the pass-rate of finished items increases.

At this point, yes they may lock down perfectly good high end CPUs to a midrange model spec to meet a production quota.

Re:Doom Running on an IKEA Lamp [video] by zingar on Monday June 14, 2021 @08:36AM (#27501828)
But do these production defects really meet the demand of the lower tiers? Also how is it possible to predict the number of defects in advance so that they can make useful promises to distributors?
Re:Doom Running on an IKEA Lamp [video] by Pet_Ant on Monday June 14, 2021 @09:47AM (#27502475)
Well eventually as yields improve you start handicapping perfectly valid chips to main market segmentation.

I cannot say this for certain in CPUs but I know in other electronics with PCBs that this is how it is done. Sometimes lower-end SKUs are made by opening a higher-end one and cutting a wire or a trace.

Re:Doom Running on an IKEA Lamp [video] by mekkkkkk on Monday June 14, 2021 @09:25AM (#27502222)
I'm curious about this as well. It seems inevitable that some batches will be "too good" to satisfy demand of low end chips.

Either they just accept the fluctuations in order to maximize output of high end chips, or they would have to cripple fully functional ones to maintain a predictable supply. Interesting business.

Re:Doom Running on an IKEA Lamp [video] by BeeOnRope on Monday June 14, 2021 @10:27AM (#27502914)
It's not primarily about using defective chips (but that's a nice side effect). As a process becomes mature, yield rates become very high and there wouldn't be enough defective chips to meet demand for a lower tier, so good chips are binned into those tiers anyway.

The primary purpose is market segmentation: extracting value from customers who would pay more while not giving up sales to more price sensitive clients who nevertheless pay more than the marginal cost of production.

Re:Doom Running on an IKEA Lamp [video] by mekkkkkk on Monday June 14, 2021 @11:00AM (#27503383)
That makes sense, thanks. I wonder if it would be possible to de-bin one of the lower end ones, assuming it is a binned version of a fully functional higher tier chip. Or perhaps they completely destroy the offlined cores/features.
Re:Doom Running on an IKEA Lamp [video] by jffry on Monday June 14, 2021 @08:34AM (#27501815)
The term for this is "binning", and the explanation is wholly innocent. Manufacturing silicon chips is not an exact process, and there will be some rate of defects.

After manufacture, they test the individual components of their chips. These chips are designed in such a way that once they identify parts of a chip that are defective, they can disconnect that part of the chip and the others still work. (I believe they physically cut stuff with lasers but my knowledge is out of date). This process can also includes "burning in" information on the chip itself, like setting bits in on-die ROMs, so that if your OS asks your CPU for its model number it can respond appropriately.

Interesting side note: The same thing happens when manufacturing even basic electronic components like resistors. All the resistors that are within 1% of the target resistance get sold as "±1%" resistors, which means it's pretty likely that if you buy the cheaper "±5%" resistors and test them, you'll find two clusters around -5% and +5% and very few at the target value.

Re:Doom Running on an IKEA Lamp [video] by magicalhippo on Monday June 14, 2021 @10:32AM (#27502992)
> The same thing happens when manufacturing even basic electronic components like resistors.

EEVblog did some tests[1][2] some time ago on ±1% resistors, and found that while his samples were fairly Gaussian and within the spec, the ones from his second batch were consistently low. That is, none were above the rated value.

So yeah, don't assume a perfect Gaussian distribution when using resistors.

[1]: https://www.youtube.com/watch?v=1WAhTdWErrU

[2]: https://www.youtube.com/watch?v=kSmiDzbVt_U

Re:Doom Running on an IKEA Lamp [video] by Peaches4Rent on Monday June 14, 2021 @07:57AM (#27501533)
That's because there is a huge variance in the quality of chips produced because the process isn't 100% precise.

So the best chips which have the least errors in the manufacturing process are sold as top tier. The ones which have more mistakes in them get their defective parts disabled and then get sold as lower tier ones

Re:Doom Running on an IKEA Lamp [video] by boygobbo on Monday June 14, 2021 @07:52AM (#27501493)
It's called 'market segmentation'. It's why there are different brands of soap powder from the same manufacturer even though they are all essentially the same.
Re:Doom Running on an IKEA Lamp [video] by HeavyStorm on Monday June 14, 2021 @09:21AM (#27502192)
Yep. I don't think it has anything to do with manufacture issues.
Re:Doom Running on an IKEA Lamp [video] by HumblyTossed on Monday June 14, 2021 @09:39AM (#27502372)
> I don't think...

Instead of assuming, it's easy enough to confirm that CPU binning is real.

Re:Doom Running on an IKEA Lamp [video] by lordnacho on Monday June 14, 2021 @07:51AM (#27501489)
I think of you Google price discrimination or similar economic terms you get some explanations for this.

If you just have one price, you cut out people who can't afford it and people who can afford to pay more get away with more of the surplus.

If you have several prices and create just enough difference in the product that it doesn't change the expense much, you can suck dry every class of user.

Bit of an MBA trick.

Re:Doom Running on an IKEA Lamp [video] by lupire on Monday June 14, 2021 @08:39AM (#27501847)
"suck dry" is excessive editorializing for a practice that make sit possible for a market to exist without, well, "sucking the manufacturer dry".
Re:Doom Running on an IKEA Lamp [video] by Rastonbury on Tuesday June 15, 2021 @06:16AM (#27513232)
Exactly, it is not an economics trick for if companies could only supply a certain level of the market it might not even be profitable to produce. It is just economics...

We are talking about chips here so not the same bottle of soap with different labels, I'd call that a trick.

Re:Doom Running on an IKEA Lamp [video] by noir_lord on Monday June 14, 2021 @06:25AM (#27501019)
The problem is that the extreme effort to optimise hardware pays off for everyone, the extreme effort to optimise "random software project" rarely does (unless random software project is a compiler/kernel of course).

So the RoI is just different.

Re:Doom Running on an IKEA Lamp [video] by neolog on Monday June 14, 2021 @07:46AM (#27501456)
Browsers too
Re:Doom Running on an IKEA Lamp [video] by funcDropShadow on Monday June 14, 2021 @10:01AM (#27502607)
And they contain a compiler and almost an operating system ;-)
Re:Doom Running on an IKEA Lamp [video] by noir_lord on Monday June 14, 2021 @09:02AM (#27502016)
Indeed, browsers are a good example of ubiquitous software.
Re:Doom Running on an IKEA Lamp [video] by dwild on Monday June 14, 2021 @10:41AM (#27503111)
> you could be alarmed that you need a Doom-capable computer to run a modern light bulb.

An ESP8266 microcontroller can be bought in low quantity for less than a dollar. I means sure any cost reduction at scale is meaningful, but at that point I don't think the silicon is the expensive part at that point. It just doesn't make sense to give WIFI devices anything less than that performance, the gains in silicon space will be meaningless and you'll spend more managing that than anything.

Re:Doom Running on an IKEA Lamp [video] by 2OEH8eoCRo0 on Monday June 14, 2021 @09:58AM (#27502588)
I'm tired of the bloated software take. Hardware is meant to be used. Without these abstractions most software would be practically impossible to create. Without software solving more problems what's the point of the hardware?
Re:Doom Running on an IKEA Lamp [video] by funcDropShadow on Monday June 14, 2021 @10:24AM (#27502876)
Of course can good abstractions and tools help to make software possible that were practically impossible before. But there is also a tendency to add abstraction layers of questionable value. An Electron-based UI to copy a disk image to an usb stick comes to my mind, e.g. Certainly it is possible to create a GUI for a file to disk copy operation without two JavaScript engines, an html/css renderer, lot's of network code, etc. This is just a silly example, I know. But this happens all the time. That phenomenon isn't even new. Anybody, remember when the first end-user internet providers would all distribute their own software to dial in? In my experience, most problems with the internet access at that time could be fixed by getting rid of that software and entering the phone number and dial-in credentials in their corresponding Windows dialog windows.
Re:Doom Running on an IKEA Lamp [video] by 2OEH8eoCRo0 on Monday June 14, 2021 @02:33PM (#27506384)
>An Electron-based UI to copy a disk image to an usb stick comes to my mind

Subjective. Questionable to you. Nobody is bloating dd

There is definitely bloated software but it's not a huge issue. If it were, then the customer would care. If the customer cares the business would care.

Re:Doom Running on an IKEA Lamp [video] by ant6n on Monday June 14, 2021 @12:31PM (#27504663)
I don’t think the Point of N Ghz + 8 gb ram hardware is for me to sit and stare at a spinning mouse pointer while waiting for the explorer to change to another directory.
Re:Doom Running on an IKEA Lamp [video] by 2OEH8eoCRo0 on Monday June 14, 2021 @02:35PM (#27506407)
I dislike Nautilus too
Re:Doom Running on an IKEA Lamp [video] by hasmanean on Monday June 14, 2021 @01:08PM (#27505152)
How’s this take:

What is the minimal computer you can both compile and run Doom on?

Re:Doom Running on an IKEA Lamp [video] by N00bN00b on Monday June 14, 2021 @01:27PM (#27505372)
>A problem with this from my point of view is that while hardware engineers did an incredible job increasing the processing power of our thinking rocks, us software devs did a tremendous job of squandering 90% of it away.

That works both ways though. The highly qualified software devs did indeed squander some of it away.

But I'm a rather bad dev that writes really inefficient code (because it's not my primary concern, I'm not a programmer, I just need custom software that does the things I need done that can't be done by software other people write).

All this overpowered hardware allows my code to work very well.

I've been in situations where I could pick between "learn to program properly and optimize my code" or "throw more hardware at it" and throwing more hardware at it was definitely the faster and more efficient approach in my case.

Re:Doom Running on an IKEA Lamp [video] by psyc on Monday June 14, 2021 @06:48AM (#27501146)
What doesn’t scale well is John Carmack (and those of similar devotion).

And yes, I’m aware that there are also those with the chops, who are not permitted by their money masters (or alternately by their master, money) to write performant software.

Re:Doom Running on an IKEA Lamp [video] by hasmanean on Monday June 14, 2021 @01:11PM (#27505182)
Yeah, doom advanced the state of the art by maybe a decade(?). Instead of needing a silicon graphics workstation or a Graphics accelerator, it allows a generation of kids to play on any hardware.

If you want to know how the world would be like without video game programmers, just like at internal corporate software and how slow it is.

How many other advances are we tossing away because people don’t know how to optimize and code for speed and fun!

Re:Doom Running on an IKEA Lamp [video] by bottled_poe on Monday June 14, 2021 @07:04AM (#27501231)
Those “money masters” are responding to market conditions. If the market demanded greater efficiency (eg. Through climate policy for example), we would quickly see a change in priorities.
Re:Doom Running on an IKEA Lamp [video] by Dah00n on Monday June 14, 2021 @07:40AM (#27501426)
So basically we need a climate tax on software to fix the problem. Putting the tax directly at energy would not cause much optimization in software in my opinion. I don't believe software development has a culture than can take on responsibility of its actions, neither in energy usage nor in security, which all leads back to programmers not being an engineer kind of worker but more like an author/writer. Hardware engineers on the other hand can and often do take responsibility. All in all I don't have any hope of software developers being up to the task if it landed in their lap to fix this so if we wanted their hand forced the tax needs to be directly on software instead of hardware or energy. I don't believe this is mainly market driven as the market is unlikely to be able to fix it. It's at least as much a culture problem.
Re:Doom Running on an IKEA Lamp [video] by photojosh on Monday June 14, 2021 @08:47PM (#27510145)
I think of John Carmack as the software equivalent of Roger Bannister, he of the first 4 minute mile. Yes, he is absolutely incredible, but once that magic is revealed to the world, it shows what is achievable and people can follow in his footsteps.

Of course, I'm over here with my poky 6 minute mile...

Re:Doom Running on an IKEA Lamp [video] by hasmanean on Monday June 14, 2021 @10:17AM (#27502789)
Someone should remake Doom using today’s “best practises” coding standards and see how much performance it gives up.
Re:Doom Running on an IKEA Lamp [video] by otabdeveloper4 on Monday June 14, 2021 @12:49PM (#27504894)
> using today’s “best practises”

That would be WebGL and Javascript, I presume?

I tried running a Quake port in that vein, but sadly none of the computers I own were able to play it without stuttering.

Re:Doom Running on an IKEA Lamp [video] by Sohcahtoa82 on Monday June 14, 2021 @02:15PM (#27506125)
I'd like to see the DOOM engine written entirely in Python without using any GPU rendering besides the frame buffer.

DOOM ran in 320x200 at 30 fps on a 33 Mhz CPU, which gives it less than 18 clock cycles per pixel rendered. I doubt Python could get anywhere close to that.

Re:Doom Running on an IKEA Lamp [video] by Narishma on Monday June 14, 2021 @10:07AM (#27502673)
Software seems to scale in the other direction. The faster the hardware you give developers, the slower the software they produce becomes.
Re:Doom Running on an IKEA Lamp [video] by Blikkentrekker on Monday June 14, 2021 @10:33AM (#27503002)
Reading up upon some of the absolute ugly and unmaintainable hacks that software writers had to rely upon two decades back to fit things into the hardware, I am honestly quite glad the æra of that type of programming is now past us.

It was certainly impressive, but it was aso a case of often design having to give way to such hacks, such as the fact that many older first person shooter games had to have their entire level design work around the idea that the engines could not support two walkable surfaces vertically above each other for performance reasons or the famous Duke Nukem 3D “mirror” hack.

Re:Doom Running on an IKEA Lamp [video] by abraxas on Monday June 14, 2021 @10:14PM (#27510579)
Most web apps/websites aren't a whole lot more sophisticated than they were in the days of Netscape Navigator 3.0. They show text and pictures, accept form submissions and resize the viewport when I change the window size. Yet today they seem to require multi gigahertz CPUs to do anything acceptably fast. Yes there are a few that were not possible back then. Most though can't justify their resource consumption. Neither on the client nor on the server side.
Re:Doom Running on an IKEA Lamp [video] by sellyme on Monday June 14, 2021 @10:22PM (#27510612)
> Yes there are a few that were not possible back then.

"A few" is underselling it somewhat. I would posit that >95% of popular modern websites contain functionality that was not plausible in 1996.

Re:Doom Running on an IKEA Lamp [video] by abraxas on Monday June 14, 2021 @10:33PM (#27510659)
Excluding embedded video which indeed was very low quality then (although it existed) what things do you have in mind?
Re:Doom Running on an IKEA Lamp [video] by bottled_poe on Monday June 14, 2021 @07:02AM (#27501211)
In the scheme of things, this is short term. Market incentives for pushing performance are currently minor, but will have increasing influence over the next decade. Factors such As processing power hitting physical limits and energy prices as a result of climate policy will force engineers to build more efficient systems.
Re:Doom Running on an IKEA Lamp [video] by limaoscarjuliet on Monday June 14, 2021 @07:31AM (#27501378)
I do not think we will see "processing power hitting physical limits" anytime soon. Moore's Law is not dead yet, it is a good question if it ever will be dead. As Jim Keller says, the only thing that is certain is number of people saying Moore's law is dead doubles every 18 months.

https://eecs.berkeley.edu/research/colloquium/190918

Re:Doom Running on an IKEA Lamp [video] by Sohcahtoa82 on Monday June 14, 2021 @02:21PM (#27506191)
Eh...for single-threaded processing, I'd say Moore's Law is dead and has been dead for more than a couple CPU generations now.

What we're seeing now is massive parallelism, which means if your task is embarrassingly parallel, then Moore's Law is very much alive and well. Otherwise, no.

Re:Doom Running on an IKEA Lamp [video] by dTal on Wednesday June 16, 2021 @05:13AM (#27526483)
Moore's law is a statement about transistor count on an integrated circuit - there is no "Moore's law for single threaded processing". And transistor counts continue to double.
Re:Doom Running on an IKEA Lamp [video] by jerf on Monday June 14, 2021 @09:08AM (#27502058)
Yes, it has to die. In this universe things can only grow indefinitely by less than an n^3 factor, because that's as fast as the lightcone of any event grows. Exponential growth, no matter how small the factor, will eventually outgrow n^3.

Once we attain the limits of what we can do in 2 dimensions, we aren't that many exponential growth events from what we can achieve in 3. Or once we achieve the limits of silicon technology, we aren't that many exponential growth events from the limits of photonics or quantum or any other possible computing substrate. Unless we somehow unlock the secret of how to use things smaller than atoms to compute, and can keep shrinking those, we're not getting very much farther on a smooth exponential curve.

Re:Doom Running on an IKEA Lamp [video] by squeaky-clean on Monday June 14, 2021 @09:15AM (#27502126)
Sure, it has to die eventually, but the key phrase is anytime soon. But do we have any evidence it will during our lifetime? Or even our great-great-great-great-great-great-grand-child's lifetime?
Re:Doom Running on an IKEA Lamp [video] by selfhoster11 on Tuesday June 15, 2021 @08:00AM (#27514025)
Moore's law is dead as a doornail. Progress remains is parallel processing only.
Re:Doom Running on an IKEA Lamp [video] by _carbyau_ on Monday June 14, 2021 @11:18PM (#27510894)
I feel this everytime I go to a checkout register or am on the phone with a rep doing some minor account thing.

The person operating the console only has to click an option or fill in some text field, same as 20 years ago. But today, with added slowness.

Knowing the amazing advances in hardware in the meantime, this hurts me.

Re:Doom Running on an IKEA Lamp [video] by vsareto on Monday June 14, 2021 @08:29AM (#27501771)
Smart dust will probably be terrible for human respiratory systems anyway
Re:Doom Running on an IKEA Lamp [video] by IgorPartola on Monday June 14, 2021 @09:23AM (#27502204)
Not if it can work it’s way out of your lungs, being smart as it is.

One of my favorite dad jokes is that if Smart Water was so smart, why did it get trapped in a bottle?

Re:Doom Running on an IKEA Lamp [video] by selfhoster11 on Tuesday June 15, 2021 @08:02AM (#27514040)
That's assuming benign smart dust. Imagine a smart dust deployment by a hostile foreign power that is less than benign.
Re:Doom Running on an IKEA Lamp [video] by kilroy123 on Monday June 14, 2021 @06:49AM (#27501148)
My guess is, that in the future, we'll have computers writing some highly optimized software for certain things. I'm not saying all of use software people will be replaced 100% but some stuff will be replaced by automation.

That's my prediction.

Re:Doom Running on an IKEA Lamp [video] by KMag on Monday June 14, 2021 @07:21AM (#27501323)
Will the specifications for the software also be machine-generated?

If the specifications are human-generated, then they're just a form of high-level source code, and your prediction boils down to future programming languages simultaneously improving programmer productivity and reducing resource usage. That's not a controversial prediction.

If I understand you correctly, I think you're correct that over time, we'll see an increase at the abstraction level at which most programming is done. I think the effort put into making compilers better at optimizing will largely follow market demand, which is a bit harder to predict.

One interesting direction is the Halide[0] domain-specific language for image/matrix/tensor transformations. The programs have 2 parts: a high-level description, and a set of program transformations that don't affect results, but make performance tradeoffs to tune the generated code for particular devices. The Halide site has links to some papers on applying machine learning to the tuning and optimization side of things.

I can imagine a more general purpose language along these lines, maybe in the form of a bunch of declarative rules that are semantically (though perhaps not syntactically) Prolog-like, plus a bunch of transformations that are effectively very high-level optimization passes before the compiler ever starts looking at traditional inlining, code motion, etc. optimizations.

At some point, maybe most programmers will just be writing machine learning objective functions, but at present, we don't have good engineering practice for writing safe and reliable objective functions. Given some of the degenerate examples of machine learning generating out-of-the-box solutions with objective functions (throwing pancakes to maximize the time before they hit the ground, tall robots that fall over to get their center of mass moving quickly, etc.), we're a long way from just handing a machine broad objectives and giving it broad leeway to write whatever code it deems best.

I suspect in the medium-term, we'll see a 3-way divergence in programming: (1) safety/security-critical programs generated from proofs (see Curry-Howard correspondence, and how the seL4 microkernel was developed) (2) performance-critical programs that are very intensive in terms of human expert time and (3) lots of cookie-cutter apps and websites being generated via machine learning from vague human-provided (under-)specifications.

[0] https://halide-lang.org/

Re:Doom Running on an IKEA Lamp [video] by airbreather on Monday June 14, 2021 @06:00PM (#27508852)
Article yesterday says google uses AI to design chips in 6 hours, sounds like a long way is now yesterday.
Re:Doom Running on an IKEA Lamp [video] by KMag on Tuesday June 15, 2021 @01:50PM (#27518907)
> google uses AI to design chips in 6 hours

No, Google's AI is floorplanning[0] (basically routing and layout) human-designed logic in 6 hours. That headline is misleading.

It's kind of like having a compiler will billions of optimization flags and using AI to select a pretty near-optimal set of flags for a particular human-generated source file. We wouldn't call the output an AI-designed program, even though such AI would be really helpful.

Google is using AI as a heuristic for decently fast approximate solutions to the floorplanning problem, where (IIRC) optimal solutions are NP-hard.

It's an important step forward, and presumably a big time saver, but they're nowhere near giving the AI an instruction set spec or examples of inputs and outputs ad having the AI generate the logic.

[0] https://en.wikipedia.org/wiki/Floorplan_(microelectronics)

Re:Doom Running on an IKEA Lamp [video] by Blikkentrekker on Monday June 14, 2021 @10:36AM (#27503049)
That is already done; such software is called a compiler.

There is no reason to optimize the language that programmers work in when such optimizations can better be done on the generated machine code.

Re:Doom Running on an IKEA Lamp [video] by cwkoss on Monday June 14, 2021 @09:38PM (#27510423)
By the end of the century, AI will probably be able to write software better than humans.
Re:Doom Running on an IKEA Lamp [video] by papito on Monday June 14, 2021 @08:58AM (#27501990)
This guy gets it.
Re:Doom Running on an IKEA Lamp [video] by TheBigSalad on Monday June 14, 2021 @08:32AM (#27501787)
Go back to using the software of the 80s then, before the evil software engineers made it all so bad.
Re:Doom Running on an IKEA Lamp [video] by npteljes on Monday June 14, 2021 @05:24AM (#27500738)
>Ubiquitous computing, what will it bring us?

Ads, propaganda and surveillance.

Re:Doom Running on an IKEA Lamp [video] by TheOtherHobbes on Monday June 14, 2021 @08:17AM (#27501693)
Optimistic. It's a small step from those to compulsory "social credit" - like money, but worse - and other more or less overt forms of thought control and behaviour modification.
Re:Doom Running on an IKEA Lamp [video] by teekert on Monday June 14, 2021 @05:28AM (#27500758)
I'm sorry you had to go through your childhood without Star Trek ;)
Re:Doom Running on an IKEA Lamp [video] by sn41 on Monday June 14, 2021 @06:01AM (#27500920)
There's an idea for a series: a space opera with a cutting edge analytics-enhanced Ferengi ship where "it's continuing mission is to explore strange new ad streams, to fleece out new life and new civilisations, to boldly trade where no one has gone before".

The main adversary will be the cookie monster.

Re:Doom Running on an IKEA Lamp [video] by npteljes on Monday June 14, 2021 @06:58AM (#27501185)
I really did go without Star Trek! I had some small exposure to Star Wars, but what really grabbed my attention was the Neuromancer novel, and later the Matrix film series. Of course I'm cherry-picking my experience but it's a valid observation of yours that while I'm a technologist through and through, I often focus at its ugly side.
Re:Doom Running on an IKEA Lamp [video] by teekert on Monday June 14, 2021 @11:50AM (#27504059)
Yeah I really enjoy optimistic sci-fi :)

I do enjoy Dark sci-fi also every now and then but I generally like my heroes to be scientists, explorers, to solve ethical questions.

Re:Doom Running on an IKEA Lamp [video] by npteljes on Tuesday June 15, 2021 @04:40AM (#27512716)
I like that too. I like it when the threat is external, and the people get together and collectively do something that makes the threat go away.
Re:Doom Running on an IKEA Lamp [video] by adrianN on Monday June 14, 2021 @06:08AM (#27500946)
Re:Doom Running on an IKEA Lamp [video] by Sohcahtoa82 on Monday June 14, 2021 @02:22PM (#27506214)
I just lost the game.
Re:Doom Running on an IKEA Lamp [video] by numpad0 on Monday June 14, 2021 @05:46AM (#27500846)
The concept of digital advertisement was unknown to Humans in ST universe until Ferengis brought an example to Federation Starbase Deep Space 9 in 2372, so that’s one divergence between our universe and Star Trek version of it.
Re:Doom Running on an IKEA Lamp [video] by lanerobertlane on Monday June 14, 2021 @05:51AM (#27500877)
Off topic, but Deep Space 9 was not a federation starbase. It was a Bajorian Republic station under Federation administration following the Cardassian withdrawal.
Re:Doom Running on an IKEA Lamp [video] by numpad0 on Monday June 14, 2021 @08:14AM (#27501670)
Oh I assumed it was under sole Federation control from the prefix “Deep Space”, wasn’t aware it was under Bajorian ownership. I stand corrected.
Re:Doom Running on an IKEA Lamp [video] by medstrom on Monday June 14, 2021 @07:54AM (#27501511)
S/he's very sorry for misusing "starbase", s/he means a station.
Re:Doom Running on an IKEA Lamp [video] by SyzygistSix on Monday June 14, 2021 @09:51AM (#27502511)
Sao Paulo did away with public advertising for a couple decades.

I believe it is creeping back in now. But it can be done.

Re:Doom Running on an IKEA Lamp [video] by selfhoster11 on Tuesday June 15, 2021 @08:12AM (#27514136)
Star Trek was always a spherical cow as far as futures go. I'm not saying that it's not useful as an inspiration (socially, technologically and as emotional support), but realistically humans will pursue profit until we get a UBI system in place.
Re:Doom Running on an IKEA Lamp [video] by Andrex on Monday June 14, 2021 @04:27PM (#27507860)
Such a shame the current writers of the franchise apparently didn't, either. Which is depriving current and recent generations of kids of that optimistic ideal.

(Yes, Discovery season 3 is a thing I know about.)

Re:Doom Running on an IKEA Lamp [video] by SyzygistSix on Monday June 14, 2021 @09:44AM (#27502433)
Considering how much computing power is available and how much of it is used to deceive, misinform, or manipulate people, this sounds likely.

The only thing more disturbing and sad about this is how much consumer demand there is and will be for deception, misinformation, and manipulation.

Re:Doom Running on an IKEA Lamp [video] by nickpp on Monday June 14, 2021 @08:38AM (#27501840)
I think we already have those, even without Ubiquitous computing. Hell, we had them even before we had any computing whatsoever. Sure they are more efficient now (what isn't) but they always existed...
Re:Doom Running on an IKEA Lamp [video] by selfhoster11 on Tuesday June 15, 2021 @08:09AM (#27514104)
Older ads were far less powerful. They also couldn't embed themselves into your everyday life so much. "Hey Google, ..."/"Alexa, ..."/"Siri, ..." is an exercise in brand reinforcement every time you want to ask your smart assistant about something. At one point, I creeped myself out by realising that my first instinct is to call out "Hey Google" when I need something, even if I'm away from my Google Home.
Re:Doom Running on an IKEA Lamp [video] by torginus on Monday June 14, 2021 @06:24AM (#27501013)
I remember reading about some circuit where they replaced an 555 timer whose job was to generate a PWM signal with a fully featured microcontroller, because it was cheaper that way.
Re:Doom Running on an IKEA Lamp [video] by m_st on Monday June 14, 2021 @08:37AM (#27501834)
While I'm a great fan of ubiquitous tech/computing in general, I must also say that it feels weird applying firmware updates to light bulbs. However, you want to stay safe these days, so it's better to keep up to date, right?
Re:Doom Running on an IKEA Lamp [video] by flyinghamster on Monday June 14, 2021 @09:32AM (#27502294)
Unfortunately, my experience has been that Ikea will push out a firmware update, and then I don't discover it until the outside lights fail to turn on or off at their appointed time and have to be rebooted. Yes, we live in an age when you can reboot a light bulb.

Very much to their credit, though, the Trådfri hub doesn't depend on a cloud service just to operate. If that ever happens, thus endeth my foray into smart lighting. I've put my foot down: if it needs Somebody Else's Computer to function, I don't want it.

Re:Doom Running on an IKEA Lamp [video] by Nextgrid on Monday June 14, 2021 @05:18AM (#27500717)
> Ubiquitous computing, what will it bring us?

Ads, obviously.

Re:Doom Running on an IKEA Lamp [video] by handrous on Monday June 14, 2021 @10:24AM (#27502877)
Ubiquitous spyware in everything we interact with, in order to make ads, on average, 5% more efficient—juuuuust enough more efficient that having a stream of massive-scale spyware data is necessary to compete in the ad sales market. Totally a good trade-off, making all the world's computing adversarial so ads work slightly better.
Re:Doom Running on an IKEA Lamp [video] by SyzygistSix on Monday June 14, 2021 @09:55AM (#27502553)
When adblocking software becomes indistinguishable from stealth technology.
Re:Doom Running on an IKEA Lamp [video] by tomxor on Monday June 14, 2021 @05:53AM (#27500886)
> our light bubs have more powerful computers than the first computer many of us once owned

Mine don't, and I first owned an AtariST with a 68000 CPU.

These are "smart bulbs". We are still in the .com bubble of IoT, so there are going to be a lot of silly things we can run Doom on for a while until it dies down. Lights don't need computers to operate, but that doesn't stop people trying to add "features" to lights with computers.

Re:Doom Running on an IKEA Lamp [video] by lupire on Monday June 14, 2021 @08:41AM (#27501857)
Computers have lights, why shouldn't lights have computers?
Re:Doom Running on an IKEA Lamp [video] by dTal on Wednesday June 16, 2021 @05:18AM (#27526514)
Nuclear power plants have phones, why shouldn't phones have nuclear power plants?
Re:Doom Running on an IKEA Lamp [video] by soheil on Monday June 14, 2021 @12:25PM (#27504572)
Given how computation is more and more energy efficient and requires near zero material to build, will there be a day that we consider computing cycles a priori a bad thing? Maybe there will be an argument about how terrible it is to have smart dust by those who consider it to be a new form of pollution and toxicity.
Re:Doom Running on an IKEA Lamp [video] by brainless on Monday June 14, 2021 @04:58AM (#27500629)
Thank you, I think I am just gonna quit my work now and spend the day thinking about it walking around and being anxious too. Sometimes it takes a while to understand how far we have come with miniaturization of tech.
Re:Doom Running on an IKEA Lamp [video] by nabla9 on Monday June 14, 2021 @06:07AM (#27500944)
In 2018 IBM already demoed 1mm x 1mm sized computer on chip concept for crypto anchor that almost can almost run Doom.
Re:Doom Running on an IKEA Lamp [video] by zelon88 on Monday June 14, 2021 @10:08PM (#27510554)
I believe there is a point at which we will be emulating silicon so fast that we will be able to realize true Single Instruction Set computing.

Such a machine would be nowhere near as efficient as a CISC computer in terms of work per clock cycle, but what if our "silicon" in the future can run an almost arbitrary frequency? We would be able to emulate any instruction set natively in real time. The perfect FPGA.

Re:Doom Running on an IKEA Lamp [video] by brokenmachine on Monday June 14, 2021 @09:37PM (#27510420)
>Ubiquitous computing, what will it bring us?

Ads.

Oh, and spying/tracking.

The future sucks.

Re:Doom Running on an IKEA Lamp [video] by Angostura on Monday June 14, 2021 @04:24AM (#27500469)
I always like the fact that the average musical birthday card, popular in the 90s had more compute capacity than the computer in the Apollo command module.
Re:Doom Running on an IKEA Lamp [video] by formerly_proven on Monday June 14, 2021 @04:49AM (#27500593)
Those ICs don't have any compute capacity at all. They're an analog oscillator driving an address counter connected to an OTP ROM whose data pins go into a DAC.
Re:Doom Running on an IKEA Lamp [video] by schlupa on Monday June 14, 2021 @05:37AM (#27500799)
Mmmmh, AGC was not that low level. It was a 16 bit computer, running at 1Mhz with 72 Kb of ROM and 4 Kb of RAM.
Re:Doom Running on an IKEA Lamp [video] by Eduard on Monday June 14, 2021 @04:31AM (#27500510)
I doubt.
Re:Doom Running on an IKEA Lamp [video] by nl on Monday June 14, 2021 @04:58AM (#27500627)
https://hackaday.com/2011/11/22/musical-greeting-card-with-m... shows building a music card on an ATTiny 85.

These are around 20 MIPS. The Apollo guidence computer had around 1 MIPS.

Re:Doom Running on an IKEA Lamp [video] by kolinko on Monday June 14, 2021 @05:09AM (#27500677)
You can build a music card on ATTiny, but music cards didn’t use ATTiny.
Re:Doom Running on an IKEA Lamp [video] by nl on Monday June 14, 2021 @05:15AM (#27500700)
Sure, but I couldn't find a teardown.

It seems likely they are using something similar. It's difficult to find a cheaper chip, broadly available chip these days.

You can find Z80 clones, but even they are generally upgraded and therefore more powerful than the Apollo computer.

Re:Doom Running on an IKEA Lamp [video] by nl on Monday June 14, 2021 @06:52PM (#27509367)
Wow the downvotes on this are pretty harsh!

Do people really think the Apollo computer is more powerful? And have any evidence? I'd be surprised if you can get a microcontroller with as little processing power these days.

Re:Doom Running on an IKEA Lamp [video] by kolinko on Tuesday June 15, 2021 @11:07AM (#27516576)
I think the downvotes come because you keep saying that music cards use microcontroles, when they do not.

Music cards use dedicated chips, they are not general purpose, and they don’t really do much computation aside from a few counters. AFAIK.

Now, in DIY tutorials they show microcontrollers, because they are easier to obtain, but it doesn’t mean that they are used in the commercial products.

Re:Doom Running on an IKEA Lamp [video] by nl on Wednesday June 16, 2021 @03:46AM (#27525974)
I realise they don't use microcontrollers, but the Apollo Guidance Computer only had ~12,000 transistors[1].

The cheapest, smallest (15s storage) "chip corder" (which is what these cards use) has GPIO, SPI, the ability to trigger different messages etc. There's no way this is under 12,000 transistors![2]

[1] https://en.wikipedia.org/wiki/Transistor_count#Transistor_co...

[2] https://www.datasheets.com/en/part-details/isd2115ayyi-nuvot...

Re:Doom Running on an IKEA Lamp [video] by rrrazdan on Monday June 14, 2021 @04:53AM (#27500608)
Citation please? That sounds unlikely!
Re:Doom Running on an IKEA Lamp [video] by notwedtm on Monday June 14, 2021 @08:48AM (#27501916)
This reminds me of the fact that 54% of all statistics are made up on the spot.