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


Groups > comp.lang.javascript > #39535

Re: Why not fix problem, but instead build a new structure and syntax overlay?

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Why not fix problem, but instead build a new structure and syntax overlay?
Date 2021-03-01 11:06 +0100
Organization PointedEars Software (PES)
Message-ID <11703307.O9o76ZdvQC@PointedEars.de> (permalink)
References (3 earlier) <67cc9459-fae1-4591-af12-37d543bf55fbn@googlegroups.com> <a728ed60-b644-418d-894f-8600693fff17n@googlegroups.com> <37d793d2-5d92-4c1c-881d-053a31b8d7fbn@googlegroups.com> <3fb77903-6733-48b0-9b93-b3bbbe3f4089n@googlegroups.com> <bekixjuf8b9h$.1xkg74eubu728$.dlg@40tude.net>

Show all headers | View raw


JJ wrote:

> On Sun, 28 Feb 2021 15:58:50 -0800 (PST), Jonas Thörnvall wrote:
>> I kind of doubt your counterexample to beleive with but if that is true,
>> you make a wrapper. create,thread.wassup(setTimeout);
>> release.thread.wassup;
> 
> I get your frustration. Sometimes I loathe JavaScript limitations too. But
> what can we do? We can't simply change how JavaScript works.

Blind leading the blind :-D

setTimeout() is NOT a language feature; it is a DOM feature.

Although it might not have been intended to be, it evolved into a workaround 
for the fact that the language is single-threaded.

In the meantime, better workarounds have been developed, including threads.  

So STFU and RTFM:

<https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers>

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

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


Thread

Why not fix problem, but instead build a new structure and syntax overlay? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-26 12:00 -0800
  Re: Why not fix problem, but instead build a new structure and syntax overlay? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-26 12:08 -0800
  Re: Why not fix problem, but instead build a new structure and syntax overlay? JJ <jj4public@gmail.com> - 2021-02-27 16:48 +0700
    Re: Why not fix problem, but instead build a new structure and syntax overlay? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-27 03:11 -0800
      Re: Why not fix problem, but instead build a new structure and syntax overlay? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-02-27 11:02 -0800
        Re: Why not fix problem, but instead build a new structure and syntax overlay? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-28 08:52 -0800
          Re: Why not fix problem, but instead build a new structure and syntax overlay? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-02-28 09:50 -0800
            Re: Why not fix problem, but instead build a new structure and syntax overlay? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-28 15:58 -0800
              Re: Why not fix problem, but instead build a new structure and syntax overlay? JJ <jj4public@gmail.com> - 2021-03-01 15:06 +0700
                Re: Why not fix problem, but instead build a new structure and syntax overlay? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-03-01 11:06 +0100
                Re: Why not fix problem, but instead build a new structure and syntax overlay? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-03-01 08:50 -0800
                Re: Why not fix problem, but instead build a new structure and syntax overlay? JJ <jj4public@gmail.com> - 2021-03-02 23:46 +0700
                Re: Why not fix problem, but instead build a new structure and syntax overlay? "Mark-" <nospam@mapson.xyz> - 2021-03-03 14:39 +0000
        Re: Why not fix problem, but instead build a new structure and syntax overlay? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-03-01 00:19 +0100
          Re: Why not fix problem, but instead build a new structure and syntax overlay? John G Harris <niam@jghnorth.org.uk.invalid> - 2021-03-01 19:30 +0000

csiph-web