<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: ghj</title><link>https://news.ycombinator.com/user?id=ghj</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 17 Apr 2026 05:07:21 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=ghj" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by ghj in "The changing face of post-pandemic New York City"]]></title><description><![CDATA[
<p>That's crazy high isn't it? That's 1 out of 250 people!</p>
]]></description><pubDate>Tue, 19 Dec 2023 17:43:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=38698762</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=38698762</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38698762</guid></item><item><title><![CDATA[New comment by ghj in "A new old kind of R&D lab"]]></title><description><![CDATA[
<p>Will you still be working on educational content on the side? (e.g. updating fast.ai and/or making one off lectures like <a href="https://www.youtube.com/watch?v=jkrNMKz9pWU" rel="nofollow noreferrer">https://www.youtube.com/watch?v=jkrNMKz9pWU</a>)<p>Either way thank you for all the amazing free content you've already put out and good luck on the new endeavor!</p>
]]></description><pubDate>Tue, 12 Dec 2023 18:52:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=38616579</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=38616579</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38616579</guid></item><item><title><![CDATA[New comment by ghj in "Gemini AI"]]></title><description><![CDATA[
<p>AdamantChicken2 (aka AlphaCode2) replied to the thread! <a href="https://codeforces.com/blog/entry/123035?#comment-1091379" rel="nofollow noreferrer">https://codeforces.com/blog/entry/123035?#comment-1091379</a></p>
]]></description><pubDate>Thu, 07 Dec 2023 14:18:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=38556572</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=38556572</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38556572</guid></item><item><title><![CDATA[New comment by ghj in "Gemini AI"]]></title><description><![CDATA[
<p>Some people on codeforces (the competitive programming platform that this was tested on) are discussing the model: <a href="https://codeforces.com/blog/entry/123035" rel="nofollow noreferrer">https://codeforces.com/blog/entry/123035</a><p>Seems like they don't believe that it solved the 3200 rated problem (<a href="https://codeforces.com/contest/1810/problem/G" rel="nofollow noreferrer">https://codeforces.com/contest/1810/problem/G</a>) w/o data leakage<p>For context, there are only around 20 humans above 3200 rating in the world. During the contest, there were only 21 successful submissions from 25k participants for that problem.</p>
]]></description><pubDate>Wed, 06 Dec 2023 19:26:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=38548351</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=38548351</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38548351</guid></item><item><title><![CDATA[Jack the Bipper [video]]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.youtube.com/watch?v=lLGRGZTk51w">https://www.youtube.com/watch?v=lLGRGZTk51w</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=38521818">https://news.ycombinator.com/item?id=38521818</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Mon, 04 Dec 2023 19:21:48 +0000</pubDate><link>https://www.youtube.com/watch?v=lLGRGZTk51w</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=38521818</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38521818</guid></item><item><title><![CDATA[New comment by ghj in "23andMe hackers accessed a whole lot of personal data"]]></title><description><![CDATA[
<p>I remember deciding that I never want to ever have my DNA in any database after watching this talk:<p>DEF CON 25 - John Sotos - Genetic Diseases to Guide Digital Hacks of the Human Genome (2017): <a href="https://www.youtube.com/watch?v=HKQDSgBHPfY" rel="nofollow noreferrer">https://www.youtube.com/watch?v=HKQDSgBHPfY</a></p>
]]></description><pubDate>Mon, 04 Dec 2023 18:11:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=38520742</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=38520742</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38520742</guid></item><item><title><![CDATA[New comment by ghj in "Designing a programming language to speedrun Advent of Code"]]></title><description><![CDATA[
<p>I didn't realize who this was by the title, but this is betaveros, the guy who won 1st place in Advent of Code every single year since 2019: 
<a href="https://clist.by/account/32289/resource/adventofcode.com/" rel="nofollow noreferrer">https://clist.by/account/32289/resource/adventofcode.com/</a></p>
]]></description><pubDate>Tue, 14 Nov 2023 09:11:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=38260864</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=38260864</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38260864</guid></item><item><title><![CDATA[New comment by ghj in "Ask HN: Is anyone using PyPy for real work?"]]></title><description><![CDATA[
<p>Copying from an older comment of mine shilling Pypy <a href="https://news.ycombinator.com/item?id=25595590">https://news.ycombinator.com/item?id=25595590</a><p>PyPy is pretty well stress-tested by the competitive programming community.<p><a href="https://codeforces.com/contests" rel="nofollow noreferrer">https://codeforces.com/contests</a> has around 20-30k participants per contest, with contests happening roughly twice a week. I would say around 10% of them use python, with the vast majority choosing pypy over cpython.<p>I would guesstimate at least 100k lines of pypy is written per week just from these contests. This covers virtually every textbook algorithm you can think of and were automatically graded for correctness/speed/memory. Note that there's no special time multiplier for choosing a slower language, so if you're not within 2x the speed of the equivalent C++, your solution won't pass! (hence the popularity of pypy over cpython)<p>The sheer volume of advanced algorithms executed in pypy gives me huge amount of confidence in it. There was only one instance where I remember a contestant running into a bug with the jit, but it was fixed within a few days after being reported: <a href="https://codeforces.com/blog/entry/82329?#comment-693711" rel="nofollow noreferrer">https://codeforces.com/blog/entry/82329?#comment-693711</a> <a href="https://foss.heptapod.net/pypy/pypy/-/issues/3297" rel="nofollow noreferrer">https://foss.heptapod.net/pypy/pypy/-/issues/3297</a>.<p>New edit from that previous comment: there's now a Legendary Grandmaster (ELO rating > 3000, ranking 33 out of hundreds of thousands) who almost exclusively use pypy: <a href="https://codeforces.com/submissions/conqueror_of_tourist" rel="nofollow noreferrer">https://codeforces.com/submissions/conqueror_of_tourist</a></p>
]]></description><pubDate>Mon, 31 Jul 2023 18:05:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=36946492</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=36946492</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36946492</guid></item><item><title><![CDATA[New comment by ghj in "Algorithmic Complexity of Left-Pad (2016)"]]></title><description><![CDATA[
<p>I've commented about this before, but their supposedly optimized implementation is still garbage:
<a href="https://news.ycombinator.com/item?id=24125312" rel="nofollow">https://news.ycombinator.com/item?id=24125312</a><p>There's no reason to build the repeats up by doubling since the string concatenation of two same string is still linear time.</p>
]]></description><pubDate>Sun, 01 Aug 2021 05:02:28 +0000</pubDate><link>https://news.ycombinator.com/item?id=28023915</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=28023915</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28023915</guid></item><item><title><![CDATA[New comment by ghj in "PyPy Project looking for sponsorship to add support for Apple Silicon"]]></title><description><![CDATA[
<p>PyPy is easily 10x faster than CPython at numeric stuff, which is 99% of these contest problems.<p>For example, using CPython, if you try to make an array of a million ints, you won't get `int[1000000]` in your memory layout. Each int would actually be an object, which is huge and inefficient to reference (they are something like 24+ bytes each).<p>PyPy on the other hand, works as expected.<p>I think the more important point is that PyPy when written like C code, can actually get within 2x of the performance of C code. If it's any slower, python won't be a viable language in competitive programming at all.<p>(CPython is sometimes still used on other platforms like atcoder.jp, but only because they allow third party libraries like numba and numpy which can fill the same role pypy does)</p>
]]></description><pubDate>Thu, 31 Dec 2020 20:13:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=25596638</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=25596638</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=25596638</guid></item><item><title><![CDATA[New comment by ghj in "PyPy Project looking for sponsorship to add support for Apple Silicon"]]></title><description><![CDATA[
<p>If you want more examples of real world use cases, PyPy is pretty stress-tested by the competitive programming community already.<p><a href="https://codeforces.com/contests" rel="nofollow">https://codeforces.com/contests</a> has around 20-30k participants per contest, with contests happening roughly twice a week. I would say around 10% of them use python, with the vast majority choosing pypy over cpython.<p>I would guesstimate at least 100k lines of pypy is written per week just from these contests. This covers virtually every textbook algorithm you can think of and were automatically graded for correctness/speed/memory. Note that there's no special time multiplier for choosing a slower language, so if you're not within 2x the speed of the equivalent C++, your solution won't pass! (hence the popularity of pypy over cpython)<p>The sheer volume of advanced algorithms executed in pypy gives me huge amount of confidence in it. There was only one instance where I remember a contestant running into a bug with the jit, but it was fixed within a few days after being reported: <a href="https://codeforces.com/blog/entry/82329?#comment-693711" rel="nofollow">https://codeforces.com/blog/entry/82329?#comment-693711</a> <a href="https://foss.heptapod.net/pypy/pypy/-/issues/3297" rel="nofollow">https://foss.heptapod.net/pypy/pypy/-/issues/3297</a>.</p>
]]></description><pubDate>Thu, 31 Dec 2020 18:39:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=25595590</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=25595590</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=25595590</guid></item><item><title><![CDATA[New comment by ghj in "Pyston v2: Faster Python"]]></title><description><![CDATA[
<p>Isn't this use case the scientific computing use case? That's a fairly large part of the ecosystem to give up on!<p>I think it's still a relatively low effort way (just need to write a scraper) to create a benchmark on a diverse set of algorithmic tasks that have clearcut criteria on AC/TLE/WA. PyPy is often 10x faster than cpython on these problems (and just 2x slower than equivalent C++ solution) so it will be a much nicer headline too if you can achieve similar performances!<p>Though I can also see how it can be completely irrelevant for server workloads. Pypy's unicode is so slow, some people on codeforces still use pypy2 over pypy3 just to avoid it. And c extensions is so bad on pypy, you can often get better performance on cpython if you need to use numpy.</p>
]]></description><pubDate>Wed, 28 Oct 2020 21:17:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=24924248</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24924248</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24924248</guid></item><item><title><![CDATA[New comment by ghj in "Pyston v2: Faster Python"]]></title><description><![CDATA[
<p>I stalked the author's linkedin and notice he has competitive programming experience:
<a href="https://www.topcoder.com/members/kmod/details/?track=DATA_SCIENCE&subTrack=SRM" rel="nofollow">https://www.topcoder.com/members/kmod/details/?track=DATA_SC...</a>
(and top 15 putnam, ICPC world finals, etc)<p>I wonder if he would be interested in optimizing for purely algorithmic tasks?<p>There are a lot active and successful CPython and PyPy users on <a href="https://atcoder.jp/" rel="nofollow">https://atcoder.jp/</a>. For example:<p><a href="https://atcoder.jp/contests/practice2/submissions?f.Task=&f.LanguageName=Python&f.Status=AC&f.User=maspy" rel="nofollow">https://atcoder.jp/contests/practice2/submissions?f.Task=&f....</a> (the user "maspy" is rated at 2750 using only cpython!!!)<p><a href="https://atcoder.jp/contests/practice2/submissions?f.Task=&f.LanguageName=PyPy3&f.Status=AC&f.User=" rel="nofollow">https://atcoder.jp/contests/practice2/submissions?f.Task=&f....</a> (though pypy is more practical)<p>I am linking to atcoder because their testing data is public so you can rerun contestants solutions using both pyston/cpython/pypy for benchmarking purposes: <a href="https://www.dropbox.com/sh/arnpe0ef5wds8cv/AAAk_SECQ2Nc6SVGii3rHX6Fa?dl=0" rel="nofollow">https://www.dropbox.com/sh/arnpe0ef5wds8cv/AAAk_SECQ2Nc6SVGi...</a><p>Right now, other than a handful of people who figured out how to make numba's jit work, only pypy is viable for competitive programming. I wonder if you can do better than pypy?<p>There are also a few red coders on codeforces.com who mostly use pypy (cpython is completely unviable there because numpy and numba is not installed)<p><a href="https://codeforces.com/submissions/pajenegod" rel="nofollow">https://codeforces.com/submissions/pajenegod</a><p><a href="https://codeforces.com/submissions/conqueror_of_tourist" rel="nofollow">https://codeforces.com/submissions/conqueror_of_tourist</a><p>But codeforces' test cases aren't public anyway so it's not as relevant.</p>
]]></description><pubDate>Wed, 28 Oct 2020 19:46:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=24923310</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24923310</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24923310</guid></item><item><title><![CDATA[New comment by ghj in "When Math Gets Impossibly Hard"]]></title><description><![CDATA[
<p>Soap film is also used to solve the steiner problem: <a href="https://www.youtube.com/watch?v=dAyDi1aa40E" rel="nofollow">https://www.youtube.com/watch?v=dAyDi1aa40E</a></p>
]]></description><pubDate>Thu, 17 Sep 2020 04:34:49 +0000</pubDate><link>https://news.ycombinator.com/item?id=24501214</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24501214</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24501214</guid></item><item><title><![CDATA[New comment by ghj in "GPT-3 generated Nassim Taleb aphorisms"]]></title><description><![CDATA[
<p>GPT-3 can probably be ran deterministically given some a fixed random seed (even if you might need to "reroll" the seed a few times to cherry pick outputs). Then you can just attach the seed as proof of work. Anyone who wants to verify the output can just rerun with the same seeds.</p>
]]></description><pubDate>Tue, 08 Sep 2020 03:12:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=24404902</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24404902</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24404902</guid></item><item><title><![CDATA[New comment by ghj in "Fastcore: A library that extends Python with new features"]]></title><description><![CDATA[
<p>Not a good example because being discontent with c++ for loops is how we got <a href="https://en.cppreference.com/w/cpp/ranges" rel="nofollow">https://en.cppreference.com/w/cpp/ranges</a> (which imo is a good addition to the standard library)<p>But yea, not while you're trying to ship.</p>
]]></description><pubDate>Sun, 06 Sep 2020 00:03:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=24387811</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24387811</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24387811</guid></item><item><title><![CDATA[New comment by ghj in "Fastcore: A library that extends Python with new features"]]></title><description><![CDATA[
<p>I didn't know about functools.singledispatch/singledispatchmethod, it looks really nice!<p>For typing hinting, I've been annotating with @overload which is just god awful ugly. And you still need to switch based on instance type for the actual implementation.<p>I will try this way instead!<p>[1] <a href="https://www.python.org/dev/peps/pep-0484/#function-method-overloading" rel="nofollow">https://www.python.org/dev/peps/pep-0484/#function-method-ov...</a></p>
]]></description><pubDate>Sat, 05 Sep 2020 22:44:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=24387438</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24387438</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24387438</guid></item><item><title><![CDATA[New comment by ghj in "On modern hardware the min-max heap beats a binary heap"]]></title><description><![CDATA[
<p>Yes actually. Both c++ and java have red black trees. In c++ it's std::set, in java it's TreeSet.<p>BST supports log(n) min/max/inserts/removes (among other stuff).</p>
]]></description><pubDate>Thu, 03 Sep 2020 20:29:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=24368522</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24368522</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24368522</guid></item><item><title><![CDATA[New comment by ghj in "On modern hardware the min-max heap beats a binary heap"]]></title><description><![CDATA[
<p>You would probably enjoy reading about an alternative implementation for STL's std::deque, called a tier vector[1][2].<p>It supports O(1) push_front/pop_front/push_back/pop_back/operator[]/at (like you would expect from a deque) but also O(sqrt(N)) insert and remove from middle!!!<p>The paper was from 1999 and 2001 but I only learned about it from a recent HN post[3] where some guy rediscovered it (20 years too late). I still wonder why this design lost to the std::deque we have in STL today.<p>[1] <a href="http://www.cphstl.dk/Report/Deque-first-attempt/cphstl-report-2001-4.pdf" rel="nofollow">http://www.cphstl.dk/Report/Deque-first-attempt/cphstl-repor...</a><p>[2] <a href="https://www.ics.uci.edu/~goodrich/pubs/wads99.pdf" rel="nofollow">https://www.ics.uci.edu/~goodrich/pubs/wads99.pdf</a><p>[3] <a href="https://news.ycombinator.com/item?id=20872696" rel="nofollow">https://news.ycombinator.com/item?id=20872696</a></p>
]]></description><pubDate>Wed, 02 Sep 2020 20:48:39 +0000</pubDate><link>https://news.ycombinator.com/item?id=24357976</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24357976</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24357976</guid></item><item><title><![CDATA[New comment by ghj in "Most-favorited Hacker News posts"]]></title><description><![CDATA[
<p>Dan Luu has a nice curated list: <a href="https://danluu.com/hn-comments/" rel="nofollow">https://danluu.com/hn-comments/</a></p>
]]></description><pubDate>Wed, 02 Sep 2020 17:27:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=24355543</link><dc:creator>ghj</dc:creator><comments>https://news.ycombinator.com/item?id=24355543</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24355543</guid></item></channel></rss>