Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2014 17:34:48 +0000
From:      "Wojciech A. Koszek" <wkoszek@freebsd.org>
To:        Jordan Hubbard <jkh@ixsystems.com>
Cc:        "<freebsd-hackers@freebsd.org>" <freebsd-hackers@freebsd.org>, "<dteske@FreeBSD.org>" <dteske@freebsd.org>, Pedro Giffuni <pfg@freebsd.org>, Pedro Arthur <bygrandao@gmail.com>
Subject:   Re: Lua in the bootloader
Message-ID:  <20140825173448.GC59838@FreeBSD.org>
In-Reply-To: <5FE57E4E-A627-4ABA-AB73-F0D60A3602D5@ixsystems.com>
References:  <3D62F4F4-ECCF-4622-BB57-D028160F3451@freebsd.org> <157901cfbe83$6cbf18d0$463d4a70$@FreeBSD.org> <A87AA9EB-373F-400E-986E-4D9017EB2375@freebsd.org> <16e101cfbfee$42b3b930$c81b2b90$@FreeBSD.org> <5FE57E4E-A627-4ABA-AB73-F0D60A3602D5@ixsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On nie, sie 24, 2014 at 04:43:24 -0700, Jordan Hubbard wrote:
> 
> > limitations that I battle in Forth are significant enough
> > that I'd like to see if Lua can break said chains (such as
> > "dictionary full" errors causing BTX halt -- induced simply
> > by adding "too many functions" in Forth).
>

> I'm not one to stand in the way of progress either, but just to make sure
> we are not foolishly conflating "language" with "environment" here:  You
> do all realize that ficl can have any sized dictionary you want, right?
> Presumably, it's kept small due to the limitations of the boot loader
> environment, and Lua is not going to magically transcend those
> limitations.  Writing lots of boot code in Lua will require memory,
> perhaps even MORE memory since, say what you like about Forth, it's hard
> to get more concise or compact than a Forth dictionary of compiled CFA's.
> That's why we picked it for the role in the first place. 
> 
> So anyway, first try expanding the size of the dictionary. If that can't
> be done, now you know your "ceiling" for Lua.  Can you stay below it, not
> just now but longer term?  Those are the questions you need to answer.

It would be good to try to do something more sophisticated in Lua and see
what the top memory limit is, before we do any serious moves in the loader
land.

-- 
Wojciech A. Koszek
wkoszek@FreeBSD.czest.pl
http://FreeBSD.czest.pl/~wkoszek/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140825173448.GC59838>