Re: sml for newbies



Johan Grönqvist <johan.gronqvist@xxxxxxxxx> writes:

> I think sml/nj is good. It seems to me to be the most actively used
> interpreter of sml. An intepreter is probably better for learning than a
> compiler.

Quibble: SML/NJ is *not* an interpreter! It is a compiler that comes
with an interactive toplevel loop (sometimes known as "REPL"), which
may give the /impression/ that what you have is an interpreter. Under
the hood, though, everything you type at the prompt is first compiled
to machine code and the generated machine code is then executed.

SML/NJ also provides support for non-interactive "large-scale"
programming via its compilation manager CM. (You can interactively
explore CM-managed code by running CM from the REPL.)

Cheers,
Matthias

.



Relevant Pages

  • Re: String to int conversion
    ... an interpreter produces its results by some other means. ... if it *was* converted in chunks into actual machine code to be ... compiler available. ... in order to execute however many lines exist in the script. ...
    (microsoft.public.scripting.vbscript)
  • Re: String to int conversion
    ... byte code could be interpreted (though I don't know of any such interpreter). ... be converted to the equivalent set of native machine code. ... In ASP, in fact, it is the byte code form of a compiled ASP page that is ... calls the compiler and then passes the byte-code buffer returned from the ...
    (microsoft.public.scripting.vbscript)
  • Re: A stupid post about Intels latest computer chip ( s)
    ... I've heard of forth implementations that run in machine code - define something and the definition is stored as machine code that executes the operations in the definition. ... would that be a compiler, or is it still an interpreter? ... the executable form of a definition in the classical model was a sequence of "compiled" absolute addresses processed by an address interpreter which on some platforms was slightly faster than a CALL instruction. ...
    (sci.electronics.design)
  • Re: compiled open source Windows lisp
    ... >> Compiler, not interpreter. ... All available Common Lisp implementations ... >> compile to machine code. ... > compiler for a virtual machine. ...
    (comp.lang.lisp)
  • Re: Build your own Forth for Microchip PIC (Episode 837)
    ... the unreasonablly small hardware stack size for my particular target. ... You are handcuffed in the sense that you would like to be able to download small amounts of code into ram and execute it. ... because once you do away with the inner interpreter, ... An optimizing compiler isn't a post-processor, it's an *alternative* to another kind of compiler. ...
    (comp.lang.forth)