Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #10575

How about helping optimization in language?

From Helmar Wodtke <helmwo@gmail.com>
Newsgroups comp.lang.forth
Subject How about helping optimization in language?
Date 2012-03-27 07:26 -0700
Organization http://groups.google.com
Message-ID <30126800.1344.1332858395156.JavaMail.geo-discussion-forums@ynnk21> (permalink)

Show all headers | View raw


Hi all,

there is something interesting in Forth: it does optimizations in a very specific way. That is knowing how it works. The better algorithm is the better optimization.

But that has drawbacks. Nobody knows every system. And no system knows every intention.

There is one big part that could be optimized in a simple way - it is >R and R> and all words that are similar.

">R" (especially in ANS terms) means to bring something to a second "stack". "R>" to bring it back. This could be virtually something like a register at the machine you have.

Why not implement this more elaborate about what ">R" means? I know CS-ROLL etc. - it should not be this weird.
How about defining ">R" has nothing to do with return stack but it could affect it? Why not saying to programmers to use it, as long as it is stable inside one definition of a word?
It would be "semi-compatible" with ANS.
All the return stack tricks you had with old implementation are no longer recommended today.

Here I remember Reva that had a word to bring something into a machine register. Maybe it was ">a" or such. But this was nothing like a stack at all.

For implementation reasons the return stack should not be made available to the programmer. It should be accessible for the system implementor only. At least in "official terms" of a specification.

How do you think?
-Helmar

Back to comp.lang.forth | Previous | NextNext in thread | Find similar


Thread

How about helping optimization in language? Helmar Wodtke <helmwo@gmail.com> - 2012-03-27 07:26 -0700
  Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-03-27 09:32 -0500
    Re: How about helping optimization in language? Helmar Wodtke <helmwo@gmail.com> - 2012-03-27 08:12 -0700
      Re: How about helping optimization in language? Coos Haak <chforth@hccnet.nl> - 2012-03-27 17:48 +0200
        Re: How about helping optimization in language? Helmar Wodtke <helmwo@gmail.com> - 2012-03-27 09:04 -0700
          Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-03-28 00:42 +0200
      Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-03-27 11:34 -0500
        Re: How about helping optimization in language? Helmar Wodtke <helmwo@gmail.com> - 2012-03-27 09:46 -0700
          Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-03-27 12:27 -0500
            Re: How about helping optimization in language? Helmar Wodtke <helmwo@gmail.com> - 2012-03-27 11:29 -0700
              Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-03-27 08:40 -1000
                Re: How about helping optimization in language? John Passaniti <john.passaniti@gmail.com> - 2012-03-27 14:12 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-03-27 12:27 -1000
                Re: How about helping optimization in language? Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-03-28 03:43 -0700
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-03-28 00:41 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-03-28 00:12 -0700
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-03-28 11:17 +0000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-03-28 07:35 -0700
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-03-28 16:31 +0000
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-03-28 22:18 +0200
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-03-28 12:07 -0500
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-01 22:48 -0700
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-02 04:41 -0500
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-02 17:40 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-02 15:35 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-02 19:25 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-02 20:45 -1000
                Re: How about helping optimization in language? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-03 00:51 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-02 22:17 -1000
                Re: How about helping optimization in language? Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-04-03 02:32 -0700
                Re: How about helping optimization in language? mhx@iae.nl (Marcel Hendrix) - 2012-04-03 20:22 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-03 11:53 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-03 09:10 -1000
                Re: How about helping optimization in language? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-03 14:16 -0700
                Re: How about helping optimization in language? mhx@iae.nl (Marcel Hendrix) - 2012-04-05 21:27 +0200
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-03 22:27 +0200
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-03 10:45 -1000
                Re: How about helping optimization in language? Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-04-04 10:34 +0000
                Re: How about helping optimization in language? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-03 00:43 -0700
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-03 03:59 -0500
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-03 20:34 -0700
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-04 05:32 -0500
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-07 22:15 -0700
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-08 04:55 -0500
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-08 15:51 +0000
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-08 11:34 -0500
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-08 13:11 -0700
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-08 23:40 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-08 15:14 -0700
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-09 09:37 +0000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-09 19:05 -0700
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-08 23:18 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-08 20:51 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-08 19:09 -1000
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-09 17:42 +0200
                Re: How about helping optimization in language? jacko <jackokring@gmail.com> - 2012-04-09 09:34 -0700
                Re: How about helping optimization in language? John Passaniti <john.passaniti@gmail.com> - 2012-04-09 10:09 -0700
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-09 21:21 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-09 19:02 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-09 16:44 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-09 20:00 -0700
                Complexity (was: How about helping optimization in language?) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-09 08:52 +0000
                Re: Complexity (was: How about helping optimization in language?) Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-09 03:01 -0700
                Re: Complexity Paul Rubin <no.email@nospam.invalid> - 2012-04-09 10:17 -0700
                Re: Complexity "Elizabeth D. Rather" <erather@forth.com> - 2012-04-09 11:33 -1000
                Re: Complexity "Elizabeth D. Rather" <erather@forth.com> - 2012-04-09 11:43 -1000
                Re: Complexity (was: How about helping optimization in language?) Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-09 17:08 +0200
                Re: Complexity "Elizabeth D. Rather" <erather@forth.com> - 2012-04-09 11:21 -1000
                Re: How about helping optimization in language? stephenXXX@mpeforth.com (Stephen Pelc) - 2012-04-09 10:24 +0000
                Re: How about helping optimization in language? Nomen Nescio <nobody@dizum.com> - 2012-04-09 16:18 +0200
                Re: How about helping optimization in language? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-09 07:23 -0700
                Re: How about helping optimization in language? stephenXXX@mpeforth.com (Stephen Pelc) - 2012-04-09 15:27 +0000
                Re: How about helping optimization in language? BruceMcF <agila61@netscape.net> - 2012-04-04 06:51 -0700
                Re: How about helping optimization in language? stephenXXX@mpeforth.com (Stephen Pelc) - 2012-04-03 09:06 +0000
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-03 16:13 +0000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-03 12:43 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-03 10:16 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-03 13:41 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-03 11:01 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-03 22:42 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-03 21:11 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-04 01:02 -0700
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-04 05:35 -0500
                Re: How about helping optimization in language? Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-04-04 15:01 +0000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-06 00:08 -0700
                Re: How about helping optimization in language? Jan Coombs <jan_2011-02@murray-microft.co.uk> - 2012-04-06 12:05 +0100
                Re: How about helping optimization in language? Alex McDonald <blog@rivadpm.com> - 2012-04-03 15:56 -0700
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-03 22:06 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-03 13:22 -0700
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-04 05:43 -0500
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-04 23:15 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-04 19:02 -0700
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-04 13:34 +0000
                Re: How about helping optimization in language? stephenXXX@mpeforth.com (Stephen Pelc) - 2012-04-02 09:49 +0000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-02 20:04 -0700
                Re: How about helping optimization in language? stephenXXX@mpeforth.com (Stephen Pelc) - 2012-04-03 09:30 +0000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-03 13:16 -0700
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-03 22:45 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-03 23:26 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-03 21:29 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-04 02:32 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-04 07:30 -1000
                Re: How about helping optimization in language? John Passaniti <john.passaniti@gmail.com> - 2012-04-04 08:51 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-04 10:31 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-07 21:20 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-07 19:18 -1000
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-08 15:59 +0000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-08 22:12 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-08 19:42 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-08 23:26 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-08 20:37 -1000
                Re: How about helping optimization in language? Fritz Wuehler <fritz@spamexpire-201204.rodent.frell.theremailer.net> - 2012-04-09 23:33 +0200
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-09 11:52 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-09 18:42 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-09 15:57 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-09 19:08 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-09 16:29 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-09 19:53 -0700
                Re: How about helping optimization in language? stephenXXX@mpeforth.com (Stephen Pelc) - 2012-04-03 22:06 +0000
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-04 13:20 +0000
                Re: How about helping optimization in language? stephenXXX@mpeforth.com (Stephen Pelc) - 2012-04-04 21:18 +0000
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-05 15:36 +0000
                Re: How about helping optimization in language? stephenXXX@mpeforth.com (Stephen Pelc) - 2012-04-05 18:32 +0000
                Re: How about helping optimization in language? kenney@cix.compulink.co.uk - 2012-04-04 04:39 -0500
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-04 02:50 -0700
                Re: How about helping optimization in language? BruceMcF <agila61@netscape.net> - 2012-04-03 18:07 -0700
                Re: How about helping optimization in language? Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-04-05 11:10 +0000
                Re: How about helping optimization in language? BruceMcF <agila61@netscape.net> - 2012-04-05 13:21 -0700
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-05 23:26 +0200
                Re: How about helping optimization in language? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-05 14:49 -0700
                Re: How about helping optimization in language? Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2012-04-06 08:58 +0100
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-06 19:07 +0200
                Re: How about helping optimization in language? Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2012-04-07 10:07 +0100
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-07 21:18 +0200
                Re: How about helping optimization in language? BruceMcF <agila61@netscape.net> - 2012-04-08 07:36 -0700
                Re: How about helping optimization in language? jacko <jackokring@gmail.com> - 2012-04-08 07:56 -0700
                Re: How about helping optimization in language? jacko <jackokring@gmail.com> - 2012-04-08 07:49 -0700
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-03-28 22:06 +0200
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-03-31 13:38 +0000
                Re: How about helping optimization in language? Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-02 02:10 +0200
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-01 22:32 -0700
                Re: How about helping optimization in language? "A. K." <akk@nospam.org> - 2012-04-02 09:40 +0200
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-01 21:44 -1000
                Re: How about helping optimization in language? Paul Rubin <no.email@nospam.invalid> - 2012-04-02 01:08 -0700
                Re: How about helping optimization in language? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-02 06:47 -0400
                Re: How about helping optimization in language? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-02 14:38 +0000
                Re: How about helping optimization in language? Elizabeth D Rather <erather@forth.com> - 2012-03-28 15:08 -1000
                Re: How about helping optimization in language? Gary Bergstrom <g.bergstrom@ieee.org> - 2012-03-28 10:15 -0700
                Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-03-28 12:00 -0500
                Re: How about helping optimization in language? hwfwguy@gmail.com - 2012-03-29 08:52 -0700
                Re: How about helping optimization in language? John Passaniti <john.passaniti@gmail.com> - 2012-03-29 09:33 -0700
                Re: How about helping optimization in language? Helmar Wodtke <helmwo@gmail.com> - 2012-03-29 09:44 -0700
                Re: How about helping optimization in language? hwfwguy@gmail.com - 2012-03-29 20:59 -0700
                Re: How about helping optimization in language? jacko <jackokring@gmail.com> - 2012-03-30 06:09 -0700
                Re: How about helping optimization in language? Helmar Wodtke <helmwo@gmail.com> - 2012-03-27 11:48 -0700
                Re: How about helping optimization in language? "Elizabeth D. Rather" <erather@forth.com> - 2012-03-27 12:35 -1000
              Re: How about helping optimization in language? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-03-28 03:02 -0500
                Re: How about helping optimization in language? Helmar Wodtke <helmwo@gmail.com> - 2012-03-28 05:03 -0700
          Re: How about helping optimization in language? BruceMcF <agila61@netscape.net> - 2012-03-28 20:17 -0700
          Re: How about helping optimization in language? BruceMcF <agila61@netscape.net> - 2012-03-29 11:43 -0700
  Re: How about helping optimization in language? Pablo Hugo Reda <pabloreda@gmail.com> - 2012-03-27 12:22 -0700
  Re: How about helping optimization in language? Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-03-28 03:24 -0700
  Re: How about helping optimization in language? jacko <jackokring@gmail.com> - 2012-04-08 21:56 -0700

csiph-web