[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work3) now available
- From: Brett Nash <nash@...>
- Date: Thu, 20 May 2010 23:12:07 +0800
On May 20, 2010, at 7:05 PM, spir ☣ <denis.spir@gmail.com> wrote:
> On Wed, 19 May 2010 17:33:57 -0400
> Sean Conner <sean@conman.org> wrote:
>
>> Also, while we are at it, drop the while and repeat statement as well. How
>>> many loopy [sic] constructs does a language need?
>>
>> They're there for convenience. Technically, all you need is a conditional
>> and a way of diverting flow control---basically, if and goto---and from
>> there you can build up all looping constructs
>
> Technically, all you need is, indeed,... jnz (jump if not zero).
> ;-)
If you use sbnz (subtract and branch if not zero) you can ditch all the other ops too, and really simplify the VM.
Nash
[taking minimalism to the extreme, along with the topic]
>
> Denis
> ________________________________
>
> vit esse estrany ☣
>
> spir.wikidot.com