<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: shadedtriangle</title><link>https://news.ycombinator.com/user?id=shadedtriangle</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 06 May 2026 14:04:42 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=shadedtriangle" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by shadedtriangle in "California farmers to destroy 420k peach trees following Del Monte bankruptcy"]]></title><description><![CDATA[
<p>I know this is naive but I wonder why the CCPA, together with the Department of Agriculture, chose not to purchase the peach canning facilities that Del Monte Foods was running. I suppose that it's more risk for the farmers in a world where canned peach sales are declining. I can't imagine it's easy to just clear cut a ton of trees though. 9 million sounds like nothing when it will take years for whatever new crop they plant to fruit.</p>
]]></description><pubDate>Tue, 05 May 2026 21:07:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=48028574</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=48028574</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48028574</guid></item><item><title><![CDATA[New comment by shadedtriangle in "Five Companies Produce Nearly 25 Percent of All Plastic Waste Worldwide"]]></title><description><![CDATA[
<p>Yes, the city of Seattle instituted a sweetened beverage tax in 2017 and there was a study with results published in 2023.<p><a href="https://www.seattle.gov/sweetened-beverage-tax-community-advisory-board/evaluation-reports" rel="nofollow">https://www.seattle.gov/sweetened-beverage-tax-community-adv...</a></p>
]]></description><pubDate>Wed, 27 Nov 2024 09:20:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=42254419</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=42254419</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42254419</guid></item><item><title><![CDATA[New comment by shadedtriangle in "C++20 Idioms for Parameter Packs"]]></title><description><![CDATA[
<p>I feel like this article is missing one of the most useful idioms of parameter packs which is when you want to accept a variety of parameter types to a non-template function. You can stuff a parameter pack into an array/vector of unions/variants which is quite useful! For example it's the way to implement std::format which is based off Python's string.format().<p><pre><code>  using FormatArg = variant<int, float, string>;
  string FormatArgs(const char* fmt, const vector<FormatArg> &args);
  
  template <typename... Args>
  string Format(const char* fmt, Args&&... args) {
    vector<FormatArg> expanded_args = {args...};
    return FormatArgs(fmt, expanded_args);
  }

  int main() {
    cout << Format("Hello {} pi {}", "world", 3.14f);
  }
</code></pre>
<a href="https://godbolt.org/z/v5zo99aGe" rel="nofollow">https://godbolt.org/z/v5zo99aGe</a></p>
]]></description><pubDate>Tue, 27 Feb 2024 20:00:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=39528982</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=39528982</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39528982</guid></item><item><title><![CDATA[New comment by shadedtriangle in "Mtn Dew Raid Q&A [pdf]"]]></title><description><![CDATA[
<p>J, K, and L are keyboard shortcuts for "skip back 10s", "toggle pause", and "skip forward 10s". Left and right arrow keys do the same skipping. On mobile a double tap on either side of the screen again skips forward/back. A double tap with two fingers skips a chapter. Makes hopping around in a video a breeze.</p>
]]></description><pubDate>Tue, 05 Dec 2023 19:08:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=38535473</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=38535473</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38535473</guid></item><item><title><![CDATA[New comment by shadedtriangle in "$1 Unistroke Recognizer"]]></title><description><![CDATA[
<p>It's because the algorithm is easy to implement and efficient in terms of compute usage to match a gesture. It's a "cheap and easy" recognizer, a $1 recognizer. The name has spawned a whole host of similarly named papers which you can see on their "impact" page <a href="https://depts.washington.edu/acelab/proj/dollar/impact.html" rel="nofollow noreferrer">https://depts.washington.edu/acelab/proj/dollar/impact.html</a>.</p>
]]></description><pubDate>Mon, 13 Nov 2023 23:10:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=38256622</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=38256622</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38256622</guid></item><item><title><![CDATA[New comment by shadedtriangle in "The James Webb Space Telescope is finding too many early galaxies"]]></title><description><![CDATA[
<p>We can see it and it’s called the Cosmic Microwave Background <a href="https://en.m.wikipedia.org/wiki/Cosmic_microwave_background" rel="nofollow">https://en.m.wikipedia.org/wiki/Cosmic_microwave_background</a>. It’s not t=0.0000001 though as the time before the cosmic microwave background the universe was opaque to photons, you wouldn’t be able to see anything.</p>
]]></description><pubDate>Thu, 12 Jan 2023 21:09:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=34360287</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=34360287</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34360287</guid></item><item><title><![CDATA[New comment by shadedtriangle in "Tether Withdrawals Top $10B"]]></title><description><![CDATA[
<p>> All you need for a stable stablecoin is to save every dollar put in to it.<p>That’s the issue right there. How does Tether save its dollars? We can see it in their transparency report[1]. Whether you believe them or not it’s not just cash in a bank account.<p>* 0.41% Non-U.S. Treasury Bills<p>* 55.53% U.S. Treasury Bills<p>* 0.15% Reverse Repurchase Agreements<p>* 5.81% Cash & Bank Deposits<p>* 9.63% Money Market Funds<p>* 28.47% Commercial Paper and Certificates of Deposit<p>How much of that is liquid and directly convertible to dollars 1:1 in he next 24 hours? Not 100%.<p>What happens when they start selling billions in Treasury Bills and Commercial Paper to fund redemptions? The market price of those assets will drop.<p>What if the value of those assets is <i>already</i> below 1:1 because of recent market events?<p>What if they’re not being as transparent as they say they are?<p>> As long as they never spend anything from the reserve, this can't fail no matter how unpopular the currency is.<p>This can easily fail many different ways.<p>[1]: <a href="https://tether.to/en/transparency/#reports" rel="nofollow">https://tether.to/en/transparency/#reports</a></p>
]]></description><pubDate>Tue, 24 May 2022 18:32:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=31495852</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=31495852</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31495852</guid></item><item><title><![CDATA[New comment by shadedtriangle in "Multiple assignment and tuple unpacking improve Python code readability (2018)"]]></title><description><![CDATA[
<p>This is probably my most used C++17 feature too:<p><pre><code>    for (auto& [key, value] : persons)
</code></pre>
The nested bindings are neat. Don’t think you can do that in c++ yet.</p>
]]></description><pubDate>Sun, 08 May 2022 16:28:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=31305514</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=31305514</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31305514</guid></item><item><title><![CDATA[New comment by shadedtriangle in "Show HN: C++ by Example – A new website for learning C++"]]></title><description><![CDATA[
<p>Thank you! Yes I do intend to cover build systems, libraries, static vs dynamic binaries. All of these are an important part of working with C++ often overlooked.</p>
]]></description><pubDate>Tue, 16 Nov 2021 08:36:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=29238272</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=29238272</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29238272</guid></item><item><title><![CDATA[Show HN: C++ by Example – A new website for learning C++]]></title><description><![CDATA[
<p>Article URL: <a href="https://cppbyexample.com">https://cppbyexample.com</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=29228526">https://news.ycombinator.com/item?id=29228526</a></p>
<p>Points: 18</p>
<p># Comments: 2</p>
]]></description><pubDate>Mon, 15 Nov 2021 15:30:04 +0000</pubDate><link>https://cppbyexample.com</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=29228526</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29228526</guid></item><item><title><![CDATA[New comment by shadedtriangle in "Show HN: C++ by Example"]]></title><description><![CDATA[
<p>Thanks!</p>
]]></description><pubDate>Wed, 03 Nov 2021 17:07:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=29097438</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=29097438</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29097438</guid></item><item><title><![CDATA[New comment by shadedtriangle in "C++ Coroutines Do Not Spark Joy"]]></title><description><![CDATA[
<p>I think the nice language is in there, but it’s buried within the backwards compatibility as you mentioned.<p>I’ve started putting together <a href="https://cppbyexample.com" rel="nofollow">https://cppbyexample.com</a> as a way for newcomers to learn because pointing them to a reference or outdated examples isn’t helping anyone.</p>
]]></description><pubDate>Mon, 01 Nov 2021 19:25:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=29071709</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=29071709</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29071709</guid></item><item><title><![CDATA[New comment by shadedtriangle in "Show HN: C++ by Example"]]></title><description><![CDATA[
<p>Thanks for the feedback. The site is still young and smart pointers are definitely on the list of things to discuss. I’ve bumped their priority.</p>
]]></description><pubDate>Mon, 01 Nov 2021 19:06:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=29071423</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=29071423</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29071423</guid></item><item><title><![CDATA[Show HN: C++ by Example]]></title><description><![CDATA[
<p>Article URL: <a href="https://cppbyexample.com">https://cppbyexample.com</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=29069819">https://news.ycombinator.com/item?id=29069819</a></p>
<p>Points: 16</p>
<p># Comments: 4</p>
]]></description><pubDate>Mon, 01 Nov 2021 17:20:35 +0000</pubDate><link>https://cppbyexample.com</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=29069819</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29069819</guid></item><item><title><![CDATA[Show HN: Clue – Command Line User Experience – v1.0]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/cusiman7/clue">https://github.com/cusiman7/clue</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=21629934">https://news.ycombinator.com/item?id=21629934</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Mon, 25 Nov 2019 16:45:13 +0000</pubDate><link>https://github.com/cusiman7/clue</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=21629934</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21629934</guid></item><item><title><![CDATA[Show HN: Clue – Command Line User Experience – C++17]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/cusiman7/clue">https://github.com/cusiman7/clue</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=21515236">https://news.ycombinator.com/item?id=21515236</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 12 Nov 2019 16:17:05 +0000</pubDate><link>https://github.com/cusiman7/clue</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=21515236</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21515236</guid></item><item><title><![CDATA[Data Oriented Design and the Structure of Arrays]]></title><description><![CDATA[
<p>Article URL: <a href="https://shadedtriangle.com/articles/2018/02/StructureOfArrays.html">https://shadedtriangle.com/articles/2018/02/StructureOfArrays.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=16356014">https://news.ycombinator.com/item?id=16356014</a></p>
<p>Points: 5</p>
<p># Comments: 0</p>
]]></description><pubDate>Mon, 12 Feb 2018 01:59:35 +0000</pubDate><link>https://shadedtriangle.com/articles/2018/02/StructureOfArrays.html</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=16356014</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=16356014</guid></item><item><title><![CDATA[Show HN: Static Fire. A Git Based Static Blog Engine]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/cusiman7/Static-Fire">https://github.com/cusiman7/Static-Fire</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=15485638">https://news.ycombinator.com/item?id=15485638</a></p>
<p>Points: 5</p>
<p># Comments: 3</p>
]]></description><pubDate>Mon, 16 Oct 2017 18:44:33 +0000</pubDate><link>https://github.com/cusiman7/Static-Fire</link><dc:creator>shadedtriangle</dc:creator><comments>https://news.ycombinator.com/item?id=15485638</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=15485638</guid></item></channel></rss>