[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: mathlib
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 7 Apr 2014 13:05:26 +0200
On Mon, Apr 7, 2014 at 12:06 PM, John Hind <john.hind@zen.co.uk> wrote:
> I do not understand the mindset that assumes everything in the Lua Reference
> Manual has to be implemented in 'C'. Why cannot some of the standard
> libraries be implemented in Lua?
Well, indeed. In the C++ standard (for instance) there's no
requirement that #include <iostream> actually loads a text file called
"iostream" on the include path.
But, it is very _convenient_ to have the Lua core implemented in C.
Otherwise the build gets involved (first build luac, then compile Lua
bits, use bin2lua, recompile....) and I do appreciate that the Lua
build is such a straightforward makefile. That feels like a good
pragmatic argument.