Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #4510
| Newsgroups | comp.lang.forth |
|---|---|
| From | Albert van der Horst <albert@spenarnc.xs4all.nl> |
| Subject | Re: Yay! CGI forth interpreter success |
| Date | 2011-07-31 10:47 +0000 |
| Message-ID | <lp71zd.1ac@spenarnc.xs4all.nl> (permalink) |
| Organization | Dutch Forth Workshop |
| References | <f95d654e-f937-4f00-a96f-7fe52c3aa674@j15g2000yqf.googlegroups.com> <89389716-8d7a-4de0-a954-ea63584c5522@a12g2000vbf.googlegroups.com> <fdd95e41-c342-4653-a551-454f54828409@a4g2000yqg.googlegroups.com> |
In article <fdd95e41-c342-4653-a551-454f54828409@a4g2000yqg.googlegroups.com>, Tarkin <tarkin000@gmail.com> wrote: <SNIP> > >I think it's going to be a combination of one or more of the following >that will make or break this type of forth-CGI programming: > 1) ease of querying the environment variables (practically as MUST >for CGI) > 2) non-standard parsing of stdin (i.e. NOT _interpreting_ stdin ) > 3) readability and easy implementation of conditionals/loops > 4) string handling facilities Add 5) Light weight startup or turnkey. ciforth does a good job on all accounts. "HOME" GET-ENV TYPE /home/albert OK It doesn't get any better. PREFIX allows for "non-standard parsing" while doing ordinary interpreting. PREFIX is non-standard, but it is the only non-standard word you need. Use of loops and conditionals during interpret mode by compilation to a temp area, transparently. $@ $! $/ $C+ $+! Simplistic and easy to use. 30 K executable at most. A turnkey is a 30+X K executable, if you can't stand the cost of loading GET-ENV from a library. > >I will start a new thread on string handling and factors thereof... Don't go overboard in the string handling. Next time you wake up it is Xmas 2025. >Before anyone asks or points out that my string-handling seems clumsy, >consider that environment strings under Linux are NULL-terminated >strings ; in for a penny, out for a pound - that is, since I >already have to deal with NULL-terminated strings for environment >variables and file manipulation, I use them elsewhere as well. I seriously doubt that decision. Using adr,len pair is a natural for Forth internals. GET-ENV produces an adr,len pair and I never looked back. (You can steal you GET-ENV from ciforth library, it is really pretty trivial.) > >TTFN, > Tarkin Have fun! Groetjes Albert -- -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Yay! CGI forth interpreter success Tarkin <tarkin000@gmail.com> - 2011-07-24 19:08 -0700
Re: Yay! CGI forth interpreter success Mark Wills <forthfreak@forthfiles.net> - 2011-07-25 05:17 -0700
Re: Yay! CGI forth interpreter success John Passaniti <john.passaniti@gmail.com> - 2011-07-25 18:31 -0700
Re: Yay! CGI forth interpreter success BruceMcF <agila61@netscape.net> - 2011-07-25 22:53 -0700
Re: Yay! CGI forth interpreter success Albert van der Horst <albert@spenarnc.xs4all.nl> - 2011-07-26 19:34 +0000
Re: Yay! CGI forth interpreter success Paul Rubin <no.email@nospam.invalid> - 2011-07-26 01:21 -0700
Re: Yay! CGI forth interpreter success Mark Wills <forthfreak@forthfiles.net> - 2011-07-26 01:57 -0700
Re: Yay! CGI forth interpreter success Albert van der Horst <albert@spenarnc.xs4all.nl> - 2011-07-26 19:48 +0000
Re: Yay! CGI forth interpreter success mhx@iae.nl (Marcel Hendrix) - 2011-07-27 21:33 +0200
Re: Yay! CGI forth interpreter success crc <charles.childers@gmail.com> - 2011-07-29 13:10 -0700
Re: Yay! CGI forth interpreter success Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2011-07-26 17:48 +0100
Re: Yay! CGI forth interpreter success Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2011-07-26 17:54 +0100
Re: Yay! CGI forth interpreter success crc <charles.childers@gmail.com> - 2011-07-26 12:02 -0700
Re: Yay! CGI forth interpreter success Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2011-07-29 17:36 +0100
Re: Yay! CGI forth interpreter success anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2011-07-26 17:06 +0000
Re: Yay! CGI forth interpreter success Tarkin <tarkin000@gmail.com> - 2011-07-30 12:35 -0700
Re: Yay! CGI forth interpreter success Julian Fondren <ayrnieu@gmail.com> - 2011-07-30 16:03 -0500
Re: Yay! CGI forth interpreter success Albert van der Horst <albert@spenarnc.xs4all.nl> - 2011-07-31 10:47 +0000
Re: Yay! CGI forth interpreter success Tarkin <tarkin000@gmail.com> - 2011-07-31 11:11 -0700
Re: Yay! CGI forth interpreter success John Passaniti <john.passaniti@gmail.com> - 2011-08-03 09:41 -0700
Re: Yay! CGI forth interpreter success Spam@ControlQ.com - 2011-08-03 13:54 -0400
Re: Yay! CGI forth interpreter success Tarkin <Tarkin000@invalid.com> - 2011-08-04 23:06 +0000
Re: Yay! CGI forth interpreter success John Passaniti <john.passaniti@gmail.com> - 2011-08-11 16:48 -0700
Re: Yay! CGI forth interpreter success Tarkin <Tarkin000@gmail.com> - 2011-08-14 02:12 +0000
Re: Yay! CGI forth interpreter success John Passaniti <john.passaniti@gmail.com> - 2011-08-13 22:03 -0700
Re: Yay! CGI forth interpreter success Tarkin <Tarkin000@gmail.com> - 2011-08-20 23:07 +0000
Re: Yay! CGI forth interpreter success Tarkin <tarkin000@gmail.com> - 2011-07-31 11:12 -0700
Re: Yay! CGI forth interpreter success Tarkin <tarkin000@gmail.com> - 2011-07-31 11:24 -0700
csiph-web