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 14702 invoked from network); 7 Jun 2023 15:05:49 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 7 Jun 2023 15:05:49 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 3758442593; Thu, 8 Jun 2023 01:05:43 +1000 (AEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by minnie.tuhs.org (Postfix) with ESMTPS id AEAB142572 for ; Thu, 8 Jun 2023 01:05:32 +1000 (AEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C17A25C020B for ; Wed, 7 Jun 2023 11:05:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 07 Jun 2023 11:05:31 -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=fm1; t=1686150331; x=1686236731; bh=Jp YjRyBdQ4Ucyc0Oas/kQXlYwD8Ap1WbrtcqMRMs5TY=; b=cGuK2drpWe/so6zS84 0R/xaxaF/Z8GCPgplBE3n3AgkYWto5hXjFx5c3ffObk3YUGwmOw5cX+xl1vHlBcu 2zhrF+PSDx9yhgyGIhq4rrQRjsDQvVNPNxME7mphvk8smJMJUF4VZYS685BZqOzi h+eNnn8TiFyvWsTjEDuh7YWtZdLUgFtofmhfE2XXxAD4tTqt7W0Y79vzR+1wlP2U KK8lFw5G0gIXwQ2IJDk9ElJYvD/NzYeST+Pk/Gfg0upjXSMs16i+IGZZuzg/mVLl 57zgDMM9LdqRuFXt5fvY5h5ROITkoEuRt67HrFy9xdoS09CG8fQyHT9mNLiSTwVV gKDw== 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=fm1; t=1686150331; x=1686236731; bh=JpYjRyBdQ4Ucy c0Oas/kQXlYwD8Ap1WbrtcqMRMs5TY=; b=vwflgaTvFWs3NAJpJADgZKQuPCcA2 Cx4H9W56Ox6a+Ic05v3QCEKrhsILvoJV3ob/lrCROaIHMrScZckV3gKC8MkIXxtT 292aELZN7nH7Zc5pzlXRJbRZjnpz0zZk9bTp7iHE4bpMonEId18TZHPC0a4iiev+ ySCS7xmhUqjMd7shAXjTZChIi/f3uV5nRADEIGDknBQo+cT16Kk2IjcYlHVwuyPk tgHHW0o5sCwpwCxJgWk+h4ybpssHrLQif29KSf52Zdi/bkIt5yKfi/2VbsjmeYyb hMGjfP4qLponEZhwk4SCVBUaTfv0Nu3hmaTTYcrzSX6i2cuc3EuoA5RGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtgedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomheptehnghgvlhhoucfrrghpvghnhhhofhhfuceorggrphesphgr phhnvghtrdgvuheqnecuggftrfgrthhtvghrnhepffduudejudduieelvdetffdvleehte fftdeiheeggfegveelvefgtedtueelfefgnecuffhomhgrihhnpehgihhthhhusgdrtgho mhdpihgvtggtrdgtohhmpdhsrhdrhhhtpdgsvghllhdqlhgrsghsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggrphesphgrphhn vghtrdgvuh X-ME-Proxy: Feedback-ID: i47c14439:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 7 Jun 2023 11:05:30 -0400 (EDT) Date: Wed, 7 Jun 2023 17:05:27 +0200 From: Angelo Papenhoff To: tuhs@tuhs.org Message-ID: References: <1e651370-3ada-e211-c277-409d6563500d@f4grx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1e651370-3ada-e211-c277-409d6563500d@f4grx.net> Message-ID-Hash: QIQAJ7ZDRQHGDVL2P2DUVJP62NNZA7YA X-Message-ID-Hash: QIQAJ7ZDRQHGDVL2P2DUVJP62NNZA7YA 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: Sebastien, I'm not aware of any old UNIX B code beyond the examples from the documentation and one or two short programs for the PDP-7 (this is older B). As Lars already mentioned, some people have written their own B compilers, even in B. My compiler (https://github.com/aap/b) generates the same threaded code that ran on the PDP-11 and I implemented it on a few platforms, (pdp-11, amd64, mips32, riscv64), notably it runs on UNIX v6. Robert Swierczek has written a B compiler that is compatible with the PDP-7 runtime: https://github.com/DoctorWkt/pdp7-unix/blob/master/src/other/b.b With B you pretty much have to write your own code unfortunately. Would be great if some bigger programs (like the compiler and yacc) were found. best, Angelo On 07/06/23, Sebastien F4GRX wrote: > Hello everyone, > > this is my first post on this list. > > > After looking at the archives for this mailing list, I have seen that > the B language has been discussed several times already. > > After viewing Ken Thompson's interview by Brian Kernighan at VCF East > 2019, I became interested in the B language, as it seemed full-featured > for system programming, close to C, and simple enough to write a parser > for it without a code generation tool. > > So for fun and self-education, I am now writing a (or yet another) B > compiler, in C, after reading Jack Crenshaw's "Let's build a compiler" > documentation ( https://compilers.iecc.com/crenshaw/ ) > > Here it is: https://git.sr.ht/~f4grx/bpars > > It is now starting to generate code for the 68hc11 8-bit platform. It > can also generate C code. > > > I have written some test programs, found some B examples, but I thought > it would be great to use my compiler with actual B software. > > Of course, B was a "transition" language, that did not have a continued > use as soon as it evolved into C. so if any software remains, it will be > quite hard to find. > > And here is my question, is any of you aware of original B source code > archives? or are in touch with people that would know? > > > In particular, I read on this document written by Dennis Ritchie: > https://www.bell-labs.com/usr/dmr/www/chist.html > > > After the TMG version of B was working, Thompson rewrote B in itself > (a bootstrapping step). > > > I have also read that the YACC tool was initially written in B. > > There might be other historical B sources that I am not aware of. > > > Do you know if any of this code has survived to this day? Where could I > find more information about this? > > > Thank you very much, > > Sebastien Lorquet (F4GRX) >