Functional Programming

James Edward Gray II wrote:

···

On Aug 25, 2007, at 2:06 PM, M. Edward (Ed) Borasky wrote:

It does have a GCC dependency,
which might be an issue on Macs or Solaris. I don't have either so I
can't answer that -- it runs very well on Linux and Windows.

The primary compiler for Macs is gcc.

James Edward Gray II

Thanks! I thought they had their own compiler.

James Edward Gray II wrote:

···

On Aug 25, 2007, at 2:06 PM, M. Edward (Ed) Borasky wrote:

It does have a GCC dependency,
which might be an issue on Macs or Solaris. I don't have either so I
can't answer that -- it runs very well on Linux and Windows.

The primary compiler for Macs is gcc.

James Edward Gray II

While I can't say for *what* versions, GCC runs on pretty dang near every
thing as far as I know. If I recall correctly GCC was even the default system
compiler on 4.4BSD, replacing PCC (the Portable C Compiler).

TerryP.

--
    
Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com

I hope you do. I'm Forth ignorant, so you could bring me to the light. :wink:

I'll sure run it if you put something together.

James Edward Gray II

···

On Aug 25, 2007, at 9:13 PM, Bill Kelly wrote:

I've thought on occasion it might be neat to submit a ruby quiz
sometime, where the goal is to write, in ruby, the core of a Forth interpreter/compiler, such that the rest of the language
(provided with the quiz) can bootstrap itself.

James Edward Gray II wrote:

···

On Aug 25, 2007, at 9:13 PM, Bill Kelly wrote:

I've thought on occasion it might be neat to submit a ruby quiz
sometime, where the goal is to write, in ruby, the core of a Forth
interpreter/compiler, such that the rest of the language
(provided with the quiz) can bootstrap itself.

I hope you do. I'm Forth ignorant, so you could bring me to the light. :wink:

I'll sure run it if you put something together.

James Edward Gray II

Actually, what would be even more interesting would be a Ruby
interpreter written in Forth or Scheme, rather than in C or Java. :slight_smile:

Seriously, though, a simple Forth can be built with indirect threaded
code and all that needs to be "bootstrapped" is the so-called "inner
interpreter". Traditionally, that's done in assembler for speed, but I
suppose a Ruby inner interpreter could be built.