Article View: comp.lang.functional
Article #1169Re: How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ?
From: MarkWills
Date: Mon, 03 Jan 2011 10:48
Date: Mon, 03 Jan 2011 10:48
73 lines
4186 bytes
4186 bytes
On Jan 2, 7:14 pm, w_a_x_man <w_a_x_...@yahoo.com> wrote: > On Jan 2, 6:59 am, Doug Hoffman <glide...@gmail.com> wrote: > > > > > On 1/1/11 2:04 AM, girosenth wrote: > > > > How to improve the readability of (any) LISP or any highlevel > > > functional language to the level of FORTH ? > > > > There are many people who have trivia complaints about parens in lisp, > > > but I dont. > > > > LISP is a prefix notation. > > > > sequence of operations would look like this on operands (ops) : > > > > (f ops (g ops (h ops (j ops (k ops (l ops ))...)))) > > > > How do you make it readable ? > > > How do you home to the center or centers ? > > > > (f (g (h (j (k (l ops)))...))) > > > > is easy to read or > > > > ops l k j h g f > > > [snip] > > > > Is there a postfix functional language that also gets rid of parens > > > and is not as primitive as FORTH or POSTSCRIPT ? > > > Forth remains only as primitive as you want it to be. > > That is equally true of assembly language. > > Forth is a low-level language used primarily for programming embedded > applications such as controlling the flushing of a toilet. > > "Forth, the toilet-flusher!" Er, no. Forth has been/is used for: * Controlling radio telescopes * Performing the data acquisition on radio telescopes * Cargo bay loading system on space shuttle * Controlling CNC machines in metal finishing * Controlling DC rectifiers in metal finishing * Dosing controllers in metal finishing * Anodising controllers in metal finishing * Distributed control system in factories * Airport management * Rain gauge data acquisition in environmental applications * Flow meter monitoring (data acquisition) and reporting in water/ sewage applications * Subsea data acquisition and control (in progress) * Real-time telemetry in Formula 1 cars (still ongoing) * Initialising PC mother boards all over the world * OLPC laptop Note that, contrary to your bizarre assertion, I personally know of no instance where a Forth system has been used to flush a toilet. It would be a bit over the top, since a 555 timer and a relay would do the job quite nicely, as we used to do in the 80's with that exact application, and similarly with industrial washer detergent dosing systems. I know you're a troll and I shouldn't 'feed you' but Forth is still used, and is still a valuable programming language.
Technical Details
Message-ID:
<2a7ba258-1bf4-49cb-b7aa-6e2544e509f9@g25g2000yqn.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!g25g2000yqn.googlegroups.com!not-for-mailReferences:
<80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com> <4d2076b1$0$23762$14726298@news.sunsite.dk> <83fc50d0-1410-47e0-9d72-ae087a6d0db3@l17g2000yqe.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 107f24,1641de092071599d X-Google-NewGroupId: yes X-Google-Thread: f4fd2,1641de092071599d X-Google-NewGroupId: yes X-Google-Thread: 103b8b,1641de092071599d X-Google-NewGroupId: yes X-Google-Thread: fd7c9,1641de092071599d X-Google-NewGroupId: yes X-Google-Attributes: gid4e63bbc566,gidf85ca024c1,gid39ae015015,gid2832dde05d,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!g25g2000yqn.googlegroups.com!not-for-mail From: MarkWills <markrobertwills@yahoo.co.uk> Newsgroups: comp.lang.functional,comp.lang.lisp,gnu.emacs.help,comp.lang.forth,comp.lang.prolog Subject: Re: How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ? Date: Mon, 3 Jan 2011 02:48:39 -0800 (PST) Organization: http://groups.google.com Lines: 73 Message-ID: <2a7ba258-1bf4-49cb-b7aa-6e2544e509f9@g25g2000yqn.googlegroups.com> References: <80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com> <4d2076b1$0$23762$14726298@news.sunsite.dk> <83fc50d0-1410-47e0-9d72-ae087a6d0db3@l17g2000yqe.googlegroups.com> NNTP-Posting-Host: 217.39.88.71 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1294051719 24839 127.0.0.1 (3 Jan 2011 10:48:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 3 Jan 2011 10:48:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g25g2000yqn.googlegroups.com; posting-host=217.39.88.71; posting-account=-Z7-HwoAAAAWOrLQDWUcFYPD8_KiaWMt User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11,gzip(gfe)