<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: escanor</title><link>https://news.ycombinator.com/user?id=escanor</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sun, 20 Sep 2026 13:12:16 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=escanor" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by escanor in "Show HN: Brain Frog – Can you be random enough for 11 lines of JavaScript?"]]></title><description><![CDATA[
<p>brilliant!</p>
]]></description><pubDate>Fri, 26 Jun 2026 07:13:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=48683360</link><dc:creator>escanor</dc:creator><comments>https://news.ycombinator.com/item?id=48683360</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48683360</guid></item><item><title><![CDATA[New comment by escanor in "Show HN: Brain Frog – Can you be random enough for 11 lines of JavaScript?"]]></title><description><![CDATA[
<p>it is:<p><pre><code>  (async function(oracle, punch, delay) {
    async function sleep(ms) {
      return new Promise((resolve, _) => {
        setTimeout(resolve, ms)
      })
    }
    
    for (let i = 0; i < 100; i++) {
      const state = oracle._state
      const block = oracle.predictNextPunch()
      oracle._state = state
      
      punch(block === 'L' ? 'R' : 'L')
      
      await sleep(delay)
    }
  })(oracle, punch, 150)</code></pre></p>
]]></description><pubDate>Thu, 25 Jun 2026 08:00:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=48670359</link><dc:creator>escanor</dc:creator><comments>https://news.ycombinator.com/item?id=48670359</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48670359</guid></item><item><title><![CDATA[New comment by escanor in "Show HN: Brain Frog – Can you be random enough for 11 lines of JavaScript?"]]></title><description><![CDATA[
<p>pure random player:<p><pre><code>  (async function(punch, delay) {
    async function sleep(ms) {
      return new Promise((resolve, _) => {
        setTimeout(resolve, ms)
      })
    }
    
    for (let i = 0; i < 100; i++) {
      punch(['L', 'R'][(Math.random() * 2) | 0])
      await sleep(delay)
    }
  })(punch, 150)
  </code></pre>
"cheating" player:<p><pre><code>  (async function(oracle, punch, delay) {
    async function sleep(ms) {
      return new Promise((resolve, _) => {
        setTimeout(resolve, ms)
      })
    }
    
    for (let i = 0; i < 100; i++) {
      punch((i + 1) < oracle.minForPrediction ? ['L', 'R'][(Math.random() * 2) | 0] : oracle.predictNextPunch() === 'L' ? 'R' : 'L')
      
      await sleep(delay)
    }
  })(oracle, punch, 150)

</code></pre>
is it possible to do any better? i haven't fully read frog/oracle code</p>
]]></description><pubDate>Thu, 25 Jun 2026 07:42:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=48670211</link><dc:creator>escanor</dc:creator><comments>https://news.ycombinator.com/item?id=48670211</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48670211</guid></item><item><title><![CDATA[New comment by escanor in "An algorithm that blew up Italy’s school system"]]></title><description><![CDATA[
<p>Who does that algorithm really serve?</p>
]]></description><pubDate>Fri, 01 Sep 2023 15:52:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=37352373</link><dc:creator>escanor</dc:creator><comments>https://news.ycombinator.com/item?id=37352373</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37352373</guid></item><item><title><![CDATA[New comment by escanor in "Show HN: Natural Language Processing Demystified"]]></title><description><![CDATA[
<p>great work!
just a note regarding tf-idf, when you mention log10:
i think you're missing the point on the reason of log and most importantly base 10.
namely, using log10 gives us a perspective on the number of digits of the term/document frequency.
if a term "A" occurs 23 times and a term "B" occurs 50, they will have a very close representation (because both numbers are 2 digits ones).<p>anyway, thanks for the submission</p>
]]></description><pubDate>Fri, 02 Dec 2022 09:14:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=33828404</link><dc:creator>escanor</dc:creator><comments>https://news.ycombinator.com/item?id=33828404</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33828404</guid></item><item><title><![CDATA[New comment by escanor in "Understanding Python through its builtins"]]></title><description><![CDATA[
<p>> for index, item in enumerate(menu):<p>should be<p>> for index, item in enumerate(menu, start=1):<p>for the example to be correct :)</p>
]]></description><pubDate>Sun, 10 Oct 2021 20:57:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=28821910</link><dc:creator>escanor</dc:creator><comments>https://news.ycombinator.com/item?id=28821910</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28821910</guid></item><item><title><![CDATA[New comment by escanor in "Git as a NoSql Database (2016)"]]></title><description><![CDATA[
<p>yes, i see this as well.
at first it was confusing, but later i understood it was the output.</p>
]]></description><pubDate>Mon, 05 Apr 2021 20:34:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=26704340</link><dc:creator>escanor</dc:creator><comments>https://news.ycombinator.com/item?id=26704340</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=26704340</guid></item><item><title><![CDATA[New comment by escanor in "Machine Learning, Kolmogorov Complexity, and Squishy Bunnies (2019)"]]></title><description><![CDATA[
<p>My understanding is that the neural network is used to predict the "magnitude" of each eigenvector/axe (extracted by using PCA) in order to reconstruct an approximation of the original behavior.</p>
]]></description><pubDate>Thu, 27 Feb 2020 10:22:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=22432113</link><dc:creator>escanor</dc:creator><comments>https://news.ycombinator.com/item?id=22432113</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=22432113</guid></item></channel></rss>