Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #39947

Re: I don't get it

Newsgroups comp.lang.javascript
Date 2021-04-15 12:04 -0700
References (22 earlier) <b88940de-362f-4e25-968b-0bc44c85cf3cn@googlegroups.com> <3b4cdd57-5b93-4cec-bff6-dc7c239bad80n@googlegroups.com> <e338ff53-6a48-4466-9667-2207c2c550a8n@googlegroups.com> <b6bd3a7c-7d25-4668-9d93-cabca95a20f2n@googlegroups.com> <41dad64a-3169-4fec-ad73-ba063b99cd19n@googlegroups.com>
Message-ID <593bf79a-b156-4eb3-aaa2-5ec20f6f8151n@googlegroups.com> (permalink)
Subject Re: I don't get it
From Jonas Thörnvall <jonas.thornvall@gmail.com>

Show all headers | View raw


torsdag 15 april 2021 kl. 20:57:37 UTC+2 skrev Jonas Thörnvall:
> torsdag 15 april 2021 kl. 20:52:15 UTC+2 skrev Jonas Thörnvall: 
> > onsdag 14 april 2021 kl. 14:22:07 UTC+2 skrev sc...@sauyet.com: 
> > > Jonas Thörnvall <jonas.t...@gmail.com> wrote: 
> > > > Scott Sauyet <sc...@sauyet.com> wrote: 
> > > >> Jonas Thörnvall <jonas.t...@gmail.com> wrote: 
> > > 
> > > >>> I understand the code, not how the recursion effect it... 
> > > >> You are simultaneously claiming these facts: 
> > > >> 
> > > >> - My code is so simple anyone can understand it 
> > > >> - My code is broken in a way I don't understand 
> > > >> 
> > > >> At that point, before seeking help, you need to figure out which 
> > > >> of those statements is true. 
> > > > No there is a third alternative Scott the blackbox is broken. 
> > > If you really think there's a bug in the JS implementation you use, then 
> > > by all means point to the implementation and the section of the 
> > > specification it fails. Post a bug in their tracker. And feel free to 
> > > tell us about it. Remember what they're going to want: a small self- 
> > > contained example. 
> > > 
> > > But 99+% of the time, when someone without a great deal of experience 
> > > suggests a bug in a language implementation, it's a sign of their lack 
> > > of understanding. Maybe you're the exception. I can't tell because you 
> > > cannot share with us a simple example of how it fails. 
> > > > And i did post a more comprehensive example. 
> > > 
> > > > function STARTPLAY(){ 
> > > > if (keepGoing) { 
> > > > setTimeout(STARTPLAY,copyEv[playPos]); 
> > > > REALTIME=performance.now()-browserLoadTIME; 
> > > > LATENCY=REALTIME-oldPassedTime; 
> > > > oldPassedTime=schedTime; 
> > > > schedTime=copyEv[playPos]+schedTime; 
> > > > copyEv[playPos]=Math.max(0,copyEv[playPos]-LATENCY); 
> > > > outportarr[outportindex].send(noteMessage[playPos]); 
> > > > playPos++; 
> > > > } 
> > > > } 
> > > This has all the issues described above. It's full of non-local 
> > > variables, and while it might be clear to you what it is supposed 
> > > to do, I don't understand it. The idea of a minimal complete 
> > > example is that it's something I can deploy and test and -- most 
> > > importantly -- understand myself. 
> > > 
> > > This isn't close. 
> > > 
> > > -- Scott 
> > Feel free to assume that all variables are local and initiated to zero, except the time and note array. 
> > I doubt that help you though.
> Just to play nice. 
> 
> var keepgoing=true; var playPos=0;var shedTime=0; var oldPassedTime=0; 
> function STARTPLAY(noteMessage,copyEv){
> if (keepGoing) { 
> setTimeout(STARTPLAY,copyEv[playPos]); 
> REALTIME=performance.now()-browserLoadTIME; 
> LATENCY=REALTIME-oldPassedTime; 
> oldPassedTime=schedTime; 
> schedTime=copyEv[playPos]+schedTime; 
> copyEv[playPos]=Math.max(0,copyEv[playPos]-LATENCY); 
> outportarr[outportindex].send(noteMessage[playPos]); 
> playPos++; 
> } 
> }
I can see some anal nitpicking coming so...
var keepgoing=true; var playPos=0;var shedTime=0; 
 function STARTPLAY(noteMessage,copyEv){
 if (keepGoing) { 
 setTimeout(STARTPLAY,copyEv[playPos]); 
var  REALTIME=performance.now()-browserLoadTIME; 
var  LATENCY=REALTIME-oldPassedTime; 
var  oldPassedTime=schedTime; 
 schedTime=copyEv[playPos]+schedTime; 
 copyEv[playPos]=Math.max(0,copyEv[playPos]-LATENCY); 
 outportarr[outportindex].send(noteMessage[playPos]); 
 playPos++; 
 } 
}

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-08 03:32 -0700
  Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-08 03:37 -0700
    Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-08 04:26 -0700
      Re: I don't get it JJ <jj4public@gmail.com> - 2021-04-08 19:39 +0700
        Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-08 05:53 -0700
          Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-08 13:55 -0700
            Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-09 00:46 -0700
              Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-09 10:03 +0100
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-09 04:09 -0700
                Re: I don't get it "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-09 11:07 -0700
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-10 03:23 +0100
                Re: I don't get it "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-04-10 22:02 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-11 01:05 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-11 01:07 -0700
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-11 11:42 +0100
                Re: I don't get it John G Harris <niam@jghnorth.org.uk.invalid> - 2021-04-09 20:01 +0100
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-09 13:31 -0700
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-10 03:37 +0100
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-09 23:53 -0700
                Re: I don't get it John G Harris <niam@jghnorth.org.uk.invalid> - 2021-04-10 12:05 +0100
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-10 15:59 +0100
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-10 15:47 +0100
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-10 18:25 +0100
                Re: I don't get it Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-04-10 17:29 +0000
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-10 19:08 +0100
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-11 11:41 +0100
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-11 14:33 +0100
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-12 02:39 -0700
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-12 11:21 +0100
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-12 10:19 -0700
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-12 21:20 +0100
                Re: I don't get it "sc...@sauyet.com" <scott@sauyet.com> - 2021-04-12 14:32 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-13 04:11 -0700
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-13 14:58 +0100
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-13 09:20 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-13 09:29 -0700
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-13 20:06 +0100
                Re: I don't get it "sc...@sauyet.com" <scott@sauyet.com> - 2021-04-13 15:09 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-14 01:15 -0700
                Re: I don't get it "sc...@sauyet.com" <scott@sauyet.com> - 2021-04-14 05:22 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-15 11:52 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-15 11:57 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-15 12:04 -0700
                Re: I don't get it Scott Sauyet <scott.sauyet@gmail.com> - 2021-04-15 19:29 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-20 14:12 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-20 14:47 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-20 23:35 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-21 01:08 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-21 01:24 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-21 01:29 -0700
                Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-13 09:32 -0700
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-13 21:59 +0100
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-14 01:32 +0100
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-14 09:08 +0100
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-14 10:06 +0100
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-14 10:59 +0100
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-14 14:05 +0100
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-14 16:32 +0100
                Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-14 23:53 +0100
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-15 13:56 +0100
                Re: I don't get it The Natural Philosopher <tnp@invalid.invalid> - 2021-04-12 11:20 +0100
        Re: I don't get it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-04-08 15:21 +0100
          Re: I don't get it Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-04-09 16:50 +0200
  Re: I don't get it Man From a city with name Viljandi <he12457@hotmail.com> - 2021-04-08 10:44 -0700
  Re: I don't get it Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-04-10 00:01 -0700

csiph-web