<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: simonask</title><link>https://news.ycombinator.com/user?id=simonask</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 26 Nov 2026 03:42:39 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=simonask" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by simonask in "In C++, = default and {} are not the same constructor"]]></title><description><![CDATA[
<p>I'm responding so future readers see the answer, because oooh boy am I not engaging with this account.<p>The curly braces shortens the lifespan of the `MutexGuard` so it gets unlocked before the body of the if-statement. Normally, the temporary used in the if-let pattern lives until the end of the if-statement.<p>This wouldn't compile if the value guarded by the Mutex wasn't trivially copyable, but it is.<p>(Note how none of this is UB, just a particularly contrived way to introduce a deadlock.)</p>
]]></description><pubDate>Wed, 25 Nov 2026 23:20:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=50649097</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50649097</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50649097</guid></item><item><title><![CDATA[New comment by simonask in "In C++, = default and {} are not the same constructor"]]></title><description><![CDATA[
<p>All things... except non-nullable pointers, movable values, type punning, ergonomic sum types, and the list is frankly much longer.<p>The only way you could think that C++ lets you do everything is if you've never tried anything else.</p>
]]></description><pubDate>Wed, 25 Nov 2026 18:36:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=50645752</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50645752</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50645752</guid></item><item><title><![CDATA[New comment by simonask in "In C++, = default and {} are not the same constructor"]]></title><description><![CDATA[
<p>You have to know a <i>lot</i> about C++ to tell at a glance what's wrong with this code. I fall in that category, and I can tell you I think that the signature of Sanitize() looks extremely reasonable!<p>What's completely unreasonable here is how easy it is for code that looks reasonable in C++ to be deeply dangerous. This is a perfectly normal piece of code, and it looks like the author is even conscientious about nice things like avoiding too many string copies. We shouldn't be out here defending the absolutely unhinged semantics that led to this.<p>C++ is so extremely hostile that people who try to write good code end up with a very defensive style of programming if they know what they're doing. In my experience, this tends to either almost fully eradicate any performance benefits they were chasing by choosing C++ in the first place, or blow up the time it takes to deliver the product.</p>
]]></description><pubDate>Wed, 25 Nov 2026 18:32:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=50645698</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50645698</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50645698</guid></item><item><title><![CDATA[New comment by simonask in "In C++, = default and {} are not the same constructor"]]></title><description><![CDATA[
<p>No I'm sure it will compile. But will it silently corrupt the customer's data 5 years down the line due to a compiler upgrade that suddenly exposed UB in a rarely taken code path? Much less sure.</p>
]]></description><pubDate>Wed, 25 Nov 2026 18:23:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=50645580</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50645580</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50645580</guid></item><item><title><![CDATA[New comment by simonask in "In C++, = default and {} are not the same constructor"]]></title><description><![CDATA[
<p>Exactly. C++ programmer confidence is a bell curve, where the X axis is skill level.<p>The more you know about programming in C++, the less confident you become that your code is actually correct, because you've seen before how the most seemingly innocuous decisions turned out to be massive UB footguns. Even worse if you know anything about how computers actually work - that's not relevant, C++ like C targets an abstract virtual machine with semantics unlike any computer ever built.<p>The simplest example is signed integer overflow: the bright young student knows all about Two's Complement and mistakenly believes all is well, and the wizened but weary mentor must waste everyone's time to avoid summoning nasal demons.<p>What an unbelievable waste.</p>
]]></description><pubDate>Wed, 25 Nov 2026 18:20:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=50645539</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50645539</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50645539</guid></item><item><title><![CDATA[New comment by simonask in "C++26 is done (again): November 2026 ISO C++ meeting trip report"]]></title><description><![CDATA[
<p>Assertions were always an option. Unless I'm missing some new development, contracts are just a new way to spell assertions. That's good, but it doesn't move the needle at all in terms of memory safety.</p>
]]></description><pubDate>Sun, 22 Nov 2026 23:12:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=50605054</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50605054</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50605054</guid></item><item><title><![CDATA[New comment by simonask in "Fast-Anything: Don't rewrite it in Rust. Rewrite the 5% that's slow"]]></title><description><![CDATA[
<p>Harder to read, easier to understand.</p>
]]></description><pubDate>Sun, 22 Nov 2026 14:32:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=50600063</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50600063</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50600063</guid></item><item><title><![CDATA[New comment by simonask in "Advice for the next 100 Rust GUIs"]]></title><description><![CDATA[
<p>Sure, but that's just because Apple already did the work, and they only have to support Metal and to a limited extent OpenGL anyway.<p>On a Windows desktop, you have D3D11 and below, D3D12, Vulkan, and OpenGL. I believe you can do most of it if you're using GDI, but even Microsoft's own myriad of UI frameworks have spotty support.</p>
]]></description><pubDate>Sun, 22 Nov 2026 13:21:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=50599460</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50599460</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50599460</guid></item><item><title><![CDATA[New comment by simonask in "Advice for the next 100 Rust GUIs"]]></title><description><![CDATA[
<p>It's because it is an unbelievably difficult and quite finicky thing to support, especially if the 3D canvas uses a different rendering API than the UI framework itself.<p>For example, say your UI is drawn with OpenGL, but you need an embedded Vulkan canvas. This takes a huge amount of API-specific code passing API-foreign texture handles and synchronization objects between contexts. You need to do this for every possible combination of APIs, and it's not symmetrical (hosting Vulkan within OpenGL is different from hosting OpenGL within Vulkan).<p>Every desktop-class rendering API does have extensions for dealing with foreign APIs, but it's a lot of work, to the point where rendering into shared memory from a subprocess is sometimes the most viable option.</p>
]]></description><pubDate>Sun, 22 Nov 2026 08:42:51 +0000</pubDate><link>https://news.ycombinator.com/item?id=50597525</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50597525</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50597525</guid></item><item><title><![CDATA[New comment by simonask in "My monitor was cutting my download speed by 75%"]]></title><description><![CDATA[
<p>I hate this. We have a whole operating system doing its absolute best to prioritize hardware resources. Don't be out here throttling yourself.<p>Especially for something like compiling shaders. It literally never happens unless the user is about to go play a game, which is going to consume most resources anyway. To the user, there's nothing more important running right now.</p>
]]></description><pubDate>Sat, 21 Nov 2026 13:55:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=50589253</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50589253</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50589253</guid></item><item><title><![CDATA[New comment by simonask in "Restricting AI agents in mobile operating systems platforms from capturing data"]]></title><description><![CDATA[
<p>The upside is that I never get any spam or scammers on Signal, like we see on all other messaging platforms.<p>Maybe it's just because it's less widespread where I am, but nevertheless.</p>
]]></description><pubDate>Fri, 20 Nov 2026 19:14:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=50580250</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50580250</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50580250</guid></item><item><title><![CDATA[New comment by simonask in "AI is killing All About Berlin"]]></title><description><![CDATA[
<p>I'm European. Describing the Republican Party as "a party [I] don't like" is unbelievably out of touch. The entire world outside of the US sees and says plainly what's happening. And yeah, seen from the outside, the US justice system sure does seem broken in a number of ways.</p>
]]></description><pubDate>Wed, 18 Nov 2026 13:31:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=50546101</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50546101</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50546101</guid></item><item><title><![CDATA[New comment by simonask in "AI is killing All About Berlin"]]></title><description><![CDATA[
<p>> Why did you publish anything, if you didn't want it to be used by third parties?<p>Because 3 years ago, everyone had a reasonable expectation that any publicly available work would be appropriately credited and/or compensated for, in accordance with both copyright law and open source software licenses.<p>You realize that even very permissive software licenses, like MIT or Apache-2.0, still require attribution? Now a few companies are making big bucks selling your ideas (and sometimes verbatim code) without adhering to the terms of that license.<p>The social contract is utterly broken. The legal situation is utterly questionable. The only reason they get away with it is that the inmates are in charge of the asylum in the US.</p>
]]></description><pubDate>Wed, 18 Nov 2026 08:18:29 +0000</pubDate><link>https://news.ycombinator.com/item?id=50543352</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50543352</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50543352</guid></item><item><title><![CDATA[New comment by simonask in "Windows 11 is collecting data on which coding agents and developer tools you use"]]></title><description><![CDATA[
<p>> And some people have a worldview that says wealth is a zero-sum game, therefore anyone rich must have gotten that wealth by exploiting the poor.<p>Wealth is not zero-sum, but it is created by work. When you collect a salary in exchange for work, it is because your employer deems that your work is worth more than your salary. Otherwise, it would not be a sound financial decision to employ you. There is literally no way to rise to the top without paying people less than you think their work is worth.<p>When many thousands of people create value in exchange for less money than their work is worth, that's how you get a billionaire.<p>You might say, "well it's your choice to work", but under capitalism, donating the surplus value of your work to an richer person is the only way to survive. As in, you will literally die if you don't. If you can somehow collect the required capital to start a company, you can try to compete, but now you're donating your surplus value to billionaire investors instead, and with much fewer protections. If you succeed, you are now the one depending on thousands of workers donating the surplus value of their work to you, and the cycle repeats.<p>The only way to break the cycle is to keep the coordination of many humans, but forgo the upwards flow of wealth to a few individuals. We used to do this with taxes, and it's a crude mechanism, but it worked. Collective ownership seems to work even better.</p>
]]></description><pubDate>Tue, 17 Nov 2026 08:43:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=50528990</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50528990</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50528990</guid></item><item><title><![CDATA[New comment by simonask in "Memory Safety Bugs in Rust Standard Library"]]></title><description><![CDATA[
<p>Wait, so you believe that unless the program's behavior is described by an ISO standard document, bugs cannot exist?<p>"It's a feature, not a bug!" taken to the next level. I guess I admire your dedication to obstructing reasonable discourse.</p>
]]></description><pubDate>Sun, 15 Nov 2026 19:39:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=50509952</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50509952</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50509952</guid></item><item><title><![CDATA[New comment by simonask in "Memory Safety Bugs in Rust Standard Library"]]></title><description><![CDATA[
<p>You did move the goal posts, though. Go famously has no protection against data races <i>within the same process</i>, leading to Undefined Behavior.<p>Why did you start talking about multiple processes? That's a much less common way to do concurrency these days.<p>Process-shared memory is an OS-specific feature with wildly diverging semantics, and it's not possible to write a memory-safe portable abstraction over that in any language. Windows comes the closest with mandatory file locking. On Linux there's nothing you can do but pray. Hence, `mmap()` is fundamentally unsafe in Rust, and that's perfectly fine.</p>
]]></description><pubDate>Sun, 15 Nov 2026 19:37:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=50509932</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50509932</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50509932</guid></item><item><title><![CDATA[New comment by simonask in "Memory Safety Bugs in Rust Standard Library"]]></title><description><![CDATA[
<p>Haskell has existed for a long time, yet never had a breakthrough. When I learnt it 20 years ago, it was basically the same as it is now.<p>It's a great language, but it's a research language. Had it been suitable for the types of projects that get written in Rust or C++ (and it very definitely isn't), people would have adopted it a long time ago.<p>I know that there is a bit of persecution complex among haskellers, and I'm sympathetic, but perhaps it's worth looking at the practicalities before drawing conclusions. As a craftsperson, I'm not extremely interested in whatever interesting monads you can come up with, when there are lazily evaluated O(n^2) bombs hiding under the carpet.</p>
]]></description><pubDate>Sun, 15 Nov 2026 19:26:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=50509840</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50509840</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50509840</guid></item><item><title><![CDATA[New comment by simonask in "Memory Safety Bugs in Rust Standard Library"]]></title><description><![CDATA[
<p>> Additionally those toxic vocal evangelists keep forgetting that without C++ there is no Rust compiler.<p>You say "vocal", yet they remain eerily silent in this and every other thread about Rust on HN, as well as /r/rust over on Reddit.<p>If you didn't know better, you could almost think they were imaginary.<p>You seem to have a mental picture of a raging Toxic Rust Evangelist consumed by shame and rage over Rust's Dark Secret: It's using the best codegen backend on the planet (with a compatible license), LLVM, which is written in - gasp - C++!! Dun dun dunnnn!<p>What a dramatic plot twist! I understand how that might feel very engaging.<p>The boring truth is that everybody is pretty fine with LLVM, because no reasonable (or real) person believes that this is a problem. As long as it generates pretty decent code in a reasonable amount of time for all the important architectures, it's a great choice.<p>We're trying to get work done.</p>
]]></description><pubDate>Sun, 15 Nov 2026 19:15:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=50509753</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50509753</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50509753</guid></item><item><title><![CDATA[New comment by simonask in "Memory Safety Bugs in Rust Standard Library"]]></title><description><![CDATA[
<p>I skimmed the topic. This is a forum post seemingly asking an honest if ill-informed question, and it seemed to foster an interesting and informative debate about why Qt isn't a good candidate for being rewritten in Rust.<p>I didn't notice any toxicity from either side at all, though admittedly I did just skim.</p>
]]></description><pubDate>Sun, 15 Nov 2026 11:48:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=50506221</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50506221</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50506221</guid></item><item><title><![CDATA[New comment by simonask in "Memory Safety Bugs in Rust Standard Library"]]></title><description><![CDATA[
<p>> There are many documented cases where it does not work, and there is an active project to change its design so it works in more cases.<p>Are you referring to the implementation or the model? Because there are several bugs in the implementation, but they are very clearly bugs.<p>If you're aware of any actual holes in the type system as it is designed, I think the Rust lang team would be very interested in hearing about your paper!</p>
]]></description><pubDate>Sun, 15 Nov 2026 11:45:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=50506200</link><dc:creator>simonask</dc:creator><comments>https://news.ycombinator.com/item?id=50506200</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50506200</guid></item></channel></rss>