News for hackers. Stuff that matters.

escanor

That's just my perception, therefore "imo". I tried GOS, I've read the forum (about microG, F-Droid) and that's what I've felt: something shady. It is most likely just me, so I stay away from the project. I just wanted to say that people should take a more critical stance on these issues, and not follow GrapheneOS point of view unconditionally.
I don't buy into the "good guy" narrative associated with GrapheneOS. The complaint is valid, but the solution isn't to keep using AOSP. GrapheneOS project, for all its merits, limits users' freedom by forcing them to install Google services if they want to use the most common apps (banking apps in Europe, government apps). They absolutely refuse to support microG. That's their choice, but in my opinion, they aren't "good guys." They have other, shady (imo), interests. Let's stop supporting AOSP and Google's proprietary services.
it is:

  (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)
pure random player:

  (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)
  
"cheating" player:

  (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)

is it possible to do any better? i haven't fully read frog/oracle code
Re:The algorithm that blew up Italy’s school system on Friday September 01, 2023 @11:52AM (#37352373)
Who does that algorithm really serve?
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).

anyway, thanks for the submission

Re:Understanding Python through its builtins on Sunday October 10, 2021 @04:57PM (#28821910)
> for index, item in enumerate(menu):

should be

> for index, item in enumerate(menu, start=1):

for the example to be correct :)

Re:Git as a NoSql Database (2016) on Monday April 05, 2021 @04:34PM (#26704340)
yes, i see this as well. at first it was confusing, but later i understood it was the output.
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.