Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #33569 > unrolled thread
| Started by | Coos Haak <chforth@hccnet.nl> |
|---|---|
| First post | 2014-09-26 00:39 +0200 |
| Last post | 2014-09-30 04:20 -0400 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.forth
Is [compile] really used in this day and age? Coos Haak <chforth@hccnet.nl> - 2014-09-26 00:39 +0200
Re: Is [compile] really used in this day and age? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-09-29 13:53 +0000
Re: Is [compile] really used in this day and age? Coos Haak <chforth@hccnet.nl> - 2014-09-29 21:48 +0200
Re: Is [compile] really used in this day and age? Bernd Paysan <bernd.paysan@gmx.de> - 2014-09-30 00:12 +0200
Re: Is [compile] really used in this day and age? "Rod Pemberton" <buzzoff@nonamewhichexists.cmm> - 2014-09-30 04:20 -0400
| From | Coos Haak <chforth@hccnet.nl> |
|---|---|
| Date | 2014-09-26 00:39 +0200 |
| Subject | Is [compile] really used in this day and age? |
| Message-ID | <1f5rjhjmiemct$.38hm9g0sq09e$.dlg@40tude.net> |
For an example, I searched in the latest gforth distribution (0.7.9_2014_04_02). $ grep -r -i "\[compile\]" *fs answords.fs:answord [COMPILE] CORE-EXT bracket-compile \ 6.2.2530 58 cross.fs:Cond: [compile] ( -- ) \ name extend.fs:\ [COMPILE] 17may93jaw extend.fs:: [compile] ( compilation "name" -- ; run-time ? -- ? ) \ core-ext bracket-compile wordsets.fs:^ U> ^ UNUSED ^ VALUE ^ WITHIN ^ [COMPILE] ^ \ core-ext bracket-compile Even with subdirectories (-r) I only could find only definitions of [compile] in Forth (extend.fs) and the cross compiler(cross.fs). Further in some comments and testing files (answords.fs/wordsets.fs). So, does [compile] have any value? -- Coos CHForth, 16 bit DOS applications http://home.hccnet.nl/j.j.haak/forth.html
[toc] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2014-09-29 13:53 +0000 |
| Message-ID | <2014Sep29.155328@mips.complang.tuwien.ac.at> |
| In reply to | #33569 |
Coos Haak <chforth@hccnet.nl> writes:
>For an example, I searched in the latest gforth distribution
>(0.7.9_2014_04_02).
...
>Even with subdirectories (-r) I only could find only definitions of
>[compile] in Forth (extend.fs) and the cross compiler(cross.fs). Further in
>some comments and testing files (answords.fs/wordsets.fs).
Sure, one can do nicely without [COMPILE], and use POSTPONE (or
nothing) instead.
>So, does [compile] have any value?
It may be still in use in legacy code; replacing it with POSTPONE or
(rarely) nothing is relatively easy, and that replacing can actually
be automated with a bit of effort.
- 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 2014: http://www.euroforth.org/ef14/
[toc] | [prev] | [next] | [standalone]
| From | Coos Haak <chforth@hccnet.nl> |
|---|---|
| Date | 2014-09-29 21:48 +0200 |
| Message-ID | <12l4fgt8dau2e.cp5lz9vf8o1h.dlg@40tude.net> |
| In reply to | #33580 |
Op Mon, 29 Sep 2014 13:53:28 GMT schreef Anton Ertl: > Coos Haak <chforth@hccnet.nl> writes: >>For an example, I searched in the latest gforth distribution >>(0.7.9_2014_04_02). > ... >>Even with subdirectories (-r) I only could find only definitions of >>[compile] in Forth (extend.fs) and the cross compiler(cross.fs). Further in >>some comments and testing files (answords.fs/wordsets.fs). > > Sure, one can do nicely without [COMPILE], and use POSTPONE (or > nothing) instead. > >>So, does [compile] have any value? > > It may be still in use in legacy code; replacing it with POSTPONE or > (rarely) nothing is relatively easy, and that replacing can actually > be automated with a bit of effort. > > - anton I later found out that the '-r' option of grep (ubuntu and cygwin) does not seem to work. A small cohort of files in subdirectories of the gforth-0.7.9 tar tree do still use [compile]. -- Coos CHForth, 16 bit DOS applications http://home.hccnet.nl/j.j.haak/forth.html
[toc] | [prev] | [next] | [standalone]
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Date | 2014-09-30 00:12 +0200 |
| Message-ID | <m0clh4$38g$2@online.de> |
| In reply to | #33582 |
Coos Haak wrote: > I later found out that the '-r' option of grep (ubuntu and cygwin) does > not seem to work. A small cohort of files in subdirectories of the > gforth-0.7.9 tar tree do still use [compile]. The cross-compiler has [compile] for forward references, because since these words haven't been yet defined, the cross compiler needs a-priori knowledge of their immediate state, and [compile] does provide that (i.e. it just compiles them as forward references). -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
[toc] | [prev] | [next] | [standalone]
| From | "Rod Pemberton" <buzzoff@nonamewhichexists.cmm> |
|---|---|
| Date | 2014-09-30 04:20 -0400 |
| Message-ID | <op.xmzqs1pmmk81un@localhost> |
| In reply to | #33582 |
On Mon, 29 Sep 2014 15:48:29 -0400, Coos Haak <chforth@hccnet.nl> wrote:
> I later found out that the '-r' option of grep (ubuntu and cygwin)
> does not seem to work. A small cohort of files in subdirectories
> of the gforth-0.7.9 tar tree do still use [compile].
cd /
find . -name "*" -exec grep -Hi "\[COMPILE\]" {} \;
Or, use "sgsearch" at this link on the "utilities" page:
http://sallu.tuxfamily.org/
It's much better than "catfish" or "thunar".
Rod Pemberton
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.forth
csiph-web