Compile-time calculation: Difference between revisions

m
/* {{header|Wren}} Oops, wrong name in the header and lang tag.
(Added Wren)
m (/* {{header|Wren}} Oops, wrong name in the header and lang tag.)
Line 1,334:
<pre>3628800</pre>
 
=={{header|GoWren}}==
Wren is a hybrid compiler/interpreter in the sense that the source code is first compiled to an intermediate bytecode which is then interpreted by the virtual machine.
 
Line 1,342:
 
Not that it makes much difference in practice as the compiler which is written in C is so quick (at least with scripts of moderate length and on modern hardware) that the compile and runtime stages are indistinguishable to the user.
<lang goecmascript>var factorial10 = 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2
 
System.print(factorial10)</lang>
9,487

edits