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?

Path csiph.com!news.dns-netz.com!news.freedyn.net!news.mb-net.net!open-news-network.org!.POSTED.0.237.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch!not-for-mail
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 Mon, 01 Mar 2021 11:06:54 +0100
Organization PointedEars Software (PES)
Lines 27
Message-ID <11703307.O9o76ZdvQC@PointedEars.de> (permalink)
References <45cd9e94-7313-4447-8a9d-3218be6d4b7fn@googlegroups.com> <nia8j27f2whw.68k2g0ejcbyi.dlg@40tude.net> <e1ac0877-25fa-4f0c-b7a0-ea08fd0e165cn@googlegroups.com> <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>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
Injection-Info gwaiyur.mb-net.net; posting-host="0.237.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch:178.197.237.0"; logging-data="12056"; mail-complaints-to="abuse@open-news-network.org"
User-Agent KNode/4.14.10
Cancel-Lock sha1:TUb+yVwgRs+zu45GwVK3ok905xo=
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L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.lang.javascript:39535

Show key headers only | 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