<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: larsnystrom</title><link>https://news.ycombinator.com/user?id=larsnystrom</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 03 Jul 2026 18:46:52 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=larsnystrom" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by larsnystrom in "OpenAI ‘in early talks to give 5% stake to US government’"]]></title><description><![CDATA[
<p>I assume that’s why Altman wants the government as a co-owner.</p>
]]></description><pubDate>Thu, 02 Jul 2026 12:21:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=48760332</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48760332</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48760332</guid></item><item><title><![CDATA[New comment by larsnystrom in "Local Qwen isn't a worse Opus, it's a different tool"]]></title><description><![CDATA[
<p>I’ve only used Opus in GitHub copilot and was hugely underwhelmed. It was barely usable. Are you saying it’s better with the official Anthropic tools?</p>
]]></description><pubDate>Thu, 18 Jun 2026 07:05:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=48581820</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48581820</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48581820</guid></item><item><title><![CDATA[New comment by larsnystrom in "Looking Forward to Postgres 19: It's About Time"]]></title><description><![CDATA[
<p>Sure, from a theoretical perspective, but in practice there’s got to be some sort of order at some point even when storing timespans.</p>
]]></description><pubDate>Fri, 12 Jun 2026 18:20:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=48507574</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48507574</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48507574</guid></item><item><title><![CDATA[New comment by larsnystrom in "Looking Forward to Postgres 19: It's About Time"]]></title><description><![CDATA[
<p>You could also make the price column nullable and just insert a row with price null and the date from which there should be no price.</p>
]]></description><pubDate>Fri, 12 Jun 2026 18:18:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=48507552</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48507552</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48507552</guid></item><item><title><![CDATA[New comment by larsnystrom in "Looking Forward to Postgres 19: It's About Time"]]></title><description><![CDATA[
<p>Why are they storing a time period (start and end date) in the first example? Why not just store the date when the price comes into effect? That would make both overlaps and time travel impossible without using any constraints.</p>
]]></description><pubDate>Fri, 12 Jun 2026 18:03:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=48507374</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48507374</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48507374</guid></item><item><title><![CDATA[New comment by larsnystrom in "Snowboard Kids 2 is 100% Decompiled"]]></title><description><![CDATA[
<p>By that logic VPNs and many other technical solutions are also not solving technical problems, since it is theoretically possible to achieve the same results by other means.</p>
]]></description><pubDate>Sat, 30 May 2026 08:18:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=48333931</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48333931</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48333931</guid></item><item><title><![CDATA[New comment by larsnystrom in "PHP's Oddities"]]></title><description><![CDATA[
<p>Just use array_values() and suddenly you can use int indicies again.</p>
]]></description><pubDate>Sun, 24 May 2026 06:54:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=48255095</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48255095</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48255095</guid></item><item><title><![CDATA[New comment by larsnystrom in "PHP's Oddities"]]></title><description><![CDATA[
<p>Yeah, at the moment we use arrays as anonymous objects and phpdoc+phpstan to verify the types, but I want it in the language. PHP already supports intersection and union types, it really feels like just skipping the naming part and going all in on structural typing is not that far fetched by now.</p>
]]></description><pubDate>Sat, 23 May 2026 19:08:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=48250372</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48250372</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48250372</guid></item><item><title><![CDATA[New comment by larsnystrom in "PHP's Oddities"]]></title><description><![CDATA[
<p>I've been writing PHP for 20 years now. It's my bread and butter.<p>The one thing I really wish PHP would add is structurally typed objects. I really miss it when moving back and forth between PHP and TypeScript.<p>They could call them anonymous objects if they want to (that would be a more culturally correct analogue to anonymous classes).<p>Like, I wish it was possible to do<p><pre><code>  {
    string $mystring = $myvar,
  }
</code></pre>
and have it be equivalent to<p><pre><code>  new class($myvar) {
    public function __construct(
      readonly public string $mystring,
    ) {}
  }
</code></pre>
and then be able to typehint it like<p><pre><code>  function ({ string $mystring } $myobj) {
    echo $myobj->mystring;
  }
</code></pre>
and honestly, why not go all the way and allow type definitions/aliases, something like<p><pre><code>  type myobj_type = { string $mystring };
</code></pre>
That'd be great.</p>
]]></description><pubDate>Sat, 23 May 2026 18:18:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=48249874</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48249874</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48249874</guid></item><item><title><![CDATA[New comment by larsnystrom in "The memory shortage is causing a repricing of consumer electronics"]]></title><description><![CDATA[
<p>I don’t think AI demand is driven by consumers.</p>
]]></description><pubDate>Fri, 22 May 2026 07:39:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=48233109</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48233109</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48233109</guid></item><item><title><![CDATA[New comment by larsnystrom in "Should I run plain Docker Compose in production in 2026?"]]></title><description><![CDATA[
<p>What a great blog post! I have wanted to do rootless docker with subuids, but putting it all together like you have is not easy. Thank you for writing it down!</p>
]]></description><pubDate>Tue, 05 May 2026 18:33:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=48026613</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=48026613</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48026613</guid></item><item><title><![CDATA[New comment by larsnystrom in "Unsigned sizes: A five year mistake"]]></title><description><![CDATA[
<p>My comment was a bit tongue in cheek. Obviously it is a hard problem. But in a profession where we work with machines that literally were made to crunch numbers, and where abstraction is something we deal with daily, why can’t we have a performant abstraction for doing arbitrary calculations? The answer is that to be performant it must be solved in hardware, which would cost more than the hardware we have.<p>So in fact it is not just telling me it’s a hard problem, it’s telling me that the cost-benefit is still not there. It’s like it’s just not a very important problem (in an economic sense). And that is what surprises me, given that computers were made to do arbitrary calculations.</p>
]]></description><pubDate>Sun, 03 May 2026 04:52:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=47993458</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47993458</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47993458</guid></item><item><title><![CDATA[New comment by larsnystrom in "Unsigned sizes: A five year mistake"]]></title><description><![CDATA[
<p>I don’t understand how dealing with numbers correctly is not a solved problem in computer engineering by now.</p>
]]></description><pubDate>Sat, 02 May 2026 20:49:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=47990344</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47990344</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47990344</guid></item><item><title><![CDATA[New comment by larsnystrom in "Java is fast, code might not be"]]></title><description><![CDATA[
<p>I remember now what the problem was. I was instantiating a new ArrayList in a loop. The solution to the performance issue was to use a Vector instead. I was used to just writing PHP arrays when I wanted a list of something, and since they’re dynamically sized I thought the analogue in Java was ArrayList, which is also dynamically sized. But somehow that was extremely unperformant in Java.</p>
]]></description><pubDate>Wed, 01 Apr 2026 07:37:51 +0000</pubDate><link>https://news.ycombinator.com/item?id=47597988</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47597988</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47597988</guid></item><item><title><![CDATA[New comment by larsnystrom in "Java is fast, code might not be"]]></title><description><![CDATA[
<p>I remember writing Java for our introductory programming course at university around 2010. I was already familiar with object oriented programming in PHP at the time, so I just wrote the Java code like I would write PHP. I was absolutely astounded at the poor performance of the Java app. I asked one of our tutors and I can still remember him looking at the code and saying something along the lines of ”oh, you’re instantiating objects in a loop, that’s obviously going to be slow”. Like, what? If I can do this performantly in freakin PHP, how can Java, the flagship of OOP, not have fast instantiation of objects? I’m still shaking my head thinking about it.</p>
]]></description><pubDate>Fri, 20 Mar 2026 19:11:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=47459238</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47459238</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47459238</guid></item><item><title><![CDATA[New comment by larsnystrom in "Edge.js: Run Node apps inside a WebAssembly sandbox"]]></title><description><![CDATA[
<p>Maybe I’m just dense, but it says the fs module is fully supported, so what happens when I try to read a file from disk if the app is fully sandboxed?</p>
]]></description><pubDate>Tue, 17 Mar 2026 19:45:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=47417323</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47417323</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47417323</guid></item><item><title><![CDATA[New comment by larsnystrom in "If you thought the code writing speed was your problem; you have bigger problems"]]></title><description><![CDATA[
<p>I can really relate to this. At the same time I’m not convinced cycle time always trumps throughput. Context switching is bad, and one solution to it is time boxing, which basically means there will be some wait time until the next box of time where the work is picked up. Doing time boxing properly lowers context switching, increases throughput but also increases latency (cycle time). It’s a trade-off. But of course maybe time boxing isn’t the best solution to the problem of context switching, maybe it’s possible to figure out a way to have the cookie and eat it. And maybe different circumstances require a different balance between latency and throughput.</p>
]]></description><pubDate>Tue, 17 Mar 2026 19:31:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=47417136</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47417136</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47417136</guid></item><item><title><![CDATA[New comment by larsnystrom in "Notes on writing Rust-based Wasm"]]></title><description><![CDATA[
<p>WASM is kind of like Java bytecode, right? A compilation target which requires a runtime? But better sandboxed?</p>
]]></description><pubDate>Sun, 08 Mar 2026 12:07:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=47296681</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47296681</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47296681</guid></item><item><title><![CDATA[New comment by larsnystrom in "Tesla registrations crash 17% in Europe as BEV market surges 14%"]]></title><description><![CDATA[
<p>It’s still possible to order new and original parts for SAAB models, almost 20 years after they went under. The spare parts are made by a separate company which is still going.</p>
]]></description><pubDate>Tue, 24 Feb 2026 19:41:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=47141768</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47141768</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47141768</guid></item><item><title><![CDATA[New comment by larsnystrom in "Sub-$200 Lidar could reshuffle auto sensor economics"]]></title><description><![CDATA[
<p>Human eyes are much better than cameras at dealing with dynamic range. They’re also attached to a super-computer which has been continuously trained for many years to determine distances and classify objects.</p>
]]></description><pubDate>Mon, 23 Feb 2026 12:28:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=47121441</link><dc:creator>larsnystrom</dc:creator><comments>https://news.ycombinator.com/item?id=47121441</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47121441</guid></item></channel></rss>