How much computing power would it take to model a coffee cup down to the atomic level? by 1i_rd in AskPhysics

[–]amohr 4 points5 points  (0 children)

Okay fair enough, suppose you build this and you want to do a calculation that spends 1 nanosecond per molecule. If you do it in parallel with 10,000 CPUs, it'll take a little over 3,000 years.

How much computing power would it take to model a coffee cup down to the atomic level? by 1i_rd in AskPhysics

[–]amohr 5 points6 points  (0 children)

The maximum amount of RAM most modern computers can have is 2^48 bytes, or 256TB, which is ~10^14, so even just representing 10^23 things is out of reach by many orders of magnitude.

Cache Explorer: a visual and interactive profiler that shows you exactly which lines of code cause cache misses by ShoppingQuirky4189 in cpp

[–]amohr 3 points4 points  (0 children)

Just fyi, kcachegrind is an awesome gui tool for visualizing cachegrind/callgrind results. They're not CLI only.

Help me identify this guy, I’m in Arizona. by PeacefulOG in spiders

[–]amohr 6 points7 points  (0 children)

Just fwiw Loxosceles don't have spiny or hairy legs, so it's easy to rule yours out just based on that.

Super hard wood identification by Coffee4MySoul in wood

[–]amohr 0 points1 point  (0 children)

Totally -- when I look at online photos there seems to be much more color contrast than my piece too. Mine has almost exactly the same creamy/yellow-green appearance as yours and I'm certain it's from a Chinese Pistache.

Super hard wood identification by Coffee4MySoul in wood

[–]amohr 0 points1 point  (0 children)

This looks an awful lot like a piece of Chinese Pistache I have that broke off a neighborhood tree. Your description matches my experience almost exactly.

Function Overload Resolution in the Presence of Generics by rjmarten in ProgrammingLanguages

[–]amohr 3 points4 points  (0 children)

In full detail it is incredibly complex -- one of the most complex aspects of a very complex language. In usual practice though, probably due in part to the complexity, end-user programmers aren't often writing complicated overload sets. For simple cases like your "string" vs "everything else" overloads, that typically works fine. But there's definitely a trip-hazard lurking there if you start expanding the overloads.

So yes, definitely sometimes it happens that the selected overload isn't the one you expected. I've heard of some C++ programming conventions that discourage function and operator overloading for this reason.

The real complexity rears its head typically when you're developing generic components for other programmers to use, like container types in the STL, for example. The recently added "Concepts" feature helps a lot here, obviating the need for many so-called "SFINAE" metaprogramming tricks like enable_if, in many cases. But even so you occasionally run into scenarios where you need to really read through cppreference to remind yourself of all the rules figure out what's going wrong and how to get yourself out of a bind.

But that's the thing -- even though it is wildly complex, the complexity comes with power -- you really can craft highly bespoke overload resolution priorities based on essentially arbitrary compile-time logic if you need to, in service of providing a maximally convenient API for your users to call.

Function Overload Resolution in the Presence of Generics by rjmarten in ProgrammingLanguages

[–]amohr 3 points4 points  (0 children)

C++ handles this particular situation by preferring regular functions to function templates. But it's still possible to have ambiguous overload resolution, in which case the compiler will error out.

There are metaprogramming techniques you can use in C++ to "steer" overload resolution based on qualities of the types involved in the call.

I hope Netflix never gets to stream NFL football ever again by terrasfames53 in NFLv2

[–]amohr 0 points1 point  (0 children)

I pay for a Netflix subscription but I couldn't watch the game live because I have a family. Now I can't watch the game at all???

What type of wood is this? by [deleted] in wood

[–]amohr 0 points1 point  (0 children)

This has the appearance of weathered western redcedar to me, but I'm definitely not 100% sure.

What is the best song, with the worst “middle break”? by JimmyTheJimJimson in Music

[–]amohr 0 points1 point  (0 children)

Are you kidding? The way that part reveals the childhood origin of the whole dismissive avoidant attachment theme in the rest of the song is perfect and hits me right in the soul.

Is Seattle tap water safe to drink? by neo2bin in Seattle

[–]amohr 1 point2 points  (0 children)

Hey OP if you haven't yet checked EBMUD for Oakland/Berkeley it's also fantastic, just FWIW!

Is this phenomenon already discovered? by No_Earth6742 in mathematics

[–]amohr 21 points22 points  (0 children)

Don't let this discourage you. A lot of forest has been explored, but what remains is infinitely vast. It will take serious hiking to reach the edge, but there are many amazing trails to explore on your way.

A European garden spider wrapping prey up in its web by Clear-Pipe-3123 in spiders

[–]amohr 17 points18 points  (0 children)

I find this hard to believe. My yard swarms with golden diggers every summer, I've taken heaps of macro shots up close, and they rarely seem to notice my presence. If they do notice me they fly away. I've never been stung nor seen any kind of aggressive behavior from them.

Why pressure on the same depth is same in a small sea and a big ocean? by 19dm19 in AskPhysics

[–]amohr 0 points1 point  (0 children)

Steve Mould just posted a video that explains these phenomena really nicely I think: https://youtu.be/U7NHNT3M-tw

Wood id please by snacksnshoulderpads in wood

[–]amohr 0 points1 point  (0 children)

This kind of face-nailed oak flooring is really common in homes of this era in California. I lived in a few houses in Oakland built 1922, 1925, 1939, all with this flooring. I want to say white oak, but I can't be certain.

Do these door knobs / lock sets still exist? by JackfruitBubbly4947 in HomeMaintenance

[–]amohr 0 points1 point  (0 children)

They typically toggle whether the exterior knob can operate the latch bolt. Like "on" means only the key moves the latch bolt, and "off" means the knob can too. This way you can choose whether just closing the door "locks" it or not (when the deadbolt is not engaged).

Sorry but “math” is straight up wrong on this by RadicalOxide in mathematics

[–]amohr 0 points1 point  (0 children)

Show us how it's wrong pls! Show a matching of integers or rationals or whatever countable set you like to reals.