• =?UTF-8?Q?=cf=80-WAM_Assembly:_Comfortable_Labels_and_Goto_=28Re:_?= =?UTF-8?Q?=cf=80-WAM_Contest:_1_Million_Packets_with_Prolog=29?=

    From Mild Shock@janburse@fastmail.fm to comp.lang.java.programmer on Sun Aug 9 19:40:20 2026
    From Newsgroup: comp.lang.java.programmer

    Hi,

    What Hamelt is to English language, is Hack to
    Compiler Construction. The playbook of Hack contains
    every drama that a Compiler Construction will face.
    In the following we show how we realized Project 6:
    Assembler from the Nand to Tetris journey via
    a little Prolog DSL.

    Our initial quick and dirty prototype deploys
    double buffering to determine code lengths and
    is brittle in examples such as between/3. Our
    assembly DSL does without symbol tables but with
    Prolog logical variables only. We could fix the
    between/3 glitch and give a first disjunction
    (;)/2 prototype.

    Bye

    See also:

    -C-WAM Assembly: Comfortable Labels and Goto https://medium.com/2989/1a11dd512813

    Mild Shock schrieb:
    Hi,

    We recently demonstrated a Prolog emulator for
    ADA RendezVous without ACK and NACK. This is basically
    a bounded buffer with max_size=1. We now went on and
    implemented this kind of fire and forget channel
    object natively for JavaScript, Java and Python.
    Some results.

    Our 100 producers and 100 consumers, that communicate
    10000 packets through a single channel, is the camel
    to go through the eye of a needle test case. Both
    -C-WAM and SWI-Prolog can do it below a second using
    different means, but -C-WAM beats SWI-Prolog here
    by a factor of ca. 1.5x.

    Bye

    See also:

    -C-WAM Contest: 1 Million Packets with Prolog https://medium.com/2989/ec3e91551773
    --- Synchronet 3.22a-Linux NewsLink 1.2