<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 16-07-04 04:08 AM, Kenneth Tilton
wrote:<br>
</div>
<blockquote
cite="mid:CALNptTLtjow59MV+Trg0B9_LrFAFfzpsLQWHiFwC4PYzP-VwDQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Jul 3, 2016 at 10:18 PM,
David McClain <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:dbm@refined-audiometrics.com"
target="_blank">dbm@refined-audiometrics.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word">Hi Ken,
<div><br>
</div>
<div>I think I see what you are recommending. But one of
the facts of these external programs is the lack of
multi-processing in their JS interpreters.</div>
</div>
</blockquote>
<div><br>
</div>
<div>JS is always single-threaded. (But CLJS can fake
threads -- they really are doing some good work.)</div>
</div>
</div>
</div>
</blockquote>
<br>
Aside: all cpu cores are always single-threaded[*].
Multi-processing is an epicycle[+], an illusion.<br>
<br>
If you don't need variables on the stack / full-preemption, nor
access to special hardware like mmu's, then writing concurrent
programs in js is a breeze (esp. with closures).<br>
<br>
See collate-fbp-classic and FBP-from-scratch on
<a class="moz-txt-link-freetext" href="https://github.com/guitarvydas">https://github.com/guitarvydas</a> or try reading my essays on
<a class="moz-txt-link-freetext" href="https://bittarvydas.wordpress.com/">https://bittarvydas.wordpress.com/</a>.<br>
<br>
pt<br>
<br>
[*] modulo some kind of hardware assist in modern cpu's. If you
understand how to build a multi-tasking O/S on 8-bit cpu's, then you
understand how to do this in js (or just about any language) as
well.<br>
<br>
[+] An epicycle because "we" decided to standardize on subroutines
instead of co-routines at Albuquerque [Bugs Bunny].<br>
<br>
<br>
</body>
</html>