HackerTrans
TopNewTrendsCommentsPastAskShowJobs

drmikeando

no profile record

comments

drmikeando
·há 4 meses·discuss
To me the neat bit isn't that it got the exponential decay right - that's pretty standard, its that it realised there were two different timescales for the decay and got ball-park numbers for them pretty well.

This is the kind of model you would expect from a simple cylindrical model of the coffee cup with some inbuilt heat capacity of its own.

However, those decay coefficients are going to be very dependent of the physical parameters of your coffee cup - in particular the geometry and thermal parameters of the porcelain. There's a lot of assumptions and variability to account for that the models will have to deal with.
drmikeando
·há 5 meses·discuss
While this is a great article, I feels it buries the lede.

For me, the key insight was from the last paragraph of the article:

C++23 introduces "deducing this", which is a way to avoid the performance cost of dynamic dispatch without needing to use tricks like CRRT, by writing:

    class Base {
    public:
      auto foo(this auto&& self) -> int { return 77 + self.bar(); }
    };

    class Derived : public Base {
    public:
      auto bar() -> int { return 88; }
    };
I wish the article had gone into more details on how this works and when you can use it, and what its limitations are.