<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: senfiaj</title><link>https://news.ycombinator.com/user?id=senfiaj</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sun, 24 May 2026 20:45:12 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=senfiaj" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by senfiaj in "PHP's Oddities"]]></title><description><![CDATA[
<p>> Despite all the critiquing I've done in this article, I still think the amount of hate PHP gets is undeserved.<p>As a person who also codes in PHP at work, I still dislike the language syntax part. JS/TS also has terrible parts, but IMHO, compared to PHP, I don't face them as much and they are much easier to avoid when you have enough knowledge and stick to good parts.<p>As the author mentioned, in my experience PHPs arrays are quite annoying to work with, and you can't do anything about them. This C-like procedural syntax for array and string manipulations makes discoverability  harder. Some functions (in_array, implode, shuffle, trim, stripos, lcfirst, etc) still have inconsistent namings despite many of them have a standard prefix in their name, such as array_ or str_.<p>I mean OK, PHP is still widely used, has new features and is still and far from dying (mostly for reasons other than syntax), but please don't pretend that it hasn't some issues with basic stuff which are still there even in 8.x version.<p>Just to not write a full article, you can read here: <a href="https://waspdev.com/articles/2025-06-12/my-honest-opinion-about-php" rel="nofollow">https://waspdev.com/articles/2025-06-12/my-honest-opinion-ab...</a><p>If interested, I also listed some annoyances of JS: <a href="https://waspdev.com/articles/2025-04-16/what-i-dislike-in-javascript" rel="nofollow">https://waspdev.com/articles/2025-04-16/what-i-dislike-in-ja...</a></p>
]]></description><pubDate>Sat, 23 May 2026 22:22:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=48252170</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48252170</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48252170</guid></item><item><title><![CDATA[Printf Is a Secret Virtual Machine – and a Giant Security Hole [video]]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.youtube.com/watch?v=kdnN0kk7MS0">https://www.youtube.com/watch?v=kdnN0kk7MS0</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48248630">https://news.ycombinator.com/item?id=48248630</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Sat, 23 May 2026 15:44:33 +0000</pubDate><link>https://www.youtube.com/watch?v=kdnN0kk7MS0</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48248630</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48248630</guid></item><item><title><![CDATA[New comment by senfiaj in "'It is incredible': How AI is transforming mathematics"]]></title><description><![CDATA[
<p>> “Part of the mystery is, we don’t know what makes a human mathematician good at math,” Litt says, adding that it is unclear whether humans have some “secret sauce” that makes them uniquely creative.<p>My theory is that AI neural network is trained/formed differently. Humans neural network, which was formed over millions years of evolution, solved survival problems. This also gave humans some side effects, including some types of intuitions. Also humans are much more free, they don't have to obey to a degree AI does, they are able to actively explore / experiment in this world.<p>AI hasn't that, AI is just fed with tons of selected data and is trained to obey commands. It's neural structure is also different. They are more like aliens taught about our world but at the same time they have to obey us without living in it normally. Like obedient kids who cram to get good grades. This is why AI humor often falls flat because it lacks true emotional intelligence. This is why it's so hard for AI to generate novel things.</p>
]]></description><pubDate>Tue, 19 May 2026 15:02:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=48194287</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48194287</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48194287</guid></item><item><title><![CDATA[New comment by senfiaj in "Regex Chess: A 2-ply minimax chess engine in 84,688 regular expressions"]]></title><description><![CDATA[
<p>> There are people who navigate the web with JavaScript turned off, so those experiments do have practical applications.<p>This is practical (and necessary) for relatively basic stuff, such as text content, navigation, basic form / input validation, and things like that. But when people write more complicated things (requiring state management, logical branches, etc), like games, 3d programs, etc, it's much more challenging (also can be sub-optimal) and requires more creativity. I mean they are more of a demo art rather than some strong necessity.</p>
]]></description><pubDate>Tue, 19 May 2026 14:15:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=48193621</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48193621</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48193621</guid></item><item><title><![CDATA[New comment by senfiaj in "Regex Chess: A 2-ply minimax chess engine in 84,688 regular expressions"]]></title><description><![CDATA[
<p>> Maybe its intentional badness kind of makes it art?<p>I guess it's the whole point of such type of blog posts. Similarly, some people write complicated interactive web pages without using JS, like this <a href="https://benjaminaster.com/css-minecraft/" rel="nofollow">https://benjaminaster.com/css-minecraft/</a>. But if you look at the HTML / CSS code size, it's usually huge, but still requires creativity to do that because of constraints. Obviously, it's not something practical or even optimal.</p>
]]></description><pubDate>Tue, 19 May 2026 13:00:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=48192732</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48192732</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48192732</guid></item><item><title><![CDATA[New comment by senfiaj in "Fecal transplants for autism deliver success in clinical trials"]]></title><description><![CDATA[
<p>Maybe. IMHO there is also a microbiome hype train in the recent years. Most of these microbiome studies aren't considering a lot confounding factors. Here is a paper: <a href="https://www.cell.com/cell/fulltext/S0092-8674(21)01231-9" rel="nofollow">https://www.cell.com/cell/fulltext/S0092-8674(21)01231-9</a>  that found only very little evidence for association between ASD and gut microbiome.</p>
]]></description><pubDate>Sat, 16 May 2026 14:50:00 +0000</pubDate><link>https://news.ycombinator.com/item?id=48160748</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48160748</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48160748</guid></item><item><title><![CDATA[New comment by senfiaj in "Fecal transplants for autism deliver success in clinical trials (2019)"]]></title><description><![CDATA[
<p>I would still be cautious with such findings. Many autistic people are picky eaters, also some of them have issues with peristalsis. This might affect the microbiome as well. While it's plausible that it might help a subset of people, we should not overgeneralize since autism is a very heterogeneous condition, usually with pronounced genetic predisposition. Overall, it doesn't seem to be a cure.</p>
]]></description><pubDate>Sat, 16 May 2026 13:50:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=48160273</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48160273</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48160273</guid></item><item><title><![CDATA[New comment by senfiaj in "Explore Wikipedia Like a Windows XP Desktop"]]></title><description><![CDATA[
<p>I guess XP (x64) could run like this on modern PCs.</p>
]]></description><pubDate>Fri, 15 May 2026 10:54:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=48147050</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48147050</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48147050</guid></item><item><title><![CDATA[New comment by senfiaj in "Building a web server in aarch64 assembly to give my life (a lack of) meaning"]]></title><description><![CDATA[
<p>IMHO, for servers IO (FS/DB, network, etc) is usually a greater bottleneck. Microoptimizations make sense only for CPU bound problems.</p>
]]></description><pubDate>Mon, 11 May 2026 15:36:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=48096427</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48096427</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48096427</guid></item><item><title><![CDATA[New comment by senfiaj in "Distributing Mac software is increasing my cortisol levels"]]></title><description><![CDATA[
<p>Yes, but doesn't run locally.</p>
]]></description><pubDate>Sun, 10 May 2026 18:52:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=48086675</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48086675</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48086675</guid></item><item><title><![CDATA[New comment by senfiaj in "Windows quality update: Progress we've made since March"]]></title><description><![CDATA[
<p>Maybe UWP and similar stuff isn't that popular, but about WSL?</p>
]]></description><pubDate>Mon, 04 May 2026 12:29:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=48007861</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48007861</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48007861</guid></item><item><title><![CDATA[New comment by senfiaj in "Windows quality update: Progress we've made since March"]]></title><description><![CDATA[
<p>In ideal world, but it's too late. The codebase is old. It's very difficult to backport/reimplement/integrate features (tons of APIs, kernel features, etc) that new software relies on. Also, because of compatibility you can't remove all the mess.</p>
]]></description><pubDate>Sun, 03 May 2026 20:08:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=48000866</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48000866</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48000866</guid></item><item><title><![CDATA[New comment by senfiaj in "Windows quality update: Progress we've made since March"]]></title><description><![CDATA[
<p>IMHO the last truly brilliant and consistent version was 7. Ideally MS should do such improvements on Windows 7. Sadly, Windows developers also have to deal with the mess created during Windows 8/8.1/10/11.</p>
]]></description><pubDate>Sun, 03 May 2026 19:58:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=48000780</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=48000780</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48000780</guid></item><item><title><![CDATA[New comment by senfiaj in "You can beat the binary search"]]></title><description><![CDATA[
<p>> The complexity of binary search in terms of "search" (comparison) operations is exactly log_2(n)+1, not just O(n)<p>> So not exactly "n" as in O(n).<p>For large enough inputs the algorithm with better Big O complexity will eventually win (at least in the worst cases). Yes, sometimes it never happens in practice when the constants are too large. But say 100 * n * log(n) will eventually beat 5 * n for large enough n. Some advanced algorithms can use algorithms with worse Big O complexity but smaller constants for small enough sub-problems to improve performance. But it's more like to optimization detail rather than a completely different algorithm.<p>> This algorithm just uses modern and current processor architecture artifacts to "improve" it on arrays of up to 4096<p>Yes, that's my point. It's basically "I made binary search for integers  X times faster on some specific CPUs". "Beating binary search" is somewhat misleading, it's more like "microptimizing binary search".</p>
]]></description><pubDate>Thu, 30 Apr 2026 18:17:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=47966304</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=47966304</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47966304</guid></item><item><title><![CDATA[New comment by senfiaj in "You can beat the binary search"]]></title><description><![CDATA[
<p>For me it's slightly misleading because it's almost like saying "I wrote a faster quicksort implementation, so it beats quicksort!". In this case the binary search fundamental idea of "divide and conquer" is still there, the article just does microptimizations (which seem to be not very portable and are less relevant/applicible for more complex data structures) in order to reduce the constant part.<p>Yes, algorithmic complexity is theoretical, it often ignores the real world constants, but they are usually useful when comparing algorithms for larger inputs, unless we are talking about "galactic algorithms" with insanely large constants.</p>
]]></description><pubDate>Thu, 30 Apr 2026 17:47:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=47965908</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=47965908</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47965908</guid></item><item><title><![CDATA[New comment by senfiaj in "You can beat the binary search"]]></title><description><![CDATA[
<p>I guess it matters if you have to do lookup in a tight loop. If you do this occasionally, I think it's not worth it, especially for complex objects with custom comparators. The algorithm is still O(log(n)) just a more advanced "divide and conquer" with smaller constant.</p>
]]></description><pubDate>Thu, 30 Apr 2026 17:26:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=47965631</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=47965631</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47965631</guid></item><item><title><![CDATA[New comment by senfiaj in "You can beat the binary search"]]></title><description><![CDATA[
<p>The title is slightly misleading, I mean yes, naive binary search might have larger constant but the algorithm is still O(log(n)). This is still some "divide and conquer" style algorithm just with bunch of CPU specific optimizations. Also this works well with simple data structures, like integers, with more complex objects (custom comparators) it matters less.</p>
]]></description><pubDate>Thu, 30 Apr 2026 17:10:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=47965455</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=47965455</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47965455</guid></item><item><title><![CDATA[New comment by senfiaj in "What async promised and what it delivered"]]></title><description><![CDATA[
<p>> Python already had threads<p>But for a long time (I think even till today despite that there is as an optional free-threaded build) CPython used Global Interpreter Lock (GIL) which paradoxically makes the programs run slower when more threads are used. It's a bad idea to allow to share all the data structure across threads in high level safe programming languages.<p>JS's solution is much better, it has worker threads with message passing mechanisms (copying data with structuredClone) and shared array buffers (plain integer arrays) with atomic operation support. This is one of the reasons why JavaScript hasn't suffered the performance penalty as much as Python has.</p>
]]></description><pubDate>Sat, 25 Apr 2026 20:56:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=47904482</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=47904482</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47904482</guid></item><item><title><![CDATA[Programming used to be more fun [video]]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.youtube.com/watch?v=scmJs75cHcw">https://www.youtube.com/watch?v=scmJs75cHcw</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47874561">https://news.ycombinator.com/item?id=47874561</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Thu, 23 Apr 2026 11:43:06 +0000</pubDate><link>https://www.youtube.com/watch?v=scmJs75cHcw</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=47874561</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47874561</guid></item><item><title><![CDATA[New comment by senfiaj in "The RAM shortage could last years"]]></title><description><![CDATA[
<p>How efficient is AI at reducing RAM consuption?</p>
]]></description><pubDate>Sun, 19 Apr 2026 23:58:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=47828845</link><dc:creator>senfiaj</dc:creator><comments>https://news.ycombinator.com/item?id=47828845</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47828845</guid></item></channel></rss>