Sujet : Quo Vadis: Extend investigations to WebNN (Re: I wrote Hack VM for π-WAM from scratch)
De : janburse (at) *nospam* fastmail.fm (Mild Shock)
Groupes : comp.theory comp.lang.c comp.lang.javaDate : 31. Jul 2026, 19:47:08
Autres entêtes
Message-ID : <114iqjb$obtb$3@solani.org>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24
Hi,
Since we have a good flow, and since NPUs
share the same system memory, and possibly a
lot of other traits as well with the GPU in
libary(edge/furryhaze), we just developed.
The idea here is to do first some off Dogelog
experiments and then create a library that
provides npu_exec/2 for pi-WAM code, the analogue
to gpu_exec/2. A name suggestion would be:
- edge/ironpaw.p
The new Prolog library
The NPU will be clearly underutilized when only
doing scalar, not sure whether this is even
permitted. But in the long run it is planned
that pi-WAM will have vector and matrix traits
anyways. Here is an example goal can be run
with matrix and quantization traits:
?- [X,Y] ins 0..3, Z is X*2+Y*3+4, T is X*3-Y*2-1
These traits will demand some CPU, GPU
and NPU translation. If we keep these traits
simple, we might indeed arrive at concrete
realization from the same abstract machine
LoL, ironpaw the little brother of ironfist.
Bye
Mild Shock schrieb:
Hi,
> Just downloading some other person's code
I didn't do that, I wrote Hack VM for pi-WAM
from scratch, over the last 4 weeks. I came
back from holidays on end of June 2026, and now
we have end of July 2026. But its only possible
because the instruction set is very smal, like
ca. 8 functions and ca. 8 modes and ca. 8 conditions,
so its ca. 8 x 8 x 8 = 512 opcodes, each has an
A parameter and a D parameter simultaneously.
It has currently the following CPU backends:
- Nnow supports interleaved synchronous emulation.
- Now supports warp parallelism via Java platform threads.
- Now supports warp parallelism via Python system threads.
- Now supports warp parallelism via JavaScript worker threads.
- Note: For Python free threads are not yet fully tested.
- Note: For JavaScript web workers are not yet fully tested.
https://www.dogelog.ch/typtab/doclet/book/14_install/05_notes22/110_224.html But frankly I came to encounter Hack not from
the usual university curriculum web resources,
but indirectly through a post about a Prolog
emulation of Hack, using constrained horn clauses (CHC):
Verifying Nand2Tetris Assembly
https://www.philipzucker.com/nand2tetris-chc/
The binary encoding is currently that the functions,
modes and conditions eat up a nibble (4-bit), in
total 12-bit, which I use then 10-bit for A parameter
and 10-bit for D parameter. I used AI freemium, Codex
by ChatGPT from within IntelliJ to do some fragment
code translations automatically from Java to JavaScript
or from JavaScript to Python.
Have Fun!
Bye
Johann 'Myrkraverk' Oskarsson schrieb:
As I said elsewhere, I'm not that interested in Hack, but virtual
machines and related code. I mentioned another book, but now I feel
I should ask if you've also read /Crafting Interpreters/ by Robert
Nystrom? I myself am still on chapter 5, so I'm still in the Java
part of the book, so I replaced comp.lang.c++ with comp.lang.java, and
am fairly excited to have a working interpreter.
>
This is the type of book people only properly learn from by typing in
the code themselves. Just downloading some other person's code, and
running an interpreter isn't exactly a learning experience. So I'm
taking my time with it, and interleaving it with my Mars adventures.
>
>
In any case, I do wish you to have fun with your own WebGPU project,
whatever that is about!
>
| Date | Sujet | # | | Auteur |
| 29 Jul 26 | A brain desease of 20 days [Rossy Boy] (Was: Viswath & Charmaigne (vector-wide scalar-word and character machines)) | 39 | | Mild Shock |
| 29 Jul 26 |  Rossy Boys tears could cool a data center [pi-WAM Interleaved Synchronized Emulator] | 34 | | Mild Shock |
| 29 Jul 26 |   I don't use Rust, you are crazy [Jump off a bridge, idiot] (Was: Rossy Boys tears could cool a data center [pi-WAM Interleaved Synchronized Emulator]) | 4 | | Mild Shock |
| 4 Aug 26 |    Standing on the shoulders of giants (Re: I don't use Rust, you are crazy [Jump off a bridge, idiot]) | 3 | | Mild Shock |
| 4 Aug 26 |     You Thief! Stealing Szemeredi, Aristotle, Leibniz, etc.. (Re: Standing on the shoulders of giants) | 2 | | Mild Shock |
| 4 Aug 26 |      How Rossy Boys plagiarism works [Copy Paste Slop] (Re: You Thief! Stealing Szemeredi, Aristotle, Leibniz, etc..) | 1 | | Mild Shock |
| 29 Jul 26 |   Re: Postgres is in C! | 16 | | Ross Finlayson |
| 29 Jul 26 |    Please don't extend your cross posting / What does abstract mean? (Was: Postgres is in C!) | 1 | | Mild Shock |
| 29 Jul 26 |    Please don't extend your cross posting / What does abstract mean? (Was: Postgres is in C!) | 1 | | Mild Shock |
| 30 Jul 26 |    Re: Mars, the MIPS emulator in Java | 13 | | Ross Finlayson |
| 30 Jul 26 |     Re: Mars, the MIPS emulator in Java | 1 | | Ross Finlayson |
| 30 Jul 26 |     Re: Mars, the MIPS emulator in Java | 11 | | Ross Finlayson |
| 30 Jul 26 |      Re: Mars, the MIPS emulator in Java | 2 | | Ross Finlayson |
| 31 Jul 26 |       Re: Decorum | 1 | | Ross Finlayson |
| 5 Aug 26 |      Re: Mars, the MIPS emulator in Java | 8 | | Ross Finlayson |
| 5 Aug 26 |       Re: Mars, the MIPS emulator in Java | 3 | | Chris M. Thomasson |
| 5 Aug 26 |        Re: Mars, the MIPS emulator in Java | 2 | | Ross Finlayson |
| 5 Aug 26 |         Re: Mars, the MIPS emulator in Java | 1 | | Chris M. Thomasson |
| 6 Aug 26 |       Re: Mars, the MIPS emulator in Java | 3 | | Ross Finlayson |
| 7 Aug 26 |        Re: Mars, the MIPS emulator in Java | 2 | | Ross Finlayson |
| 7 Aug 26 |         Re: Mars, the MIPS emulator in Java | 1 | | Ross Finlayson |
| 7 Aug 26 |       Re: Mars, the MIPS emulator in Java | 1 | | Ross Finlayson |
| 29 Jul 26 |   Hack ecosystem ignorance paired with paranoia [Nand to Tetris] (Re: Postgres is in C!) | 12 | | Mild Shock |
| 29 Jul 26 |    A funny Q16.16 experiment with Hack (Was: Hack ecosystem ignorance paired with paranoia [Nand to Tetris]) | 3 | | Mild Shock |
| 30 Jul 26 |     Summer Challenge: libSQL = Prolog+Modes [VDBE versus π-WAM] (Re: A funny Q16.16 experiment with Hack) | 2 | | Mild Shock |
| 12 Aug 26 |      Re: Bullshit Authorized by Sarah Connor [EyeProlog Failure] (Re: Summer Challenge: libSQL = Prolog+Modes [VDBE versus π-WAM]) | 1 | | Mild Shock |
| 30 Jul 26 |    I wrote Hack VM for π-WAM from scratch [4 Months total JavaScript, Python and Java] (Re: Crating Interpreters, Java part) | 6 | | Mild Shock |
| 30 Jul 26 |     For WebGPU I first had SIMD in mind (Was: I wrote Hack VM for π-WAM from scratch) | 2 | | Mild Shock |
| 30 Jul 26 |      Corr.: 4 Months --> 4 Weeks (Was: For WebGPU I first had SIMD in mind) | 1 | | Mild Shock |
| 30 Jul 26 |     MIPS is a big Huffman mess [But Hack could do it] (Was: I wrote Hack VM for π-WAM from scratch) | 2 | | Mild Shock |
| 30 Jul 26 |      Not declarative with PHI (Φ) nodes (Re: MIPS is a big Huffman mess [But Hack could do it]) | 1 | | Mild Shock |
| 31 Jul 26 |     Quo Vadis: Extend investigations to WebNN (Re: I wrote Hack VM for π-WAM from scratch) | 1 | | Mild Shock |
| 1 Aug 26 |    RCan library(ironpaw) repurpose FFT hardware [Glimps into Ryzen AI 7 350] (Re: Hack ecosystem ignorance paired with paranoia) | 1 | | Mild Shock |
| 1 Aug 26 |    Can library(ironpaw) repurpose FFT hardware [Glimps into Ryzen AI 7 350] (Re: Hack ecosystem ignorance paired with paranoia) | 1 | | Mild Shock |
| 29 Jul 26 |   Re: Postgres is in C! | 1 | | Cóilín Nioclásín Glostéir |
| 1 Aug 26 |  He uses "FIFO objects", and DMA and Noc [Glimps into Ryzen AI 7 350] (Re: A brain desease of 20 days [Rossy Boy])) | 4 | | Mild Shock |
| 1 Aug 26 |   Tablet and phone UBS-C remote debugging (Re: He uses "FIFO objects", and DMA and Noc) | 3 | | Mild Shock |
| 1 Aug 26 |    NPUs doing 2d chess comms (Manhattan Distance or L1 Norm) (Re: Tablet and phone UBS-C remote debugging) | 2 | | Mild Shock |
| 1 Aug 26 |     NACK retransmission might double Manhattan Distance (Re: NPUs doing 2d chess comms) | 1 | | Mild Shock |
Haut de la page
Les messages affichés proviennent d'usenet.
NewsPortal