From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9071 invoked from network); 23 Jun 2023 10:59:29 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 23 Jun 2023 10:59:29 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 561A1402EF; Fri, 23 Jun 2023 20:59:22 +1000 (AEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by minnie.tuhs.org (Postfix) with ESMTPS id 8F180402D2 for ; Fri, 23 Jun 2023 20:59:06 +1000 (AEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C4E043200943 for ; Fri, 23 Jun 2023 06:59:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 23 Jun 2023 06:59:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=papnet.eu; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1687517945; x=1687604345; bh=Pt iQz/b0zPIQcSrC+kzZLHQOka3YH3Mo4G/RQumVPdc=; b=Iz1oUfGUYDZA2rpWd3 hYHtSprkUMnIQq8TGVzUj+FN+0QhHZgpPLYP+Fu9ytJ8g8yYlS3CbrAwAH0kuOSQ kTTPm2KKnjItjLxp/ujcU/T5nhavENJNPJ1W0tItwGIUbM7tz459Y3ruGVHsynzh 1YunfcF6XycBiFQQSPtpQNYfvoZLZ5CthN4QbXNlbo5BE81h72Y70u2beRRU7vER PE1vvARX04LixIPLl73TcFSmjdpt2s9ezbANypn5NJ6xtJISNueQcQcI/BGiILWL u7cyD80CxS5ehzS7DNuYa8ERd480T6HrFlxg9sGTzG8NfSvqstuMkFeLmVUEAJwX ycJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1687517945; x=1687604345; bh=PtiQz/b0zPIQc SrC+kzZLHQOka3YH3Mo4G/RQumVPdc=; b=pwpEQYBJIfvZPieSw0px/FgbAvhBk O4fDLJ005ebhjusm/h1S+TenBYh+VXkEqkCMLLan0EMNPYkEBk/qGtbNyurWEJoJ 13hS7DEDEGt4dhHMrf/CwkQHtA+QWDWI5N9yf7cdw2dtuRUPx4PKAsHvAx0M78AT iL+r5/FFHIzb7KKgF2NGwECpR7Rhm7l0fnl+Tkvsa9cwYdCAFu/JL5B+cxHScMZR McU5jN+EbbtAsFzzYN11i5k0jbzLnEB3zPx6sZHK2w2baJbVV+I/SJowqANLgO0H iAmMvFcBSiGFOe3XBLUaIP8DSIj2nYik0s5G05lYIoxo/8kplM46/lD0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeeggedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomheptehnghgvlhhoucfrrghpvghnhhhofhhfuceorggrphesphgr phhnvghtrdgvuheqnecuggftrfgrthhtvghrnhepleefheeluefgvdekgedvleekhfdutd etgfdtudetgfevieeiledvveekgfevvdehnecuffhomhgrihhnpehgihhthhhusgdrtgho mhdpshhquhhoiigvrdhnvghtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggrphesphgrphhnvghtrdgvuh X-ME-Proxy: Feedback-ID: i47c14439:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 23 Jun 2023 06:59:04 -0400 (EDT) Date: Fri, 23 Jun 2023 12:59:02 +0200 From: Angelo Papenhoff To: tuhs@tuhs.org Message-ID: References: <1e651370-3ada-e211-c277-409d6563500d@f4grx.net> <202306080331.3583Vrw7057546@ultimate.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Message-ID-Hash: 26SUGRW32QPKR3VCOOJV3CAOEJR75PTG X-Message-ID-Hash: 26SUGRW32QPKR3VCOOJV3CAOEJR75PTG X-MailFrom: aap@papnet.eu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Software written in B List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Another update: I have worked quite a bit on my compiler the last couple of days and have managed to make it produce the same code as those in the binaries (compared the intermediate code by eye). There were a few mistakes, the files have been updated. I removed some features that I figured were not in ken's original compiler and most importantly changed it to generate RPN code directly instead of parsing an expression into a tree and generating code from that, which ken confirmed was how it worked. I'm still not entirely happy with the result (the build() function seems a bit kludgy), but at least it seems to produce something accurate. Unfortunately I have no idea what the intermediate would have looked like, so the output of this is purely my fantasy. I will also have to adjust my take on ba now due to the changes. For anyone interested, this is my WIP version of bc.b: https://gist.github.com/aap/6df9b4c53c63592437d97dadab533649 aap On 17/06/23, Angelo Papenhoff wrote: > Update: I'm now done with the first pass of this. > I reversed all the programs and successfully ran them through my > compiler (i haven't assembled or linked anything though). > http://squoze.net/B/programs/ > > To check for correctness, the files should of course be compiled, > assembled and linked again. Unfortunately my compiler currently > does not generate quite the same code as the original one. I will > have to work on this. > Most importantly & and | are only bitwise operators in the version > of B that compiled these programs, but some other differences (like > the fixup chain and the way strings are stored) exist too. > > It would be nice to have a fully working B system on v1/v2 UNIX again, > with everything built from source, we can even reconstruct different > versions of the runtime (and perhaps standard library). So far the > PDP-11 version of my B system has only run on v6 and 2.11BSD. > > best, > aap > > On 14/06/23, Angelo Papenhoff wrote: > > I will hopefully continue with this in the next time (if, goto, mail and > > glob are left).