<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: dalke</title><link>https://news.ycombinator.com/user?id=dalke</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 25 Nov 2026 09:08:37 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=dalke" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by dalke in "Tim Peters has died"]]></title><description><![CDATA[
<p>I posted my thoughts in a parallel thread, at <a href="https://news.ycombinator.com/item?id=50451689">https://news.ycombinator.com/item?id=50451689</a> .<p>I focus on how I learned to be a better software developer from him, in both writing better code and supporting others.</p>
]]></description><pubDate>Wed, 11 Nov 2026 10:49:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=50451911</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=50451911</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50451911</guid></item><item><title><![CDATA[New comment by dalke in "Tim Peters has died"]]></title><description><![CDATA[
<p>In the 1990s I was a novice developer, though I considered myself a hotshot because I was better than those around me in college and grad school.<p>I was an active participant in the comp.lang.python Usenet channel in the late 1990s.<p>I learned much from reading Tim Peters' posts. To many, including me, he was affectionately referred to as "Uncle Timmy."<p>One of the things I learned was that I still had much to learn about the art of programming.<p>Much of the little I know about numerical methods comes from reading his posts. It was fun to read his stories about Kendall Square Research and the (for me) old days of computing.<p>I remember posting questions about things I didn't understand, which he figured out and explained. [1]<p>I remember bringing up concepts I thought were specialized and esoteric, only to find that it was actually just my lack of experience. He gently corrected misapprehensions like mine. [2]<p>He wrote a lot on comp.lang.python. If I recall correctly, at the 7th International Python Conference in Houston, November 1998, there was Festschrift in his honor. He would use <wink> in his messages, and often end with something like "let's-hear-it-for-lambda-in-curly-assignment-stmts-ly y'rs - tim" (that's from the posting where he outlines the Zen of Python). I wondered if they were collected by looking for messages containing an '-ly' only to have Andrew Kuchling remind me about the "From" header. <wink><p>Here is Guido van Rossum starting the thread on "In Memoriam: Tim Peters", at <a href="https://discuss.python.org/t/in-memoriam-tim-peters-1952-2026/110028" rel="nofollow">https://discuss.python.org/t/in-memoriam-tim-peters-1952-202...</a> .<p>Here's an interview of him at PyCon 2006, <a href="https://www.youtube.com/watch?v=1wAOy88WxmY" rel="nofollow">https://www.youtube.com/watch?v=1wAOy88WxmY</a><p>[1] In one case, I was parsing a file format where a field was usually three spaces, but was sometimes an integer. I couldn't figure out why one parser was so much faster than the other. The answer was that one tested for three spaces first, and if that failed tested for the int, while the other did the int test first.<p>Yes, this is something a senior developer knows. I bring it up now to highlight how hotshot-me didn't have that experience, learned that experience, and learned it from someone who was kind about sharing his knowledge.<p>[2] I was doing bioinformatics back then, and learned about dynamic programming as way to do sequence alignment. I didn't think others knew about the technique, and thought I was bringing esoteric new information to the discussion. Uncle Timmy had used dynamic programming techniques for speech-to-text software at Dragon Systems, and politely pointed out it was more widely known. He also implemented Python's 'difflib'.</p>
]]></description><pubDate>Wed, 11 Nov 2026 10:14:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=50451689</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=50451689</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50451689</guid></item><item><title><![CDATA[New comment by dalke in "Agentic Cheminformatics with Google Antigravity"]]></title><description><![CDATA[
<p>I was at the recent RDKit User Group meeting. One of the issues was long-term funding. Another was leadership succession.<p>The video shows Google's project is heavily dependent on RDKit. How much funding are they willing to contribute to RDKit?<p>I am not a pharmaceutical chemist. I am a nitpicking cheminformatics software developer.<p>At 2:07 it shows the cohort "Lorlatinib_Macrocycle" has a topology of "Macrocyclic (12 ≤ ring ≤ 16)" but the Key Structure Hallmarks are "12- to 15-member macrocyclic rings". Why is one 16 and the other 15?<p>I assume J Med Chem 2014 is <a href="https://pubs.acs.org/jmcmar/article-abstract/57/11/4720/1301049/Discovery-of-10R-7-Amino-12-fluoro-2-10-16" rel="nofollow">https://pubs.acs.org/jmcmar/article-abstract/57/11/4720/1301...</a> . I can see table 1, "Potency and ADME of Compound 1 and Other Key Acyclic Leads" which has the 6a-6i, for example. I think there's a mistake at 2:10 for the molecular formula of Compound 7a (Ether Macrocycle). The video says it's C19 but I only see 18 carbons. I looked at Scheme 1, and again only see 18 carbons (note the n=0 for compound 7a). I think it's supposed to be 7b?<p>There is it again, at 2:41 showing that compound 7a is CHEMBL3286814 which <a href="https://www.ebi.ac.uk/chembl/explore/compound/CHEMBL3286814" rel="nofollow">https://www.ebi.ac.uk/chembl/explore/compound/CHEMBL3286814</a> says is indeed C18, not C19.<p>At 3:22 it mentions "Chemical Similarity (Tanimoto ECFP4) then later at 3:37 it uses Morgan fingerprints. Are these generated using two different tools? While RDKit's Morgan r=2 is conceptional identical to ECFP4, saying "ECFP" sometimes implies using ChemAxon, or perhaps CDK, which use "ECFP" + diameter rather than RDKit's "Morgan" + radius. The latter timestamp doesn't specify the Morgan radius, which is important. (I'll assume also that it's using RDKit's binary Morgan fingerprints, and not the less commonly used count Morgan fingerprints, since that's the usual practice.)<p>At 3:27 they describe their matched molecular pairs. What approach do they use? I wrote most of the MMP package "mmpdb", building on previous work by Hussain and Rea, but there are others. The example shows "Acyclic-to-Macrocyclic Ring Closure Pairs", which is not something my code could handle.<p>At 3:29 they mention "MMPA analysis". Since the "A" in "MMPA" means "A"nalyis, that's like saying PIN number. ;)</p>
]]></description><pubDate>Tue, 03 Nov 2026 22:04:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=50358901</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=50358901</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50358901</guid></item><item><title><![CDATA[New comment by dalke in "Python sets and dictionaries can have quadratic-time performance"]]></title><description><![CDATA[
<p>Yes, the Python documentation at <a href="https://docs.python.org/3/library/time-complexity.html#dict" rel="nofollow">https://docs.python.org/3/library/time-complexity.html#dict</a> describes it:<p>"The times listed for dict objects are average-case times, as they assume the hash function for the objects is sufficiently robust to make collisions uncommon. They also assume the keys are well-distributed among the set of possible keys. In the worst case, when every key hashes to the same value, each of the O(1) operations below instead takes O(n) time. They also assume that hashing and comparing a key is O(1)."<p>Lemire's example uses a case where all of the keys hash to the same value:<p><pre><code>   >>> M = (1 << 61) - 1
   >>> [hash(M*i) for i in range(10)]
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]</code></pre></p>
]]></description><pubDate>Sun, 06 Sep 2026 08:03:44 +0000</pubDate><link>https://news.ycombinator.com/item?id=49584304</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=49584304</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49584304</guid></item><item><title><![CDATA[New comment by dalke in "Digital identity management in Norway is a success but also a disaster"]]></title><description><![CDATA[
<p>I function by being stubborn, and having a wife who can help with a few things.<p>If BankID worked on a free OS then that would be nice for a few things (like paying taxes, which I still do on paper), but other things are both BankID <i>and</i> Apple/Google smartsphone.<p>For example, I've made it very clear to my kids' school that I do not and will not get a smartphone, so I cannot use their app (based on Google Classroom). It took months, but now they send me the weekly newsletter by email, and I can call to say if the kids are sick. While my wife can handle the scheduling changes for fritids.<p>I also have the advantage of living in the center of town, a block from the centralized government services office. The queue is very short most of the time. I also live above my bank, though I'm thinking of switching to Handelsbanken, which is about two blocks, since I've seen how Swedbank is deskilling their local branches.<p>For the bank I still use a bank dosa. For bus travel I use kontoladdning, though the local transit system wants to replace that with a dependency on (US-based) bank cards - something I think is bad for the unbanked (including youths), visitors from certain countries, and bad for Swedish security as it lets the US restrict someone's ability to use mass transit. For health care I call the local medical center.<p>I work for myself, through my own aktiebolag, and my accountant handles most of the bookkeeping side of things. My customers are all outside of Sweden, so they don't care about BankID.<p>A few years ago it was hard to explain to people why I didn't use US-based systems. Over the last couple of years it's become a lot easier, for obvious reasons.<p>There are still enough old people and others that at least essential services don't require BankID. My wife worked with Ukrainian refugees who had a work permit but couldn't get a bank account. The hotel paid their salaries in cash. That's several levels harder than I have to deal with.<p>You'll be surprised at how many places still take cash, or will do a faktura, or accept simple bank transfer like we all did 20 years ago.</p>
]]></description><pubDate>Sat, 30 May 2026 18:54:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=48339503</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=48339503</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48339503</guid></item><item><title><![CDATA[New comment by dalke in "Digital identity management in Norway is a success but also a disaster"]]></title><description><![CDATA[
<p>I'm in Sweden. I want to go back to the old ways. I hate how much the US controls our daily life. I hate loss of privacy and the presumption that everyone has a Google or Apple account, and are subject to their whims with little real alternative.<p>So I stopped using BankID over two years ago, and do most of my daily life in cash.</p>
]]></description><pubDate>Fri, 29 May 2026 18:28:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=48327301</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=48327301</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48327301</guid></item><item><title><![CDATA[New comment by dalke in "Tristan Davey's Punch Card Archive"]]></title><description><![CDATA[
<p>You should take a look at the Bourne book, if you can get hold of a copy. It's an amazing book which draws on the generation or more experience in working with mechanical systems, and the first generation experience in using digital methods. Here's what it says about the code you mentioned, compared to the triangle code.<p>"From a space standpoint, one of the most efficient and most commonly used schemes is the 7-4-2—1 code, which only requires four holes to represent any number between 0 and 14 (Fig. 5-6f). Normally the four holes are only used to represent the digits 0 to 9, with zero represented by an unnotched code field. This introduces some ambiguity since a field with no punches in it may represent either missing data or a zero digit. The 1 hole will be punched every time that the numbers 1, 3, 5, or 8 are punched. If there was a need to search the file to select the cards which were punched with a 1, then a single needle pass in the 1 hole would also drop out all the cards which were punched with a 3, 5, or 8. Similarly, a single needle pass in the 4 hole would also select the cards notched with 5’s and 6’s. For this reason, this particular code does not lend itself to rapid selective searches. However, it is extremely useful for applications that require sorting cards into sequence."<p>"Several other coding schemes that also permit relatively rapid serial sorting are available. These schemes, at the cost of using more code positions than the 7-4—2—1 code, incorporate a triangular display on the card in order to simplify the punching and recognition by the user (Fig. 5—6k, l). Two holes are punched for every digit. The positions to be punched are the ones whose guidelines intersect at the desired digit on the printed display. Serial sorting is performed in the same manner as for the 7—4—2-1 code except that one more hole must be needled. One efficient triangular display scheme uses four code positions with a double-row card (Fig. 5-6m)."<p>Here's a copy of the section on encoding methods - <a href="http://dalkescientific.com/opto_Bourne.pdf" rel="nofollow">http://dalkescientific.com/opto_Bourne.pdf</a> .<p>I got really into edge-notched cards about 10 years ago. I made my own cards for handling chemical data. You can see them at 43:41 of my talk at <a href="https://youtu.be/y6dUkCxlrd8" rel="nofollow">https://youtu.be/y6dUkCxlrd8</a> . I also visited the Calvin Mooers archive at UMN because of his work in Zatocoding, Chemical Zatocoding, connection tables, and substructure search (Zatopleg). He mostly published as white papers from his own company, which makes it hard to find copies anywhere else.</p>
]]></description><pubDate>Sat, 23 May 2026 13:55:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=48247726</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=48247726</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48247726</guid></item><item><title><![CDATA[New comment by dalke in "Tristan Davey's Punch Card Archive"]]></title><description><![CDATA[
<p>There are two books you should take a look at.<p>"Methods of Information Handling", Charles Bourne - <a href="https://archive.org/details/methodsofinforma0000unse/page/n5/mode/2up" rel="nofollow">https://archive.org/details/methodsofinforma0000unse/page/n5...</a> (not  available to read)<p>"Punched Cards: Their Applications to Science and Industry", <a href="https://archive.org/details/punchedcardsthei0000robe" rel="nofollow">https://archive.org/details/punchedcardsthei0000robe</a> (can be checked out)<p>The first of these is a much better book.<p>They show a number of ways to encode values, such as a 5-hole triangle code, where the "O" in the following indicates a hole:<p><pre><code>    O   O   O   O   O
      9   5   2   0
        8   4   1
          7   3
            6
</code></pre>
To encode the value "8", notch out the holes (indicated with "U") which cross to 8 (indicated with "\" and "/"), like this:<p><pre><code>    U   O   U   O   O
     \9   5/  2   0
       \8/  4   1
          7   3
            6
</code></pre>
This lets you encode 10-digit values with 5 holes and two needles -- remember, inserting the needles takes time. (And there were all sorts of devices made to minimize that time.)<p>There were also extensions of these to handle names, used to search small (< ~10,000) literature collections, and more.<p>The most mathematically sophisticated is likely Zatocoding, a superimposed coding method related to Bloom filters.<p>The Bourne book goes into these variations in detail.<p>Here's a video of someone scanning in edge-notched cards for bird identification. <a href="https://youtu.be/MBwP3YOxw3I" rel="nofollow">https://youtu.be/MBwP3YOxw3I</a><p>About 10 years ago I really go into the topic and made some cards of my own, using a cutting machine to make each card, precut, from an SVG.</p>
]]></description><pubDate>Fri, 22 May 2026 07:35:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=48233087</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=48233087</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48233087</guid></item><item><title><![CDATA[New comment by dalke in "Almost half of Gen Z women want to be Trad wives"]]></title><description><![CDATA[
<p>Being a father and raising good kids is an invaluable role in society.<p>As an immigrant in Sweden, I love that I had so much paid parental leave to be with my babies.<p>In the US, where I used to live, parental leave is a joke. There are generations of people brainwashed to believe fathers aren't involved in taking children to the park, changing diapers, and so on, and brainwashed to think that seeing single men in children's spaces is abnormal and suspicious.<p>I don't see what can be more empowering than letting both parents have time with the new life they brought into the world, and working together to watch the child grow up.<p>What career is going to give that level of satisfaction to men?<p>After the Butlerian Jihad, my backup plan is to work at the preschool.<p>My sister thought to be a stay-at-home mother until the kids started kindergarten, then changed her mind after a few years as she found it so frustrating and tedious. My wife and I looked forward to when our kids started preschool, so I could do work and she could take classes. Neither of us are defined by having kids.<p>There's a reason Valium was "Mother’s Little Helper" in the trad-wife home of the 1960s!</p>
]]></description><pubDate>Sun, 05 Apr 2026 14:47:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=47650006</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47650006</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47650006</guid></item><item><title><![CDATA[New comment by dalke in "Ask HN: How do you deal with people who trust LLMs?"]]></title><description><![CDATA[
<p>You might consider prefixing with 'ChatGPT claims…' as a clearer expression of uncertainty.</p>
]]></description><pubDate>Fri, 20 Mar 2026 11:15:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=47453042</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47453042</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47453042</guid></item><item><title><![CDATA[New comment by dalke in "Ask HN: How do you deal with people who trust LLMs?"]]></title><description><![CDATA[
<p>The comment about using Google was more a curiosity. I hadn't seen the Variety link until yesterday, when I went to Google to reproduce the answer to verify it was from a text query, not an image query. Both Google AI and one of the top answers included that Variety link. When you mentioned it again, it strongly suggested you were using Google as your primary search method.<p>I think the right way to interpret the Variety link is that it's a single paragraph about trying to capture the feel of the comic using 3D software. As you saw from Charlie Brown holding a baseball, Shulz didn't go for a realistic look, but still conveys the sense of grasping. Modeling all five fingers all the time would not give the movie the right feel.<p>I wonder now if Google AI incorporates text from the top results into its answer.<p>"why is it wrong when the AI generated 4 fingers?"<p>The original discussion was when person X used AI to generate a image "in the style f Charles Shulz" where the Peanuts characters had 5 fingers, then person Y noted the use of 5 fingers instead of the 4 which is common in comics and cartoon, and quoted Google AI as saying Peanuts was traditionally drawn with 4 fingers.<p>I yesterday verified that Google AI would generate the same wrong answer with a text query, so it was not an image interpretation issue.<p>FWIW, after looking at a few hundred Peanuts cartoons, I can confidently say the AI generated image was not in the style of Schulz. The generated fingers were too realistic, and the background too complicated and detailed. :)<p>This for me is another example of why using primary sources should be the first thing to consider when fact checking - not LLMs (my experience is they are horrible at details), and not secondary sources (which have their own biases).<p>Not everything has easily-accessed primary sources, but many do. I think it's all too easy to fall into the trap of accepting the LLM answer because it feels right and is easy to generate. At <a href="https://freethoughtblogs.com/stderr/2025/01/18/ai-art-just-regurgitate-existing-images/" rel="nofollow">https://freethoughtblogs.com/stderr/2025/01/18/ai-art-just-r...</a> you'll see someone asked about which river Marbot swam across to spy on the enemy camp. It replied "Elbe". Then I did a text search of an English translation of the book and found he used a boat to cross the Danube to spy on the enemy camp, and he swam into freezing waters to save an enemy soldier.<p>Again, do you ask the LLM to fact check itself every single time? If that's useful, why isn't it built into the prompt? Or, if you are supposed to double-check the LLM yourself, why would you consult a secondary source if the primary source is so easy to find and search? And in that case, why not just use the primary source?<p>Further, if you aren't in the habit of checking primary sources then you won't have the experience to know how to find and check primary sources.</p>
]]></description><pubDate>Fri, 20 Mar 2026 06:10:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=47451086</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47451086</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47451086</guid></item><item><title><![CDATA[New comment by dalke in "Ask HN: How do you deal with people who trust LLMs?"]]></title><description><![CDATA[
<p>Your first link was cited in the 2nd half of Google AI's answer, and one of the top Google answers, so I think you are using Google as your information source.<p>The large majority of the images you link to show kids with 5 fingers, as well as 5-fingered baseball gloves. The cases of four fingers are due to orientation.<p>Your "1." also shows Marcie with five fingers. You see Charlie Brown with 4 fingers because he's holding a baseball. In 2. he's also holding a baseball. You would not see 5 fingers on one side because doing so would look strange.<p>In your unlabeled "0." there are plenty of kids with 5 fingers. There are some with fewer, but they are holding things or drawn in way to suggest we are seeing the hand from the side.<p>I don't understand your hesitancy. Your own samples should be enough for you to decisively conclude that the Google AI's claim that Peanuts was "traditionally drawn with four fingers (or three fingers and a thumb) on each hand" is wrong. If not, it sure seems like you trust Google AI over your own eyes. Why are you so hesitant to agree?<p>My point is that you don't need to consult secondary sources when the primary sources are easily available.<p>When this came up a few days ago, I spot checked the complete works of Peanuts, from a collection on archive.org at <a href="https://archive.org/details/peanutscomics19502000/Volume%201%20%281950%20to%201952%29/page/12/mode/2up" rel="nofollow">https://archive.org/details/peanutscomics19502000/Volume%201...</a> . The consistent pattern across the nearly 50 years of Peanuts is the kids have five fingers unless obscured by orientation or objects.<p>You can do that yourself, and triple-check that Google AI's answer is clearly wrong.<p>Thus, I think it's a good example of how fact checking with LLMs can lead people astray, and the large negative externalities I mentioned combined with its well-known tendencies to make incorrect statements make it a very poor starting point when the primary source, at least in this case, is so easy to access.<p>If most of the sources are wrong, and LLMs are being trained on those, isn't it logical that the latter will also likely output that same wrong information?<p>When do you know if most of the sources are wrong, unless you yourself know most of the sources are wrong?</p>
]]></description><pubDate>Thu, 19 Mar 2026 15:41:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=47441319</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47441319</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47441319</guid></item><item><title><![CDATA[New comment by dalke in "Ask HN: How do you deal with people who trust LLMs?"]]></title><description><![CDATA[
<p>Well, in my case going to a Peanuts comic and looking at hands was pretty easy, and didn't involve any questions about negative environment or labor consequences, the massive hammering of web sites to gather data, centralization of power, and the like.<p>Like, "!w Peanuts" in my search bar, look at the image, and count fingers.<p>"a rather outlier example"<p>You wrote that you use AI to find "obscure connections" - aren't those all by definition outliers?<p>"mostly as text-based question"<p>I just now asked Google AI "how many fingers are on charlie brown's hand?"<p>It replied "In the Peanuts comic strip, Charlie Brown and the rest of the gang are traditionally drawn with four fingers (or three fingers and a thumb) on each hand."<p>No image comprehension, exactly as you had in mind. And completely false.<p>And that's from a training corpus which almost certainly includes statements that the kids are drawn with 5 fingers, since I confirmed that info on TVTropes and Reddit comments, like <a href="https://www.reddit.com/r/pics/comments/swod8/charlie_brown_has_4_fingers_and_a_thumb/" rel="nofollow">https://www.reddit.com/r/pics/comments/swod8/charlie_brown_h...</a> .</p>
]]></description><pubDate>Thu, 19 Mar 2026 13:16:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=47438879</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47438879</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47438879</guid></item><item><title><![CDATA[New comment by dalke in "Ask HN: How do you deal with people who trust LLMs?"]]></title><description><![CDATA[
<p>The effort to fact check with LLMs is also high. Here's one from a few days ago.<p>Someone used AI to generate an image in the style of a Charles Schulz Peanuts cartoon.<p>Someone else observed that there were 5 fingers on the characters, and quoted as Google AI as saying “Charlie Brown, along with other Peanuts characters, is generally depicted with four fingers on each hand (three fingers and one thumb) ...”<p>Yet if you go to the Wikipedia entry at <a href="https://en.wikipedia.org/wiki/Peanuts" rel="nofollow">https://en.wikipedia.org/wiki/Peanuts</a> you'll see the kids have 5 fingers. Or take a look at the actual cartoons. Or read the TVTropes entry <a href="https://tvtropes.org/pmwiki/pmwiki.php/Main/FourFingeredHands" rel="nofollow">https://tvtropes.org/pmwiki/pmwiki.php/Main/FourFingeredHand...</a> under "Comic Strips".<p>Fact checking this with human sources is easy and not ambiguous. While LLMs are being trained that many cartoon characters only have a thumb and three fingers - it is a trope for a reason - so isn't it logical for LLMs to give the wrong answer for a comic where the human characters are actually drawn with 5 fingers?<p>My experience with LLMs is they keep getting things wrong, when details matter.<p>Do you ask the LLM to fact check everything? (In which case, why isn't that part of the standard prompt?) Or do you only ask to fact check things where you are unsure about the answer? (In which case, is it the algorithm telling you what you want to hear?) When do you stop the fact checking?</p>
]]></description><pubDate>Thu, 19 Mar 2026 11:18:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=47437543</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47437543</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47437543</guid></item><item><title><![CDATA[New comment by dalke in "Show HN: PyMOL-RS – Rust reimplementation of PyMOL with modern rendering"]]></title><description><![CDATA[
<p>Over the last few days I have learned that using code generation tools are increasingly used to create a "clean room" version of a product, using a definition which is far from its standard use.<p>See <a href="https://tuananh.net/2026/03/05/relicensing-with-ai-assisted-rewrite/" rel="nofollow">https://tuananh.net/2026/03/05/relicensing-with-ai-assisted-...</a> with discussion at <a href="https://news.ycombinator.com/item?id=47257803">https://news.ycombinator.com/item?id=47257803</a><p>I believe your use of "clean room" is another example of misusing the term.<p>Could you clarify how it was developed? Who had access to the original source code? Were code generation tools used, and if so, how? Was the PyMol source part of the training set for those tools? How did you ensure no copyright violations?<p>Warren was a friend of mine, and a passionate believer in open source software. He wanted people to be able to modify PyMol for their own purposes, and asked only for a license acknowledgment. Schrodinger, to their great credit, continues to honor Warren by maintaining the Open-Source PyMOL product.<p>If this project was not developed under true clean room practices, I ask that you continue to honor his work by including the PyMol license in your Rust rewrite.<p>If it was true clean room development, why does ./crates/pymol-algos/src/align/ce.rs say "This is a faithful port of PyMOL's `ccealignmodule.cpp`.", with comments like "Equivalent to PyMOL's `calcS`" and references to the original code in comments, like: "PyMOL: for (row = 0; row < wSize - 2; row++)"?</p>
]]></description><pubDate>Thu, 05 Mar 2026 09:23:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=47259511</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47259511</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47259511</guid></item><item><title><![CDATA[New comment by dalke in "Show HN: PyMOL-RS – Rust reimplementation of PyMOL with modern rendering"]]></title><description><![CDATA[
<p>The README says "PyMOL-RS is a clean-room rewrite" but when I look at ./pymol-mol/src/dss.rs I see things like:<p><pre><code>  //! - PyMOL's layer3/Selector.cpp - SelectorAssignSS function
  //! - PyMOL's layer2/ObjectMolecule2.cpp - ObjectMoleculeGetCheckHBond function
  //! - PyMOL's layer1/SettingInfo.h - Default angle thresholds
</code></pre>
and "matching PyMOL's cSS* flags from Selector.cpp"<p>While the Rust code is cleaned up and easier to read, I can see that it preserves similar data flow, uses similar variable names, and of course identical constants.<p>For example, this is PyMol layer3/Selector.cpp:<p><pre><code>          /* look for antiparallel beta sheet ladders (single or double) 
          ...
          */

          if((r + 1)->real && (r + 2)->real) {

            for(b = 0; b < r->n_acc; b++) {     /* iterate through acceptors */
              r2 = (res + r->acc[b]) - 2;       /* go back 2 */
              if(r2->real) {

                for(c = 0; c < r2->n_acc; c++) {

                  if(r2->acc[c] == a + 2) {     /* found a ladder */

                    (r)->flags |= cSSAntiStrandSingleHB;
                    (r + 1)->flags |= cSSAntiStrandSkip;
                    (r + 2)->flags |= cSSAntiStrandSingleHB;

                    (r2)->flags |= cSSAntiStrandSingleHB;
                    (r2 + 1)->flags |= cSSAntiStrandSkip;
                    (r2 + 2)->flags |= cSSAntiStrandSingleHB;

                    /*                  printf("anti ladder %s %s to %s %s\n",
                       r->obj->AtomInfo[I->Table[r->ca].atom].resi,
                       r->obj->AtomInfo[I->Table[(r+2)->ca].atom].resi,
                       r2->obj->AtomInfo[I->Table[r2->ca].atom].resi,
                       r2->obj->AtomInfo[I->Table[(r2+2)->ca].atom].resi); */
                  }
                }
              }
            }
</code></pre>
and this is pymol-rs's pymol-mol/src/dss.rs<p><pre><code>        // Antiparallel ladder: i accepts j, (j-2) accepts (i+2)
        if a + 2 < n_res && res[a + 1].real && res[a + 2].real {
            for &acc_j in &acc_list {
                if acc_j < 2 || !res[acc_j].real {
                    continue;
                }
                let j_minus_2 = acc_j - 2;
                if !res[j_minus_2].real {
                    continue;
                }
                let acc_jm2_list: Vec<usize> = res[j_minus_2].acc.clone();
                for &acc_k in &acc_jm2_list {
                    if acc_k == a + 2 {
                        res[a].flags |= SsFlags::ANTI_STRAND_SINGLE_HB;
                        res[a + 1].flags |= SsFlags::ANTI_STRAND_SKIP;
                        res[a + 2].flags |= SsFlags::ANTI_STRAND_SINGLE_HB;
                        res[j_minus_2].flags |= SsFlags::ANTI_STRAND_SINGLE_HB;
                        if acc_j >= j_minus_2 + 2 {
                            res[j_minus_2 + 1].flags |= SsFlags::ANTI_STRAND_SKIP;
                        }
                        res[acc_j].flags |= SsFlags::ANTI_STRAND_SINGLE_HB;
                    }
                }
            }
        }
</code></pre>
That's close enough that I really think you should include the PyMol license info, before Schrödinger's lawyers notice.</p>
]]></description><pubDate>Fri, 27 Feb 2026 15:47:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=47181869</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47181869</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47181869</guid></item><item><title><![CDATA[New comment by dalke in "Show HN: PyMOL-RS – Rust reimplementation of PyMOL with modern rendering"]]></title><description><![CDATA[
<p>I looked at the PDB parser.<p>Will you be adding support for using duplicate CONECT records to store bond type information? That's a RasMol extension that PyMol supports. You'll also need to support the pdb_conect_nodup option in the writer.<p>I see you interpret atom/hetatm serial numbers as an integer. Will you be using the base-36 or hybrid-36 variants (see <a href="https://cci.lbl.gov/hybrid_36/" rel="nofollow">https://cci.lbl.gov/hybrid_36/</a>) which is a common way to handle more than 100,000 atoms?<p>Again, these are corner cases which come with experience. I've no expectation that a new program would handle them. I want you to know about them since they will be issues if you expect long-term uptake.</p>
]]></description><pubDate>Fri, 27 Feb 2026 12:52:29 +0000</pubDate><link>https://news.ycombinator.com/item?id=47179943</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47179943</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47179943</guid></item><item><title><![CDATA[New comment by dalke in "Show HN: PyMOL-RS – Rust reimplementation of PyMOL with modern rendering"]]></title><description><![CDATA[
<p>You might mention in other forums, like the RDKit mailing list (though that's almost moribund).<p>I looked at the SDF reader, since that's what I know best. I see a few things which look like they need revisiting.<p>Line 75 has 'if name == "$$$$" {return self.parse_molecule();}' This isn't correct. This means the record name is "$$$$" (if you are RDKit), or it means the record is in the wrong format (if you are the CTFile specification, which explicitly prohibits that).<p>Also, does Rust have tail recursion? If not, the recursive nature of the code makes me think parsing a file containing 1 million lines of the form "$$$$\n" would likely blow the stack.<p>In principle the version number test for V2000 or V3000 should look at the specific column numbers, and not presence somewhere in the line. Someone like me might place a "V3000" in the obsolete fields, with a "V2000" in the correct vvvvvv field. ;)<p>The "Skip to end of molecule" code will break on real-world datasets. One classic problem is a company which used "$", "$$", "$$$" and "$$$$" to indicate cost, stored as tag data like:<p><pre><code>  > <price>
  $$$$

  $$$$
</code></pre>
where the first "$$$$" is part of the data item, and the second "$$$$" is the end of the SD record. This ended up causing a problem when an SDF reader somewhere in their system didn't parse data items correctly. (Another common failure in data item parsing is to ignore the requirement for a newline after the data item.)<p>I talk about "$$$$" more at <a href="http://www.dalkescientific.com/writings/diary/archive/2020/09/18/handling_the_sdf_record_delimiter.html" rel="nofollow">http://www.dalkescientific.com/writings/diary/archive/2020/0...</a> .<p>Then there's the "S  SKP" field, which you'll almost certainly never see in real life! I've only seen it used in a published example of a JICST extended MOLfile. See <a href="http://www.dalkescientific.com/writings/diary/archive/2020/09/21/molfile_s__skp.html" rel="nofollow">http://www.dalkescientific.com/writings/diary/archive/2020/0...</a><p>Please don't let these comments get you down! These details are hard to get, and not obvious. It took me years to learn the rare corner cases.<p>I also haven't done molviz since the 1990s, or used PyMol (I was VMD person), so can't say anything about the overall project. We started with GL, and had to port to OpenGL. :)<p>PS. A bit of history for you. PyMol's and VMD's selection syntax look similar because both drew on the syntax in Axel Brunger's X-PLOR. Warren DeLano came out of Brunger's lab, and VMD was from Schulten's group, which were X-PLOR users. (Schulten was Brunger's PhD advisor.)</p>
]]></description><pubDate>Thu, 26 Feb 2026 11:25:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=47164604</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=47164604</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47164604</guid></item><item><title><![CDATA[New comment by dalke in "Parsing Chemistry"]]></title><description><![CDATA[
<p>Oh, I should have pointed out my Python lexer-driven parser at <a href="https://hg.sr.ht/~dalke/smiview/browse/smiview.py" rel="nofollow">https://hg.sr.ht/~dalke/smiview/browse/smiview.py</a><p>The lexer: <a href="https://hg.sr.ht/~dalke/smiview/browse/smiview.py?rev=tip#L337" rel="nofollow">https://hg.sr.ht/~dalke/smiview/browse/smiview.py?rev=tip#L3...</a><p>The lexer state transitions: <a href="https://hg.sr.ht/~dalke/smiview/browse/smiview.py?rev=tip#L364" rel="nofollow">https://hg.sr.ht/~dalke/smiview/browse/smiview.py?rev=tip#L3...</a></p>
]]></description><pubDate>Thu, 06 Nov 2025 06:14:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=45832049</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=45832049</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45832049</guid></item><item><title><![CDATA[New comment by dalke in "Parsing Chemistry"]]></title><description><![CDATA[
<p>I see you include the dot disconnect "." as part of the Bond definition.<p>You also define Chain as:<p><pre><code>  Chain <<= pp.Group(pp.Optional(Bond) + pp.Or([Atom, RingClosure]))
</code></pre>
I believe this means your grammar allows the invalid SMILES C=.N</p>
]]></description><pubDate>Thu, 06 Nov 2025 06:09:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=45832015</link><dc:creator>dalke</dc:creator><comments>https://news.ycombinator.com/item?id=45832015</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45832015</guid></item></channel></rss>