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 19721 invoked from network); 23 Jun 2023 14:49:41 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 23 Jun 2023 14:49:41 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 22B1241082; Sat, 24 Jun 2023 00:49:37 +1000 (AEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by minnie.tuhs.org (Postfix) with ESMTPS id E0BA34107E for ; Sat, 24 Jun 2023 00:49:32 +1000 (AEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 329D15C019A for ; Fri, 23 Jun 2023 10:49:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 23 Jun 2023 10:49:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=papnet.eu; h=cc :content-transfer-encoding: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= 1687531772; x=1687618172; bh=2KsInziX+ccElmc6JpKOZqFJEfVxAEaQcoW Hnaybkoc=; b=SdLUfOHnXf0npOsSe/RyMcBtw2pPxt8VxL3vYRRy7vUplny6/y/ cGYk6JFbuOhcqUbZhczsrV09RcBgHjvMPaRD5nDfFHLkKBw3imK6ign+xPMkdZ9j WYq8vW5zjvsa/ATkwOEdiRnD3ROk0CTBMLWXgtX2FrJvAHa4nlIYEbBnzSOFRQVz QQiNhZPv1RNNuKiDlybMspBBI4UX+bjelbo4rTTShx4fgNonrTQzTRJC7PyVhY+q 8uy3hz3ZAFcBoTnecBGJayo5zIk6U/5Uu79KJZsXFd1QFTYyrH7E0Ao0TFGzVW7h fPudWgM2H4+Fok5ATjupVpDPzKjUEg2U1Sg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1687531772; x= 1687618172; bh=2KsInziX+ccElmc6JpKOZqFJEfVxAEaQcoWHnaybkoc=; b=k RF7EU1d0hx/torimqUZeC+CxI9QvEWUIdtMJo2dFBvlfOrpYBpQU7h8ANe1Yh/cB 9aYGGGibnWzO87wxyvCdWtOdhO8dKyHm34Nn/xknYNllGoNaoEqqANp0G6OT5hbB P9Om/JP9MpP9vpORMddUlYXSHJbPCY7F9fWqMda1MFMkImu1j/h5j2Vx3XeWvspV 7UOjbrDcatUCGF+kjBNI15bT4gCbf7WzDDbA7cDfkl3dS8yim4H2fWv95jj/xST0 1n3g5e6Qur8OEy7UC0HCubFrN3Twaopnq0HOzdV2QRABxVuvMnBwX0MShPFEnrFB UOphkycJ/YgprQYQQsk5w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeeggedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtke ertddttddunecuhfhrohhmpeetnhhgvghlohcurfgrphgvnhhhohhffhcuoegrrghpsehp rghpnhgvthdrvghuqeenucggtffrrghtthgvrhhnpeefleehteekkedthfdutdetjeelie egvdelieekjefhgeekhfduuefhhffhleekveenucffohhmrghinhepghhithhhuhgsrdgt ohhmpdgsvghllhdqlhgrsghsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprggrphesphgrphhnvghtrdgvuh X-ME-Proxy: Feedback-ID: i47c14439:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 23 Jun 2023 10:49:31 -0400 (EDT) Date: Fri, 23 Jun 2023 16:49:29 +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="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Message-ID-Hash: 6WS4ABW6EUTEUJPNDI3LRQGFOSIEUOWD X-Message-ID-Hash: 6WS4ABW6EUTEUJPNDI3LRQGFOSIEUOWD 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: I also stumbled over these language differences. In my earlier compiler I tried to support all syntax that looked reasonable, but now I tried to make the code more accurate to the actual thing. I don't know much about the 6070 version of B and scj didn't remember many technical details when I asked him about it a few years ago. For auto vectors you can find an actual example here: https://github.com/DoctorWkt/pdp7-unix/blob/master/src/cmd/ind.b#L3 Ken said that the language was the same on the pdp-7 and pdp-11. The runtime we have for both are different but this must simply reflect different evolutionary stages rather than platform differences. I haven't gotten around to building my new compiler yet, but it would be interesting to see if it's small enough to fit into the 4kw of pdp-7 userspace. The runtime would have to be updated and expanded of course. In any case it should be fun to run it on v1/v2. Have to try that on my 11/05 :) It sure is interesting how many compilers have popped up for B over the years. I also have a strangely strong love for this little language. aap On 23/06/23, Sebastien F4GRX wrote: > Hi again, >=20 > OK I found your compiler project on github: https://github.com/aap/b >=20 > I see you have introduced changes like this one: >=20 > -=A0=A0=A0=A0=A0=A0 auto ab[500], ava[150]; > -=A0=A0=A0=A0=A0=A0 auto dirf, string, av, name[5], s; > +=A0=A0=A0=A0=A0=A0 auto ab 1000, ava 150; > +=A0=A0=A0=A0=A0=A0 auto dirf, string, av, name 5, s; >=20 > So it mean that at some point the auto declaration was changed? >=20 > Oh, yes it was. Here is the original syntax :=20 > https://www.bell-labs.com/usr/dmr/www/kbman.html >=20 > And this one describes the use of quotes for auto arrays, but thats for=20 > the H6070! https://www.bell-labs.com/usr/dmr/www/bref.pdf >=20 > Also in bref, auto a[4] reserves 5 words, but in ken's version auto a 4=20 > reserves 4 words. >=20 > I think I will make a command line option to support both language specs = :) >=20 > And fix my code, because I had found this example=20 > https://github.com/Spydr06/BCause/blob/main/examples/fibonacci.b >=20 > and was convinced that constants in auto were initial values, but I now=20 > understand that this is incorrect. >=20 > Initialized auto variables would have been an avoidable syntactic sugar=20 > on these machines!