Self-hosting compiler: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Added a paragraph.)
Line 126: Line 126:


The VM (which includes the bytecode compiler) and the command line interpreter (which enables Wren scripts to be run independently) are written in C. Most of the core library is also written in C though parts of it are written in Wren itself. Frankly, in the interests of speed and because Wren is primarily intended as an embedded scripting language, self-hosting is never going to happen.
The VM (which includes the bytecode compiler) and the command line interpreter (which enables Wren scripts to be run independently) are written in C. Most of the core library is also written in C though parts of it are written in Wren itself. Frankly, in the interests of speed and because Wren is primarily intended as an embedded scripting language, self-hosting is never going to happen.

Note, however, that Wren can compile Wren source code ''at runtime'' using the Meta.compile method.


=={{header|ZED}}==
=={{header|ZED}}==