<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: dmitrygr</title><link>https://news.ycombinator.com/user?id=dmitrygr</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sat, 23 May 2026 17:24:19 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=dmitrygr" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by dmitrygr in "Bun support is now limited and deprecated"]]></title><description><![CDATA[
<p>Do you also install pre-alpha revisions of operating systems on your main work pc? No, you do not. Why? Because of the "foreseeable compatibility and security issues".<p>"Well, why don't you install and only then resolve issues if you have those difficulties?" most comments here are asking, in effect<p>Cause you're sane, that's why!<p>Same here. yt-dlp does not owe it to anyone to beta test things. Maybe this bun rewrite will be the best thing since sex, and maybe it won't be. Not wanting to alpha test someone else's shit is sane. And the bugs (if any) would go to yt-dlp, forcing them to debug someone else's alpha software. This is a sane response.</p>
]]></description><pubDate>Sat, 23 May 2026 02:44:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=48244074</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48244074</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48244074</guid></item><item><title><![CDATA[New comment by dmitrygr in "AI is just unauthorised plagiarism at a bigger scale"]]></title><description><![CDATA[
<p>Prior to the invention of copyright, it was not very cheap or easy to make a faithful copy of something. Books had to be type set by hand, before the printing press they had to be copied by hand. Photography of good enough quality to reproduce a painting is very very recent. So is ability to record a play well enough to enjoy it like you are there later.</p>
]]></description><pubDate>Thu, 21 May 2026 15:35:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=48224532</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48224532</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48224532</guid></item><item><title><![CDATA[New comment by dmitrygr in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>Which is ok since it is UB to deref</p>
]]></description><pubDate>Wed, 20 May 2026 13:41:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=48207626</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48207626</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48207626</guid></item><item><title><![CDATA[New comment by dmitrygr in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>No cause that requires initial alignment.</p>
]]></description><pubDate>Wed, 20 May 2026 13:41:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=48207622</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48207622</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48207622</guid></item><item><title><![CDATA[New comment by dmitrygr in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>Without memcpy there is no guarantee that that line produces an invalid pointer<p>I don’t see what spec part would prohibit that cast from validly compiling to<p><pre><code>   BIC r3, r0, #3
</code></pre>
Spec only guaranteed round-trip through char* of properly aligned for type pointers. This doesn’t break that.</p>
]]></description><pubDate>Wed, 20 May 2026 07:50:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=48204478</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48204478</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48204478</guid></item><item><title><![CDATA[New comment by dmitrygr in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>For signed. Unsigned overflow was defined for a while now.</p>
]]></description><pubDate>Wed, 20 May 2026 07:48:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=48204462</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48204462</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48204462</guid></item><item><title><![CDATA[New comment by dmitrygr in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>I do not see there a promise that the cast will produce an invalid pointer, nor anything prohibiting the compiler from rounding the pointer down, thus producing a valid one. “Converted” does not require bit copy. I don’t see how this interpretation is against any section of the spec.</p>
]]></description><pubDate>Wed, 20 May 2026 07:44:39 +0000</pubDate><link>https://news.ycombinator.com/item?id=48204441</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48204441</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48204441</guid></item><item><title><![CDATA[New comment by dmitrygr in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>Fun story: even the latest C spec doesn’t require CHAR_BIT == 8, but it does now codify 2s complement int representation. (IIRC)</p>
]]></description><pubDate>Wed, 20 May 2026 07:12:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=48204199</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48204199</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48204199</guid></item><item><title><![CDATA[New comment by dmitrygr in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>That cast is valid. Spec does not guarantee same bit sequence for resulting pointer and source pointer. But as the cast is explicitly allowed, it is not UB. Compiler is free to round the pointer down. Or up. Or even sideways. All ok. Dereferencing it — indeed not ok. But the cast is explicitly allowed and not UB.<p>Pointer casts changing pointer bit sequences is common on weird platforms (eg: some TI DSPs, PIC, and aarch64+PAC). And it is valid as per spec. Pointer assignment is not required to be the same as memcpy-ing the pointer unto a pointer to another type.<p>You misunderstood the spec. No promises are made that that cast copies the pointer bit for bit (and thus creates an invalid pointer). Therefore, your objection to invalid pointers is null and void.  :)</p>
]]></description><pubDate>Wed, 20 May 2026 07:03:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=48204125</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48204125</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48204125</guid></item><item><title><![CDATA[New comment by dmitrygr in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>I stoped reading about here:<p><pre><code>    > bool parse_packet(const uint8_t* bytes) {
    >   const int* magic_intp = (const int*)bytes;   // UB!
</code></pre>
Author, if you are reading this, please cite the spec section explaining that this is UB. Dereferencing the produced pointer may be UB, but casting itself is not, since uint8_t is ~ char and char* can be cast to and from any type.<p>you might try to argue that uint8_t is not necessarily char, and while it is true that implementations of C can exist where CHAR_BIT > 8, but those do not have uint8_t defined (as per spec), so if you have uint8_t, then it is "unsigned char", which makes this cast perfectly safe and defined as far as i can tell. Of course CHAR_BIT is required to be >= 8, so if it is not >8, it is exactly 8. (In any case, whether uint8_t is literally a typedef of unsigned char is implementation-defined and not actually relevant to whether the cast itself is valid -- it is)</p>
]]></description><pubDate>Wed, 20 May 2026 06:41:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=48203934</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48203934</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48203934</guid></item><item><title><![CDATA[New comment by dmitrygr in "I’ve built a virtual museum with nearly every operating system you can think of"]]></title><description><![CDATA[
<p>posted above.</p>
]]></description><pubDate>Tue, 19 May 2026 23:42:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=48201166</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48201166</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48201166</guid></item><item><title><![CDATA[New comment by dmitrygr in "I’ve built a virtual museum with nearly every operating system you can think of"]]></title><description><![CDATA[
<p>magnet:?xt=urn:btih:24badf9996920185291b39f209cd820aa87fda0d&dn=virtual_os_museum-2026.05.19-full.zip&ws=http%3a%2f%2fdownloads.virtualosmuseum.org%2fvirtual_os_museum-2026.05.19-full.zip&ws=https%3a%2f%2fdownloads.virtualosmuseum.org%2fvirtual_os_museum-2026.05.19-full.zip<p>seeding now. please seed too :)</p>
]]></description><pubDate>Tue, 19 May 2026 23:41:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=48201157</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48201157</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48201157</guid></item><item><title><![CDATA[New comment by dmitrygr in "I’ve built a virtual museum with nearly every operating system you can think of"]]></title><description><![CDATA[
<p>#16, 115/120GB<p>and it is not resuming ...<p><pre><code>      2026-05-19 16:23:03 ERROR 522: <none>.
</code></pre>
#23, 118.5/120GB and going again</p>
]]></description><pubDate>Tue, 19 May 2026 20:51:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=48199463</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48199463</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48199463</guid></item><item><title><![CDATA[New comment by dmitrygr in "I’ve built a virtual museum with nearly every operating system you can think of"]]></title><description><![CDATA[
<p>If my download ever finishes i'll spin up a torrent.<p>So far on retry/resume #12, 97.3/120GB done  (i am live updating this comment as long as i can)</p>
]]></description><pubDate>Tue, 19 May 2026 18:49:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=48197580</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48197580</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48197580</guid></item><item><title><![CDATA[New comment by dmitrygr in "Mini Shai-Hulud Strikes Again: 314 npm Packages Compromised"]]></title><description><![CDATA[
<p>Libc still unaffected. Write native code. Your users will thank you</p>
]]></description><pubDate>Tue, 19 May 2026 15:35:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=48194715</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48194715</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48194715</guid></item><item><title><![CDATA[New comment by dmitrygr in "Hosting a website on an 8-bit microcontroller"]]></title><description><![CDATA[
<p>ENC28J60 + PIC18 was a typical demo microchip gave out doing precisely this 20 years ago</p>
]]></description><pubDate>Mon, 18 May 2026 21:33:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=48186000</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48186000</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48186000</guid></item><item><title><![CDATA[New comment by dmitrygr in "Native all the way, until you need text"]]></title><description><![CDATA[
<p>> You go to the dark side. And you are amazed.<p>And your users hate you and look for alternatives.</p>
]]></description><pubDate>Mon, 18 May 2026 01:13:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=48174662</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48174662</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48174662</guid></item><item><title><![CDATA[New comment by dmitrygr in "Japan Team Successfully Test Engine for Mach 5 Aircraft, Eyeing 2HR Trip to US"]]></title><description><![CDATA[
<p>If you believe Boom, let me know if you'd be interested in a bet. I'll take the "not gonna happen" side of that for any amount.</p>
]]></description><pubDate>Mon, 18 May 2026 01:04:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=48174619</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48174619</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48174619</guid></item><item><title><![CDATA[New comment by dmitrygr in "WinCE64 – Windows CE 2.11 for N64"]]></title><description><![CDATA[
<p>yes, but it was rather choosy with the rest of the hardware</p>
]]></description><pubDate>Fri, 15 May 2026 21:57:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=48154442</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48154442</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48154442</guid></item><item><title><![CDATA[New comment by dmitrygr in "WinCE64 – Windows CE 2.11 for N64"]]></title><description><![CDATA[
<p>probably cause it is just CE 2.11?<p>either you have seen it and seeing it again is pointless, or you do not know what CE is, and the headline means nothing to you</p>
]]></description><pubDate>Fri, 15 May 2026 21:56:44 +0000</pubDate><link>https://news.ycombinator.com/item?id=48154428</link><dc:creator>dmitrygr</dc:creator><comments>https://news.ycombinator.com/item?id=48154428</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48154428</guid></item></channel></rss>