Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #124451
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Mild Shock <janburse@fastmail.fm> |
| Newsgroups | comp.lang.javascript |
| Subject | Parallel π-WAM: JavaScript Workers as CPU Backend (Re: Parallel π-WAM: 1.7 Giga Lips on a CPU) |
| Date | Mon, 20 Jul 2026 19:28:15 +0200 |
| Message-ID | <113llrf$4r9r$2@solani.org> (permalink) |
| References | <112jd0b$5860$4@solani.org> <112luld$75rr$3@solani.org> <1138bl8$58mb$5@solani.org> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Mon, 20 Jul 2026 17:28:15 -0000 (UTC) |
| Injection-Info | solani.org; logging-data="159035"; mail-complaints-to="abuse@news.solani.org" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24 |
| Cancel-Lock | sha1:/KuabEdGSihhp4uNmj6zpyAHKDs= |
| X-User-ID | eJwFwYEBwDAEBMCVxPNlHBX2HyF3Dh72Z3Sary+RM+GkUAAZhMQ5MtbRyB9duLY36kqleampynZlbqxpPix9FNU= |
| In-Reply-To | <1138bl8$58mb$5@solani.org> |
| Xref | csiph.com comp.lang.javascript:124451 |
Show key headers only | View raw
Hi, We recently implemented a parallel π-WAM on a CPU backend and could demonstrate an estimated 1.7 Giga Lips. This CPU backend was written in Java, uses Java platform threads and is meanwhile part of library(edge/ brainfog). In the following we report first porting steps to JavaScript. With the adoption of JavaScript workers we embrace preemptive multithreading, even for a Web Prolog, and depart from Dogelog Players cooperative multitasking. The design also adopts SharedArrayBuffer to replicate the Java heap, that is shared among Java platform threads. Bye See also: Parallel π-WAM: JavaScript Workers as CPU Backend https://medium.com/2989/5ef903e5e785 Mild Shock schrieb: > Hi, > > We recently implemented a parallel π-WAM > on a GPU backend and could demonstrate an > estimated 11.4 Giga Lips. In this post we > report a further experiment, this time > presenting a parallel π-WAM on a CPU backend, > that can lift specialized Prolog, currently > to 1.7 Giga Lips performance. > > Having an excess number of threads is a > bad idea. What if we do context switching > on our own? With this approach we could > bring down the execution time of 128 Hack > VMs by 33%. We estimate for the test which > had 11.4 GLips on the GPU, that we reach > 1.7 GLips on the CPU. > > Bye > > See also: > > Parallel π-WAM: 1.7 Giga Lips on a CPU > https://medium.com/2989/8a984e75af44
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Dogelog Player: 11.4 Giga Lips with a Budget Laptop (Re: ANN: Dogelog Player 2.2.3 (Introducing π-WAM)) Mild Shock <janburse@fastmail.fm> - 2026-07-08 18:42 +0200
Parallel π-WAM: JavaScript Workers as CPU Backend (Re: Parallel π-WAM: 1.7 Giga Lips on a CPU) Mild Shock <janburse@fastmail.fm> - 2026-07-20 19:28 +0200
Parallel π-WAM: An Interleaved Synchronous Emulator (Re: Parallel π-WAM: JavaScript Workers as CPU Backend) Mild Shock <janburse@fastmail.fm> - 2026-07-25 03:53 +0200
csiph-web