From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 13 18:01:51 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F2112449; Wed, 13 Nov 2013 18:01:50 +0000 (UTC) Received: from mail.iXsystems.com (newknight.ixsystems.com [206.40.55.70]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4239023FF; Wed, 13 Nov 2013 18:01:50 +0000 (UTC) Received: from localhost (mail.ixsystems.com [10.2.55.1]) by mail.iXsystems.com (Postfix) with ESMTP id 17A0E68670; Wed, 13 Nov 2013 10:01:50 -0800 (PST) Received: from mail.iXsystems.com ([10.2.55.1]) by localhost (mail.ixsystems.com [10.2.55.1]) (maiad, port 10024) with ESMTP id 38107-10; Wed, 13 Nov 2013 10:01:49 -0800 (PST) Received: from [10.20.30.117] (125.sub-70-197-9.myvzw.com [70.197.9.125]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTPSA id 52AF368660; Wed, 13 Nov 2013 10:01:48 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1812\)) Subject: Re: Loader forth changes for customization From: Jordan Hubbard In-Reply-To: <5283933E.30603@freebsd.org> Date: Wed, 13 Nov 2013 10:01:47 -0800 Message-Id: References: <5282E56F.4020307@freebsd.org> <52832003.8080406@freebsd.org> <09673101-DB54-4D25-9989-8C80D06E266B@fisglobal.com> <5283933E.30603@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1812) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: FreeBSD Hackers , Devin Teske , "Teske, Devin" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2013 18:01:51 -0000 On Nov 13, 2013, at 6:57 AM, Alfred Perlstein = wrote: > It seems to work although I will talk to the team about making = separate files for the set commands. Since we=92re talking about this, there is an old maxim amongst FORTH = programmers that if a single word=92s definition takes more than a page, = it=92s just too dang long. There are some solid reasons for that, = namely the fact that forth is already hard enough to read as it is (and = I=92m speaking as a FAN of the language) and you generally need to keep = the =93internal stack state=94 in your head while writing a word since = the stack contract is only at word boundaries (e.g. word is defined as = tacking stack parameters foo and returning stack parameters bar). = Keeping the definitions short and sweet really helps to aid in = comprehension. The definition for draw-beastie currently violates that maxim, and if = you guys were to refactor it as part of this work, I=92m sure future = generations would not object! :) - Jordan