Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #14170
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... |
| Date | 2012-07-19 12:48 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2012Jul19.144859@mips.complang.tuwien.ac.at> (permalink) |
| References | <2a5baeb8-2c72-41a6-8648-d52842405f18@n16g2000vbn.googlegroups.com> <jth6qc$9l8$1@online.de> <ju7ifu02cet@enews2.newsguy.com> <m7eo6d.kfk@spenarnc.xs4all.nl> <wbOdnWwHX40ca5rNnZ2dnUVZ8lSdnZ2d@supernews.com> |
Andrew Haley <andrew29@littlepinkcloud.invalid> writes:
>Albert van der Horst <albert@spenarnc.xs4all.nl> wrote:
>> In article <ju7ifu02cet@enews2.newsguy.com>, WJ <w_a_x_man@yahoo.com> wrote:
>>>Anton Ertl wrote:
>>>
>>>> BTW, the source code for ;S and ?BRANCH is:
>>>>
>>>> ;s ( R:w -- ) gforth semis
>>>> ""The primitive compiled by @code{EXIT}.""
>>>> #ifdef NO_IP
>>>> INST_TAIL;
>>>> goto *(void *)w;
>>>> #else
>>>> SET_IP((Xt *)w);
>>>> #endif
>>>>
>>>> condbranch(?branch,f --,f83 question_branch,
>>>> ,if (f==0) {
>>>> ,:
>>>> 0= dup 0= \ !f f
>>>> r> tuck cell+ \ !f branchoffset f IP+
>>>> and -rot @ and or \ f&IP+|!f&branch
>>>> >r ;)
>>>>
>>>> There's some m4 in this, some Vmgen, some C, and some Forth.
>>>
>>>KISS
>>>
>>>(Keep it simple, stupid.)
>>
>> I can confirm that m4 is sometimes just the best solution for
>> a problem. To generate ciforth's I use m4 to massage assembler
>> files.
>
>Sure, but if your Forth was written in Forth you wouldn't have to do
>any of this stuff.
If my Forth was written in Forth (with built-in Forth assembler), it
would not be portable.
Vmgen is written in Forth. One might extended it to do the things
that we used m4 for (thus making m4 unnecessary here), but in my
estimation that would required quite a lot of work without making the
source code (posted above) simpler; but you are welcome to prove me
wrong by pulling it through.
The other option would be to do the expansion by hand that we use m4
for. Simplicity by stupidity is pribably not the meaning if KISS,
though.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2012: http://www.euroforth.org/ef12/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-07 14:35 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Howerd <howerdo@yahoo.co.uk> - 2012-07-07 23:59 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Alex McDonald <blog@rivadpm.com> - 2012-07-08 04:26 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Howerd <howerdo@yahoo.co.uk> - 2012-07-08 06:02 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-09 23:58 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-10 01:22 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-10 02:54 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-10 03:44 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-10 10:13 -0500
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-10 18:30 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-10 01:22 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-10 01:27 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Ron Aaron <rambamist@gmail.com> - 2012-07-10 11:30 +0300
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-10 01:58 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Ron Aaron <rambamist@gmail.com> - 2012-07-10 15:33 +0300
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-10 18:32 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-10 18:31 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Howerd <howerdo@yahoo.co.uk> - 2012-07-10 03:52 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Bernd Paysan <bernd.paysan@gmx.de> - 2012-07-10 14:22 +0200
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-07-10 13:20 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-11 00:56 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-11 01:49 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-11 02:29 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... "Elizabeth D. Rather" <erather@forth.com> - 2012-07-11 07:29 -1000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-11 17:23 -0700
Re: Anonimity was Re: doing exercises for starting etc. Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-11 17:57 -0700
Re: Anonimity was Re: doing exercises for starting etc. "Elizabeth D. Rather" <erather@forth.com> - 2012-07-11 16:14 -1000
Re: Anonimity was Re: doing exercises for starting etc. Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-12 12:04 +0000
Re: Anonimity was Re: doing exercises for starting etc. Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-12 04:37 -0700
Re: Anonimity was Re: doing exercises for starting etc. "A. K." <akk@nospam.org> - 2012-07-12 18:32 +0200
Re: Anonimity was Re: doing exercises for starting etc. Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-13 01:37 +0000
Re: learning forth, and you wak jobs quit changing the subject quiet_lad <gavcomedy@gmail.com> - 2012-07-17 16:22 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... "WJ" <w_a_x_man@yahoo.com> - 2012-07-18 23:56 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-19 11:35 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-19 06:58 -0500
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-07-19 12:48 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-19 09:03 -0500
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Bernd Paysan <bernd.paysan@gmx.de> - 2012-07-19 16:07 +0200
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... "Elizabeth D. Rather" <erather@forth.com> - 2012-07-19 08:51 -1000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-19 19:15 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-19 18:27 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-19 12:55 -0500
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Paul Rubin <no.email@nospam.invalid> - 2012-07-19 12:31 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Bernd Paysan <bernd.paysan@gmx.de> - 2012-07-19 22:48 +0200
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Paul Rubin <no.email@nospam.invalid> - 2012-07-21 21:25 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-20 04:04 -0500
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... "Elizabeth D. Rather" <erather@forth.com> - 2012-07-20 08:14 -1000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Paul Rubin <no.email@nospam.invalid> - 2012-07-21 01:28 -0700
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-20 15:02 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-20 11:24 -0500
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... vandys@vsta.org - 2012-07-20 17:14 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Bernd Paysan <bernd.paysan@gmx.de> - 2012-07-20 19:45 +0200
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Arnold Snarb <asnarb@fdip.bad-monkeys.org> - 2012-07-09 17:42 +0000
Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-09 21:02 -0700
csiph-web