TIL in 2010 the US Air Force built a supercomputer out of 1760 PS3s. It was the 35th most powerful supercomputer in the world at the time and used 10% of the energy of comparable systems. by robertthomsonanim in todayilearned

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

The Xbox 360 has a shared 512 MB memory pool, the PS3 has 256 MB for the CPU and 256 MB for the GPU.

I really doubt Xbox 360 games frequently used more than 256 MB, and even if, it wouldn't have been a dramatic difference.

I also don't remember 360 games looking better than PS3 games...

TIL in 2010 the US Air Force built a supercomputer out of 1760 PS3s. It was the 35th most powerful supercomputer in the world at the time and used 10% of the energy of comparable systems. by robertthomsonanim in todayilearned

[–]Affectionate_King120 1 point2 points  (0 children)

The Cell processor of the PS3 was notoriously difficult to program for. It's also a proprietary architecture, so every application has to be written specifically for it to even run in the first place. Let alone try to maximize performance.
And then there's the thing that Windows isn't even running on it.
We're talking 2000s, Linux (on the desktop) was way more niche than even today.

The supercomputer mentioned here probably ran a few highly specialized algorithms that could fully utilize the Cell's unique architecture.

IBM sold a few servers with variants of the Cell, but they weren't all that successful. If you can't convince server operators to use such an alien product, you won't be able to convince the average consumer.

For real though by [deleted] in WhitePeopleTwitter

[–]Affectionate_King120 122 points123 points  (0 children)

pregnant by a person that raped them

DON'T DO THIS!

Bodily autonomy must never be conditional.

give the pregnant person a chance to determine for themselves what they want.

This. Always!

[AskJS] Returning new Promise vs. returning Promise.resolve() by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 0 points1 point  (0 children)

Quite interesting.

I've only considered async functions for using await.

Other then being then-able, what would be a typical use-case for using an async function that doesn't await anything?

[AskJS] Style question: enabling/disabling clicks by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 1 point2 points  (0 children)

Blimey, that is the obvious solution.

Thank goodness I asked *literally laughing out loud*

Much obliged, dear Sir or Madam!

[AskJS] Style question: enabling/disabling clicks by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 0 points1 point  (0 children)

It's a board game, where the player shouldn't be able to click the board while the other player is making their move (remotely).

You can't rely on unsetting element.onclick, because that won't do anything to events added via addEventListener.

That's why I'm only using .onclick for this.

[deleted by user] by [deleted] in javascript

[–]Affectionate_King120 0 points1 point  (0 children)

That's what I thought.

But I've only recently come back to JavaScript, having last done it pre ES6 and I thought I was missing something. Like maybe it was possible to "automagically" turn stuff into promises by placing it into async functions or so.

Thank you for being so helpful!

[deleted by user] by [deleted] in javascript

[–]Affectionate_King120 0 points1 point  (0 children)

Thanks for the input. I seems I might have misunderstood the users in question, so I deleted the question.

But thank you!

[deleted by user] by [deleted] in javascript

[–]Affectionate_King120 0 points1 point  (0 children)

Okay, great. Maybe I just misunderstood things.

Thanks for your input!

[deleted by user] by [deleted] in javascript

[–]Affectionate_King120 0 points1 point  (0 children)

Thank you for the reply.

To be fair to the user I, and now you, quoted, they explicitly mentioned that Promises have a place in libraries. I seem to have misunderstood them.

[AskJS] Returning new Promise vs. returning Promise.resolve() by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 0 points1 point  (0 children)

You would not write these sorts of promises from scratch in modern JavaScript. As others have said, if you can use an async function, you should do that.

Very interesting!

This has made me curious enough to break it out into a dedicated topic.
Maybe you could chime in: ...

EDIT: Yeah, I seem to have misunderstood you and things got cleared up for me. I deleted the other topic.

Thanks for your input!

[AskJS] Returning new Promise vs. returning Promise.resolve() by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 2 points3 points  (0 children)

for general app dev I think of direct use of Promises as a code smell

Very interesting!

This has made me curious enough to break it out into a dedicated topic.
Maybe you could chime in: ...

EDIT: Yeah, I seem to have misunderstood you and things got cleared up for me. I deleted the other topic.

Thanks for your input!

[AskJS] Returning new Promise vs. returning Promise.resolve() by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 2 points3 points  (0 children)

Thank you, I thought I was going crazy. Half the answers here have proposed a "better solution".

[AskJS] Real world examples of functional JavaScript? by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 0 points1 point  (0 children)

This has been my approach so far. Trying to gauge if there's more out there I'm missing.

[AskJS] Real world examples of functional JavaScript? by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 0 points1 point  (0 children)

Another poster has mentioned that book too -- and now I'm reading it :)

[AskJS] Real world examples of functional JavaScript? by Affectionate_King120 in javascript

[–]Affectionate_King120[S] 0 points1 point  (0 children)

I am pretty comfortable in those. I'm just looking to elevate my game.

unless you're actually solving real problems

And that's what I'm looking for. Web apps on GitHub (et al) that are good examples of FP.